Combining multiple LED matrix modules
In a previous post, you saw how easy it is to connect one of these to an Arduino and draw to the Matrix from a buffer.
Now in this post we will take things further, and use three LED matrices to form a long display of 24x8 which is great for displaying scrolling text.
Now each adapter has six pins. The first two are VCC (5V) and GND. Next come the CLK, DATA, LATCH and ENABLE pins. To connect three of these together, we can connect all the pins together into one pin on the Arduino except the DATA pin.
Next, the common VCC line is connected to 5V on the Arduino, and the ENABLE and GND lines to GND pins on the Arduino.
The ENABLE line is active low, hence to enable the displays, we need to give a low of 0V on this line.
The CLK line is connected on pin 12, latch on pin 11 and the three data pins from the three displays to pin 7, 6 and 5.
Thats it, the connections are done. It’s that easy. Now to proceed to the Arduino code.
First we will start with just displaying the buffer on the 24x8 screen. The below code should work easily, if all the connections are correct.
Basically we initialise a 24 byte matrix with each byte corresponding to a column on the display. Then we multiplex through the columns to display the entire buffer on the displays.
If you got it working, then congrats! We can quickly move to displaying text on the display now!
Have a look at this code, and try running it to get scrolling text on the displays! Code for Scrolling Text.
This is how the scrolling text looks like!
Parts used in this tutorial:
Originally published at paramaggarwal.com.