Home > News & Updates > Electronics News Updates > ESP8266 controlled with Android app (MIT App Inventor)

ESP8266 controlled with Android app (MIT App Inventor)

Summary of ESP8266 controlled with Android app (MIT App Inventor)


This article outlines building an Android app with MIT App Inventor to control ESP8266 GPIOs. It covers flashing NodeMCU firmware, using ESPlorer IDE, wiring an FTDI programmer for serial communication, and uploading Lua code to enable remote control via smartphone.

Parts used in the ESP8266 Android Control Project:

  • ESP8266
  • FTDI programmer
  • LEDs
  • 220Ω Resistors
  • Breadboard
  • Android Phone

In this project, you’re going to build an Android app using the MIT App Inventor software that allows you to control the ESP8266 GPIOs.

First, watch the video demonstration

To learn more about the ESP8266 use the following tutorials as a reference:

If you like the ESP and you want to do more projects you can download my eBook Home Automation using ESP8266 here.

Let’s get started!

Parts List

Here’s the hardware that you need to complete this project:

You can use the preceding links or go directly to MakerAdvisor.com/tools to find all the parts for your projects at the best price!

Flashing Your ESP with NodeMCU

In this tutorial we are going to use the NodeMCU firmware. You have to flash your ESP with NodeMCU firmare.

Downloading ESPlorer IDE

I recommend using the ESPlorer IDE which is a program created by 4refr0nt to send commands to your ESP8266.

Follow these instructions to download and install ESPlorer IDE:

  1. Click here to download ESPlorer
  2. Unzip that folder
  3. Go to the main folder
  4. Run “ESPlorer.jar” file
  5. Open the ESPlorer IDE

Schematics (3.3V FTDI Programmer)

The schematics for this project are very straight forward. You only need to establish a serial communication between your FTDI programmer and your ESP8266. You can buy one FTDI programmer on eBay.

Wiring:

  • RX -> TX
  • TX -> RX
  • CH_PD -> 3.3V
  • VCC -> 3.3V
  • GND -> GND

Uploading Code

You should see a window similar to the preceding Figure, follow these instructions to upload a Lua file:

  1. Connect your FTDI programmer to your computer
  2. Select your FTDI programmer port
  3. Press Open/Close
  4. Select NodeMCU+MicroPtyhon tab
  5. Create a new file called init.lua
  6. Press Save to ESP

Everything that you need to worry about or change is highlighted in red box.

Read more: ESP8266 controlled with Android app (MIT App Inventor)

Quick Solutions to Questions related to ESP8266 Android Control Project:

  • How do I flash my ESP8266?
    You must flash your ESP with NodeMCU firmware.
  • What software is recommended for sending commands?
    The ESPlorer IDE created by 4refr0nt is recommended.
  • How do I start the ESPlorer IDE program?
    Unzip the folder, go to the main folder, and run the ESPlorer.jar file.
  • How should I wire the FTDI programmer to the ESP8266?
    RX connects to TX, TX connects to RX, CH_PD connects to 3.3V, VCC connects to 3.3V, and GND connects to GND.
  • What steps are required to upload a Lua file?
    Connect the programmer, select the port, press Open/Close, select the NodeMCU+MicroPtyhon tab, create init.lua, and press Save to ESP.
  • Can I use eBay to find parts?
    Yes, you can buy one FTDI programmer on eBay.

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