This project will test the Wifi Module Connection to the available access point in surrounding. Follow the steps below to establish a connection to the available AP.
ARDUINO - ESP8266 CONNECTION
Hardware Connection
- Do the connection as shown in the diagram.
- At initial stage DON'T Connect Arduino RST to GND
- SW1 Open (NC) & SW2 Open (NC)
- Connect Vss and ch_pd of ESP8266 to 3.3V of Arduino. You can use 5V as Vss but many forums suggested to connect to 3.3V. I connected to 5V and its functioning well.
Software Setup
- Open Arduino IDE
- Setup Arduino Board and COM port
- Send Empty program (Refer program code)
- Compile the program
Send AT Command
- Connect Rx(ESP8266) to Rx (pin0) of Arduino
- Connect Tx(ESP8266) to Tx (pin1) of Arduino
- Connect Arduino RST to GND – To disable the Arduino
- Press SW2 to reset the ESP8266
- Open Serial Monitor in IDE
- Set "Both NL&CR" and Baud Rate = 115200 baud
- Type AT and press enter
If you receive "OK" message then all functioning well. If not please reacheck all connection.
AT
OK
Check the ESP8266 version
- Type AT+GMR, you will receive the following message
AT+GMR
AT version:1.2.0.0(Jul 1 2016 20:04:45)
SDK version:1.5.4.1(39cb9a32)
v1.0.0
Mar 11 2018 18:27:31
OK
Check AT Mode
- To check the AT mode, type AT+CWMODE?
+CWMODE:2
OK
- If the mode is not "1", then change it mode 1 by typing AT+CWMODE=1. Then check again the AT Mode.
- Mode 1 : Station
- Mode 2: Soft Access Point (AP)
- Mode 3: Station + Soft AP
AT+CWMODE=1
OK
Check available APs
- Now check the available network around you by typing AT+CWLAP
AT+CWLAP
+CWLAP:(4,"xxxx",-89,"xx:xx:xx:xx:xx",x,xx,0)
+CWLAP:(3,"xxxxxxxxz",-69,"xx:xx:xx:xx:xx",x,xx,0)
+CWLAP:(3,"xxxxxxxxx",-72,"xx:xx:xx:xx:xx",x,xx,0)
+CWLAP:(3,"xxxxxxxxxxxx",-73,"xx:xx:xx:xx:xx",x,xx,0)
+CWLAP:(3,"xxxxxxxx",-85,"xx:xx:xx:xx:xx",x,xx,0)
+CWLAP:(4,"xxxxxxxxx",-51,"xx:xx:xx:xx:xx",x,xx,0)
+CWLAP:(4,"xxxxxxxx",-85,"xx:xx:xx:xx:xx",x,xx,0)
+CWLAP:(3,"xxxxxxxxx",-80,"xx:xx:xx:xx:xx",x,xx,0)
+CWLAP:(3,"xxxxxxxxx",-86,"xx:xx:xx:xx:xx",x,xx,0)






_ztBMuBhMHo.jpg?auto=compress%2Cformat&w=48&h=48&fit=fill&bg=ffffff)


Comments