Lights and displaysA Traffic Light with Three LEDs
Build a small model of a real traffic light: green, flashing green, yellow, red and finally red with yellow, just like on the street.
Lights and displaysThe Uno R4 WiFi has a 12×8 LED matrix right on the board. Write a short program and your own text or animation will scroll across it.
Translated from “Using the Arduino UNO R4 WiFi LED Matrix” by Arduino. Licence: CC BY-SA 4.0. This translation is shared under the same licence. The parts list and the tips are RoboHub's.
Choose a variation and the parts list updates.
Download Arduino IDE 2 and install “Arduino UNO R4 Boards” in the Boards Manager.
Find and install ArduinoGraphics in the Library Manager. Arduino_LED_Matrix already comes with the board package.
Connect the board with a USB-C cable, choose the port and upload the code. “RoboHub” will scroll across the matrix.
#include "ArduinoGraphics.h"
#include "Arduino_LED_Matrix.h"
ArduinoLEDMatrix matrix;
void setup() {
matrix.begin();
}
void loop() {
matrix.beginDraw();
matrix.stroke(0xFFFFFFFF);
matrix.textScrollSpeed(60); // lower = faster
matrix.textFont(Font_5x7);
matrix.beginText(0, 1, 0xFFFFFF);
matrix.println(" RoboHub "); // your text
matrix.endText(SCROLL_LEFT);
matrix.endDraw();
}Put your own text in println and change the speed with textScrollSpeed. The 5×7 font shows Latin letters and digits.

Illustration, made with AI
Illustration: in a dark room, a red heart glows on the Uno R4 WiFi's LED matrix.
Step 4: Change the text
Lights and displaysBuild a small model of a real traffic light: green, flashing green, yellow, red and finally red with yellow, just like on the street.
Lights and displaysCars have green until a pedestrian presses the button. Then the cars get red, the pedestrians get green and a buzzer ticks, just like at a real crossing.
GamesAn LED lights at a random moment. Whoever presses their button first wins. Built from Student Kit parts in 45 minutes.