Go Down

Topic: How to use Arduino uno comunication to iPad ? (Read 2747 times) previous topic - next topic

I want know how to use Arduino uno comunication to iPad ?

use Arduino uno TX/RX control  iPad's music's play & pause and charging

who can help me

WizenedEE

I believe the only way to do this without jailbreaking is to buy Apple's $80 cable made for communicating over serial.

dxw00d

#2
Dec 20, 2011, 10:29 am Last Edit: Dec 20, 2011, 10:36 am by dxw00d Reason: 1
You'll need something like this... http://blog.makezine.com/archive/2011/07/59-cable-lets-you-connect-iphone-to-arduino-no-jailbreaking.html or this http://www.sparkfun.com/products/8295

The sparkfun one is much cheaper.

#3
Dec 26, 2011, 01:31 pm Last Edit: Dec 26, 2011, 03:10 pm by 928885086 Reason: 1
I want do ipad controller, but there have have somtehing wrong

after i saw   http://www.instructables.com/id/Simple-Ipod-Controller/

and i use ipod touch to test , there have have somtehing wrong .
when i connect podbreakout my ipod touch, it doesn't have sound
after took off it have sound normally.

and i want to  ask   how to use podbreakout charging iPad? not charging all the time.
I want use button to turn on/off charging iPad. who can help me?

here is my new connect

red circle is 500 ohm

dxw00d

Quote
i use ipod touch to test , there have have somtehing wrong .


What is wrong?

Quote
how to use podbreakout charging iPad?


I'm not sure that an Arduino can supply enough current to charge an iPad, and the circuit shown on the instructables page don't include the usb power connection.

dxw00d

I'm not an expert on this, but it's probably normal that adding an accessory to the dock connector cuts off sound.

i didn't adding an accessory

what your ''adding an accessory'' means???

dxw00d

By 'adding an accessory', I mean plugging the dock connector in with connections to pin 23. This circuit also grounds pin 11, which is documented as...

Quote
If connected to GND the iPhone sends audio signals through pin 3-4, otherwise it uses onboard speaker.

i took off pin11 but it still no sound =( =( =( =( =(,  and pin 27 and 23  are provide charge

Nick Gammon


I want do ipad controller, but there have have somtehing wrong

after i saw   http://www.instructables.com/id/Simple-Ipod-Controller/


Which 0928885086 has now cross-posted to here.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

this is my new code

but my ipod touch doesn't have sound



//code that controls basic (play/pause, next, previous, volume up, and volume down) functions of ipod
//rosie daniel

int hits = 0;

int buttonStates[]={0,0,LOW,LOW,LOW,LOW,LOW};
int buttonPrevious[]={0,0,LOW,LOW,LOW,LOW,LOW};
int buttonRelease[] = {0xFF, 0x55, 0x03, 0x02, 0x00, 0x00,0xFB};

int commands[]={0,0,0x01,0x08,0x10,0x02,0x04};

int checkSum(int len, int mode, int command1, int command2, int parameter) {
int checksum = 0x100 - ((len + mode + command1 + command2+ parameter) & 0xFF);
return checksum;
}

void setup() {
Serial.begin(19200);
pinMode(2, INPUT);
pinMode(3, INPUT);
pinMode(4, INPUT);
pinMode(5, INPUT);
pinMode(6, INPUT);
}

void loop() {

for (int c=2; c<7; c++)
{
buttonStates[c] = digitalRead(c);


buttonStates[c] = digitalRead(c);

if (buttonStates[c] != buttonPrevious[c] ) {
delay(5); //helps avoid a 'double' press - check a second time to see if the button is still pressed after a delay
buttonStates[c] = digitalRead(c);
if (buttonStates[c] == HIGH) {
sendCommand(commands[c]);
//Serial.print(hits);
hits++;
}
buttonPrevious[c] = buttonStates[c];
}

}

}

void sendCommand(int cmd) {
int cs = checkSum(0x03, 0x02, 0x00, cmd, 0);
Serial.println(cs,HEX);



int bytes[] = {0xFF, 0x55, 0x03, 0x02, 0x00, cmd, cs};
for (int i = 0; i < 8; i++) {
Serial.print(bytes, BYTE);

}

for (int i = 0; i < 8; i++) {
Serial.print(buttonRelease,BYTE);
}

}


Nick Gammon

Can you edit your earlier post, select the code, and hit the "#" button above the input box to enclose it in code tags, please?

Quote
and i want to  ask   how to use podbreakout charging iPad? not charging all the time.
I want use button to turn on/off charging iPad. who can help me?


...


who can help me ><??


Help you do what exactly? I don't understand the question, and personally wouldn't be connecting up a circuit to my $600 iPad unless I was certain I knew what I was doing.

What do you really want to do? Charge the iPod? Listen to music? You don't need to connect up an Arduino to do either of those things.

For one thing, the iPad charger is 10W (that is, 2 amps at 5V). You won't get that out of the Arduino.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

AWOL

@ OP. I've just deleted two identical posts of yours on the same topic, and merged another two into this one, fortuitously losing the superfluous polls from each.
Please don't post any separate threads or polls on this subject - if you didn't get a response the first time, maybe that's a hint.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

dxw00d

The code posted is from http://www.rosiedaniel.com/2007/09/ipod-arduino-love.html, but I can't see what hardware is being used. Certainly, at some point, Rosie hacked one of the headphone socket remote controllers, so this code could relate to that. You'd probably be best looking in more depth at her site, and asking your questions there.

Go Up