Issue connecting to ESP8266

Dear all,

I am playing with the ESP8266 chip on an Arduino Uno, programmed through a macbook 10.15.

I wired the ESP8266 chip following this post

Monitoring data from sensors using ESP 8266 and arduino | by ANGELIN JOHN | Medium

and checked carefully the wiring. The ESP led is on, so I assume it is alive.
I have the exact same model of ESP8266 chip.

These are the following (painful) steps I went through:

- Install arduino 1.8.12 (to accomodate mac OS 64bits)
- Install the thingspeak library (to connect with the cloud later)
- Add the esp8266 json link in arduino Preferences
- Load Library ESP8266 2.6.3
- Choose the ESP8266 board in the board manager
- Got the javanullpointer error, which apparently is to ignored (?)
- installed python 3 manually

I start with the Blink in Example > ESP8266. The compilation goes fine.

When uploading I then always get an error:

with the ESP8266 library 2.6.3 I get

esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

Following an advice I downgraded the library to 2.5.0, but then got the error

error: espcomm_upload_mem failed

I have read through various forums and documentations,
many "Solutions" seem to pop up, but they are so different that they sound like witchcraft,

now honestly I am stuck. De profundis clamo!

"many "Solutions" seem to pop up, but they are so different that they sound like witchcraft,"

Adapting an ESP to an arduino seems to be yesterday's news. If you can get one where you are, get a WeMOS ESP board with a micro USB port and header pins, and use the arduino as an I/O slave.

zoomkat:
If you can get one where you are, get a WeMOS ESP board with a micro USB port and header pins, and use the arduino as an I/O slave.

Or just use the Wemos by itself. It has enough IO pins for the LM35.

Using Arduino Uno with ESP-01 module is a major pain in the butt.

.

Ksawery:
Dear all,

I am playing with the ESP8266 chip on an Arduino Uno, programmed through a macbook 10.15.

I wired the ESP8266 chip following this post

Monitoring data from sensors using ESP 8266 and arduino | by ANGELIN JOHN | Medium

That tutorial has the ESP-01 module connected to Arduino Uno's 3.3 V pin. BAD.
ESP-01 needs its own 3.3V power supply with at least 500 mA output.
I suspect if you get a better power supply you will get better results.

You should note that the article's writer is using the hardware serial to send AT commands to ESP-01 and to send print statements to the Serial Monitor.
I am guessing the ESP-01 ignores the non-AT commands meant for the Serial Monitor, but this is not good way of doing this.

Anyway buy the Wemos, and your life will be much easier.

.

"Using Arduino Uno with ESP-01 module is a major pain in the butt."

I so agree :slight_smile:

Thank you for pointing me this showstopper.

Looking at the ebay page, I identified 2 types of Wemos, w/wo an antenna.

Which one exactly do you recommend me to purchase for an Arduino Uno?

You'll need to ask zoomkat. He knows of a vendor he likes.

found his post : https://forum.arduino.cc/index.php?topic=666508.0

"Which one exactly do you recommend me to purchase for an Arduino Uno?"

I've got several of the WeMOS D1 development boards with the ESP8266 chips and they seem to be well sorted out. They are similar to an UNO. They have the female pin headers installed so just using hookup wire in the pin headers makes things simple. They also have micro USB connectors so they use the thin cell phone cables instead of the thick bulky USB cables. Where you live may impact what you are able to get in a reasonable time frame.

Thank you for your advice,

As a novice, I will keep this esp8266 board for later, and in the meanwhile I have ordered the Wemos D1 from a canadian seller

https://www.amazon.ca/-/fr/développement-Arduino-Esp8266-Esp-12E-Peformance/dp/B07WVRW821/ref=sr_1_1?__mk_fr_CA=ÅMÅŽÕÑ&keywords=wifi+adapter+ota+d1+ch340+wifi+arduino+uno+r3+esp8266+esp-12e&qid=1584412959&sr=8-1

The plan is
(1) to learn about this new card
(2) start basic examples as hand-on exercices
(3) send a temperature to thingspeak

I will update this post, should I notice any information that may help other users.