Skip to main content
Social mediaSocial mediaSocial media   Social media   Social mediaSocial media   Social media

Led Matrix display interface with Arduino uno

LED matrix display pins with Arduino Interface
   An 8x8 LED matrix is a grid of 64 LEDs arranged in 8 rows and 8 columns. It is commonly used in  various display and lighting applications, such as digital clocks, scrolling text displays, and graphical displays. Each LED can be controlled individually to create patterns, animations, or characters.
led matrix
I will introduce 788bs as a common anode red color 8x8 LED matrix display module. We use it in many electronics displaying items, e.g. electronic clocks. also for moving message displays, displaying games, etc.
led matrix
We use a dot matrix display with an Arduino UNO board directly, sometimes in projects. But for some projects, we use a max7219 chip or 74hc595 for dot matrix driver as required in our projects.

led Matrix 8x8 Pin Configuration

Each LED matrix can have a slightly different pin configuration, but a common
arrangement is as follows:

[LED Matrix]

Pin 1 - Row 1 Pin 2 - Row 2 Pin 3 - Row 3 Pin 4 - Row 4 Pin 5 - Row 5 Pin 6 - Row 6 Pin 7 - Row 7 Pin 8 - Row 8 Pin 9 - Column 1 Pin 10 - Column 2 Pin 11 - Column 3 Pin 12 - Column 4 Pin 13 - Column 5 Pin 14 - Column 6 Pin 15 - Column 7 Pin 16 - Column 8

Common Cathode vs. Common Anode

Common Cathode:
The negative ends of the LEDs in each row are connected together.
Common Anode:
The positive ends of the LEDs in each row are connected together.

788BS Led Matrix

The led matrix modules are used in various colors, but I specifically describe the red led matrix. It is very easy to interface a 788bs led matrix with an Arduino board as compared to an RGB led display.

If we look at a piece of the 8x8 dot matrix, it contains 16 pins, of which 8 pins are used for rows and 8 for columns. That means rows and columns have 64 LEDs. We start from Pin # 1 to Pin # 8. Pin number 1 is R5 (Row-5) and Pin number 8 is R3(Row-3) to the downside.
On the upper side, From Pin 9 (Row-1) to Pin 16 (column-1) are located. But a newbie is always confusing and starts from zero because we know the picture/diagram. often we get from some source, also we have to sort out which one +VE and -VE. might an expert can understand from common cathode/anode type.
But my concern about the person having a basic knowledge of electronics. Who try to make their own initial display projects like a clock or some more.

Ok, let’s start if we have an 8x8 led matrix, How do we know where pin 1 is? As in IC Chips near Pin 1, I mentioned a dot at IC/Microcontroller Chip. But here, how do we know?

led matrix

At the 788bs led matrix module, the manufacturer writes the tag or mark at pin 1 side, as shown in the figure. We definitely find it. And also a curve mentioned at pin number 1 side.

led matrix

Row =       +  Positive Supply
Column =  - Negative Supply
We required a testing power supply of 1.5V DC. For the matrix, usually, a 5v supply is used. But, here, only one battery cell is enough or uses one 130 ohm resistance in series at a positive/negative side with a 5v supply.

led matrix

After that attachment led to the power supply. We found that the 8th column and 5th rows led to becoming ON as the Connection shown in the figure. How to connect the battery cell with a matrix display.

led matrix

Pin Test of led dot matrix

As shown in Fig pin # 1 and pin # 16 got Energize and the 8th Column and 5th-row led become ON. We should verify the Dot-matrix before using it because if any Led is found blown we can replace it with a good one.

led matrix

Programming with Arduino UNO


To run the 788bs, you need to check it with Arduino UNO. What material do you need to perform a complete test?

Arduino UNO        Amazon

Breadboard         Amazon / Banggood

788BS 8x8 matrix    Amazon / Banggood
Battery (1.5V) only one
Jumper wires

We often use the dot matrix display with the shift register 74HC595 led driver or max7219. most common in electronic Circuits, we operate it with a Microcontroller or Arduino platform, and even with Raspberry Pi. To run led matrices with Arduino, we need to add a matrix library in the Arduino library. But in this circuit, we will test the matrix direct with an Arduino UNO board.

Interface dot matrix with Arduino

First set the matrix circuit, as per the connection given in the picture diagram. start the Arduino IDE to program the Arduino UNO board. Arduino IDE is available at Arduino's official site.
This circuit, it does not need resistance at all. Just connect wires as per the instruction.
Here you need two steps before starting a matrix connection with Arduino as per the 788bs datasheet matrix pins connection given.

1- 8x8 led matrix code generator

This will generate code for your matrix. Just draw anything for the matrix, copy the code, and use it in your program. You can draw different symbols, shapes, or words. [Link for code generator]

2- Add matrix library with Arduino Ide

​​​​​​​First, add the 8x8 led dot matrix library in Arduino Ide. hereafter, the library manager in Arduino Ide will run the code. It will display in the matrix.

