Home > Projects > Phone Projects > Interfacing Any Arduino With a Cellphone

Interfacing Any Arduino With a Cellphone

Summary of Interfacing Any Arduino With a Cellphone


This article explains how to program and monitor Arduino boards using an Android device without a computer. By utilizing an OTG cable and specific mobile applications like ArduinoDroid, users can compile, upload sketches, and view serial data directly from their phones or tablets. The guide details the necessary hardware connections for both standard boards and Pro Mini variants, provides app installation instructions, and offers troubleshooting tips for common hardware and software compatibility issues.

Parts used in Interfacing Any Arduino With a Cellphone:

  • Android cellphone or tablet
  • OTG cable compatible with the cellphone
  • Arduino Board
  • Arduino Board data cable or programmer
  • ArduinoDroid app or another Serial Terminal/Monitor software
  • Female-female jumper cables (for Pro Mini boards)
  • 5 or 6 pin USB programmer (for Pro Mini boards)

When using an Arduino, it may result quite annoying to not be able to use it just because you do not have a computer available. Maybe the Windows or Mac OS isn’t compatible, you don’t have any computer at all or you just want more freedom for interfacing your board. The solution: a simple OTG (On The Go) cable and an app capable of this task. The most known one is ArduinoDroid, which is apparently available for Android. This software gives you the ability to make, modify, compile and upload Arduino sketches to your board from your mobile phone and even tablets. It also acts as a Serial Monitor, but sadly it doesn’t include a Plotter yet. Have in mind that your operative system version has to be compatible.

Besides this IDE, there are also serial monitor apps which can receive and send info to the boards but cannot upload anything. These occupy less memory that ArduinoDroid, since the latter includes, naturally, a lot of libraries and examples. Now that the basic introduction is over, let’s start with the Materials and Steps.

Step 1: Materials

The materials needed for this project are surprisingly few. Of course, you will need:

  • Android cellphone (or even tablet);
  • OTG cable compatible with your cellphone;
  • Arduino Board;
  • Arduino Board data cable or programmer;
  • Lastly, the ArduinoDroid app or another Serial Terminal/Monitor software.

Now that we are done with this, let´s pass on to connecting everything.

Step 2: Connections

  1. Arduino to Cable or Programmer:

If your Arduino is not a Pro Mini, you will just have to grab the corresponding USB data cable and plug it in.

If, on the other hand, your board is a Pro Mini, grab the 5 or 6 pin USB programmer and connect, using female-female jumper cables, (programmer pin first, Arduino pin later) the 5v or 3.3v to Vcc on the board, the Gnd to Gnd,the Rxd to the Txo, and the Txd to the Rxi (when uploading, remember to press the Reset button on the board after the sketch has finished compiling and is starting to upload).

2. Cable/Programmer to OTG:

Simply connect the male USB A to the female one on the OTG cable.

3. OTG to cellphone or tablet:

Connect the USB Micro, C or Lightning connector to the phone or tablet’s port.

Step 3: The ArduinoDroid App

  1. Search ArduinoDroid on Google Play, Play Store, App Store, or whichever one you have.
  2. Install it and open it.
  3. Look at the images above and read the commentaries.
  4. Since it is a quite complex app, I suggest you should explore all the options. I included some of the functions and how to achieve them in the commentaries.
  5. If you’d like an interesting project to make with Arduino, see this Instructable.

Step 4: Other Serial Monitor Apps (Just to Receive and Send Info to and From the Board)

  1. Enter your app store app (huh!) and search for a Serial Monitor App for Arduino. Make sure they rely on USB connection and not on Bluetooth. I really like one called USB Serial Console. Check in the images above to make sure which one it is.
  2. Proceed to install it and open it.
  3. The interface is relatively basic. You have a section for writing messages using the keyboard and then a button to send them to the board, most of the screen shows the info received from your Arduino, and then you have three dots on the top right which give access to the menu.
  4. If you click the three dots, there will appear a small menu at the top right with different options such as settings, connect, etc. Click “Settings” to choose important things regarding the Serial Port, the Connection, the License, etc. Baud Rate can be set by clicking “Serial Port” and then proceeding to adjust it.
  5. After connecting the Arduino and OTG cable to the phone/tablet, click the three dots and then “Connect”. Choose the correct settings and you should start receiving your info. You can decide if the app stamps the time on every line in the Settings section.
  6. You are finally done! Enjoy the new versatility using your Arduino with your phone or tablet gives you!

Step 5: Troubleshooting

  1. To say the truth, there aren’t many possible complications in this project. I will start from hardware problems to those regarding software.
  2. First of all, your Arduino may not be connected properly to the data cable or programmer. Make sure they are and then proceed to the next.
  3. Make sure the data cable/ programmer is connected correctly to the OTG cable. If it still doesn’t work, go to the next step.
  4. Check if the connection between the OTG cable and the cellphone works correctly. It once happened to me that the OTG contacts were a little old and dirty, so the board would power on but no info would be sent. I used a small screw driver to clean it and it worked perfectly afterwards.
  5. If all hardware is properly set up (and the board actually works), but still it doesn’t work, check if the Android version is compatible with the app. I do not possess an Apple device, so I cannot tell you if it works with all of these phones.
  6. Second, make sure you “told” the app to connect the programmer or board. Usually, when you plug the OTG cable in, a message should appear suggesting you to connect it.
  7. Last of all, make sure the baud rate (for serial monitor) is the same as the one specified in the sketch.

Step 6: The End

Thank you very much for having read this Instructable! Hope it turned out to be useful! If there is anything I haven’t left clear, don’t hesitate in consulting me!

Source: Interfacing Any Arduino With a Cellphone

Quick Solutions to Questions related to Interfacing Any Arduino With a Cellphone:

  • How do I connect an Arduino Pro Mini to the OTG setup?
    You must use a 5 or 6 pin USB programmer connected via female-female jumper cables to link Vcc, Gnd, Rxd, and Txd pins.
  • Can I upload sketches using just a serial monitor app?
    No, apps that act only as serial monitors cannot upload anything; you need software like ArduinoDroid for uploading.
  • What should I do if the OTG contacts are dirty and not working?
    Clean the OTG contacts with a small screw driver to ensure proper connection and data transmission.
  • Does the ArduinoDroid app include a Plotter feature?
    No, the article states that while it acts as a Serial Monitor, it sadly does not include a Plotter yet.
  • Which type of serial monitor app should I avoid?
    You should avoid apps that rely on Bluetooth and instead choose ones that rely on USB connection.
  • Why might my board power on but send no info?
    This could be caused by old or dirty OTG contacts preventing data transfer even if power is supplied.
  • What setting must match between the app and the sketch for serial communication?
    The baud rate set in the app settings must be the same as the one specified in the sketch.
  • Is there a specific button action required when uploading to a Pro Mini?
    Yes, you must press the Reset button on the board after the sketch has finished compiling and is starting to upload.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top