SoftModem Audio Jack Modem for iPhone and Android Mobile Phone Communication
You may have several ways to make your Arduino communicate with your Android phone or iPone, such as through bluetooth, or wifi. However, you have an much easy way to do this, through audio jack. Now we supply this Arduino Softmodem for iPhone or Android.
Phones from different company have different headset pinout, for example, Sumsung's Galaxy is different from iPhone. Here we add a switch to make it be compatible with both.
This serial modem allows you to interface an Arduino board with your iPhone or Android smartphone through the audio jack. Now you can integrate your smartphone into your next embedded project. Some software is required on the phone side, and of course there is an Arduino library.
Because the modem and supporting software exploits a connection originally intended for audio, some corruption of the serial data is to be expected from time to time. It's recommended that you keep this in mind when writing your code. See the links below for more information on the board, the Arduino library, and how to implement it.
Arduino Softmodem could be utilized in many project. Here I will show you one example supplied by 9lab. Please visitiOS IR Remote with Arduinofor code if you are interested.
We all love to impress (and sometimes annoy) people with our little gadgets and electronics. I remember that I used to turn off the TV in the classroom with my Casio infrared remote control watch and fool everyone in my class(I bet some of you also did the same thing), and today 9lab wants to bring the fun back with Arduino, some infrared LEDs and your iPhone.
iOS IR Remote
How it works
Basically, how remote controllers work is, the buttons on the control panel will trigger a certain command, and the microcontroller on the board will code the command in binary format, then controls the infrared LED to blink in a certain way according to the code. On any device you want to control, the infrared receiver will catch the signal and decode command, so that the device knows what it needs to do.
The structure will be the same if we want to make it for smartphones. The smartphone needs to be able to encode a command and control the infrared LED to blink. Since there's no direct access from the phone to the LED, so we need a microcontroller to listen to input from the smartphone, and blink the LED accordingly.
In order to be compatible with almost all smartphones, including iPhone and Android, we choose headphone jack as the interface between the phone and the microcontroller. This means we will use audio signal to represent the command, which the microcontroller will not be able to read directly. In this case, we need a soft modem to do the translation.
So here are the hardwares that we used:
- Arduino Uno x 1 (as the microcontroller)
- Soft modem x 1
- IR LED x 1
- Arduino breadboard shield x 1(just for cleaner prototyping)
- Headphone wire x 1
The hardware setup is not very complicated. Connect soft modem to Uno(pins), and connect the breadboard shield on top of them, then connect the IR LED to Uno’s PWM pin 3 via breadboard. Finally, connect the soft modem and the iPhone with the headphone wire. Done.‘
Hardware setup. The deep gray part is the soft modem.
- Arduino Softmodem Shield x1
- Headset line x1