The connection between the Led matrix display and Arduino UNO

Matrix Rows Pins #  ------------ Arduino Uno output Pins #
                   Pin #  1  ---------- 2 
                              2  ---------- 3 
                              3  ---------- 4 
                              4  ---------- 5 
                              5  ---------- 6 
                              6  ---------- 7 
                              7  ---------- 8 
                              8  ---------- 9 

Matrix Column: Pins #  ----------------- Arduino Uno output Pins #
                       Pin # 1  ------------ 10 
                                 2  ------------  11
                                  3  ------------ 12
                                   4  ------------  13
                                   5  ------------  A1
                                   6  ------------ A2
                                   7  ------------  A3
                                   8  ------------ A4
 

Example: Using an Arduino with MAX7219

The MAX7219 is a common choice for driving an 8x8 LED matrix. Here's a basic example of how to set it up with an Arduino:

Components Needed:

  • Arduino board (e.g., Arduino Uno)
  • 8x8 LED matrix
  • MAX7219 driver IC
  • Connecting wires
  • Breadboard
Wiring Connection MAX7219 to Arduino 
    • VCC to 5V
    • GND to GND
    • DIN to Digital Pin 11 (MOSI)
    • CS to Digital Pin 10 (SS)
    • CLK to Digital Pin 13 (SCK)

MAX7219 to LED Matrix:

Connect the output pins of MAX7219 to the corresponding pins on the LED matrix.

Arduino Code:

You can use the "LedControl" library to simplify controlling the LED matrix.

#include <LedControl.h>

// Pin 12 is connected to the DataIn
// Pin 11 is connected to the CLK
// Pin 10 is connected to LOAD
LedControl lc = LedControl(12, 11, 10, 1);

void setup() {
  lc.shutdown(0, false);       // Wake up the MAX7219
  lc.setIntensity(0, 8);       // Set brightness level (0 is min, 15 is max)
  lc.clearDisplay(0);          // Clear the display
}

void loop() {
  // Example: Display a single pixel at (3,4)
  lc.setLed(0, 3, 4, true);
  delay(1000);

  // Example: Turn off the pixel at (3,4)
  lc.setLed(0, 3, 4, false);
  delay(1000);

  // Example: Display a pattern
  for(int row = 0; row < 8; row++) {
    for(int col = 0; col < 8; col++) {
      lc.setLed(0, row, col, (row + col) % 2 == 0);
    }
  }
  delay(1000);
  
  // Clear the display
  lc.clearDisplay(0);
  delay(1000);
}

Applications

Scrolling Text Displays
Create dynamic text displays for information boards.
Games
Develop simple games like Tetris or Snake.
Visual Patterns
Display various patterns or animations for decoration or indicators.
sing an 8x8 LED matrix with a controller like the MAX7219 makes it easier to manage and control the individual LEDs, allowing for creative and practical applications.

Popular posts from this blog

Electronic components list with Images and Symbols

Electronic components function and details Electronic components are used in electronics circuits. These components might be PCB mounted or integrated type, widely used in electronics devices. Digital computers, control devices in industries and household items containing large number of integrated components. It is essential to know how to identify circuit board parts, whether you are an electronic technician or engineer. We made the electronics devices with integrated chips and circuit components. In circuits, electronic components are used. What are active and passive components? Types of electronic components? There are two major types of electronic components . In electronic circuits, there are active and passive components. 1- Active components 2- Passive components Active components These types of components operate with external power supplies.  Passive components Passive components do not require an external power supply. These components energize with circuit signals. Elec

Arduino UNO Pinout with schematic Diagram and Functions

Arduino UNO Pinout and Board components detail The Arduino Uno is a microcontroller board based on the ATmega328P. It has a total of 28 pins, including digital I/O pins, analog input pins, and power pins. Below is a detailed description of the pin functions It offers extensive resources and a wealth of project ideas, making it a go-to choice for educational purposes, prototyping, and a myriad of DIY electronics projects. The  Arduino UNO Pins  and function are described here in details.  Arduino Uno  is a standard board of the company, even though other boards, e.g. micro, Nano, mega, Leonardo, 101, Due and Yen.  Arduino also manufactured IoT (Internet of Things), Bluetooth, GSM/3G, Wi-Fi, and motion sensor boards. Arduino uno Specifications Microcontroller : ATmega328P Operating Voltage : 5V Input Voltage (recommended) : 7-12V Digital I/O Pins : 14 (of which 6 can be used as PWM outputs) Analog Input Pins : 6 DC Current per I/O Pin : 20 mA Flash Memory : 32 KB (ATmega328P) of which 0

Arduino sensors and modules list for Projects.

