8-Digit LED Display Module
The 8-digit LED display module uses the MAX7219 as its controller. It is an integrated serial input/output common cathode display driver that connects a microprocessor with an 8-digit 7-segment LED display. It can also connect to bar graph displays or 64 individual LEDs. It includes an on-chip BCD encoder, a multiplexer scanning circuit, segment drivers, and an 8x8 static RAM to store each piece of data. There is only one external register to set the segment current for each LED. It can connect to all common microprocessors. Each data point can be addressed during updates without needing to rewrite all displays. The MAX7219 also allows users to choose whether or not to encode each data point.
The entire device features a low-power shutdown mode with 150μA, analog and digital brightness control, and a scan limit register that allows users to display 1 to 8 digits, as well as a test mode that lights up all LEDs.
Only 3 I/O pins are needed to drive the 8-digit LED display! The display operates without flickering! It supports cascading!
Module Source
Purchase Link: https://item.taobao.com/item.htm?spm=a1z10.3-c-s.w4002-24706531953.10.43be6a4bCZwggY&id=575339214274
Baidu Netdisk Download Link: https://pan.baidu.com/s/15TcV9HevtfVBWcm7pgRNTw
Password:e1q5
Specifications
Operating Voltage: 4-5.5V
Operating Current:8-330MA
Scanning rate:500-1300Hz
Communication protocol:single bus
Pin Count:5 Pin (2.54mm pitch header)
Hardware Connection
For the MAX7219 driven 8-digit LED display module, you typically need to connect the following wires to the development board:
- VCC: Connect to the development board's 5V.
- GND: Connect to the development board's GND.
- DIN: Data input, connect to a digital pin on the development board (for example, connect DIN to digital pin 11).
- CS: Chip select, also known as load (LOAD) or slave select (SS), connect to a digital pin on the development board (for example, connect CS to digital pin 10).
- CLK: Clock, connect to a digital pin on the development board (for example, connect CLK to digital pin 13).
Usage Method
Installing Library Files (skip this step if already installed)
- Open the Arduino IDE.
- Go to “Tools” > “Manage Libraries…”.
- Install the LedControl library via "Manage Libraries" (search for LedControl in Tools > Library > Manage Libraries… and install it).
Enter the code:
/******************************************************************************
* Test Hardware: LCSC ColorEasyDuino Development Board
* Version Number: V1.0
* Modified By: www.lckfb.com
* Modification Date: March 28, 2024
* Function Overview:
*****************************************************************************
* Open-source development board hardware and software information and related projects hardware and software information on official website
* Development board official website: www.lckfb.com
* Technical support resident forum, any technical problems are welcome at any time to exchange learning
* LCSC Forum: club.szlcsc.com
* Follow our Bilibili account: [立创开发板], stay toned to our latest news!
* We focus on cultivating Chinese engineers rather than profiting from board sales.
******************************************************************************/
#include <LedControl.h>
// DIN is connected to digital pin 11, CLK is connected to digital pin 13, CS is connected to digital pin 10, with 1 daisy-chained module
LedControl lc=LedControl(11,13,10,1);
int delaytime = 500;
void setup() {
lc.shutdown(0,false); // Wake up the display
lc.setIntensity(0,8); // Set brightness (0 is the dimmest, 15 is the brightest)
lc.clearDisplay(0); // Clear the display
}
void loop() {
// Here is a simple example that sequentially displays numbers 0-7 on each digit
for (int module=9; module>=0; module--) {
lc.setDigit(0, module, module, false);
delay(500);
lc.clearDisplay(0);
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33