[SOLVED] Arduino and ESP8266-01 -- fatal error: ESP8266_HardSer.h:

Hi,

I would like to connect Arduino and first version of ESP ESP8266-01 but it won´t work. My goal is to connect Arduino with ESP8266-01 and communicate between them, and switch some relays get temperature etc…
The main problem is compiling code to Arduino. I found some thread HERE. I made schema with UNO : this wiring :

ESP8266:____________ Arduino:
GND -------------------------- GND
GP2 -------------------------- Not connected
GP0 -------------------------- GND
RXD -------------------------- RX
TXD -------------------------- TX
CHPD ------------------------ 3.3V
RST -------------------------- Not connected
VCC -------------------------- 3.3V

Installed the libraries. ver. 0.4.7
When I want to compile the code, which I copied from the thread it gives me error :

[codename].ino:1:29: fatal error: ESP8266_HardSer.h: No such file or directory
#include <ESP8266_HardSer.h>
^
compilation terminated.
exit status 1

Also have tried on second Windows computer and Arduino NANO and UNO CH340 and Arduino IDE 1.8.1

Thanks for any help
Best regards

Kvapil

Have you already installed the ESP8266 libraries (and boards) into Arduino IDE?

http://randomnerdtutorials.com/how-to-install-esp8266-board-arduino-ide/

Ditch the ESP-01… you will struggle to get it working well.

Purchase a WeMos D1 Mini and work with the ESP8266-Standalone example

@Gunner I haven´t installed boards into IDE, because I want to flash only the Arduino and not ESP8266
Is that true ?

@Jamin I know. I ordered the NodeMCU ESP-12e. While waiting for delivery I want to play with the old one. :slight_smile:

1 Like

If your sketch needs the libraries, then the IDE needs them installed, the boards and core libraries for the ESP are a package as far as I know. Besides I believe you need them for the NodeMCU anyhow.

Gpio0 to GND? Your ESP will enter into flash mode and you don’t want to…

RXD to Rx and TXD to Tx? Change both wires…

VCC to 3.3V from Arduino? Use external power…

1 Like

We don use thos for a loong time already. You’re using old libraries.

Which I need to use ?

Thanks

Current information found here in the Help Center (links at the upper right of this page).

http://help.blynk.cc/hardware-and-libraries/arduino/esp8266-with-at-firmware

As stated in that document:

For this connection, Blynk uses ESP8266_Lib.h library, which you get automatically when you install Blynk libraries.

And it also uses BlynkSimpleShieldEsp8266.h as shown in this example from the Sketch Builder (links at the upper right of this page):

1 Like