Yesterday I was able to borrow an iPod touch and verified that it was able to control servos (or R2D2) as well so that theory is confirmed. I was able to use a iPhone and the iPod touch at the same time and it worked just fine. Also I was able to remove a computer from the setup. In the video below, a computer was acting as a OSC message translator. The message path would be something like this:
iPhone –> wifi router –> computer –> wifi router –> microcontroller –> servo (or motor)
The iphone would send a message like
the computer would translate that message into this and send it to the microcontroller
Simple but effective.
Recently I was able to do the same without the computer and have the microcontroller do some internal translation of the message.
Now the message path looks like this:
iPhone –> wifi router –> microcontroller –> servo (or motor)
Yes the R2D2 will have a wireless router inside it and will be power from battery.
I am also working on controlling a vmusic2 module in order to produce the sounds R2D2 makes. I am also planning on controlling other parts of R2 with this setup as well including:
- Dome motor
- Feet motors
- Holo servo
- door panel servos
- JEDI system control (lights)
- Periscope (eventually)
- Lifeform scanner (eventually)
- and more
Another nice aspect of this setup is that I can add microcontrollers and remotes (iPhones or iPod touch) to extend the system.