Pages: [1]   Go Down
Author Topic: How to use Arduino uno comunication to iPad ?  (Read 2550 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Edison Member
*
Karma: 19
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: December 20, 2011, 04:36:19 am by dxw00d » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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


* 螢幕快照 2011-12-26 上午2.18.53.png (139.81 KB, 900x619 - viewed 30 times.)
« Last Edit: December 26, 2011, 09:10:05 am by 0928885086 » Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 i didn't adding an accessory

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

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i took off pin11 but it still no sound smiley-cry smiley-cry smiley-cry smiley-cry smiley-cry,  and pin 27 and 23  are provide charge
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18815
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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);
}

}
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

who can help me ><??
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18815
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 303
Posts: 26354
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ 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.
Logged

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

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: