How to Program Arduino with an Android device

Published  June 4, 2018   3
Program your Arduino with an Android device

We have built many Arduino Projects and all the time we have used official Arduino IDE to program the Arduino. But do you know that we can also program the Arduino using your Smart phone. Sometimes we don’t have any PC or laptop to program our Arduino boards. We can still program it using our Android mobile, Thanks to OTG (On the Go) adaptor.

You might have used OTG adaptor for connecting Pendrives and game controllers, and give power to small devices. You can do much more things other than powering up your Arduino board with Smart Phone. In this tutorial, we will compile and upload Arduino code using Android Application called “ArduinoDroid” which is completely same as Arduino IDE.

 

Materials Required:

  1. Arduino Board
  2. OTG  cable
  3. Arduino USB cable
  4. Android Device

 

Let’s start with Installing the ArduinoDroid App:

Step 1: Download the App from the link given below or simply go to play store and search for ArduinoDroid and install it.

https://play.google.com/store/apps/details?id=name.antonsmirnov.android.arduinodroid2

Download ArduinoDroid from playstore

 

Step 2: Open the app after installing. It will look like as given below:

ArduinoDroid android app window

In this window you can write your own code or simply get example codes from menu (shown by three dots on upper right corner).

 

Step 3: You will find Sketch option in Dropdown menu as shown below. In sketch menu, there is Examples option, click on it.

First select sketch option   Select example

In this menu you will find some examples as in Arduino IDE. Choose the example code you want to burn inside Arduino. Here, we will upload Blink program.

 

Step 4: Connect your Arduino board with Android device using USB cable and OTG.

 

Step 5: Choose your board from Setting > Board Type.

In Arduino IDE, if we click on upload button, our program is compiled first and then uploaded. But here we have to compile first by clicking Compile button as shown below.

Compile code

You can see status of compilation in Output window.

 

Step 6: Once your compilation is completed, click on Upload button as shown below.

Upload code

 

Your program is successfully uploaded as you can see in output window. As soon as its get uploaded you will see on board LED will start blinking. You can check the complete procedure in the Video given below.

Also remember that you don’t need to provide any external power to your Arduino board as it will draw power from your Android Smart Phone using OTG cable.

Have any question realated to this Article?

Ask Our Community Members

Submitted by Jesus Andino on Mon, 08/20/2018 - 18:08

Permalink

I will like to enter into the field of electronics DIY and I find out that this page contributes a lot to that purpose.