Go Down

Topic: Arduino to iPod (Read 3901 times) previous topic - next topic

JihoonK

Hello. I am trying to extract the metadata aka the song title/artist/genre from the ipod on to the arduino and to the lcd. I have ordered and constructed pod breakout mini and contructed a cable, but am unsure of how to proceed from here. Help!

PaulS

Quote
I have ordered and constructed pod breakout mini

Which one?

Quote
but am unsure of how to proceed from here.

First thing you need is an application on the iPod to push the data. Do you have that? What data does it push? To where?

dxw00d

#2
Jul 24, 2012, 03:00 pm Last Edit: Jul 24, 2012, 03:23 pm by dxw00d Reason: 1
Not sure why this is posted in this forum, but you might find this useful - https://courses.cit.cornell.edu/ee476/FinalProjects/s2007/awr8_asl45/awr8_asl45/index.html

PaulS

Quote
Not sure why this is posted in the forum, but you might find this useful - https://courses.cit.cornell.edu/ee476/FinalProjects/s2007/awr8_asl45/awr8_asl45/index.html

Bookmarked! Thanks.

JihoonK

I do have the Cornell Website, but from what I understand, they heavily use the ATMEGA32-16 based on the code library they upload, before the standard. I would need the code to be for the Arduino. And how can I get a software to push the metadata out? I have a iPod nano 4th generation, and am unsure how to load a software on there. It seem sthat I cannot just connect the tx/rx of the ipod to the tx/rx of the Arduino. Suggestions?

dxw00d

You shouldn't need to load additional software on the iPod. If there is a song playing, and you send the correct query in, it should return the track data. That's how docks get the data.

JihoonK

How can i send this query? Also does this involve the serial? ONe more thing. I know the iPod is 3.3v difference and the arduino is 5v. solutions?

dxw00d

Yes, it involves 'the serial'.

https://www.google.co.uk/search?q=arduino+ipod+breakout

First two links:

http://scuola.arduino.cc/en/content/arduino-comunication-iphone-using-podbreakout-v15
http://www.instructables.com/id/Arduino-iPod/

JihoonK

so im slightly confused. This is the code ive written just basically to test:

int incomingByte;

void setup() {
  Serial.begin(9600);
}

void loop(){
    delay(500);
    if (Serial.available() > 0){
      incomingByte = Serial.read();
      Serial.print(incomingByte);
    }
    else{
      Serial.print(1);
    }

}

And the serial monitor is just giving me 1s... whats going on?

PaulS

Quote
And the serial monitor is just giving me 1s... whats going on?

You appear not to have told the iPod to send you anything.

JihoonK

well this is the new code:

void setup()
{
Serial.begin(19200);//sets serial com
}
void loop()
{
   int dock = digitalRead(0);
   delay(1000);
   Serial.println(dock);
}


Same problem. Im getting ones. How do I ask the iPod for data?

dxw00d

Does your breakout have the correct resistance on pin 21 to tell the iPod to use Serial Port mode?

Have you looked at the Cornell code? It can't be used as-is, but you should be able to work from it.

JihoonK

How can i connect a resistor to pin 21? and is it 6.8 k? - Serial port mode?

Also, how can i use the cornell code?

JihoonK

would you be able to post your phone number or skype address? im getting a bit desperate

dxw00d

Quote
would you be able to post your phone number or skype address?

Sorry, no.

All I'm doing is reading the same documentation that I have provided links to.

Go Up