Hello,
i'm doing a project using CMUCAM2+
i want to make a robot that can grab cans when a certain color is detected
i have used serial to usb to interface CMUCAM2+ with PC and it's well done
when i send command "TW" using Terminal v1.6 the camera response to send data tipe T
example
TW, enter
response :
T 20 40 10 30 30 50 20 30
but when i connect it to serial arduino the response is only random values and doesn't print T as it should be
what i want to ask is, is there any protocol to translate my command or data that my arduino've received?
because i'm using serial to usb and it's done, but not with arduino
thank you
my CODE :
#include <SoftwareSerial.h>
SoftwareSerial cmucam(10,11);
int i;
void setup()
{
Serial.begin(115200);
// Init CMU Cam2
cmucam.begin(115200);
cmucam.println("RS");
cmucam.println("\r");
cmucam.println("CR 18 44");
delay(5000);
cmucam.println("CR 18 40");// RGB white balance off
cmucam.println("CR 19 32");// auto gain off
cmucam.println("PM 1");// set poll mode
cmucam.println("RM 1");// set raw mode on
}
void loop()
{
// set up the camera for color tracking
cmucam.println("tw");
Serial.print(cmucam.read());
delay(200);
Serial.println();
}