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?
Where should I connect the Grove Wifi V2? Uart or I2C?
What speed should I use?
As Uno have only one serial how can I address the sensor?
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
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…
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: