Cannot receive data from camera


hi @ all! i'm trying send , receive data thermocam. it's flir tau 2.

this wiring:


this code:
#include <softwareserial.h>

#define rxpin 12
#define txpin 13
#define rtspin 10
#define ctspin 11

softwareserial myserial(rxpin, txpin);

void setup()
{
    serial.begin(57600);
    while (!serial) {
    }
 
    myserial.begin(57600);

    serial.println("inizio");

    delay(3000);
   
    pinmode(rtspin, output);
    pinmode(ctspin, input);

    byte data[10] = { 0x6e ,0x00 ,0x00 ,0x05 ,0x00 ,0x00 ,0x34 ,0x4b ,0x00 ,0x00 };

    serial.println("invio");

    digitalwrite(rtspin, high);
    while (digitalread(ctspin) != high)
    {}

    myserial.write(data, 10);
    myserial.flush();
   
    digitalwrite(rtspin, low);
   
    serial.println("completato");
}

void loop()
{
    while (myserial.available())
        serial.println(myserial.read(), hex);
}

what doing wrong?
thanks in advance!

what's going wrong? observe?


do have rx tx connected correctly? pins 5v tolerant?
is baud rate 57600 device?
is serial console in ide set 57600 bauds?
are powering device?


Arduino Forum > Using Arduino > Programming Questions > Cannot receive data from camera


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor