I have a board on which a microcontroller reads the output from a sensor. I am thinking of connecting it to an iPhone so that the iPhone can read data from it. The board should also be powered by iPhone/iPad. If it were in Android, I would look for the docs related to USB On-The-Go. But I am not sure what I should do with iOS devices. Can anyone give some hints? Thanks!

Update: I just find one needs to participate Apple's MFi program to develop accessories for Apple devices. So it may or may not be something for hobbyists. But apart from that, I am still eager to know the technical solution to my question.

  • \$\begingroup\$ the solution is use an android phone, or pay apple many $$$ and become an official apple partner. you can always make your micro the usb host, hope that the iwhatever can act like a mass storage (unlikely) and write to a file via the micro, while the app on the phone would read that same file. that would be a mess, but that might work. \$\endgroup\$ – Vladimir Cravero Aug 4 '14 at 20:13
  • \$\begingroup\$ What kind of data rate? Can you use BLE? Or an audio modem? \$\endgroup\$ – Chris Stratton Aug 4 '14 at 20:29
  • \$\begingroup\$ @ChrisStratton Data rate is low, can be less than 20 or even 10 bytes per second. BLE is another possibility. But the idea is the board is to be powered by the smartphone so that no onboard battery is needed. BLE doesn't consume lots of energy, but the sensor can drain a coin cell battery much faster than BLE. \$\endgroup\$ – shva Aug 4 '14 at 20:34
  • 1
    \$\begingroup\$ @shva - must it be an iPhone? I agree with Vladimir Cravero, use Android. Also there are many more android phones about. For the last couple of years, they are spec'd to support USB-on-the-go, and so should be able to supply some current. Otherwise, pay up for Apple's MFi program. I did spot someone offering to make a kit to interface an iPhone to electronics about a year ago, but I haven't seen if that got off the ground, and I wouldn't be too surprised if it didn't. But a search engine might help. \$\endgroup\$ – gbulmer Aug 4 '14 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.