I have tried various code for an 8x64 or more scroller but often only works for 2 'sqaures' or 4 squares not 8 or sixteen - i have edited the field 'numdevices' which works for 1 or 2 or 4 devices but makes no difference for 8 - 16
I suspect there is something in the code I don't understand
here is the best code i have been using not my own!
Hardware is a nano (or uno) and 4-16 1088as and max 7219's
I can get 4 working great but any more doesn't work
They initialise in sequence.. i can get modules on the daisy chained module to work (i have 4 modules with 4x8x8 on each) but at the expense on modules on the other unit so i don't think its power related
I have tried it with a lm7805 regulator and made no difference rather than running it all off the usb port
Really appreciate some help on this! Thanks
I've had to include code as attachment as too long
Sorry. You did the right thing having that large code. My mistake.
Can You post the wiring, data or links to the power supply?
I've used plenty of 7805 but I suspect Your project might need "some current", maybe too much.
Hi
It's running on a 10 amp variable bench psu..
I put the regulators in just in case! along with reverse polarity protect diodes as I tend to cock thinks up sometimes haha!
Bench Psu running at 7v with 0.5a current limit
470uf cap across input to regulator
0.1uf cap across output of regulator
small heatsink on regulator
output voltage from regulator is 4.85v on scope and dmm with almost no measurable ripple (Switch mode supply!)
current varies but with text on 4 modules is no more than 200ma
Hi thanks
I can vary the voltage in.. the reg is to protect the circuit if I accidentally change the wrong digit of the bench PSU to 30v LOL
I have measured regulator with a 5 ohm load and it provides 800ma with small sink at 7v in - gets hot but not too much
I don't think this is power related I think its code related
My guess on a power issue was based on the fact that things work using a small amount of loads.
Increasing the numer of power consuming devices very, very often leads to a power issue.
Can You check all voltages using the maximum setup?
I'll do the work to download Your code in the mean time.
Looking at Your code I find a call to a function "pgm_read_byte_near" but I don't find the function itself. That puzzles me.
Using strings is not good due to the poor garbage collection within the IDE/Arduino world. That's a suspect.
The function is used to return both byte, int and unsigned long. That's extraordinary to me.
Some help, please.
As I suspected, the bulk of the code is a huge character storage matrix. That should really be in a separate .h file in the same sketch folder, and #include 'd in the main .ino.
There's nothing really wrong with the LedControl library that it uses. I've used it before.