Using iPhone Serial Connection (pins 12 and 13)

Ok, so I have never done anything with serial connections before. But...

I just got an Arduino, which I'm trying to use to remotely launch model rockets. I have a 5 volt relay that I can control with an Arduino digital output.

Now I want to connect my iPhone Tx to the Arduino Rx and vice versa. I would buy a spark plug from the iPhone, so I could connect it to an Arduino. (http://www.sparkfun.com/products/10645) I thought something like: when the phone receives text or a call from a specific number or maybe even a Bluetooth signal, it would say Arduino. But these are just ideas.

How can I send a signal from my iPhone? Are there xcode libraries for this? My phone is hacked, so I'm open to other non-apple ways to send signals. But I'm a beginner programmer.

Thanks.

PS I'm new to Stack Overflow, and I would appreciate it if you could help me. The first time I sent a question, someone told me that this is not on the right site. So please bear with me

EDIT # 1: Haha, I just read it and it sounds like a cell phone bomb from a terrorism movie. I swear that is not what I am doing. Just look at my avatar.

EDIT # 2: I also have a bluetooth dongle for Arduino. But to be honest, I have no idea how to interact with this, it was $ 10 from China, so I decided to buy it so that my options open. But despite this, it would be great to connect the iPhone to the Arduino.

+6
source share
3 answers

You can buy Redpark Serial Cable for iOS to connect your iPhone to the Arduino board via RS-232.

This book also seems useful: iOS Sensor Apps with Arduino

EDIT: Redpark Frequently Asked Questions: http://redpark.com/c2db9_FAQs.html

There is an SDK for this serial cable.

You will have trouble writing communication software when trying to connect directly to the dock connector! The external accessory structure will not help you here if your Arduino board does not have a special decoding chip to communicate the dock connector.

Good luck

+5
source

All I need is to use the External Accessory framework . I'm not sure how well this will work for you, the library is designed to communicate with MFI-approved accessories. I would really like to hear how your results are gone, I'm going to conduct my own experiment using a folding board.

+3
source

I am in a similar boat, like you, and I have successfully built my own serial cable using podbreakout and implemented a serial class that supports read / write. I can confirm that I read the work since I checked it with my RFID reader. I am in the process of writing code that will send an Arduino command from the iPhone, and then ask Arduino to complete a task based on this command.

Here is the document I put together in iDevice serial com,

https://docs.google.com/document/d/1Yi9_hcw8XSyYNCG2OJT9oHlTG-dC-Dnuc58VIULa81Q/edit?usp=sharing

and the serial class can be seen in the project I'm working on.

https://github.com/ipatch/KegCop

0
source

Source: https://habr.com/ru/post/918503/


All Articles