The ESP8266 Wi-Fi Module is a self contained SOC with integrated TCP/IP protocol stack that can give any microcontroller access to your Wi-Fi network.
It can act both as a Access Point
(can create hotspot) or as a Station
(can connect to Wi-Fi) depending on the application, hence it can easily fetch and upload data it to the internet.
Okay! Now let’s see how to connect a Wi-Fi module to USB to TTL(CP2102)!
- Documentation
- Prerequisites
- Connection Diagram
- Getting Started
- Basic AT Commands
- Implementation
- Contributions
It is highly recommended to go through the Documentation first.
Here are direct links for same.
- Realterm or any other serial terminal
- USB to TTL (CP2102)
- ESP8266 EVB
- Jumpers
- Basic knowledge of UART and serial communication
- Rx(ESP8266) ---> Tx(USB to TTL)
- Tx(ESP8266) ---> Rx(USB to TTL)
- Power Supply (5V/3.3V and GND)
Follow the steps for getting started:
- Connect the USB to TTL(CP2102) to USB port of PC and open device manager to check the port connected to serial bridge (USB to TTL).
- Open Realterm or any other serial terminal you want to use.
- Open the port to which your serial device is connected make sure to check serial configuration as follows:
Baudrate : 115200
Data Bits : 8
Parity : None
Stopbits : 1
- That's it!!! Now you can send AT commands using realterm directly to Wi-Fi Module and also receive its response.
- Firstly check whether you receive
OK
in response toAT\r\n
, to make sure that your connections and configurations are fine. - Now you can further proceed to other AT commands according to your application.
- Basic AT Command:
AT\r\n
- List Available networks:
AT+CWLAP\r\n
- Connect to a network:
AT+CWJAP=\"ssid\",\"password\"\r\n
(ssid: netwok name, passwod: network password) - Ping Google to check internet availability:
AT+PING=\"www.google.com\"\r\n
For reporting any technical issue
or proposing new feature
, please create new issue.