Controller Firmware...
 
Notifications
Clear all

Controller Firmware Limitations

21 Posts
5 Users
1 Reactions
3,163 Views
Posts: 6728
Topic starter
(@p-short)
Illustrious Member
Joined: 19 years ago
MartinMueller2003 wrote:
For ESP8266 I am using the UART
For ESP32 I use the RMT devices

How are you using the UART on the ESP8266? I've been playing around with it (TX1 on GPIO2, 4Mbaud), but the signal polarity is backwards from what I would like, as I'm trying to use the serial start bit as the positive pulse at the beginning of every other WS2811 pixel bit. It doesn't matter to much to me because my earlier ESP01 controllers used a N-channel MOSFET with pullup as the level-shifter, resulting in an inversion between the ESP output pin and the pixel input (don't ask why I didn't use the 'standard' P-channel level shifter, because I don't remember why, or if there even was a reason).

So, is there a programmatic way to make the ESP transmit an inverted serial signal?


Reply
Posts: 6728
Topic starter
(@p-short)
Illustrious Member
Joined: 19 years ago

Come to think of it, I mis-spoke - the usual level-shifter is also an N-channel MOSFET, just wired up differently from what I was doing.


Reply
MartinMueller2003
Posts: 7613
(@martinmueller2003)
Illustrious Member
Joined: 14 years ago

The ESPS V3 & V4 uses the inverted UART output setting. We also send 6 bits of Uart output for every 2 bits of intensity data. You can see the setup in the uart settings in the ws2811uart file.


Reply
Posts: 6728
Topic starter
(@p-short)
Illustrious Member
Joined: 19 years ago

The part that I'm missing is how to invert the data output using the Arduino IDE. The other difference is that my current code uses 8 bits of uart output for every 2 bits of intensity, rather than the 6 that you're using, so that T0H/T0L is 0.25uS/1.00uS and T1H/T1L is 1.00uS/0.25us. I'm in California at the moment, so I can't verify that this works, although it's the same timing as the PX1.


Reply
MartinMueller2003
Posts: 7613
(@martinmueller2003)
Illustrious Member
Joined: 14 years ago

we dumped the built in serial driver and wrote a custom driver


Reply
Page 4 / 5
Share: