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.
Choose a tune
(:sourcehttps://raw.github.com/arduino/Arduino/master/libraries/Robot_Control/examples/explore/R03_Disco_Bot/R03_Disco_Bot.ino lang=arduino tabwidth=4:)
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.