I2C - RGB Animator

How To Add This Control To Your Project

Step #1) Load the most recent release of EZ-Builder
Step #2) Press the Project tab from the top menu bar of EZ-Builder
Step #3) Press Add Control from the button ribbon bar of EZ-Builder
Step #4) Choose the I2C category tab
Step #5) Press the RGB Animator icon to add the control to your project


The eyes of the JD Humanoid Head and RGB Block EZ-Bit contain an array of 18 RGB LED's. This animator allows you to create colorful animations of a variety of colors.

*Note: The RGB Animator connects to the RGB Block through the i2c interface. If the RGB Block is not connected to the i2c interface, the RGB Animator will lock up the ez-b.


Create animations with 18 rgb leds to give your robot personality

the rgb array comes in 3 flavors.

1) Accompanies the servos and camera of the humanoid head as eyes.

2) Built into the RGB Extension Block, which allows additional ez-bits to be connected

3) And as a DIY PCB for custom robots.

The RGB array connects to any of the 3 i2c ports on the ez-b v4.

Programming animations with the RGB Array is done with EZ-Builders RGB Animator Control.

Load EZ-Builder, connect to your EZ-B and load the RGB Animator Control.

Add Control -> i2c -> RGB Animator

like all controls in EZ-Builder, the gear icon loads the settings for this control

Press New Action and enter "My Animation" as the name

This action will repeat for ever. Check the This Action Repeats checkbox

Press Add New Frame

Select the RGB LEDs that you wish to change the color of

Slide the trackbar of a color to adjust the brightness

multiple colors can be mixed

specify the PAUSE or Transition time for this frame of your animation

Blue question marks are available for additional help per command

for a quick transition, i will set the pause to 0

Add a bunch of new frames for your custom animation by changing RGB LED colors and transition time, etc

Once you have a bunch of frames defied with your action, press the SAVE button

Select the My Animation and press Execute

Here's instructions on starting the rgb animator with a voice command

dj says "robot start my animation" and the animation begins

Add Control -> Audio -> Speech Recognition

The VU meter will show your voice as it is being detected. If it is not, you may need to configure your microphone and train your voice. Connect to the internet and press the ? question mark for assistance on this control

Now press the gear to open the settings dialog

In a new blank row, enter the phrase "robot start my animation" (robot speaks and plays animation)

Now press the pencil icon in the script column to load the ez-script editor

We will use the Cheat Sheet tab to make this much easier

Press Cheat Sheet tab

All commands for controls in your project are listed here

Locate the Speech Recognition section

Press the ControlCommand for My Animation

It will be added to your code

for fun, let's also add a command to have the robot speak when the animation starts

Enter a new line before the ControlCommand and type SayEZB("Here is my fancy animation")

Press Save to close the editor

Press save to close the speech recognition settings

"Robot Start My Animation"

(robot speaks and plays animation)


Related Tutorials & Activities

RGB Animations

RGB Animations

This RGB LED block and JD's eyes contains 18 RGB LEDs (that means 54 LEDs in total), and plugs directly into the ez-bv4 Wi-Fi Robot Controller. Each LED's color and brightness can be adjusted indivi...

Last Modified on 5/14/2015

Created by EZ-Robot

RGB Eyes Not Working

RGB Eyes Not Working

Symptom If the RED Led on the EZ-B goes solid after connecting to JD (not flickering), the RGB Eyes are connected and light up when power is applied. This means there could be an issue with the RGB...

Last Modified on 5/18/2017

Created by EZ-Robot

Rgb Array Tutorial

I've added a video to the 18 RGB LED Block, Humanoid Head with Camera & RGB Eyes and 18 RGB LED PCB to explain how to use them. There have been questions in the past on how to set it up for displaying graphical animation. Here's your answer :) [PDF]

Last Modified on 9/15/2015

Created by ezrobot

Explanation and Uses of Arrays.

This Tutorial will explain what an "Array" is, and give you some examples of how they are, or can be used within EZ-Builder and your robotics projects. This is not a "How to" tutorial, but more of a guide explaining how how arrays are used in various applications. [PDF]

Last Modified on 10/16/2015

Created by Steve G

Related Products

Humanoid Head with Camera & RGB Eyes

Add a humanoid head to your ezrobot so it can recognize its surroundings, and display emotions. The head includes a built in camera for machine...

18 RGB LED Block

This RGB LED block contains 18 RGB LEDs (that means 54 LEDs in total), and plugs directly into the EZ-B v4/2 Wi-Fi Robot Controller. Each LED's color...


This i2c connected PCB has 18 RGB's (9 per side) and connects directly to the EZ-B v4 with the included cable. Easily create RGB animations and mount...

Related Articles: Auto Positioner (Gait)