ESP8266 connection to Arduino Uno

Hi I am trying to get my Arduino Uno to connect to the wifi using ESP8266.
link ESP8266 Serial Wifi Transceiver Module for Arduino UNO R3 ESP-07 V1.0 | eBay
I keep getting the following error message during set-up.
A fatal esptool.py error occurred. failed to connect to esp8266: invalid head of packet (0x01).
Can anyone help.
Ultimately I am trying to get room temp and humidity onto thingSpeak as per Youtube. How to Send Temperature and Humidity data to ThinkSpeank using ESP8266 DHT11 sensor and Arduino (youtube.com)
As always ant help would be appreciated as it is all new to me!
Thanks Butch

I moved your topic to an appropriate forum category @butch7845.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

First of all, how does the module is connected to your UNO? Could you provide a diagram here?

Second, what do you mean with "set-up"? Describe exactly the operations you perform and the IDE version and settings.

Last, start forgetting the DHT and Thingspeak, for the moment concentrate on ESP8266 communications only (e.g. with any test sketch to start Wifi, and successfully connect to your local network). You'll get into the other topics later, do one thing at the time!

PS: jeez, that indian accent kills me.. :wink:

Sorry it all new

ESP8266 - Arduino
TX - TX
RX - RX
GND - GND
VCC - 5V
Hope this is clear.

First, on serial connections, TX means "transmit" and RX "receive" data. That implies you can't connect TX from one side to TX on the other, the correct connection is:
TX -> RX
RX <- TX
Second, you aren't specifying what "TX" and "RX" pins you are using. If you mean Arduino TX and RX (i.e. pin 0 and 1) remember those are used for USB-serial connection too, so if you connect anything to those pins you can't communicate via USB with Arduino, meaning you can't either upload your sketch or get any data from Arduino.

For both those conditions, if you watch that video you linked before, you can see the indian guy connected the ESP module to pins 2 and 3, then using the SoftwareSerial library those pins are defined as a "virtual serial", so the physical UNO serial port (i.e. pins 0 and 1) can be freely used.

Try the exact wiring and code from that video, and it all should work.

PS: to have a board with internet connection, instead of adding an ESP8266 to Arduino UNO, I think you better try using one of the WeMos D1 boards (R2 or Mini), they have the ESP8266 onboard and act almost like Arduino (e.g. they have just one analog input), but you can program them with the same IDE and language (just a few changes are needed, like some libraries must be the one specific for ESP8266, or pins to be referred as D3 instead of 3, D4 instead of 4, and so on).

Thank you

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