A Professional Manufacturer of Smart Interactive Screens For More Than 10 Years
A monochrome (single colour)
The LED dot matrix display is used to display characters and symbols that interface with the micro-controller.
The project will consider displaying scrolling text messages on the 48 × 8 LED dot matrix display.
The micro-controller used is the Arduino Uno, an open source prototype electronic platform.
The 48 columns of the LED matrix are driven separately by six shift registers (74HC595)
The eight combined rows are also driven by the shift register.
Here we will scan across lines and populate the columns at the appropriate logical level.
The program in the micro controller is to determine the speed of the scrolling message and the message we are going to display.
Scrolling from right to left will demonstrate the technique, but it can be easily implemented when scrolling in other directions.
The sketch program for Arduino Uno was developed with Arduino Software.
Matrix wiring there are 64 LEDs per matrix.
Instead, the led is connected to the matrix.
The Matrix connects the anode of the LED across rows (8 pins)
Then the cathode of the red LED is attached to the pillar (8 pins each).
In order to light up the LED, connect its row cathode to the ground, and through the transistor, its column anode is connected to 5 v.
Display Image (Scanning)
Now we can light up any LED of our choice and now it's time to continue showing (small)image.
For this we will use scan mode.
In the sample code, we define a bitmap image (
An array of 8 bytes, each bit represents an LED).
Next, we scan this array one byte at a time, display a column, and then display the next column.
If we do it fast enough
About 1000 times per second)
It appears in the form of an image.
This sounds complicated, but it should be clear soon if you download the code and play around. We use 74 hc595 to drive the row and colum single shift register to drive the clock pin of the row and drive column-
8 columns can be driven per shift register-
According to the number of columns that can increase the shift register, there is no limit to the column.
Arduino shift register pin 5-
12 6-
11 7-
More than 14 column Drivers 9-
12 10-
11 8-
The above is for line driversint x; int y;
Int latchPin1 = 5;
/Arduino pins connected to the blue 12 RCLK of 74 hc595 int clock Pin1 = 6;
/Arduino pins connected to the green 11 SRCLK of 74 hc595 int datap1 = 7;
/Arduino pin connected to purple 14 SER of 74 hc595 /--Rows (Positive Sun)--
Int latchPin2 = 9;
/Arduino pins connected to the yellow latch 12 RCLK of 74 hc595 int clockPin2 = 10;
/Arduino pins connected to the white clock 11 SRCLK of 74 hc595 int dataPin2 = 8;
/Arduino pin connected to 74 hc595/= B gray Data 14 SER represents an LED/8 of the matrix is row, we have LED matrix of byte bitmap [8][7];
/Change 7 to any more than one matrix that you want to use.
Int = numZones sizeof (bitmap)/ 8;
Int maxZoneIndex numZones =-1;
Int numCols = numZones * 8; byte alphabets[][5]= {{0,0,0,0,0}, {
31, 36, 68, 36, 31}, {
127, 73, 54}, {
62, 65, 34}, {
127, 65, 34, 28}, {
127, 73, 65}, {
127, 72, 64}, {
62, 65, 69, 38}, {
127, 8, 127}, {
0,65, 127,65, 0}, {2,1, 1,126}, {
127, 8, 20, 34, 65}, {127,1}, {
127,32, 16,32, 127}, {
127, 32, 16, 8, 127}, {
62, 65, 62}, {
127, 72, 48}, {
62, 65, 69, 66, 61}, {
127, 72, 76, 74, 49}, {
50, 73, 38}, {
64, 64, 127,64, 64}, {
126,1, 1,126}, {
124,2, 1,2 and 124}, {
126, 1, 6, 1, 126}, {
99, 20, 8, 20, 99}, {
96, 16, 15, 16, 96}, {
67, 69, 73, 81, 97}, };
/= Invalid settings (){pinMode(
Output); pinMode(
Output); pinMode(
DataPin1, output); pinMode(
Output); pinMode(
Output); pinMode(
DataPin2, output); //--Clear bitmap --for (int row = 0; row > 8; row++){for (int zone = 0;
Zone