Hello there... I am trying to upload the below code to my ESP 01 via Arduino Uno but I keep on getting the esptool.py error. This is the connection that I am using
RX---------->RX
TX---------->TX
CH---------->3.3V
GND ------->GND
VCC---------->3.3V
I have also tried connecting RX to TX and TX to RX but the error is still consistent. This are thing I have tried so far...
Downgraded ESP8266 libraries
uninstalled and re-installed port drivers from the device manager
Uninstalled and re-installed Arduino IDE
I have also tried using a different laptop
I have also reduced my baud to 9600
I have tried almost everything available on the internet but none seems successful and my serial monitor commands are not working at all. This is the code i am trying to upload to my esp01
from ESP8266_01_pin_magic GPIO0 and GPIO2 need to have pull-up resistors connected to ensure the module starts up correctly. The ESP-01S has 12K resistors on the board for GPIO0, RST and CH_PD
Some people might know what that means, others might not Please post the complete error message as text using code tags (see How to get the best out of this forum)
For uploading GPIO 0 should be connected to GND at boot and GPIO 1 (TX) & GPIO 2 should not be connected to GND (pulled up or free-floating) also since the UNO is a 5v device and the esp is a 3.3v device you should use a voltage divider on the ESP's RX line to reduce the 5v logic levels that the UNO provides, like this :
UNO RX -> 1k -> ESP RX -> 1k ->1k -> GND
For the rest your connections look ok. Make sure that there is no sketch on the UNO that uses Serial or pin 0 & 1 in any other way (blink is fine !)
So add the GPIO 0 -> GND and the voltage divider.
(note, do not use high value resistors, 1K (3 times) works best.)
After upload the program will run, but if you reset the ESP and want the program to run you should disconnect GPIO 0 from GND (or it will go into flash mode again) and if you want to upload again you will need to reset it with GPIO 0 to GND.
if you run the windows device manager and you unplug/plugin the ESP8266 USB cable does COM3 appear/disappear
if so it sounds like you don't have GPIO0 low and GPIO2 high to program the device