Arduino Uno + Grove Wifi V2

Hi guys,

I’m a newbie in this Grove sensors…
I’m trying to get working a WiFi V2 sensor in an Arduino Uno base (with shield).
I’m note having any king of success… The example in Grove page is with a LCD that I don’t have.
Can you please help?

  1. Where should I connect the Grove Wifi V2? Uart or I2C?
  2. What speed should I use?
  3. As Uno have only one serial how can I address the sensor?

Many thanks.

Regards,

Rumica

  1. You need to connect the Grove WiFi V2 to Grove base UART Port.
  2. You can use the 115200 baud rate.
  3. You can use SoftwareSerial. More details here: https://www.arduino.cc/en/Reference/softwareSerial

I’ve connected to D2 port. If I connect to Uart there a conflit going all the time due to interferance between USB serial and “myserial”.
I’ve tried lots of baud combination and none of them is error free. Strange characters happens all the time. I’m stick to 115200 on serial and 19200 on myserial.
SoftwareSerial rules!
Now I’ve to work on AT commands.
It’s a shame that Grove don’t give enough information to solve/help this issue.
Regards,
Rumica

can you share the code and the error log! can I take a look?

Lot’s of sk500 errors…

Now I’m trying to use your sugestion, but only works with myserial @115200. Anda at that baud lots of charaters are missing. If I reduce baud, not able to comunicate… tricky…

Thanks.

#include <SoftwareSerial.h>

SoftwareSerial mySerial(2, 3); // RX, TX

char at[] = “AT\n\r”;

void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(38400);
while (!Serial) {
; // wait for serial port to connect. Needed for Native USB only
}

Serial.println(“Goodnight moon!”);

// set the data rate for the SoftwareSerial port
mySerial.begin(115200);
mySerial.println(“Hello, world?”);
mySerial.write(at);

}

void loop() // run over and over
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
// mySerial.write(rui);
// delay(100);
}

It works only with: mySerial.begin(115200);
Some strange charaters still appears:

Hello, world?

⸮RROR
AT

A⸮+CWLAP

busy p…

AV+CWJAP=’:slight_smile: c’,'20RGoodnight moon!
Hello\ world?

⸮RROR
AT

AT+CWLAP

btsy p…

AT+CWJAP=’:slight_smile: c’,‘22’
AT

Can you have any ideas?

Rumica