I have connected an ESP8266 module to the Arduino Mega. When running the AT commands (board set to Mega) some of them work and the others not. When uploading the code to the ESP8266 I recieve this error:
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
I have tried to update the firmware, but I recieve the same error. The pins are connected like this: GND - GND 3V3 - 3.3V TX - TX0 -> 1 RX - RX0 <- 0 EN - 3.3V
How can I solve the problem?
to put the esp8266 in flashing mode, io 0 must be wired to gnd at boot.
is it an esp-01S? because older esp-01 requires to wire the EN pin too and io 0 must be pulled-up over a resistor for normal run.
did you upload an empty sketch to Mega?
Juraj:
to put the esp8266 in flashing mode, io 0 must be wired to gnd at boot.
is it an esp-01S? because older esp-01 requires to wire the EN pin too and io 0 must be pulled-up over a resistor for normal run.
did you upload an empty sketch to Mega?
How can I find out what is my esp8266 version?
It is written just ESP8266EX on it.