I'm using a PIC to control the TLCs, but still in principle it the same as the arduino. The only problem is the LEDs flicker. Does anybody know why this happens? I am programming at 48MHz, but still it's flickering. I am not using any interrupts. Should I use interrupts?
i know this is an old thread now... but i'm having a helluva time finding these chips online. if anyone has any leads or extras their willing to sell that would be great.
has anyone used the tlc5940 with i2c at the same time. im trying to and getting corrupt data when receiving. Serial works just fine at speeds of 115200 but i2c does not work.
I'm having the same problem.
I'm running I2C between two arduinos, and the Master_Send and Slave_receive examples work perfectly. That is, until I add the slave_receive code to my Arduino running the TLC...
I commented out everything related to the TLC, and it worked. Adding things back in one at a time (headers, global variables, etc.) worked until I hit Tlc.init(); At which point I2C died.
Hi everyone i am interested in doing a 16x16 display with the TLC but i am not quite sure about what baud rate should I use.
I'm planing on sending the data from my computer and it seems i'll have to send the data directly to the TLC, so can anyone give me more info about the baud rate I should use. What is the maximum baudrate that the TLC can work, how many stop bits, should i include a 9th parity bit?
Thanks a lot in advance for your help
OK i get it now, but still my initial plan is wailing me. I was planing to update the picture from the computer and change it during execution, but it seems almost impossible to be done in time.
I will have to have my picture stored in the microprocessor before I start displaying it. :-[
Is that what all you guys are doing or are you actually able to change the image trough some kind of communication with a computer?
well then ill show you something its possible.
im sending RGB as bytes to the atmega168 over serial then sending it to a master Atmega168 via i2c. ill post more info later
ill upload a video of my full project later today or this week
Do you have any close-ups of the individual cells? It looks like you have the LEDs mounted to the sides of the boxes, rather than the bottom.
Something like this has been on tap for me, for a while now...I just need the time and resources to do it.
Excellent craftsmanship, as well as programming!
EDIT: Hang on...how many TLCs are you using? you said 7 TLCs, which is 112 LEDs max. But there are 112 cells in your table, which should be 336 LEDs, and 21 TLCs. Are you multi/charlieplexing them?
And if they could be used would it also be possible to mix them? I.e. have 2 TLC5940's + 2 TLC5941's + 2 TLC59401's working together.
Personally I don't see a whole lot of differences between them comparing their datasheets. Pin configuration seems identical as is the way they are controlled.
The only differences I could find:
TLC5940: EEPROM and 60mA (Vcc [ch8804] 3.6V) / 120mA (Vcc > 3.6V) drive (per channel)
TLC5941: NO EEPROM and 80mA drive (per channel)
TLC59401: NO EEPROM and 80mA (Vcc [ch8804] 3.6V) / 120mA (Vcc > 3.6V)
int i = 2000;
int inverse = abs(i-4096); //subtracting 4096 makes it inverse, but negative, abs converts negative to positive, making the conversion complete
Thanks on the code for inverse.
I was actually thinking about adding a !buffer chip to invert the outputs to drive the mosfets off when the signal is off / lost.
As for the pwm output i was wondering that myself I havnt seen it in there I think it had to be fixed when it changed to spi mode instead of bitbang.