Configuring the ESP-01

Overview:

The ESP8266-01 is one of the module used in this project in order to achieve wireless communication. This module specifically allows microcontrollers to access a Wi-Fi network. However, before it is utilized in the project, we first configure it to verify if communication is established between the module and another device.

Hardware:

  • Arduino Uno x 1

  • Breadboard x 1
  • 
    
  • Jumper Cables
  • 
    
  • ESP-01 x1
  • 
    
    

    Software:

    ESP-01 Wi-Fi Module (ESP8266-01)

    The pin names and the assigned Arduino pin is listed below.

    1
    GND

    2
    GPIO2

    3
    GPIO0

    4
    GPIO3

    5
    GPIO1

    6
    CHIP_EN

    7
    RESET

    8
    VCC

    *Arrangement of the pins is referenced from the above photo

    WI-FI MODULE PIN

    ARDUINO CONNECTION

    GND

    GND

    GPIO2

    Not connected

    GPIO0

    Not connected

    GPIO3 (RX)

    0 (RXD)

    GPIO1 (TX)

    1 (TXD)

    CHIP_EN (CHIP ENABLE)

    3.3 V

    RESET

    Not connected

    VCC

    3.3 V

     

    Set-up the hardware

    Set-up the software

    In order to set up the module, follow these simple steps.

      1. Open the Arduino IDE
      2. Click File --> Basics --> BareMinimum

        The BareMinimum example is used to make sure that no previous programs are running on your Arduino. We want to make sure that the serial communication channel is not being utilized.

      3. Upload the code to the Arduino 

      4. Open the Serial Monitor and type ‘AT’

        If the response is ‘OK’, the module is working

      5. Set the baudrate of the module by typing
     AT+UART_DEF=9600,8,1,9,0 
    Type ‘AT’ again and you’re good to go. The module is ready to test a two way communication between it and another device with its baudrate set.

     

    Conclusion

    Configuring the ESP-01 is very simple. Once the steps on these blogpost are followed you may now go back to the main blogpost and proceed with the second project using the ESP-01.The blogpost for the main project can be found here.

    ArduinoEsp01Wi-fi

    Leave a comment

    All comments are moderated before being published