Sound control, iPhone speaking

This weekend I was able to get the iPhone to control the R2 sounds using a vmusic2 module from Mouser, speakers from Fry’s electronics and a mini amplifier from David Navone engineering. Like the servo control, using the iPhone, this method uses the same microcontroller and the same communication method via wifi with the OSC protocol, running an free app on the iPhone called mrmr. Taking a cue from Chris James, I added buttons that control banks of sounds for different moods or r2 sound types. I went through the sounds I have and sorted them into categories like chatty, sad, happy, whistle, raz, mad, question, processing, holo(leia), dance(cantina music), and a couple others I can’t recall right now. I wrote some code for the microcontroller so that every time you press the sad button on the iPhone, it will play a random clip from the sad set of sounds. I also setup buttons to play all sounds (the “V3A” command on vmusic2 module), stop playing (“VST”) and switch off random mode, skip to next directory (“VSD”), and a slider widget for volume control (“VSV”). I also added a button to go into random mode where r2 will play a random sound at a random interval, so you don’t have to keep pressing buttons to make some noise.

Next up will be controlling the J.E.D.I display with the iPhone and tying that into sound control.

Another cool thing I will work on is feedback from R2 to the iPhone. I should be able to display messages or status on the iPhone display from r2 when needed say like battery level, error messages, what modes are on/off, and the state of various subsystems.


3 Responses to “Sound control, iPhone speaking”

  1. Brian Johansen Says:

    Hi Glenn
    Very interesting work you have done there, it seems like you are both hardware and software oriented and the quality looks good too.
    Are you you interested in sharing some of you microcontroller setup and source code with some fellow robot builders ?
    I will be returning to your blog to see the progress.
    br Brian

  2. I Lau Says:


    very informative site for a beginner like me. i just started looking into building an R2D2 with my kids. may i ask for an email from you so that i can consult you where to start? my email address is thanks


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: