- Wed Oct 21, 2015 5:03 pm
#31958
Hi, try the following connections:
Vcc -> 3.3V (needs to be 500mA minimum - most USB to serial devices can't supply this).
GND -> GND + GND on your serial device.
GPIO 0 -> 10K resistor -> 3.3V.
GPIO 0 -> (switch or wire short) ->GND (only needed for flashing) yes thats 2 connections.
GPIO 2 -> 10K resisror -> 3.3V
CH_PD -> 3.3V.
RST -> 3.3V (or via a 10K resistor if you want to add a switch to reset).
RST -> (switch) -> GND (only need for easy reseting option) yes again 2 connections.
Tx -> Rx
Rx -> Tx (if you are using an adrunio as a serial device swap Tx & Rx).
This line has been corrected - see below.
To flash you need to press the GPIO 0 switch or short - power down or reset - start flash within about a minute.Terminal needs to be set to CR & NL - 9600 or 115,200 baud depending on the firmware you have.
If you get lots of resets or crashes put 0.1uF & =< 100uF capacitors as close as possable to the ESP IC.
Hope that helps
EDIT: Sorry the 'To flash line' contains a sequence error and should read.
1. To flash you need to power down or press and hold the reset button.
2. Press and hold the GPIO 0 button or short to GND.
3. Power up or release the reset button.
4. Release the GPIO 0 button or remove the short.
5. Start flash within about a minute.
REASON FOR EDIT: If an ESP has firmware loaded that controls GPIO 0. In the event that GPIO 0 is set high at the time that you press the GPIO 0 button or short to GND, to enter flash mode. It is likley that the output could be damaged.
Hence the edit to remove power or reset before grounding the output. This would not affect factory units only when custom firmware is loaded.
Last edited by Barnabybear on Fri Oct 23, 2015 10:11 am, edited 6 times in total.