How to Use LED Matrix on Arduino UNO R4 WIFI to Display Text
How to Use LED Matrix on Arduino UNO R4 WIFI to Display Text
The Arduino UNO R4 WIFI board has a built-in 12x8 LED Matrix ready to use. You can program it to display text, numbers, or custom images.
Required Components
- Arduino UNO R4 WIFI
- MB-102 Breadboard (830 Point)
- Power Adapter 9V 2A with 5.5x2.5mm jack
- Jumper wires: Male-to-Male, Male-to-Female, Female-to-Female, 20cm each, 40 pieces per type
- USB Type-C to USB 2.0 cable for code upload
- USB Type-C cable rated over 3A for power
Installing the Board Package
- Connect Arduino UNO R4 WIFI to your computer via USB Type-C
- Open Arduino IDE
- Go to Tools > Boards Manager…
- Type “arduino r4” in the search box
- Wait for Arduino UNO R4 Boards to appear, then click Install
- Wait until INSTALLED appears, then click Close
Uploading Sample Code to LED Matrix
After installing the Board Package, try uploading sample code to test the LED Matrix on your board
- Download the sample code files and extract them
- Open the code file in Arduino IDE
- Go to Tools > Port and select the port your board is connected to
- Go to Tools > Board and select Arduino UNO R4 WIFI
- Click the Upload button (right arrow)
- Wait for Done uploading message
When upload completes, the LED Matrix on the board will display the text or image defined in the code
Creating Custom Images and Text with Arduino LED Matrix Editor
To define your own images or text, use the Arduino LED Matrix Editor web tool
Accessing LED Matrix Editor
Go to https://ledmatrix-editor.arduino.cc
Drawing Your Image or Text
- Select the Brush tool and click on grid cells to light up pixels
- If you make a mistake, use the Eraser tool to remove pixels
- Draw your desired shape or text pattern
Saving Your Work
Click Save button with two options
- Save as file - Save the file for later editing
- Export for Arduino - Export code to use in Arduino IDE
For creating animations or scrolling text - Create each frame individually by clicking the add frame button and drawing the next position
Importing Code from LED Matrix Editor to Arduino IDE
After exporting code from the website, follow these steps
Creating a New Tab in Arduino IDE
- Open Arduino IDE
- Click the arrow icon on the right side and select New Tab
[image: Screenshot showing the top section of Arduino IDE with the New Tab button highlighted as a down arrow icon]
- Name the file matching your image name, appending .h at the end, for example
mylogo.h - A new empty Tab will appear
Adding Code to the New Tab
- Open the exported .h file from the website
- Copy all the code and paste it into the new Tab
- Press Ctrl+S to save
Editing Code in the Main Tab
Return to the first Tab and modify the #include "...h" line to match your filename
#include "mylogo.h" // Change name to match your file
// Example code to display on LED Matrix
#include "Arduino_LED_Matrix.h"
ArduinoLEDMatrix matrix;
void setup() {
Serial.begin(115200);
matrix.begin();
}
void loop() {
// Display frame 1
matrix.loadFrame(0);
delay(500);
// Display frame 2
matrix.loadFrame(1);
delay(500);
}
Uploading the Code
- Select the correct Port and Board type
- Click Upload button
- Wait for Done uploading message
When upload completes, the LED Matrix on the board will display your custom image or text
Reference Video
Arduino UNO R4 WIFI LED Matrix Demo
Summary
The Arduino UNO R4 WIFI has a built-in 12x8 LED Matrix on the board. It can display text, numbers, or images using the Arduino LED Matrix Editor tool to create patterns, then import the code into Arduino IDE by creating a new tab and including the correct header file.
อยากทำโปรเจคแบบนี้?
รับทำโปรเจค Arduino / IoT จบงานไว ส่งงานครบ พร้อมสอน
If you need Arduino project service or urgent IoT development, see full service details on the home page
จ้างทำโปรเจคเลย