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.Arduino iPod Information Screen




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

Since I’m using an Arduino the circuit is simplified as all the components to make the microcontroller run are on the Arduino board. The remaining connections are just attaching wires and resistors. The pinouts of the iPod connector is, of course, very important to know and can be found here: http://pinouts.ru/PortableDevices/ipod.shtml.

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.

Main
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.

Interface
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.

Arduino iPod Information Screen Schematic

Other
All other connections are just straight connections. See the schematic and pinouts.

Step 4: The Software

You will need the following libraries to successfully compile the attached code:

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.

 

Major Components in Project

The Parts

These are the major components I used to make the device:

  • Arduino (I prototyped with an UNO, but used a Pro Mini for the final product)
  • PodBreakout
  • Push Buttons (4x)
  • Graphical LCD (I used the MONOCHRON from Adafruit)
  • 10k Potentiometer (for contrast)
  • USB Mini Connector
  • 3.5mm Audio Jack
  • 100 Ohm Resistor
  • 1k Ohm Resistor (3x)
  • 1M Ohm Resistor (2x)
  • 33k Ohm Resistor (2x)
  • 22k Ohm Resistor
  • 47k Ohm Resistor

For actually putting it all together, you’ll need:

  • Male and Female Headers
  • Wire
  • Standoffs
  • Enclosures
  • Copper Clad Board (If you choose to etch your own boards)

For more detail: iPod Information Screen using Arduino




This Post / Project can also be found using search terms:

  • use ipod for aurduino
Clip to Evernote

Leave a Comment

(Spamcheck Enabled)

Read previous post:
Arduino + Android Projects for the Evil Genius Control Arduino with Your Smartphone or Tablet by Simon Monk
Arduino + Android Projects for the Evil Genius: Control Arduino with Your Smartphone or Tablet by Simon Monk E-Book

Introduction Reveals how to create Arduino devices and control them with Android smartphones and tablets Features several home automation devices...

Close
Scroll to top