40x30 mm (1.57x1.18 in)
40x30 mm (1.57x1.18 in)
10g (0.35 oz)
Through-hole (TH)
5V
-25C to +85C (-13F to +185F)
Applications
| The MAX7219 4 in 1 Dot Matrix Display Module is suitable for a wide range of applications, including |
IoT projects and prototyping
Robotics and automation
Industrial control systems
Home automation and smart home devices
Wearable devices and accessories
Advertising and signage displays
Documentation and Resources
MAX7219 Datasheet.pdf
MAX7219 Application Note.pdf
MAX7219 Example Code.zip (for Arduino, Raspberry Pi, and ESP32)
Conclusion
The MAX7219 4 in 1 Dot Matrix Display Module is a high-density display driver module that offers a compact and efficient solution for a wide range of applications. Its high-speed display update, low power consumption, and software-controlled brightness adjustment make it an ideal choice for applications requiring a high-quality display solution.
MAX7219 4 in 1 Dot Matrix Display Module DocumentationOverviewThe MAX7219 4 in 1 Dot Matrix Display Module is a compact, high-brightness display module consisting of four 8x8 dot matrix displays, driven by the MAX7219 IC. This module is ideal for displaying alphanumeric characters, symbols, and graphics in various IoT applications.Pinouts and ConnectionsThe module has the following pinouts:VCC: Positive power supply (5V)
GND: Ground
DIN: Data input
CLK: Clock input
CS: Chip selectFeatures4 built-in 8x8 dot matrix displays
High-brightness displays with a wide viewing angle
Supports alphanumeric characters, symbols, and graphics
Individual display control for each of the 4 displays
MAX7219 IC for easy interfacing with microcontrollersCode Examples### Example 1: Displaying a Scrollable Text Message using ArduinoIn this example, we will display a scrollable text message "HELLO WORLD" on the MAX7219 4 in 1 Dot Matrix Display Module using an Arduino Uno board.```cpp
#include <MaxMatrix.h>// Define the pin connections
#define DIN_PIN 12
#define CS_PIN 11
#define CLK_PIN 10// Create a MaxMatrix object
MaxMatrix mx = MaxMatrix(DIN_PIN, CS_PIN, CLK_PIN);void setup() {
// Initialize the MAX7219 module
mx.init();
}void loop() {
// Define the text message
char message[] = "HELLO WORLD";// Display the text message
mx.setText(message);// Scroll the text message
for (int i = 0; i < strlen(message); i++) {
mx.scrollTextLeft();
delay(50);
}// Clear the display
mx.fillScreen(LOW);
delay(500);
}
```### Example 2: Displaying a Temperature Reading using Raspberry Pi (Python)In this example, we will display a temperature reading on the MAX7219 4 in 1 Dot Matrix Display Module using a Raspberry Pi board and a DS18B20 temperature sensor.```python
import max7219
from datetime import datetime
import Adafruit_DHT# Initialize the MAX7219 module
device = max7219.Max7219()# Initialize the DS18B20 temperature sensor
temperature_sensor = Adafruit_DHT.DS18B20while True:
# Read the temperature from the sensor
temperature = Adafruit_DHT.read_retry(temperature_sensor, 4)# Format the temperature reading
temperature_str = "{:.1f}C".format(temperature)# Clear the display
device.clear()# Display the temperature reading
device.show_message(temperature_str)# Wait for 1 second before updating the display
time.sleep(1)
```### Example 3: Displaying a Custom Graphic using ESP32 (C)In this example, we will display a custom graphic on the MAX7219 4 in 1 Dot Matrix Display Module using an ESP32 board.```c
#include <WiFi.h>
#include <MaxMatrix.h>// Define the pin connections
#define DIN_PIN 18
#define CS_PIN 5
#define CLK_PIN 23// Create a MaxMatrix object
MaxMatrix mx = MaxMatrix(DIN_PIN, CS_PIN, CLK_PIN);// Define a custom graphic
const uint8_t graphic[] = {
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18,
0x18, 0x00, 0x18, 0x18, 0x00, 0x18, 0x18, 0x18,
0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18,
0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
};void setup() {
// Initialize the MAX7219 module
mx.init();
}void loop() {
// Clear the display
mx.fillScreen(LOW);// Display the custom graphic
mx.drawImage(graphic, 0, 0);// Wait for 1 second before updating the display
delay(1000);
}
```Note: The above code examples assume that you have the necessary libraries installed and configured on your development board. You may need to modify the pin connections and initialization code based on your specific board and setup.