降價! Audio Jack Modem for iPhone and Android 查看大圖

Audio Jack Modem for iPhone and Android (庫存數:1)

DTI0046

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.

更多資訊

NT$ 264 含稅

-NT$ 240

NT$ 504 含稅

更多資訊

Product Description

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.

 

arduino-softmodem-3.jpg

 

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.

 

arduino-softmodem-2.jpg

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.

arduino-softmodem-1.jpg

 

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.

Example

Arduino Softmodem could be utilized in many project. Here I will show you one example supplied by 9lab. Please visit iOS IR Remote with Arduino for 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.

arduino-softmodem-6.jpg

 

OS 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:

  1. Arduino Uno x 1 (as the microcontroller)
  2. Soft modem x 1
  3. IR LED x 1
  4. Arduino breadboard shield x 1(just for cleaner prototyping)
  5. Headphone wire x 1

arduino-softmodem-7.jpg