Go Down

Topic: 12 row by 4 column LED panel (Read 286 times) previous topic - next topic

Lesthegringo

Gents, I am looking for a way to control a warning light panel that essentially is 48 LED's arranged in 12 rows and four columns behind some plastic translucent covers with test on them.

The DSC Bios script will be used with it, and the output that DCS Bios reads is as follows for an Arduino to light a particular LED

DcsBios::LED clA1(0x10d4, 0x0001, PIN);

So, I believe that a MAX7219 chip can be used do control this, rather than having to assign 48 Arduino pins to the LED's individually.

I have seen that the MAX7219 can do 8 x 8 matrices, however I don't see any schematics for the 12 x 4. Also, I would like to understand how you can assign the value extracted by DCS Bios to a particular LED in place of the 'PIN'

Any help in understanding the basics is gratefully received!

Cheers

Les

Grumpy_Mike

Quote
The DSC Bios script will be used with it, and the output that DCS Bios reads is as follows for an Arduino to light a particular LED
This is an Arduino forum, I for one have no idea what DSC script is.

You need to know how your LEDs are wired before you can work out how you can retire them.

You might be able to use two MAX7219 chips but not one.

Paul__B

Given that you have the ability to actually wire them as you want, you just wire them as two matrix groups of six rows and four columns, then common the six rows and put the two groups of four rows as eight rows.

You now have a six by eight matrix to drive with the MAX7219.

marco_c

As Paul_B says, one MAX7219 can drive 64 individual LEDs. These are generally grouped as 8 rows x 8 columns but you can group the display any way you like. Internally they will still be 8 'LED segments' x 8 'digits' (think 8 x 7-segment display+decimal point) so you will need to (re)map things out in your software.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

Go Up