ESP8266 Module seems to be stuck in a loop

Hello, I am new to both Arduino and this forum. I have the arduino uno and the ESP8266-01 module. I have been trying to connect to Wifi for 2 days now but to no avail. The instruction on the internet are very confusion and not consistent. I have made some progress though and managed to make the device connect using the ESP8266 blink script. My connections are as follows:
VCC and CH_PD to 3.3V VCC
GND and GPIO0 to GND for programming mode
RST to GND only when I want to reset the ESP8266 because I do not have a switch
RX to RX
TX to TX
RESET to GND on arduino so that I would be able to flash the unit

I start the script and at first it wasn’t uploading and was giving me
esptool.py v2.7
Serial port COM4
Connecting……____Traceback (most recent call last):
File “C:\Users\User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.0/tools/upload.py”, line 25, in
esptool.main(fakeargs)
File “C:/Users/User/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/esptool\esptool.py”, line 2841, in main
esp.connect(args.before)
File “C:/Users/User/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/esptool\esptool.py”, line 483, in connect
raise FatalError(‘Failed to connect to %s: %s’ % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

but then when i connected the GPIO0 to GND and the RESET to GND it connected the first time but seemed to be resetting and upon the second time it resets and I am not finding the cause of my issue anywhere.

PS: I have tried downgrading the ESP8266 library from 2.7.4 to 2.6.2 to 2.5.0 to 2.3.0 and now I have it on the 2.7.4
I have tried connecting the unit to a 3.3V power supply in case the amperage was the issue but it stayed the same
I have tried connecting the GND of the unit to the GND of the arduino while having it powered by a power supply (2 AA 1.5 V batteries) as some posts recommended but still to no avail.

The final output is this:
fatal: not a git repository (or any of the parent directories): .git
Executable segment sizes:
IROM : 228328 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26564 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs…)
DATA : 1236 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 1520 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 24896 ) - zeroed variables (global, static) in RAM/HEAP
Sketch uses 257648 bytes (26%) of program storage space. Maximum is 958448 bytes.
Global variables use 27652 bytes (33%) of dynamic memory, leaving 54268 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.7
Serial port COM4
Connecting…
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 2c:f4:32:16:f3:17
Uploading stub…
Running stub…
Stub running…
Manufacturer: 5e
Device: 6014
Detected flash size: 1MB
Hard resetting via RTS pin…
esptool.py v2.7
Serial port COM4
Connecting……____Traceback (most recent call last):
File “C:\Users\User\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.0/tools/upload.py”, line 25, in
esptool.main(fakeargs)
File “C:/Users/User/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/esptool\esptool.py”, line 2841, in main
esp.connect(args.before)
File “C:/Users/User/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.0/tools/esptool\esptool.py”, line 483, in connect
raise FatalError(‘Failed to connect to %s: %s’ % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

It connects the first time and seems to be doing it all over again, only thing is the second time it fails. Any ideas? Thanks in advance

I am not sure what you are doing.

Which tutorial are you following?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.