Multiple LED Matrices

Hello, currently trying to learn the basics of arduino for a long term project. I currently have two sets of these Matrice's

(https://www.amazon.co.uk/dp/B0B2NSYWZD?ref=ppx_yo2ov_dt_b_product_details&th=1)

which is 4 individual 8x8 panels. I've figured out how to do scrolling text, however my use for these will be as solid light panels, so one big panel of red and one panel of green, I'm struggling however to figure out and find a way of controlling these matrices as so, I can control one individually as a solid colour but messily using this

(How to Setup an LED Matrix on the Arduino - Circuit Basics)

Any help would be appreciate to achieve my goal.

Where all of the dots would be on, but varying the brightness, or what?

You can connect them in parallel and use separate CS pins:

const int pinCSRed = 10; 
const int pinCSGreen = 9; 
//Din connects to pin 11
//CLK connects to pin 13

int numberOfHorizontalDisplays = 4;
int numberOfVerticalDisplays = 1;

Max72xxPanel matrixRed = Max72xxPanel(pinCSRed, numberOfHorizontalDisplays, numberOfVerticalDisplays);
Max72xxPanel matrixGreen = Max72xxPanel(pinCSGreen, numberOfHorizontalDisplays, numberOfVerticalDisplays);

Or you could connect the Green input to the output of the Red matrix and treat them as one long display (8 x 64):

const int pinCS = 10; 
//Din connects to pin 11
//CLK connects to pin 13

int numberOfHorizontalDisplays = 8;
int numberOfVerticalDisplays = 1;

Max72xxPanel matrix = Max72xxPanel(pinCS, numberOfHorizontalDisplays, numberOfVerticalDisplays);

Or connect the Green input to the output of the Red matrix and treat them as two rows (16 x 32):

const int pinCS = 10; 
//Din connects to pin 11
//CLK connects to pin 13

int numberOfHorizontalDisplays = 4;
int numberOfVerticalDisplays = 2;

Max72xxPanel matrix = Max72xxPanel(pinCS, numberOfHorizontalDisplays, numberOfVerticalDisplays);
1 Like

Apologies for not replying in so long, I took a break from the project and only just got back into it, that's exactly the solution I was after, and it works a treat, I get a couple of artifacts here and there but I think that's down to a power/connection problem. Thanks very much!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.