Press the Project tab from the top menu bar of EZ-Builder
Press Add Control from the button ribbon bar of EZ-Builder
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