How to use Android Phone to program Arduino

How to use Android Phone to write codes and upload in Arduino?

This entry is part 2 of 9 in the series Arduino Tips & Tricks

Discover the power of Arduino Uno and how it can be programmed using the ArduinoDroid app on an Android phone. Unleash your creativity with this versatile microcontroller board…! Learn how to use Android Phone to program Arduino in simple steps!

The ArduinoDroid is an app for Android devices that allows users to write, compile and upload Arduino sketches directly from their mobile devices.

Please note that the features and details of apps can change over time with updates, so it’s advisable to check the official sources for the most current information. As of my last update, here are some of the features that ArduinoDroid typically offered:

  1. IDE Environment: ArduinoDroid provides an integrated development environment (IDE) where users can write and edit Arduino sketches using the Arduino programming language.
  2. Code Highlighting: The app supports syntax highlighting, making it easier for users to identify and understand different parts of their code.
  3. Code Autocompletion: Autocompletion features help users by suggesting and completing code snippets, which can improve coding efficiency.
  4. Compiler: ArduinoDroid includes a built-in compiler, allowing users to compile their sketches directly on their Android device.
  5. Upload to Arduino Board: Once the code is written and compiled, users can upload their sketches directly to Arduino boards via USB or Bluetooth, depending on the board’s capabilities.
  6. Multiple Board Support: The app typically supports various Arduino boards, allowing users to choose the specific board they are working with.
  7. Libraries Support: ArduinoDroid usually supports the inclusion of Arduino libraries in projects, enabling users to easily incorporate additional functionality into their sketches.
  8. Example Sketches: The app may come with a collection of example sketches to help users understand the basics and get started with their projects.
  9. Offline Mode: ArduinoDroid may offer an offline mode, allowing users to work on their projects without requiring an internet connection.

Remember that app features and updates can change over time, so it’s advisable to check the official app store listing or the developer’s website for the most up-to-date information on ArduinoDroid’s features.

The primary focus of ArduinoDroid was on providing a mobile IDE for writing, compiling, and uploading Arduino sketches. Serial monitoring and plotting functionalities were typically not included in the app.

However, app features and updates can change over time, so it’s essential to check the most recent information from official sources, such as the app’s listing on the Google Play Store or the developer’s website. If there have been updates or new versions released since my last knowledge update, the inclusion of serial monitor or plotter features might have been introduced.

For developers the ArduinoDroid app author has provided the necessary code to design your own app for serial monitor and serial plotter. You can check it on the official website of the app on this link.

Installation of ArduinoDroid on Android Phone

  1. First check the compatibility of your Android phone. For that open Google Play Store on your Android phone and type “ArduinoDroid” in search field.
  2. If it show “Install” button on right side then your phone is compatible with ArduinoDroid App.
  3. Click install and wait for some time.
  4. Once the app is installed click on “Open” button on right side.
  5. The app will open on your Android phone.

How to write & upload code?

Before starting the use of ArduinoDroid app, first observe the labelled diagram to understand the functions of the app. It is very similar to the Arduino IDE except it does not have serial monitor or serial plotter.

Labelled diagram of the ArduinoDroid App
Labelled diagram of the ArduinoDroid App
  1. Type a simple program of Blinking Built-in LED of Arduino UNO or copy paste the following program into ArduinoDroid App.
 int LED = 13;
 void setup()
 {
   pinMode(LED,OUTPUT);
 }
 void loop()
 {
   digitalWrite(LED,HIGH);
   delay(100);
   digitalWrite(LED,LOW);
   delay(100);
 }
  1. Now Save the code in ArduinoDroid app and then click compile button.
  2. Remember you must first compile the code and then upload it in Arduino UNO. This is not like direct uploading, we do in Arduino IDE. So first compile the code and then upload.
  3. Now before uploading connect the Arduino UNO with its data cable through “C” to “USB” OTG plug, if the Android phone has C-type charging socket to your Android phone. However, if your Android phone has micro-USB charging socket, then use micro-USB to USB OTG plug, as shown in following pictures.
C-type to USB OTG Plug
C-type to USB OTG Plug
micro-USB type to USB OTG Plug
micro-USB type to USB OTG Plug
  1. Once you have connected the Arduino UNO with proper OTG plug, upload the code from ArduinoDroid to Arduino.
  2. Now you will see that the built-in LED, connected at pin-13, will start blinking at 10 times/sec.
Share on your network!
Prof. Dattaraj Vidyasagar
Prof. Dattaraj Vidyasagar

Author on this website. He is veteran of Core Electronics since last 36+ years. ATL Mentor of Change, Niti Ayog, Govt. of India, Google Certified Educator, International Robotics Trainer and author of 18 books on electronics, robotics, programming languages and web designing... ➤➤

0 0 votes
Article Rating
Subscribe
Notify of
guest

6 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Chitra Vidyasagar
Chitra Vidyasagar
10 months ago

Great post.
It will be very helpful to the students who don’t have the access of PC or laptop.
Thanks for sharing

VSA
Admin
VSA
10 months ago

Thanks for the comment.
Yes, it will surely help the needy students, who don’t have the PC or laptop.

Hemant Yashwant Satpute
10 months ago

Waw….Sirji….You created the excitement…. Innovation for research so easy for the students through these posts, that though I am a faculty, I want to be a student and researcher again….Really very much eager to start the journey ….. THANKS FROM BOTTOM OF MY HEART…. WELL DONE….KEEP IT UP GROWING ALWAYS

VSA
Admin
VSA
10 months ago

Thank you Prof. Hemant Satpute Sir!
Its an honour for us that you visited our website and wrote the comment.
Vidyasagar Academy is committed to provide quality study material for students.
Kindly keep visiting and guide us for enriching the content of our website.
Your suggestions are most valuable to us…!
Please share our category posts on Arduino among your students.
Thanks again and again.

Sameena
Sameena
10 months ago

Very useful post.
Thank you so much for sharing.
It helped me a lot.

VSA
Admin
VSA
10 months ago
Reply to  Sameena

Thanks!
We are pleased to know that our posts are helpful!

6
0
Would love your thoughts, please comment.x
()
x