I’ve been trying to get a series of TLC5940 chips working on the Photon.
I used this github as a start point to try and get this working on the photon.
I’ve had some level of success, and I think I’ve got it set up correctly for the STM32F2 chip on the photon. I’m by no means an embedded programmer, and am quite new to this form of coding.
So right now, I have 3 TLC5940’s connected in series using the SOUT to SIN linkage. If I set all bits to low, and update, it will blank it perfectly. If I set all bits high, it will get most of the way through the LED’s, but a random number of the last LED’s will either not light up, or will be at a different intensities (i.e. the SIN data isn’t going through correctly).
I was thinking that it might be due to the xlat signal being passed at the wrong time, but i’m struggling to think how I can get an interrupt to go before the blank pulse.
Has any one else got any ideas here? I’ve been contemplating building my own SPI library so I know exactly what is being set and when, but that feels like the completely wrong path to go down. It all looks like it’s a problem clocking in the data, as it looks like some bits are off. I’ve got a scope coming soon which I hope will give me a bit more clarity on the timing, and what is sent when.