Arduino Uno Q Board - How to Create Custom Frames on LED Matrix (Part 3)

Arduino Uno Q Board - How to Create Custom Frames on LED Matrix (Part 3)

Creating custom frames on an LED matrix is one of the coolest ways to display animations, patterns, and visual effects in your Arduino projects. In this tutorial, we’ll use the Arduino Uno Q to design and display custom frames on an LED matrix. This guide is beginner-friendly and includes connections, code samples, and tips to optimize animations.

Arduino Uno has 8 x 13 blue LED Matrix. This LED Matrix is controlled by STM32U585 Microcontroller on the board. So, to display something on the LED Matrix, we do not need QRB2210 section.

Components/Tools Required

Create the data array using the below drawing in the LED Matrix tool.


After drawing this, or any of your customized symbol, click on download symbol, it will download the following array.

[{"matrix":[[0,0,0,1,1,0,0,0,1,1,0,0],[0,0,1,0,0,1,0,1,0,0,1,0],[0,0,1,0,0,0,1,0,0,0,1,0],[0,0,1,0,0,0,0,0,0,0,1,0],[0,0,0,1,0,0,0,0,0,1,0,0],[0,0,0,0,1,0,0,0,1,0,0,0],[0,0,0,0,0,1,0,1,0,0,0,0],[0,0,0,0,0,0,1,0,0,0,0,0]],"duration":66,"selected":false}]

Below is the code for the LED Matrix.

--------

#include <Arduino_LED_Matrix.h>

uint8_t logo[104] = {
    0,0,0,1,1,0,0,0,1,1,0,0,0,
    0,0,1,0,0,1,0,1,0,0,1,0,0,
    0,0,1,0,0,0,1,0,0,0,1,0,0,
    0,0,1,0,0,0,0,0,0,0,1,0,0,
    0,0,0,1,0,0,0,0,0,1,0,0,0,
    0,0,0,0,1,0,0,0,1,0,0,0,0,
    0,0,0,0,0,1,0,1,0,0,0,0,0,
    0,0,0,0,0,0,1,0,0,0,0,0,0
};

Arduino_LED_Matrix matrix;

void setup() {
  matrix.begin();
  // display the image
  matrix.setGrayscaleBits(1);
  matrix.draw(logo);

}

void loop() {

  matrix.setGrayscaleBits(0);

  delay(2000);

  matrix.setGrayscaleBits(1);
  matrix.draw(logo);

  delay(2000);

}

--------

Watch the description of the same from below video:

keywords:
arduino uno q, led matrix, custom frames, led matrix animation arduino, arduino uno Q tutorial, Arduino display projects, arduino uno q coding, arduino led matrix guide, led matrix programming, embedded projects arduino

Post a Comment

0 Comments