Material preparation

1. Arduino Uno R3 (20 RMB)

2. Esp-01s module (several yuan)

3. USB to TTL downloader (several yuan)

4. A number of male to female, male to male Dupont lines (a few dollars)

5. Bread board (several yuan)

6. arduino IED

7. Firmware burning program (download from the link below)

8. Install the trusted serial debugging assistant program (download it in the connection below)

9. AT firmware library (directly ask the seller of ESP-01S module for it)

Click direct: Essence development tools download

Once you have the above materials ready, you can have fun.

The firmware burn

The firmware library

Take AI-thinker_ESP8266_Dout_8mbit_V1.5.4.1 -a_20171130.bit as an example. (Different firmware library wiring is the same, may be different Settings)

wiring

What should be paid attention to is the sentence in the box below, so I used 3.3V on the Arduino board for power supply. (The application diagram can be ignored)

The wiring is connected according to this table.

The esp – 01 s module USB to TTL
3.3 V 3.3 V
RST 3.3 V
EN 3.3 V
IO2 3.3 V
GND GND
IO0 GND
TX RX
RX TX

And then I’ll do something like this. (Ha ha ha)

Burning tool Settings

First, select the AT firmware library and then set it as shown in the screenshot.

The SPI MODE, SPI SPEED, and Flash Size Settings must be the same as those in the file.

COM according to their own computer to

Burn operation

Wiring and burning software Settings are done after you can burn. Before burning, we need to see the description of each pin in the table (ignore the first three columns, ignore the pins not involved in wiring content).

The ESP-01S module has only two I/O ports, IO0 and IO2

IO0 must be connected to DND now, otherwise it is not download mode and cannot be burned.

Then plug the USB-to-TTL downloader into your computer (you need to install the corresponding drive, just ask the seller).

Then click REASE under the burning software, the following prompt will appear, unplug the 3.3V circuit of USB and plug it in.

When the prompt is complete, click the START button again, waiting for power-on synchronization will also appear. At this time, unplug the 3.3V circuit of USB and plug it in.

Finally, when the prompt is complete, click the STOP button again.

Finally, unplug the IO0 pin and plug the USB to serial port downloader again. And then it’s done

Serial debugging

It is necessary to confirm whether it is really burned, and it can only be known by testing it with AT instruction. There are detailed AT instruction documents on the official website of Anxin.

First, open the serial port debugging tool.

Set baud rate to 74880 so that the first output is not garbled, serial port Settings according to their own computer Settings

Then click to open the serial port and plug in the 3.3V circuit of the USB to serial downloader. If the following information appears, it represents success.

Cause: 1 boot mode (3,)

Other numbers please refer to the documentation, if not these two numbers there is a problem

Then we send the AT instruction to test. Note that the baud rate must be set to 115200 otherwise it is garbled.

Perfect end ~

Remember to like 😅