LED Matrix Display using Arduino

Today, I am going to teach you how to make an LED matrix display using Arduino. Here we had designed a 7×5 LED matrix display but can be extended as per desire. If you are using Arduino uno board the number of rows can be extended up to 14 and the number of columns can be extended up to 6. This is because there are only 14 digital pins (D0 to D13) and 6 analog pins (A0 to A5). Thus, you can make a 14×6 Led matrix display in the same manner posted here.

Multiplexing Techniques | LED Matrix Display using Arduino

Before going to the circuit description part, we would like to describe multiplexing techniques used in a matrix display. Let, us suppose a 5×5 LED matrix display and you wish to glow a single LED say 7th LED then the entire row consisting of LED 7 is activated (row 3rd) as a result one lead of all LEDs of that row gets voltage. Now to glow LED 7, the corresponding column (4th column) is activated. As a result, only LED 7 starts to glow.

Circuit Description of LED Matrix Display using Arduino:

The circuit diagram of the 7×5 LED matrix display using Arduino is shown in figure 1. The entire circuit of LED matrix is built around Arduino uno board, few NPN bipolar junction transistors (7 nos. in 7×5 display), a few numbers of resistors (equal to the number of transistor i.e. 7), and LEDs (7×5 = 35 nos.). The control unit of the 7×5 LED matrix display is Arduino uno board which not only specifies the address of LEDs but also controls their timing according to source code.

7x5 arduino matrix display

The Arduino uno board cannot use these all LEDs directly. To switch them all LEDs, we had used a switching circuit built around 7 different transistors. The output is taken from digital pin D2 through D8 and is given to the base of transistors T1 through T7. Seven resistors R1 through R7 are used as coupling between these transistors and Arduino uno digital pins. These resistors are used here to limit the current and protect transistors from burning.

The collector of the transistor is connected to a +5V supply from the Arduino board. There are altogether 7 rows and 5 columns. The anode of each column is shorted and connected to the emitter of the transistor as shown in the circuit diagram. Where the cathode of each row is shorted and connected to an analog pin for ground potential.

The flicker effect on LEDs is due to rapid switching ON and OFF transistors. We had used this technique to avoid the overloading effect of the Arduino board at the time of activating all columns.

Working of the circuit | ED Matrix Display using Arduino

To glow a LED, its corresponding digital pin (column) is set to high and its corresponding analog pin (row) is set to low. When the digital pin becomes high corresponding transistor is turned on as a result collector voltage (+5) is available at the anode of LEDs and the analog pin behaves as ground, as a result, a closed path is formed and the current starts to glow.

Method of Display character:

Here we are going to show you how to display characters in a 7×5 multiplexing display. For demo purpose, we are displaying three-character BEP (short form of Best Engineering Projects)

For displaying B character, you have to glow following LEDs

charater b in 7x5 matrix display

For displaying E character, you have to glow following LEDs

charater e in 7x5 matrix display

For displaying P character, you have to glow following LEDs

charater p in 7x5 matrix display

Software Code: The code of LED Matrix Display using Arduino is written in Arduino programming language and compiled in Arduino. The complete code is given below.

One Thought to “LED Matrix Display using Arduino”

  1. Mario

    Could you please re-upload de file?

Leave a Comment