055277 ESP8266 Starter Kit: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
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>[[File:055277-20.png|600px|frameless|thumb]]<br>
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 3.png|600px|frameless]]<br>
<br>[[Image:ks0354 driver 4.png|600px|frameless]]<br>


Click “next step” to start installing.
Click “next step” to start installing.
<br>[[Image:ks0354 driver 4.png|600px|frameless]]<br>
 
<br>[[Image:Ks0354 driver 5.png|600px|frameless]]<br>


Finish installing, click to “close”
Finish installing, click to “close”

Revision as of 12:29, 27 April 2020

055277-1.png

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


No. Product Name Quantity Picture
1 055277 ESP8266 Module 1
thumb
2 ESP-01 Programmer 1
thumb
3 ESP-01 Breakout Board 1
thumb
4 220Ω resistor 15
thumb
6 470Ω resistor 5
thumb
7 10KΩ resistor 5
thumb
8 LED - Green 5
thumb
9 LED - Blue 5
thumb
10 LED - Red 5
thumb
11 F5- full-color RGB 5
thumb
12 Dupont Line 10
thumb
13 Dupont Line 10
thumb
14 Dupont Line 10
thumb
15 button 4
thumb
16 Breadboard 2
thumb
17 Photo Resistor 3
thumb
18 IR emitter 1
thumb
19 IR receiver 1
thumb

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:


Ks0354 driver 1.png

Click USB serial to install the driver, as shown below


Ks0354 driver 2.png

Enter the following interface, as shown below.


Ks0354 driver 3.png

Find usb_ch341_3.1.2009.06 folder


Ks0354 driver 4.png

Click “next step” to start installing.


Ks0354 driver 5.png

Finish installing, click to “close” The driver is now installed. Click Computer-Properties-Device Manager, as shown below:


Ks0354 driver 6.png

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.


thumb

thumb


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:


thumb

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.
thumb
Remember IP name is 192.168.3.12, 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.
thumb

7.Open the network debugging assistant software, as shown below:
thumb

8.Send PIN00 = 1 signal, the external LED lights up, as shown below:
thumb

9.Send PIN00 = 0 signal, the external LED is off, as shown below.
thumb

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.


thumb

(4)Open the network debugging assistant software, as shown below.


thumb

(5)Send PIN00 = 1, the external LED lights up, as shown below
thumb

(6)Send PIN00 = 0, the external LED is off, as shown below.
thumb

(7)Complete the test for softap mode operation

5.Resources