# Lesson 18 Dot-matrix Display

##### Share for us

Introduction

With low-voltage scanning, dot-matrix LED displays have advantages such as power saving, long service life, low cost, high brightness, wide angle of view, long visual range, waterproof, and numerous specifications. Dot-matrix LED displays can meet the needs of different applications and thus have a broad development prospect. This time, we will conduct an LED dot-matrix experiment to experience its charm firsthand.

Components

– 1 * SunFounder Uno board

– 1 * 8*8 dot-matrix

– 8 * Resistor (220Ω)

– Jumper wires

– 2 * 74HC595

– 1 * USB cable

Principle

The external view of a dot-matrix is shown as follow:

For pin definition:

Define row and column numbering at first (only for a dot-matrix whose model number ends with BS)

Pin numbering corresponding to the above rows and columns:

The display principle of the 8*8 dot-matrix:

The 8*8 dot-matrix is made up of sixty-four LEDs and each LED is placed at the cross point of a row and a column. When the electrical level of a certain row is High and the electrical level of a certain column is Low, then the corresponding LED will light up; if you want to light the LED on the first dot, you should set ROW 1 to high level and COL 1 to low level, then the LED on the first dot will light up; if you want to light the LEDs on the first row, you should set ROW 1 to high level and COL (1, 2, 3, 4, 5, 6, 7, 8) to low level, then all the LEDs on the first row will light up; if you want to light the LEDs on the first column, you should set COL 1 to low level and ROW (1, 2, 3, 4, 5, 6, 7, 8) to high level, then all the LEDs on the first column will light up.

The principle of 74HC595 has been previously illustrated. One chip is used to control the rows of the dot-matrix while the other is to control the columns.

Experimental Procedures

Step 1: Build the circuit

Connect 74HC595 (u2), Dot-Matrix and SunFounder Uno board

Connect the other 74HC595 (u3), Dot-Matrix and SunFounder Uno board

The schematic diagram

Step 2: Program (please go to our official website www.sunfounder.com to download related code by clicking LEARN -> Get Tutorials)

Step 3: Compile the code

Step 4:  Upload the sketch to the SunFounder Uno board

Here you should see the dot-matrix display 0 to F circularly.

Code

Video