Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
Because of un-manageable amounts of spam despite our use of CAPTCHAs, email authorization, and other tools, we have discontinued this forum (see the 700k+ registered users with validated email addresses at right?). Please email us any questions or post bug reports and feature requests on GitHub at https://github.com/jevois -- The content below remains available for future reference.

How to get Serial data from jevois to NodeMCU ?

+3 votes

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 :

SoftwareSerial txrx(D5,D6);

void setup() {

void loop() {
  while (txrx.available() > 0) {

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 ?

asked Apr 3, 2020 in Programmer Questions by opusr (520 points)

1 Answer

+1 vote
Best answer

It seems that it's not possible to use both RxTx pins and serial monitor. It works using following code:

#include <ESP8266WiFi.h>
#include <ESP8266httpUpdate.h>
#define INLEN 256

char instr[INLEN + 1];

const char* ssid = "SSID";
const char* password = "PWD";
const int led=2;

void setup() {
  WiFi.begin(ssid, password);
  while (WiFi.waitForConnectResult() != WL_CONNECTED) {

void loop() {
   digitalWrite(led, LOW);
  String val = "test=";

  while (Serial.available()) {

  HTTPClient http;    //Declare object of class HTTPClient
          http.addHeader("Content-Type", "application/x-www-form-urlencoded"); 
          int httpCode = http.POST(val); 
         digitalWrite(led, HIGH);

answered Apr 3, 2020 by opusr (520 points)