[Solved] Arduino nano

I am not able to understand the errors.
However I’d like to know where I’m wrong.
Thank you

Try to upload this code, it works on my setup, so it should work also for you. Don’t forget to change Auth token to that from app.

#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

// Hardware Serial on Mega, Leonardo, Micro...
#define EspSerial Serial

// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600

ESP8266 wifi(&EspSerial);

void setup()
{

  // Set ESP8266 baud rate
  EspSerial.begin(ESP8266_BAUD);
  delay(10);

  Blynk.begin(auth, wifi, ssid, pass);
}

void loop()
{
  Blynk.run();
}

Thanks, it’s very kind of you.
I’m going to try.

No problem, just don’t forget to change auth token for that you got from app.

i have this error message
Arduino:1.6.9 (Windows 7), Scheda:“Arduino Nano, ATmega328”

E:\Users\ADMINI~1\AppData\Local\Temp\arduino_modified_sketch_978901\Arduino_WiFi_Shield.ino:26:25: fatal error: ESP8266_Lib.h: No such file or directory

#include <ESP8266_Lib.h>

                     ^

compilation terminated.

exit status 1

abilitata in File -> Impostazioni

That means that you havent installed ESP8266 library
Download the latest Blynk library(Click to direct download) and place 4 folders in it to Documents/Arduino/libraries. Then it would get compiled.

1 Like

I try … also impo4rt library from zip… nothing, same error. :frowning:

Start completely new sketch. File-new and save it anywhere to Arduino>Documents. and try again.

1 Like

OOOKKKK

I am grateful to you.
It works great !!!
Thanks again!

No problem, i’m glad that it works.

1 Like

This diagram shows Tx-Tx and Rx-Rx. How can that work? They need to be cross-connected.

(The way I remember the serial pin locations on the unlabeled ESP-01 is: the Rx pin is the one nearest to the free ends of the antenna. The Tx pin is the one diagonally opposite to it.)

well it is 50/50 i have RX-RX and TX TX on my arduino mega and esp8266 adapter because of wrong silkscreen on esp adapter. and i also think that the ‘main’ serial is swapped(i can’t remember, maybe i’m wrong here). first thing you should ever do when troubleshooting Serial is swapping Rx and Tx.