Introduction: NeoPixel NeoMatrix 8x8 64 RGB LED Matrix Random Color Animation

About: Arduino fan!

In this Visual Programming Visuino tutorial, we’ll use the Adafruit NeoPixel NeoMatrix 8x8 64 RGB LED Matrix to create random color running lights.

A pulse is sent to the NeoPixel matrix to move one pixel forward, while a random color generator sets the color of that pixel.

This creates a dynamic, flowing animation where each LED lights up with a new random color as it moves across the matrix.

Using Visuino’s drag-and-drop interface, you can adjust the speed, brightness, and color randomness of the animation.

This project demonstrates how to control the NeoPixel NeoMatrix 8x8 to create moving, colorful LED patterns with Arduino.

Note: you can use any other NeoPixel matrix, it will work the same.

Watch the Video!


Note: You can use any other NeoPixel WS2812 RGB LED module, just adjust the number of pixels in Visuino


Step 1: What You Will Need

  1. Adafruit NeoPixel NeoMatrix 8x8 - 64 RGB LED Pixel Matrix
  2. Arduino (or any other board)
  3. Jumper wires
  4. Visuino program: Download Visuino


Step 2: The Circuit

  1. Connect NeoMatrix pin [5V] to Arduino pin [5V]
  2. Connect NeoMatrix pin [GND] to Arduino pin [GND]
  3. Connect NeoMatrix pin [Data In] to Arduino digital pin [2]

Step 3: Start Visuino, and Select the Arduino Board Type

Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

Step 4: In Visuino Add & Set Components

  1. Add "Pulse Generator" component
  2. Add "Random Color" component
  3. Add "NeoPixels" component


  1. Select "PulseGenerator1" and in the properties window set "Frequency" to 5, adjust this value according to your needs
  2. Double click on the "NeoPixels1" and in the "PixelGroups" window drag "Running Color" to the left side and in the properties window set "" to 64

Step 5: In Visuino Connect Components

  1. Connect "PulseGenerator1" pin [Out] to "NeoPixels1 > RunningColor1" pin [Step]
  2. Connect "PulseGenerator1" pin [Out] to "RandomColor1" pin [Clock]
  3. Connect "RandomColor1" pin [Out] to "NeoPixels1 > RunningColor1" pin [Color]
  4. Connect "NeoPixels1" pin [Out] to Arduino Digital pin [2]

Step 6: Generate, Compile, and Upload the Arduino Code

In Visuino, at the bottom click on the "Build" Tab, make sure the correct port is selected, then click on the "Compile/Build and Upload" button.

Step 7: Play

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this Instructable, you can download it here and open it in Visuino: https://www.visuino.com