Examples > Robot?
This sketch demonstrates how to play a melody with the robot, by playing back some sound files.
You can choose between three melodies specially composed for the Arduino Robot using the buttons on the control board. Once you get the music you like, put the robot on the floor and it will dance for you.
- Arduino Robot
- Your best dance outfit
- Upload the example, unplug USB and turn on power.
- Place the robot on the ground
- After the starting screen, the robot will be dancing with music playing and flashing colors on the screen
- You can press left/right button to switch music
- If you're not satisfied with the dancing moves, change the example to make it dance differently :
- Locate the line
- S: stop, L: turn left, R: turn right, F: go forward, B: go backwards
- The number after each command decides how long it lasts. 1 = 500ms, 2=1000ms, 3=1500ms, and so forth.
Try it out
Choose a tune
SORRY, There is an error at our code repository, please inform to firstname.lastname@example.org
The melodies are stored on the SD card. They are created with a tracker program.
To write your own music, use a tracker program as explained in the Squawk library reference.