Hello!
Like the title says: my LEDs are randomly showing random colors. Sometimes it's good for hundreds of Data-cycles, sometimes it occurs 10 cycles in a row, and sometimes every 10, 20, and so on.
So I'm using the octows2811-library for a small 4-button rgb-led illuminated pad. The pad is the smal 2x2 button pad from sparkfun. I needed to cut the DIn/DOut connections on the pcb between the LED-pins and solder the DOut and DIn together via small metal wires.
I am using a 480 Ohm-Resistor for the first DIn right at the teensy board, but not directly soldered like mentioned in the library on the pjrc page. It is placed right next to the pin-connection on the breadboard. The Teensy is a 3.2. My Teensyduino and Arduino are up to date (I'm using the sloeber eclipse IDE, because using Arduino for more complex projects is really annoying).
I've connected every LED-ground with the ground on the board, which is the teensy board ground too. I tried that with just USB-Power and external power. With both constellations the problem occurs.
Because the problem occurs with the basic test of the octows-examples too, I'm not getting further into the project.
I changed the number from "octo" to single by commenting this part for the other 7 strips in the library. (Is there a chance that this library is built up more like the other arduino-libraries? like setting the Pins for yourself via Constructor or by assignment? This would help since my whole project is structured like this, because every other component I use acts like that. I need a special treatment only for this library. I can understand that using the DMA-Controller needs some pre-instantiated stuff you can't just put into a class, that you instantiate later on. If that's the reason I understand and can live with that. )
The problem only occurs when data is sent out and sometimes the wrong color shifts one LED further.
I tracked the sent out data from the library with serial and the data is exactly what it should be, so I don't think it has anything to do with the software (I'm using 24 bit html-code).
I also placed a big 1000µF-Capacitor right after the power source, but having it or not doesn't change anything.
I will take a picoScope today from work at home with me to see some signal-stuff and pictures will follow later on.
As I always read everywhere it's a bad ground connection. I checked all the connections but they are fine so far. I also changed from 800 kHz down to 400 kHz, but this doesn't help.
I also shortened the wires but it doesn't matter if they are like 10 cm or 3 cm.
Since pictures are delivered later on, maybe someone has an idea right now what could cause that problem? Or is it really that ground connection somewhere and I'm just too dumb?
Like the title says: my LEDs are randomly showing random colors. Sometimes it's good for hundreds of Data-cycles, sometimes it occurs 10 cycles in a row, and sometimes every 10, 20, and so on.
So I'm using the octows2811-library for a small 4-button rgb-led illuminated pad. The pad is the smal 2x2 button pad from sparkfun. I needed to cut the DIn/DOut connections on the pcb between the LED-pins and solder the DOut and DIn together via small metal wires.
I am using a 480 Ohm-Resistor for the first DIn right at the teensy board, but not directly soldered like mentioned in the library on the pjrc page. It is placed right next to the pin-connection on the breadboard. The Teensy is a 3.2. My Teensyduino and Arduino are up to date (I'm using the sloeber eclipse IDE, because using Arduino for more complex projects is really annoying).
I've connected every LED-ground with the ground on the board, which is the teensy board ground too. I tried that with just USB-Power and external power. With both constellations the problem occurs.
Because the problem occurs with the basic test of the octows-examples too, I'm not getting further into the project.
I changed the number from "octo" to single by commenting this part for the other 7 strips in the library. (Is there a chance that this library is built up more like the other arduino-libraries? like setting the Pins for yourself via Constructor or by assignment? This would help since my whole project is structured like this, because every other component I use acts like that. I need a special treatment only for this library. I can understand that using the DMA-Controller needs some pre-instantiated stuff you can't just put into a class, that you instantiate later on. If that's the reason I understand and can live with that. )
The problem only occurs when data is sent out and sometimes the wrong color shifts one LED further.
I tracked the sent out data from the library with serial and the data is exactly what it should be, so I don't think it has anything to do with the software (I'm using 24 bit html-code).
I also placed a big 1000µF-Capacitor right after the power source, but having it or not doesn't change anything.
I will take a picoScope today from work at home with me to see some signal-stuff and pictures will follow later on.
As I always read everywhere it's a bad ground connection. I checked all the connections but they are fine so far. I also changed from 800 kHz down to 400 kHz, but this doesn't help.
I also shortened the wires but it doesn't matter if they are like 10 cm or 3 cm.
Since pictures are delivered later on, maybe someone has an idea right now what could cause that problem? Or is it really that ground connection somewhere and I'm just too dumb?