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
Software:
ESP-01 Wi-Fi Module (ESP8266-01)
The pin names and the assigned Arduino pin is listed below.
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
*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.
- Open the Arduino IDE
-
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.
-
Upload the code to the Arduino
-
Open the Serial Monitor and type ‘AT’
If the response is ‘OK’, the module is working
- Set the baudrate of the module by typing
AT+UART_DEF=9600,8,1,9,0
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.