Hello everyone,
I am trying to use this simple c code to get infos from the jevois camera to be printed on my computer ArduinoIDE Serial monitor thru a NodeMCU Lolin V3 :
#include<SoftwareSerial.h>
SoftwareSerial txrx(D5,D6);
void setup() {
Serial.begin(115200);
txrx.begin(115200);
}
void loop() {
txrx.write("info");
while (txrx.available() > 0) {
Serial.print((char)txrx.read());
}
}
My serial monitor (on computer) is set to 115200 Bauds and the 4Pins serial from jevois is wired to the NodeMCU this way :
Jevois RED --------> nodemcu Vin
Jevois BLACK ----> nodemcu Ground
Jevois YELLOW -> nodemcu D6
jevois WHITE -----> nodemcu D5
I have weird behaviors during my tests.
The NodeMCU seems not to send commands correctly, and i can't get proper datas from jevois.
Sometimes i receives stuff bus it's mosly garbage chars.
What am i doing wrong ?