ESP-WROOM-02 WIFI module (hereinafter referred to as module)
USB to TTL CH34 1 serial module (other serial modules can also be used).
3V-5V relay
AMS 1 1 17 3.3
8050 triode
10K resistor
470R resistor
10- 100UF capacitor
104
1N4 148 diode
Light-emitting diode (as indicator light)
Second, weld the brush fastener circuit.
The power supply voltage of the module is 3.3V3.3V3.3VRemember. Say the important things three times, and don't burn the module while it is hot.
It is recommended to provide this module separately. You can use the 5V connection AMS 1 17 3.3 of the mobile phone charger for power supply. It is not recommended to use voltage stabilizing modules or other defective products with current below117 3.3. This kind of WIFI module requires high power supply, so it is generally impossible to directly use USB to TTL serial port module for power supply.
Third, brush the firmware
1, IO2 pin and GND pin are connected.
2. Power on the module (IO2 and GND must be connected before power on).
3. Connect the computer USB from USB to TTL (if the computer has no driver, please install the serial port driver in the attachment first).
4. Open the Computer Device Manager to view the COM port number.
5. Open the firmware brush tool ESP_DOWNLOAD_TOOL_V2.4 in the attachment, and set it according to the figure. Note the following paths of 00000 and 40000. Let's choose the port number we just saw.
6. After setting, click Start and wait a moment. If the progress bar is normal, the appearance is complete (the indicator will flash when the firmware is brushed normally), congratulations, half the success! ! ! !
If it fails, turn off the power and turn it on several times.
Always fail?
Then check whether the connectivity between IO2 and GND is normal,
Whether the power supply of the module is normal,
Insufficient power supply of the module or virtual welding of IO2 and GND will affect the firmware.
Fourth, connect the module to the home network.
A light-emitting diode is connected between the modules IO2 and 3V3 as an indicator.
Take out your mobile phone and open WeChat, and pay attention to WeChat WeChat official account "Anxinke Technology" (don't worry that this official WeChat account won't advertise, it's just an official WeChat account with WIFI connection).
Connect the module we just welded to our own router as shown. The network connected to the module and the mobile phone are connected to the same network. If there are multiple router networks at home, please make sure that the mobile phone network is connected to the network frequently used by the mobile phone, and that the mobile phone and the module can only control the module in the same LAN.
After the configuration is completed
The indicator light goes out, which proves that the module has been connected to the router network normally! ! ! Get excited! !
Now you can take out the mobile phone operation module, but the current module does not have any external equipment, so you can't see the result of mobile phone operation. . . (You can connect an LED indicator on any pin of IO0, IO4, IO5, IO 12, IO 13, IO 14 and IO 15 for testing.
Fifth, mobile APP
The mobile APP doesn't need any settings. Just put it on your mobile phone and open it.