ESP32microcontroller

ESP 32 programmer with CP2102

Every microcontroller must be programmed. For this you need a programmer. In this Post i show you how the circuit for a ESP 32 programmer should be.

How to program the ESP:

The ESP 32 can be programmed over the UART (RX/TX) interface. To set the ESP 32 in program mode you need to pull the IO0 pin at the start of the ESP 32 low. So just reset the ESP 32 and hold the IO0 pin low. After this the ESP 32 is in program mode and can be programmed over UART.

The circuit:

There are many different circuits for the ESP 32 programmer, but i think this is the most flexible one. It has a CP202 USB to UART Bridge, a switch less circuit which sets the ESP 32 in program mode(R7, R8, Q1, Q2) and the option to power the circuit over USB or an external power supply.

How to use it:

Connect the TXD, RXD, IO0, EN, +3.3V and ground of the circuit to the ESP 32 you want to flash.

Note: The TXD pin of the programmer should be connected to the RXD pin of the ESP 32 and the RXD pin of the programmer to the TXD pin of the ESP 32. So the RX/TX Pins should be crossed.

Then connect a USB cable to the programmer. Now you can program the ESP 32 via the ESP IDF, Arduino …

Parts:

  • C6, C7: 100nF 25V X5R
  • C1, C2, C9: 10uF 25V X5R
  • R7, R8: 10kΩ
  • D1: B5817WS
  • Q1, Q2: 2N7002 (Do not use a bipolar junction transistor; the circuit did not work reliable with it)
  • U6: CP2102-GMR
  • U1: LDL117S33R
  • U5: Screw Terminal 2 Pin
  • USB1: USB Connector (Input)


Other posts about ESP32

3D printed holder for ESP32 frontplate

The PCB for the ESP32 frontplate is done and works. Now its time to build a enclosure for it.

PCB ESP32 frontpanel for universal audio amplifier

For a time i build the iniversal audio amplifier with a PT2033 which can be programmed over I²C. Now its time to make a frontpanel to control this amplifier

ESP 32 programmer with CP2102

Every microcontroller must be programmed. For this you need a programmer. In this Post i show you how the circuit for a ESP 32 programmer should be.

ESP 32 WROOM 32D minimal connection and nice to know

You want to know which is the minimal circuit for the ESP32 WROOM 32D and which are some interesting informations about the ESP 32 WROOM 32D for your custom design? In these post you can find the answ…

Leave a Reply

Your email address will not be published. Required fields are marked *