iPod Information Screen using Arduino
My girlfriend, a music buff, asked me to come up with a better way for her to look at the track information of the current song playing on her iPod touch while she was using it in the car. Those of you that have or have had an iPod touch know that it’s not the easiest thing to read while driving. To see the song information you have to double tap the home button and then still the text is extremely small.
My solution was to construct a device that would interface with the iPod and take the song information and then display it on a screen somewhere in the easy view of the driver. After quite a bit of work and research I finally arrived at the product you see here. My iPod information screen displays the song title, artist, album, song time, and play/pause symbol. It provides skip back, skip forward, and play/pause playback control as well as charges the iPod.
Step 1: The Research
The first step in making this device was to find out if it was even possible. I had never even really given interfacing with an iPod much thought before this and I had no idea if protocols publicly existed to do so.
One of the first websites I came across when researching was a Cornell senior design website that detailed the development of an iPod dock that took and sent commands to an iPod. The site, https://courses.cit.cornell.edu/ee476/FinalProjects/s2007/awr8_asl45/awr8_asl45/index.html, was very helpful in detailing the necessary connections, but most importantly it showed that this was in deed possible to do.
I came across several more resources, and then stumbled upon my primary resource. I found David Findlay’s blog, http://davidfindlay.org/weblog/files/2009_09_07_ipod_remote.php, and on it he talked about his development of an iPod remote and an Arduino library that handled all the iPod interfacing in a very simple way. This is the library I used in my project.
I also found this website useful outlining the Apple Accessory Protocol, https://nuxx.net/wiki/Apple_Accessory_Protocol. It’s not really necessary to understand as David’s library handles this behind the scenes, but I thought it was good to know and it may be useful for other applications.
Step 3: The Hardware
The connections that need to be made are detailed next to each pin on the website above. Also, the websites I’ve listed earlier in this Instructable talk about them too. I’m also going to touch on it.
The LCD display uses the KS0108 chip popular to a lot of LCD displays. There is a library for the Arduino called GLCD. This takes most of the pins from the Arduino. For proper connections I’ll refer you to the documentation that comes with the library. A link to the library will be provided in the next step.
The serial transmit TX and receive RX, pins 1 and 0 respectively, go to the serial lines of the iPod. Be sure TX of the Arduino goes to RX of the iPod and vice-versa. That is, Arduino pin 1 to iPod connector pin 18 and Arduino pin 0 to iPod connector pin 19. Since the iPod operates at about 3V and the Arduino operates at 5V we need to use a voltage divider on the Arduino’s transmit line. That’s what the 1k Ohm resistors are for. Technically, I should be using a level shifter, but I found that it worked fine without it and the Arduino has no problem with receiving the incoming 3V data.
The remaining connections are for buttons.
Pin 21 of the iPod connector will be connected to ground through a 500k Ohm resistor, or in my case I used two 1M Ohm resistors in parallel. Connector pins 25 and 27 control how the iPod charges. If we put 2.8V on pin 25 and 2.0v on pin 27 we can get the iPod to draw about 1A and charge the battery. The is accomplished by simple voltage division as can be seen in the second schematic.
Step 4: The Software
- iPodSerial https://github.com/finsprings/arduinaap
- GLCD http://code.google.com/p/glcd-arduino/downloads/list
For how these are used I’ll refer you to the documentation that comes with each.
The code that actually runs the iPod Information Screen is attached below. I’m using the Advanced Remote as defined by the iPodSerial library. It handles translating user input from the buttons and putting information up on the screen, while the iPodSerial library handles talking to the iPod. I’m not going to go through the code here, but you can download it and take a look for yourself.
Step 5: Designing the Boards
The circuit boards I made for this project are designed primarily for the to work with the enclosure system I designed. I made three separate boards. A main board that houses the Arduino and the LCD display, a button board that holds just the buttons, and and interface board that contains the resistors for charging and device recognition, etc.
For more detail: iPod Information Screen using Arduino
We recommend EasyEDA for electronic circuit design.
From Schematic Drawing to PCB Production, Just Need One Tool
Cheap PCB Prototype: 10 pcs 2 layers only $10, quick delivery, 100% E-test
This Post / Project can also be found using search terms:
- use ipod for aurduino