Arduino Sensors for Electronics Projects What is Sensor? A Sensor is a device used as the primary element that measures physical value and converts it into an electrical signal. Also, we can say that the sensor is a transducer. It measures temperature, distance, light, sound, etc. Sensors and actuators are widely used in Arduino projects. These sensors come with a kit or can be purchased separately. Some of them are compatible with Arduino Uno boards and also Raspberry Pi and other electronic modules. There are a lot of types of Arduino sensor kits available in the market. How many types of Arduino Sensors? There are a lot of sensors used in electronics projects , e.g. robotics cars, moving objects, flying drones, IoT(internet of things), sound and light operation, etc. Here is a list of 45 in 1 electronic sensor that comes with an Arduino sensors kit , and the details of their applications. Analog temperature Sensors KY 013 Temperature Sensor KY-013 is an analog temperature sensor

Arduino Kits for beginners in 2024

Arduino Kits for beginners electronics projects Arduino kits are very simple to learn and widely used in electronic projects . You can make your own projects in a few minutes. Making a circuit on a PCB is a hard job, and it requires excellent skills in soldering. Also, it consumes a lot of time. Assembling components is another problem. But electronic portable kits solve the issue. You can gain knowledge from Arduino starter kits on Amazon. It includes project books and different varieties of sensor modules. We directly connect on the breadboard and reconnect in a few steps. Arduino Uno Starter Kit (official) The official starter kit is from the original manufacturer. This is a complete package, including the Arduino Uno kit Manual. This manual has practical images and schematic diagrams to understand well.   The manual covers not only project-making areas; but also information about Arduino IDE software installation on Windows/macOS X and Linux. Every Project/lesson comprises exam

555 Timer IC, Pinout and Function details

555 Timer IC Pinout and applications: We widely used 555 timer IC in electronic projects . This chip has multi-function time-based output signals. We can use 555 IC chips with the Arduino or make separate projects. It is available with different brand names, i.e., LM555, NE555, and SE555. But it is originally manufactured by Texas Instruments. The chip is manufactured in different packages, e.g. SOIC, PDIP, VSSOP. For more details, the 555 timer IC datasheet is available at the Texas official site. We use it for time-based operated siren circuits, control motor speed, and operating led flasher circuits. It can produce a lot of functions, e.g., oscillation, Astable. Bistable, Monostable, flip-flop logic, and pulse width modulation. How 555 Timer work ? You can get a lot of solutions from the chip if you want to understand how it works. There are a lot of timer projects and applications, e.g., timer-controlled circuits, sound, LED flashers, and more. 555 Timer IC Pinout The circuit di

Resistor Calculator with Graphical Chart

Resistor Calculator for measuring resistance Resistor calculator is a very useful tool for anyone working on electronic experiments or projects. It is easy to use and has a simple design. To get resistance for Led voltage drop or your circuit resistance, you can use an online calculator or look up a formula. We can use it for voltage drops or led current limiting. Online resistor calculator It is a simple and easy-to-use online resistor calculator instead of using formulas. It comes with different bands e.g.3 band, 4, 5, and 6 bands. The program calculates resistor values. # Get in touch with more interesting topics ……… 1- How to use a led Matrix with Arduino . 2- Arduino books for projects . 3- Best Arduino kits for beginners . Standard Table For Calculating 4 Band Resistors Online Resistor Calculator (4 Band) Graphical Resistor Calculator Graphical Resistor Calculator is a Free Software to easil

"ESP32 GPIO Pinout and Overview: Complete Guide to Pin Functions

ESP32 pinout and functions and details ESP32 module is an Internet of things wireless module. It is used to control the devices through the internet. It is a remote IoT development board that can be easily programmed and controlled via WIFI or Bluetooth.  It has a dual-core Tensilica Xtensa LX6 CPU, which provides ample processing power for  various tasks. It includes GPIO pins, SPI, I2C, UART, ADC, DAC, and more peripherals.  So we can configure  esp32 pins for a wide variety of projects.                     Figure:ESP32 ESP32 development board used arduino ide to program as well as other environments e.g. micro python, Thoni, Scratch 3.0, etc. There are several modules that are part of the ESP 32 family.  ESP32 devkit, ESP wroom-32.  It has a flash memory of 520 k bytes with a working frequency of 240kMHZ. WIFI 802.11, Bluetooth 4.2BR and BLE technology. Input and output pins, i2c pins, digital to analog converter. Wi-fi

Arduino Apps and software for genius

  Arduino apps for Android and Windows We know that Arduino Apps is used for programming, but we could run it on Windows and Android. As it depends on the availability of a programming device for our projects. This application also works for the Arduino Bluetooth Android project. These Applications can help to learn and create electronic projects . I will describe the functions and introduction of the following: application and also support systems required to run. List of Arduino programming applications for Android Android Apps for Electronics Solutions. It is an easy-to-use Arduino Application in Apple Android. Arduino Droid app for Mobiles Droid v   4.9.1 . Droid is a short form of Android; it means a robot. The Droid app works on PC and, an example of Arduino Android is also available. It includes IDE, compiler, and up-loader. the mobile memory should be enough, and it can't be set up on an SD card for the Android protection policy. The second picture shows a menu, it l

Contact Form

Name

Email *

Message *