Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino-Controlled RGB LED Matrix Display

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled RGB LED Matrix Display

Circuit Documentation

Summary

This circuit consists of an LED Matrix 64x32 display panel controlled by an Arduino UNO R4 WiFi microcontroller. The Arduino is programmed to iterate through a range of colors, displaying them on the LED matrix. The matrix is connected to the Arduino through various digital and analog pins, allowing for the control of individual LEDs and the synchronization of the display.

Component List

LED Matrix 64x32

Arduino UNO R4 WiFi

Wiring Details

LED Matrix 64x32

Arduino UNO R4 WiFi

Documented Code

#include <Panel.h> 
//which cable goes where 
#define RA 14 //register selector a 
#define RB 15 //register selector b 
#define RC 16 //register selector c 
#define RD 18 //register selector d 
#define RF 2 //red first byte 
#define RS 5 //red second byte 
#define BF 4 //blue first byte 
#define BS 7 //blue second byte 
#define GF 3 //green first byte 
#define GS 6 //green second byte 
#define LAT 17 //data latch 
#define CLK 8 //clock signal 
#define OE 9 //output enable 

Panel panel(32,64, false); 

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  //this example iterates through all available colors in the panel 
  for (long i = 0; i < 26000; i++) { 
      panel.fillScreenColor(i/1000);//changes after some time  
  } 
  /* 
  |||ALL COLORS||| 
  RED,  
  GREEN,  
  BLUE,  
  WHITE, 
  BLACK, 
  PURPLE, 
  YELLOW, 
  CYAN, 
  LIGHTRED, 
  LIGHTGREEN, 
  LIGHTBLUE, 
  LIGHTWHITE, 
  LIGHTCYAN, 
  DARKYELLOW, 
  LIGHTPURPLE, 
  LIGHTYELLOW, 
  TURQUOISE, 
  PINK, 
  DARKPURPLE, 
  BRIGHTGREEN, 
  BRIGHTCYAN, 
  MEDIUMGREEN, 
  DEEPPURPLE, 
  OCEANBLUE, 
  FLESH, 
  LIGHTPINK, 
  */ 


}

The code provided is a sketch for the Arduino UNO R4 WiFi microcontroller. It includes a library for controlling the LED panel and defines pin mappings for the various signals required to drive the display. The setup() function is left empty, indicating that no initialization is required beyond the default settings. The loop() function contains a for-loop that cycles through a range of colors, filling the entire screen with each color for a brief period. The commented section lists all the colors that can be displayed by the panel.