Step 4SOFTWARE
CONNECT ARDUINO MEGA TO iROBOT CREATE
Most people that add a microcontroller to the iRobot Create use the iRobot Create Command Module. iRobot engineers supply example code with the Command Module so that it can communicate with the Create over the serial connection. I needed many more inputs/outputs and more memory than the Command Module could offer, so I decided to connect the Arduino MEGA to the Create. I wired the serial communication pins between the two and converted the Command Module code to Arduino code (very similar since they are both written in C). The main change I made to iRobot's example code was that I didn't want to use the same timers to control sensor updates.
VOICE AND MUSIC
Belvedere's audio clips are pre-recorded and stored on an SD card. The Arduino can access any one of the clips as needed. Belvedere has at least 50 different audio clips that are in different categories (offer food, move obstacle, joke, comment, music).
Belvedere's voice was generated by the text-to-speak software at AT&T's Natural Voices website:
http://www2.research.att.com/~ttsweb/tts/demo.php#top
You can choose gender and various accents. This website was convenient because I could directly export the file to .wav format.
SOURCE CODE
I have attached the Arduino source code below. It is three files zipped together. Two of the files are header files that support the main .pde file.
Belvedere4.zip12 KB| « Previous Step | Download PDFView All Steps | Next Step » |








































The Mega is around 65+ tax and shipping,
The compass is around 30+tax and shipping,
The wave shield is 21+ tax and shipping,
The lcd screen is 12+ tax and shipping
The servo is around 10+tax and shipping
various parts <20
so the whole thing is around $315