Illustration: in a dark room, a red heart glows on the Uno R4 WiFi's LED matrix.Lights and displays
Illustration (made with AI): roughly what the finished project looks like.

Your Own Scrolling Text on the Uno R4 WiFi LED Matrix

The 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.

Difficulty
Beginner
Time
30 min
Age
10+
Parts
1, 1 on the site

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.

Variations

Choose a variation and the parts list updates.

Instructions

  1. Install the Arduino IDE

    Download Arduino IDE 2 and install “Arduino UNO R4 Boards” in the Boards Manager.

  2. Install the library

    Find and install ArduinoGraphics in the Library Manager. Arduino_LED_Matrix already comes with the board package.

  3. Upload the code

    Connect the board with a USB-C cable, choose the port and upload the code. “RoboHub” will scroll across the matrix.

    Arduino C++
    #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();
    }
  4. Change the text

    Put your own text in println and change the speed with textScrollSpeed. The 5×7 font shows Latin letters and digits.

    Illustration: a red heart lit on the board's LED matrix, the board connected to a laptop by USB-C.

    Illustration, made with AI

  • Lights and displays
    Beginner30 min8+

    A 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.

    4/4 parts on the site
  • Lights and displays
    Beginner45 min10+

    Pedestrian Crossing with a Button

    Cars 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.

    6/6 parts on the site
  • Games
    Beginner45 min10+

    A Two-Player Reaction Game

    An LED lights at a random moment. Whoever presses their button first wins. Built from Student Kit parts in 45 minutes.

    6/6 parts on the site