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.
- Arduino Board
- OTG cable
- Arduino USB cable
- 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.
Step 2: Open the app after installing. It will look like as given below:
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.
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.
You can see status of compilation in Output window.
Step 6: Once your compilation is completed, click on Upload button as shown below.
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.