[Solved] Arduino nano

Try to send AT+GMR thru TTL and see what it does.

I have it all in the lab, are now using a laptop, but the evidence I have to do by sending the command to the single module, disconnecting Arduino.
If I turn on the module only esp after a few seconds I get the answer “WIFI CONNECTED”, but of course does not use it on the cloud Blynk.
Hello and thanks

I’m back, today I did other tests, in any case, the system does not connect to the cloud.
I checked the modem port, is enabled to forward 8442.
I tried other sketches but all do the same thing.
Ie no dialogue between Arduino and esp.
I only read “No shield connected”.
Now my question is this.
I need to load something on the ESP module?
As the ESP module also alone connects to the wifi network, I imagine that there is something not in the temporary memory.
While Arduino not sending any command I assume it is waiting for some string from the ESP module.
If I’m wrong, correct me.
Thank you all and greetings from Italy.

Is the blue led on esp blinking? You didn’t need to flash SW to esp, unless you have very old one. Can you post your arduino code here?

This is the code.
`#include <ESP8266_HardSer.h>
#include <BlynkSimpleShieldEsp8266_HardSer.h>

#define EspSerial Serial

ESP8266 wifi(EspSerial);

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

void setup()
{

Serial.begin(9600);
delay(10);
EspSerial.begin(9600);
delay(10);

Blynk.begin(auth, wifi, “ssid”, “pass”);
delay(10);

while (Blynk.connect() == false) {
}

}

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

Sorry for the error, the sketch run ok.

Yes, the blue LED blinks regularly, as with the red LED on the Arduino RX module, a sign that there is data exchange.

So there are some errors.

#include .....
#include .....
#define EspSerial Serial

ESP8266 wifi(&EspSerial); //missing &

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

void setup()
{
EspSerial.begin(9600);
delay(10);
Blynk.begin(auth, wifi, "ssid", "pass");
//that while loop is not needed
}

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

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.