How to program an Arduino board using a smartphone | Step by step

Hello, welcome back. In this tutorial, we will learn how to program Arduino boards using the Arduino droid application. This tutorial is important for those who do not have a computer to upload Arduino programs. We can use a mobile phone or a tab for this. Also, a USB OTG adapter is required to connect the USB cable to the mobile phone. We all know what is an OTG adapter. The long name is USB On The Go. We can use the OTG adapters to connect USB devices such as Pen drivers, Chip readers, Keyboard, Mouse externally to the smartphone or tablet. So, we can easily connect the Arduino board to the smartphone or tablet using an OTG adapter. Below you can see the different types of OTG adapters that we can buy in the market.

How to program an Arduino board using a smartphone

What is the Arduino droid app?

This is a free downloadable app designed for Arduino programming. Through this, we can program any Arduino board. We can also easily download this app from the play store or App store. For that, use the pictures below.

How to program an Arduino board using a smartphone
How to program an Arduino board using a smartphone

Now, run the Arduino droid app. When you run this Arduinodroid app for the first time, you can see an introduction about this app. Read these step by step and go ahead. Then we can see the interface of the Arduinodroid app.

How to program an Arduino board using a smartphone
How to program an Arduino board using a smartphone
How to program an Arduino board using a smartphone

OK, now we will learn how to use this Arduinodroid app using two examples. For that, the required components are given below.

Disclosure: These Amazon links are Affiliate links. As an Amazon Associate, I earn from qualifying purchases.

We will first talk about how to blink an LED bulb step by step.

Step 1

Firstly, identify these components.

Arduino UNO board

LED bulb

180-ohm resistor

OTG cable

Breadboard

Jumper wires

Step 2

Secondly, connect these components. To do this, use the circuit diagram below.

How to program an Arduino board using a smartphone

Step 3

Thirdly, connect the Arduino board to the mobile phone using the USB cable and the OTG adapter. Then, open the Arduinodroid app. After, open the LED blink example. Otherwise, you can type this code in the interface. But, I use the example code.


  • The complete program of this project – Download
void setup(){
pinMode(13,OUTPUT);
}

void loop(){
digitalWrite(13,HIGH);
delay(1000);
digitalWrite(13,LOW);
delay(1000);
}

Step 4

Now, save and compile this program. If there is an error in the code it will not be compiled.

Step 5

Then, select the Arduino board.

Step 6

Lastly, upload this code and enjoy this project.


OK, now we will learn how to control a servo motor as the second example.

Step 1

Firstly, identify these components.

Arduino UNO board

Servo motor

OTG adapter

Jumper wires

Step  2

Secondly, connect these components. To do this, use the circuit diagram below.

How to program an Arduino board using a smartphone

Step 3

OK, now reconnect the Arduino board to the mobile phone. After, run the Arduinodroid app. Then, let’s include the servo motor library. You know that the Servo library is included in the Arduino IDE. This library is also included in the ArduinoDroid app. So we do not need to include it separately. Also, we can see the libraries in this Arduinodroid app as follows. We can download the required library here.

Step 4

If you want to add a separate library to the app, click the Add.zip library button and upload the required library file.

Step 5

OK, now let’s creates the program. It is as follows.

#include<Servo.h>
Servo servo;

void setup(){
duino.attach(3);
}

void loop(){
servo.write(0);
delay(1000);
servo.write (180);
delay(1000);
}

Enter this code in the Arduinodroid app interface.

Step 6

Then, save and compile this code. Afterward, upload this code to the Arduino board.

How to program an Arduino board using a smartphone
How to program an Arduino board using a smartphone
How to program an Arduino board using a smartphone

OK, enjoy this tutorial. The full video guide is given below. So, we will meet in the next tutorial.

How to program an Arduino board using a smartphone | Step by step

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *