-->
Page 1 of 1

Error uploading sketch to ESP 8266-01 using Arduino uno!

PostPosted: Sun Mar 08, 2020 8:04 am
by ashaytaksande
Hello!
I am a total noob when it comes to IOT, every help is appreciated.
I am trying to upload a sketch to my esp 8466-01 which I got from https://www.electronicscomp.com/esp8266-esp01-wifi-module?search=esp.

I am getting this error:
esptool.FatalError: Failed to connect to ESP8266: Invalid head of packet (0xF0)

How do I solve this?
I am using :
    Arduino Uno rev3
    Arduino 1.8.12 IDE (portable version/zip version) I have also tried using the windows 10 Arduino app but get the same error.
    ESP8266 Community version 2.6.3 bord drivers.

Connections:
Image

AT+RST:
https://drive.google.com/file/d/1srcjrhrJqVg_hVib37qXHVlvZjdYCmBU/view
Detailed error log: https://pastebin.com/v6WCRCbc.
Error video:https://drive.google.com/open?id=1HFmDkMIjwNJnSkeoptY1OrtpHSh1Difu.
Thank you!

Re: Error uploading sketch to ESP 8266-01 using Arduino uno!

PostPosted: Mon Mar 16, 2020 10:44 am
by RichardS
Swap RX and TX lines....

Re: Error uploading sketch to ESP 8266-01 using Arduino uno!

PostPosted: Mon Mar 16, 2020 10:45 am
by RichardS
If there is also a USB to serial chip in the circuit of the ESP8266 it may not like it being also connected to Arduino UNO at same time.

RichardS

Re: Error uploading sketch to ESP 8266-01 using Arduino uno!

PostPosted: Mon Mar 16, 2020 1:59 pm
by schufti
to use your UNO as usb/serial converter you have to either remove the ATmega 328 (cpu) or keep it in constant reset (tie rst to gnd). TX-TX / RX-RX is correct but you should put a resistor (1k) in RX line.
AND generally you shouldn't do this at all. Don't be cheap, spare yourself frustration and buy a usb/serial converter! Or - especially as noob - even a cheap NodeMCU development board.