UART Wifi V2

Hello everyone,
I'm totally new to arduino and I have some troubles in setting up that grove module, I always get this error saying "warning: espcomm_sync failed".
Can somebody please help me ?
Thanks !

what do you want to upload to the module and how did you wire it?

I’m wiring it with the grove base shield and I just want to connect my arduino to my Wifi connection using this code :
#include <ESP8266WiFi.h> // Include the Wi-Fi library

const char* ssid = “SSID”; // The SSID (name) of the Wi-Fi network you want to connect to
const char* password = “PASSWORD”; // The password of the Wi-Fi network

void setup() {
Serial.begin(115200); // Start the Serial communication to send messages to the computer
delay(10);
Serial.println(’\n’);

WiFi.begin(ssid, password); // Connect to the network
Serial.print(“Connecting to “);
Serial.print(ssid); Serial.println(” …”);

int i = 0;
while (WiFi.status() != WL_CONNECTED) { // Wait for the Wi-Fi to connect
delay(1000);
Serial.print(++i); Serial.print(’ ');
}

Serial.println(’\n’);
Serial.println(“Connection established!”);
Serial.print(“IP address:\t”);
Serial.println(WiFi.localIP()); // Send the IP address of the ESP8266 to the computer
}

void loop() { }

the module has AT firmware. write a sketch for Uno with WiFiEsp library.
don't use the esp8266 arduino package unless you know what you are doing

Thanks !
Do you have any link to install this library please ?

Tyzerath:
Thanks !
Do you have any link to install this library please ?

IDE, Sketch menu, Include Library option, Manage Libraries option

Thanks !
But now I get this error saying while uploading the exemple sketch for wifi:"avrdude: stk500_getsync()", do you have any solution ?

Tyzerath:
Thanks !
But now I get this error saying while uploading the exemple sketch for wifi:"avrdude: stk500_getsync()", do you have any solution ?

don't connect the module to RX/TX. it disturbs the Serial upload over USB (usb is tha same Serial as RX/TX pins). use connector 6 on base shield. the examples of the WiFiEsp library create software serial instance on pins 6 and 7

It's now working, you're amazing thank you ! But now I have an other issue, sorry i'm terribly bad, it's saying :
10:36:26.603 -> [WiFiEsp] I >>> TIMEOUT >>>
10:36:26.603 -> [WiFiEsp] Cannot initialize ESP module
10:36:26.603 -> [WiFiEsp] Initializing ESP module
10:36:27.600 -> [WiFiEsp] >>> TIMEOUT >>>
10:36:29.636 -> [WiFiEsp] >>> TIMEOUT >>>
10:36:31.643 -> [WiFiEsp] >>> TIMEOUT >>>
10:36:33.636 -> [WiFiEsp] >>> TIMEOUT >>>
10:36:35.633 -> [WiFiEsp] >>> TIMEOUT >>>
10:36:36.657 -> [WiFiEsp] Cannot initialize ESP module

Tyzerath:
It's now working, you're amazing thank you ! But now I have an other issue, sorry i'm terribly bad, it's saying :
10:36:26.603 -> [WiFiEsp] I >>> TIMEOUT >>>
10:36:26.603 -> [WiFiEsp] Cannot initialize ESP module
10:36:26.603 -> [WiFiEsp] Initializing ESP module
10:36:27.600 -> [WiFiEsp] >>> TIMEOUT >>>
10:36:29.636 -> [WiFiEsp] >>> TIMEOUT >>>
10:36:31.643 -> [WiFiEsp] >>> TIMEOUT >>>
10:36:33.636 -> [WiFiEsp] >>> TIMEOUT >>>
10:36:35.633 -> [WiFiEsp] >>> TIMEOUT >>>
10:36:36.657 -> [WiFiEsp] Cannot initialize ESP module

now the module doesn't answer

upload this sketch:

#include "SoftwareSerial.h"
SoftwareSerial Serial1(6, 7); // RX, TX

void setup() {
  Serial.begin(115200);
  Serial1.begin(115200);
}

void loop() {
  if (Serial.available()) {      // If anything comes in Serial (USB),
    Serial1.write(Serial.read());   // read it and send it out Serial1 (pins 0 & 1)
  }

  if (Serial1.available()) {     // If anything comes in Serial1 (pins 0 & 1)
    Serial.write(Serial1.read());   // read it and send it out Serial (USB)
  }
}

then open Serial Monitor, set 115200 baud and line ends "both".
try to send AT. you should get OK as response. if yes, then send
AT+UART_DEF=9600,8,1,0,0
to change the default baud rate

then try the WiFiEsp example again

The outputs are going too fast I can't see if there is an "ok" or not.

Nevermind, I followed you instructions and it’s now working, you can’t imagine how thankful I am
You did a great job, thanks !

the WiFiEsp library has some problems. the main problem is that it can't receive large data. so if you have trouble with this, write here. there are then other options: other firmware or your own sketch for the WiFi module

Thanks ! But don't worry it's a small project, have a nice day !