I'm doing some research for a project i want to undertake. basically i need to make an ipod touch; with a custom app, control a bank of 6 relays.
All the research i've done on the arduino boards show the reverse (arduino controlling the ipod) . Has anyone had any luck with sending commands from an ipod to the arduino?
I'm not too experienced with interfacing the arduino directly with an app on the iPod - but you may want to consider using the ethernet shield to set up a simple web based app that can be accessed from the iPod.
Unless of course you HAVE to have the standalone app. Then disregard this advice.
If you can have the arduino connected to a small computer, you can use a local wifi network, use something like touchOSC to communicate between the ipod and computer, have a processing sketch that translates these messages and sends commands via the serial port to the arduino.
and so far the only solution i've come up with is decoding an audio signal to switch relays. this would work i just am not sure how to do it or if it's the best way... or at least easiest.
this will be my first venture into coding so it needs to be simple
Well, I don't think that you're taking the best route...
GUIDesigner is (if I understood well) used to create GUIs (graphical user interface) for one particular IPhone / IPod app that is iViewer. From the site :
iViewer is an application for iPhone and iPod Touch that allows you to control any hardware or software capable of TCP/IP Socket communication.
So, if you want to use iViewer, you'll have to get an ethernet shield and a router, as darudude said.
I don't think it will be as simple as you'd like
thanks for your reply. i'm going to have to reread everything tonight. I think i'll have help with the ipod app (if that software i linked too doesn't work for this project) since one of my buddies has written one or two. I'll look into your suggestion again. thanks for pointing that out
I just remembered the Fonera! I think that would be a great solution for this project. I don't even think you'll need the Arduino. Google Arduino + Fonera and there are some interesting concepts
Basicly, the Fonera is a Wifi router with Linux as its backend. Due to its cheap price, it has become a favorite among router hackers.
You can basicly use the fonera to serve as a wifi router and connect to it with the iPod Touch. Then you should be able to send it simple command line commands to access its 5V GPIO lines. You have 4 lines you can access + a serial port. If the 4 Lines arent enough, you can add an Arduino (or a multiplexer) and add more I/O ports
I'm not sure what your time table is for your project, but I'm currently working on a WiFi shield for the Arduino. You'll be able to control your Arduino with an iPod Touch in adhoc mode, meaning your Arduino will create a network, and your iPod can join that network (this requires no other access point or intermediate device).
I'm expecting to have it out by the end of April/early May. Here is my original thread I created on it. I just put videos up on YouTube, so you can see it in action.
florinc : yes, there is a serial port, but the official SDK won't let you access it, so you'll have to use a jailbroken iPhone / iPod to use it.
With the latest 3.0 SDK, there's at least a better chance that we can use the dock connector:
Using the new External Accessory framework, your application can now communicate with "Made for iPod" hardware accessories attached to iPhone or iPod touch through either the 30-pin dock connector or wirelessly using Bluetooth.
Not sure exactly what the whole "Made for iPod" part is about, you might have to get one of Apple's special chips or something...
estranged : saw this on hackaday, but I'm pretty sure you'll have to go through another "developer program", for $$ and stuff, to get access to the dock connector.
florinc : I do, but I'm not good at objective-C ^^