The ESP8266 ESP-07 WiFi Module is a versatile and cost-effective solution that provides wireless internet connectivity for a wide range of Internet of Things (IoT) applications. Equipped with the powerful ESP8266 microcontroller and integrated WiFi capabilities, this module enables devices to connect to the internet and exchange data wirelessly. Its compact form factor makes the ESP-07 an ideal choice for projects where space is at a premium, such as in smart home devices, wireless sensors, and other connected gadgets.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground |
2 | GPIO13 | General Purpose Input/Output |
3 | GPIO12 | General Purpose Input/Output |
4 | GPIO14 | General Purpose Input/Output |
5 | VCC | Power supply (3.3V) |
6 | RESET | Resets the module |
7 | CH_PD | Chip Power-down, active high |
8 | GPIO16 | General Purpose Input/Output |
9 | GPIO15 | General Purpose Input/Output, boot from SD card when pulled low |
10 | GPIO2 | General Purpose Input/Output, boot from flash memory when pulled high |
11 | GPIO0 | General Purpose Input/Output, low for flashing mode |
12 | RXD | UART Receive Pin |
13 | TXD | UART Transmit Pin |
14 | ADC | Analog to Digital Converter Input |
15 | GPIO4 | General Purpose Input/Output |
16 | GPIO5 | General Purpose Input/Output |
Q: Can the ESP-07 be used with 5V logic? A: No, it requires 3.3V logic levels. Use a logic level converter for 5V systems.
Q: How do I connect the ESP-07 to an Arduino UNO? A: Use a 3.3V power source and a logic level converter for TX/RX pins. Connect the ESP-07's TX to the Arduino's RX through the converter, and vice versa.
Q: What is the default baud rate for the ESP-07? A: The default baud rate is typically 115200 bps, but it can be changed using AT commands.
Below is an example of how to connect the ESP8266 ESP-07 WiFi Module to an Arduino UNO and perform a simple WiFi scan.
#include <ESP8266WiFi.h>
void setup() {
Serial.begin(115200); // Start serial communication at 115200 bps
WiFi.mode(WIFI_STA); // Set WiFi to station mode
WiFi.disconnect(); // Disconnect from an AP if it was previously connected
delay(100);
Serial.println("Setup done");
}
void loop() {
Serial.println("scan start");
// WiFi.scanNetworks will return the number of networks found
int n = WiFi.scanNetworks();
Serial.println("scan done");
if (n == 0) {
Serial.println("no networks found");
} else {
Serial.print(n);
Serial.println(" networks found");
for (int i = 0; i < n; ++i) {
// Print SSID and RSSI for each network found
Serial.print(i + 1);
Serial.print(": ");
Serial.print(WiFi.SSID(i));
Serial.print(" (");
Serial.print(WiFi.RSSI(i));
Serial.print(")");
Serial.println((WiFi.encryptionType(i) == ENC_TYPE_NONE)?" ":"*");
delay(10);
}
}
Serial.println("");
// Wait a bit before scanning again
delay(5000);
}
Note: This code assumes that you have already established serial communication between the ESP-07 and the Arduino UNO. The ESP8266WiFi library is used for WiFi-related functions. Make sure to install the library before uploading the code to the Arduino.