I'm a beginner in arduino, but since I had an arduino uno, which had no wifi, I decided to try a serial approach. Related to #52
Changes
Altered the ws2812_controller_esp8266.ino code in arduino_serial.ino to use a buffer to store the serial data instead of udp data.
After experimentation, I noticed that the buffer needs at least 16 bytes to pass the ledstrand test and can hold maximum of 64 bytes.
Added serial support in led.py. Just need to match your serial port and baudrate
Added arduino_serial to CONFIG.DEVICES
I don't know how the FPS counter would work in the serial implementation so I left that out.
Problem
I think the serial communication is way too slow for the visualization to work properly. The strip just seemingly lights up randomly. I'm guessing this is because every udp packet can send a lot more information about more pixels at faster rate than serial?
However if someone can actually make this work, that would be cool. Just wanted to share my investigation @joeybab3 :)
I'm a beginner in arduino, but since I had an arduino uno, which had no wifi, I decided to try a serial approach. Related to #52
Changes
ws2812_controller_esp8266.ino
code inarduino_serial.ino
to use a buffer to store the serial data instead of udp data.led.py
. Just need to match yourserial port
andbaudrate
arduino_serial
toCONFIG.DEVICES
Problem I think the serial communication is way too slow for the visualization to work properly. The strip just seemingly lights up randomly. I'm guessing this is because every udp packet can send a lot more information about more pixels at faster rate than serial? However if someone can actually make this work, that would be cool. Just wanted to share my investigation @joeybab3 :)