055277 ESP8266 Starter Kit: Difference between revisions
Keyestudio (talk | contribs) |
Keyestudio (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 145: | Line 145: | ||
== 3.Installing Driver == | == 3.Installing Driver == | ||
We need to install driver for ESP-01 Programmer module. The USB serial port chip CH340G is used in ESP-01 Programmer module. So we need to install driver compatible with CH340G. | We need to install driver for ESP-01 Programmer module. The USB serial port chip CH340G is used in ESP-01 Programmer module. So we need to install driver compatible with CH340G. | ||
Connect ESP-01 Programmer to computer. For Win10 system, the computer automatically installs the driver, click Computer-Properties-Device Manager, as shown below | Connect ESP-01 Programmer to computer. For Win10 system, the computer automatically installs the driver, click Computer-Properties-Device Manager. For other systems, connect Esp-01 Programmer Module to PC, and click Computer-Properties-Device manager, as shown below: | ||
<br>[[Image:ks0354 driver 1.png|600px|frameless]]<br> | <br>[[Image:ks0354 driver 1.png|600px|frameless]]<br> | ||
Line 158: | Line 155: | ||
Enter the following interface, as shown below. | Enter the following interface, as shown below. | ||
<br>[[Image:ks0354 driver 3.png|600px|frameless]]<br> | |||
Find usb_ch341_3.1.2009.06 folder | Find usb_ch341_3.1.2009.06 folder | ||
<br>[[Image:ks0354 driver | <br>[[Image:ks0354 driver 4.png|600px|frameless]]<br> | ||
Click “next step” to start installing. | Click “next step” to start installing. | ||
<br>[[Image: | |||
<br>[[Image:Ks0354 driver 5.png|600px|frameless]]<br> | |||
Finish installing, click to “close” | Finish installing, click to “close” | ||
Line 214: | Line 213: | ||
Note: Insert the ESP8266 module into the ESP-01 Programmer module after clicking “Open”, otherwise it is invalid. | Note: Insert the ESP8266 module into the ESP-01 Programmer module after clicking “Open”, otherwise it is invalid. | ||
<br>[[File: | <br>[[File:0408001.png|600px|frameless|thumb]]<br> | ||
Remember IP name is 192.168.3. | Remember IP name is 192.168.3.2, please. | ||
5. The computer and the home wifi are in the same segment and local area network. Connect computer to your home WiFi. | 5. The computer and the home wifi are in the same segment and local area network. Connect computer to your home WiFi. | ||
Line 224: | Line 223: | ||
7.Open the network debugging assistant software, as shown below: | 7.Open the network debugging assistant software, as shown below: | ||
<br>[[File: | <br>[[File:Ks0408-图片16.png|600px|frameless|thumb]]<br> | ||
8.Send PIN00 = 1 signal, the external LED lights up, as shown below: | 8.Send PIN00 = 1 signal, the external LED lights up, as shown below: | ||
<br>[[File: | <br>[[File:Ks0408-图片18.png|600px|frameless|thumb]]<br> | ||
9.Send PIN00 = 0 signal, the external LED is off, as shown below. | 9.Send PIN00 = 0 signal, the external LED is off, as shown below. | ||
<br>[[File: | <br>[[File:Ks0408-图片17.png|600px|frameless|thumb]]<br> | ||
Complete the test for station mode operation. | Complete the test for station mode operation. | ||
Line 244: | Line 243: | ||
(4)Open the network debugging assistant software, as shown below. | (4)Open the network debugging assistant software, as shown below. | ||
<br>[[File: | <br>[[File:Ks0408-图片19.png|600px|frameless|thumb]]<br> | ||
(5)Send PIN00 = 1, the external LED lights up, as shown below | (5)Send PIN00 = 1, the external LED lights up, as shown below | ||
<br>[[File: | <br>[[File:Ks0408-图片21.png|600px|frameless|thumb]]<br> | ||
(6)Send PIN00 = 0, the external LED is off, as shown below. | (6)Send PIN00 = 0, the external LED is off, as shown below. | ||
<br>[[File: | <br>[[File:Ks0408-图片20.png|600px|frameless|thumb]]<br> | ||
(7)Complete the test for softap mode operation | (7)Complete the test for softap mode operation | ||
== 5.Resources == | == 5.Resources == |
Latest revision as of 09:35, 29 April 2020
1.Description
This kit contains the common components: resistors with different resistance values, different colors LEDs, buttons, and IR receiving components. It is compatible with various microcontrollers and Raspberry Pi. An ESP8266 module and an ESP-01 Programmer module are included. We can build a platform with this two modules and shield, which can help us control external devices via WIFI or send test data to PC. In order to have a better understanding, we do an experiment with components, and remotely control LED on/off via WiFi.
For using easily, we provide self-compiled firmware. The firmware is server mode. Specific information as shown below:
Module Working Mode
- Work in mode:3
Softap mode
- softAP SSID:KeyesWifi_A password:KeyesWifi
- softAP IP:192.168.2.1
- softAP_server IP:192.168.2.1
Station mode
- station SSID:KeyesWifi_S password:KeyesWifi
- station IP: router automatically assigns
- station_server IP: router automatically distributes port:8080
2.Component List
3.Installing Driver
We need to install driver for ESP-01 Programmer module. The USB serial port chip CH340G is used in ESP-01 Programmer module. So we need to install driver compatible with CH340G. Connect ESP-01 Programmer to computer. For Win10 system, the computer automatically installs the driver, click Computer-Properties-Device Manager. For other systems, connect Esp-01 Programmer Module to PC, and click Computer-Properties-Device manager, as shown below:
Click USB serial to install the driver, as shown below
Enter the following interface, as shown below.
Find usb_ch341_3.1.2009.06 folder
Click “next step” to start installing.
Finish installing, click to “close” The driver is now installed. Click Computer-Properties-Device Manager, as shown below:
4.Project
Remotely Controlling LED On/Off Via WiFi
Description
In the experiment, we connect to the ESP8266 module to wireless network, and then can send instructions to the ESP8266 module from the upper computer in the remote or local area network. After receiving the instruction, the ESP8266 module can control the external LED to turn on and off.
Experiment Equipment
- ESP8266 module * 1
- ESP-01 Programmer Module * 1
- ESP-01 Breakout Board * 1
- LED * 1
- 220Ω resistor * 1
- Breadboard * 1
- Several male to female Dupont lines
- Several DuPont Lines
- 3.3V power supply (included)
Burning Firmware
First, we need to burn firmware in the ESP-01 Programmer module. The burning method is shown below: ① Switch the ESP-01 Programmer module to Uart Download, insert the ESP8266 module into the ESP-01 Programmer module, connect ESP-01 Programmer module to the computer USB interface. ② Open “FLASH_DOWNLOAD_TOOL”, configure as shown below, upload firmware.
Station Mode
Because the station_server IP is automatically assigned by the router. Need to read its IP from the serial port.
- 1.Set the SSID of home wifi: KeyesWifi_S Password:KeyesWifi.
- 2.Connect ESP-01 Programmer module to USB port of PC, and switch the module to “Flash Boot”.
- 3.Open the PUTTY software on the computer, as shown below:
4.Insert the ESP8266 module into the ESP-01 Programmer module, putty prints the following information, and the IP is successfully read.
Note: Insert the ESP8266 module into the ESP-01 Programmer module after clicking “Open”, otherwise it is invalid.
Remember IP name is 192.168.3.2, please.
5. The computer and the home wifi are in the same segment and local area network. Connect computer to your home WiFi. SSID : KeyesWifi_S Password: KeyesWifi.
6. Plug the ESP8266 module into the ESP-01 Breakout Board. Insert the breakout board to the breadboard, connect an LED, and DC 3.3V power supply.
7.Open the network debugging assistant software, as shown below:
8.Send PIN00 = 1 signal, the external LED lights up, as shown below:
9.Send PIN00 = 0 signal, the external LED is off, as shown below.
Complete the test for station mode operation.
Softap Mode
(1)When the computer and the home wifi are in the same segment and local area network, change the home WiFi name into another one to prevent the WIFIModule from automatically connecting. (2)Connect computer to WiFi, the name is KeyesWifi_A, and the password is KeyesWifi. (3)Connect the circuit according to the following wiring diagram: connect 3.3V power supply and wait for 20 seconds.
(4)Open the network debugging assistant software, as shown below.
(5)Send PIN00 = 1, the external LED lights up, as shown below
(6)Send PIN00 = 0, the external LED is off, as shown below.
(7)Complete the test for softap mode operation