Getting Started with ESP8266 ESP-01 Wi-Fi Module

We can control our home appliances from any remote place in the world if there is an internet connection, and that too without using a micro controller or Arduino. Here through this article we introduce the latest ESP-01 wireless module which can also monitor temperature and humidity. ESP8266 ESP-01 can connect to the internet through Home or Office Wi-Fi router, though you have no internet connection Wi-Fi signal is enough to control your home automation light switches. You can use wifi repeaters to extend the range.

ESP8266 ESP-01 with holder

Assembled with flash memory chip ESP8266 based embedded wifi modules are available in the market for just 5$, it is best for IOT (Internet of things) applications. We can use it’s GPIO pin to control appliances, number of GPIO pins may vary depending on different models of ESPs. By default it has AT firmware which can be updated simply by ESP flashing tools via USB to TTL converter. Nodemcu firmware helps to program ESP simply.

ESP-01 wifi modules is a serial to wifi converter, so it can be easily interfaced with microcontrollers and arduino projects to make wifi home automation system. It is best suitable for wifi embedded products like home automation wifi devices, wifi lighting control and wifi home automation switch. These are controlled through a web browser or home automation app, iOS home automation apps are available for iPhones.

How to test ESP8266 ESP-01 with AT firmware

  1. Connect USB to TTL converter as shown in the diagram belowesp8266 esp-01 run diagram
  2. It is better to use external 3.3V because USB port may not have sufficient power to drive module.
  3. Download ESPlore from here. Download
  4. To run it you must install JAVA , download Java from here. Download
  5. Extract ESPlorer file and open ESPlorer.jar file.ESPlorer select COM port
  6. Select baud rate 115200 and click open to open COM port.ESPlorer select AT
  7. Select AT section and start testing, you will get reply from module.

Components required

ESP8266 ESP-01 Components

  1. ESP-01
  2. USB to TTL Converter (USB Extension cable if required )
  3. Bread board
  4. Connecting wires

ESP8266 ESP-01 Flashing nodemcu firmware

esp8266 esp-01 flashing diagram

ESP-01 Flashing Connection diagram

ESP8266 ESP-01 Flashing

  1. Download ESP8266 Flasher from here.
    For Windows 32 Download
    For Windows 64 Download
  2. Connect ESP as in the diagram.
  3. Open ESP Flasher and select COM port.ESP8266 Flasher selct COM port
  4. Click on flash, it will read and display AP MAC and STA MAC. If not reconnect your USB to TTL converter and try again, then start flashing.ESP8266 Flasher Flasing

How to Program ESP8266 ESP-01

Programming of ESP8266 is simple, its running with Nodemcu firmware. We can program using ESPlorer software, burn it into ESP8266 by clicking Save to ESP or by the keyboard shortcut Ctrl+S . Let’s see some simple programs.

ESP8266 LED Blinking Program

ESP-01 LED Blink

LED_PIN = 4
gpio.mode(LED_PIN,gpio.OUTPUT)
while 1 do
gpio.write(LED_PIN, gpio.HIGH)
tmr.delay(1000000)
  — wait 1 second
gpio.write(LED_PIN, gpio.LOW)
tmr.delay(1000000)
— wait 1 second
end

ESP8266 GPIO pin map

ESP8266 GPIO MAP

Video Demonstration of ESP8266 ESP-01 LED Blinking

3 thoughts on “Getting Started with ESP8266 ESP-01 Wi-Fi Module

  1. this can also be done by using
    RIX I/O module
    Nexgen PLC
    EWON
    i done an project in this Real time power saving using RIX I/O modul and EWON.

  2. I am interfacing this esp8266-esp-01 module with
    PIC16F887 microcontroller. But the mcu is not
    receiving the data. Tried also by using Level shifter
    circuit.

Leave a Reply

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