I’m working hard on fixing some issues with the firmware which gives problems with the new PCBs.
To start with I just couldn’t get the LED’s to light at all. Eventually I made some progress using the most excellent TLC5940 library, though I couldn’t integrate it with my multiplexing code.
Some of the problems have been down to my lack of understanding of how the processor’s various registers work, in particular how timers are configured. Others have been plain stupid but no less frustrating, such as incompatibility between various versions of the arduino development kit (0011 works, 0013 flakes out over interrupts and on 0015 my code won’t compile!).
Oh well, it’s a learning process, and I now have a completely rewritten and much improved LED controller. Currently everything actually works, more or less, and with same the code running on both the previous (v4) and latest (v6) PCBs. But on v6 there is flicker… Noticable flicker.
I’m not sure if this is due to me changing the LED multiplexing pins. On v4 all five multiplexing pins were on the same port, in v6 I swapped some out for pins on a different port.
Whatever the reason I’m still working on fixing it. Hopefully v6 will turn out to be fully, flicker-free functional. Meanwhile here’s a pic of how nice it will look.