The ESP8266-05 is a low-cost Wi-Fi microchip with a full TCP/IP stack and microcontroller capability. It is widely used in Internet of Things (IoT) applications due to its affordability, ease of use, and robust feature set. This component allows devices to connect to Wi-Fi networks, enabling remote control and data acquisition.
Parameter | Value |
---|---|
Operating Voltage | 3.0V - 3.6V |
Operating Current | 80mA (average) |
Power Consumption | 0.9W (max) |
Wi-Fi Standard | 802.11 b/g/n |
Frequency Range | 2.4GHz - 2.5GHz (ISM Band) |
Flash Memory | 1MB |
GPIO Pins | 2 |
UART Baud Rate | 9600 - 115200 (default 9600) |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.0V - 3.6V) |
2 | GND | Ground |
3 | TX | UART Transmit |
4 | RX | UART Receive |
5 | CH_PD | Chip Power-Down (active high) |
6 | RST | Reset (active low) |
#include <SoftwareSerial.h>
// Create a SoftwareSerial object to communicate with the ESP8266
SoftwareSerial esp8266(2, 3); // RX, TX
void setup() {
// Start the hardware serial communication with the computer
Serial.begin(9600);
// Start the software serial communication with the ESP8266
esp8266.begin(9600);
// Send AT command to check if the module is working
esp8266.println("AT");
}
void loop() {
// Check if the ESP8266 has sent any data
if (esp8266.available()) {
// Read the data from the ESP8266 and print it to the Serial Monitor
while (esp8266.available()) {
char c = esp8266.read();
Serial.write(c);
}
}
// Check if the user has sent any data from the Serial Monitor
if (Serial.available()) {
// Read the data from the Serial Monitor and send it to the ESP8266
while (Serial.available()) {
char c = Serial.read();
esp8266.write(c);
}
}
}
ESP8266-05 Not Responding to AT Commands
Wi-Fi Connection Issues
Module Overheating
Q1: Can I use the ESP8266-05 with a 5V microcontroller?
Q2: How do I update the firmware of the ESP8266-05?
Q3: What is the maximum range of the ESP8266-05?
By following this documentation, you should be able to effectively integrate the ESP8266-05 into your projects and troubleshoot common issues. Happy tinkering!