How to deploy arduino ide code to Android app? -


i want make arduino uno pin 13 high when user clicks on button. have used arduino blink template .program runs fine computer. want program work on android phones too. there way this?
in advance

it not possible way. can't run arduino code on android, can code android app communicate arduino through usb or bluetooth. need arduino shield, or usb otg cable , usb ttl converter.

in app use usb, here basic example have do:

  1. download serial usb library, use one: http://felhr85.net/2014/11/11/usbserial-a-serial-port-driver-library-for-android-v2-0/

  2. you need android device supports usb otg , usb otg cable.

  3. connect usb ttl converter using usb otg android

  4. connect usb ttl converter arduinos serial port(must hardware serial , must connect gnds).

  5. run app , send data.

  6. receive data on arduino , action

edit:// easier arduino shield designed communicate android, didn't use such shield, because needed qucik , cheap solution.


Comments