Arduino & ESP32 programming with Android
Seamless Arduino & ESP32 Code Uploads via Arduinodroid Android app
Table of Content:
1. Prerequisites
2. Installation & Setup
3. Process
4. Summary
1. Prerequisites:
Before diving into the exciting process of uploading code to your ESP32 / Arduino using your Android phone, ensure you have the following:
- Microcontroller board : Make sure you have board name with model (ESP32,Arduino Uno, Arduino nano etc…)
- USB cable : You need a cable to connect the phone with the board
2. Installation & Setup:
Setting up your environment is crucial for a smooth code upload. Follow these steps:
A. Install ArduinoDroid App: As it is not available on the playstore, it can be installed from the browser by searching Arduinodroid
B.Configure ArduinoDroid: Open arduinodroid app > Settings > Board type > Select board accordingly
- Here I’m using ESP32 wroome Settings > Board type > ESP32 > ESP32 Dev Module select and ok
3.Process:
- Open or type your code.
(I’ll go with the internal led blink test code.)
#define ONBOARD_LED 2
void setup() {
pinMode(ONBOARD_LED,OUTPUT);
}
void loop() {
delay(1000);
digitalWrite(ONBOARD_LED,HIGH);
delay(100);
digitalWrite(ONBOARD_LED,LOW);
}
- Now save and compile code, then make sure the code is compiled without error.
- Now, connect your phone with your microcontroller and upload code.
- After code upload completion, verify that you see the onboard LED blinking on and off (on my board. The LED is blue)
4. Summary:
Uploading code to your ESP32 / Arduino with your Android phone is a convenient and efficient way to develop IoT projects on the go. With the ArduinoDroid app, the process becomes streamlined, allowing you to code, compile, and upload directly from your mobile device.
In conclusion, this guide has covered the prerequisites, setup, and step-by-step process for uploading code to your ESP32 / Arduino using an Android phone. Embrace the flexibility and mobility this method offers for your next ESP32 / Arduino project.
Happy coding!