By Connecting Arduino with Android, We Can Upload Code to Arduino, Use the Smartphone as Display, Controller or Use Various sensors. Here is How We Will Be Connecting Arduino with Android Smartphone. In our previously published article, we discussed about USB OTG (On-The-Go), using keyboard, mouse with smartphone using OTG. Basically Arduino is like those keyboard, mouse like electronic devices with an USB port. Previous articles are possibly useful to who are not used with some theories of electronics. We used photo from askix.com
to illustrate.
We guess, you wanted to upload code to Arduino from Android. First here is short way, in later sub-header there is long answer. First install Bluino Loader like Android application. Then the easiest way even for a n00b is to connect Arduino with smartphone using ready to use OTG connector. Then simply upload code via that mobile application. You can upload Blink program to test :
1 2 3 4 5 6 7 8 9 | void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); delay(1000); digitalWrite(LED_BUILTIN, LOW); delay(1000); } |
There is reference of the constant LED_BUILTIN
for different Arduino boards (it was just easy pin number 13 in early days of Arduino UNO) :
---
1 | https://www.arduino.cc/en/Tutorial/Blink |
Connecting Arduino with Android Smartphone
Now the long answer. Sadly, till at the time of publication there is no official Arduino Android IDE application. These are Arduino Android IDE applications which we tested :
- ArduinoDroid
- Bluino Loader
- APDE – Android Processing IDE
ArduinoDroid, APDE looks great but we saw that lightweight Bluino Loader does the job of uploading code to Arduino UNO. You can search Google Play store with the keyword “Arduino” :
1 | https://play.google.com/store/search?q=Arduino&c=apps |
There will be lot of innovative applications other than mere uploading code to Arduino. Those who know history of Arduino, they know about Wiring and Processing :
1 | https://arduinohistory.github.io/ |
Processing has Android application which is far better for electronics IoT development than just Arduino :
1 | http://android.processing.org/ |
There is other way for development :
1 | http://www.android-ide.com/ |
That APDE has source code on GitHub :
1 | https://github.com/Calsign/APDE |
Using Processing for Arduino is too big topic :
1 | https://makezine.com/2018/03/23/tips-of-the-week-26/ |