Hello
Who use CMUCAM4 with Arduino MEGA (or UNO) ?
I have some questions for the treatment of data received by the camera.
Thanks
Hello
Who use CMUCAM4 with Arduino MEGA (or UNO) ?
I have some questions for the treatment of data received by the camera.
Thanks
Try posting your questions.
Hello
This is my first question :
I acquired a CMUCAM4 and I don't have any problems to installing it with the Arduino MEGA on COM2. I like to have information on data processing of the camera after the launch orders TRACKING COLOR (TC) or WINDOWS TRACKING (TW).
My code is for the moment :
#include <SoftwareSerial.h>
#include <CMUcam4.h>
#include <CMUcom4.h>
CMUcam4 cam(2);
void setup() {
cam.begin();
cam.LEDOn(5);
delay(5000);
cam.autoGainControl(CMUCAM4_ACTIVE);
cam.autoWhiteBalance(CMUCAM4_ACTIVE);
//cam.colorTracking(1);//1:Mode YUV 0:Mode RGB
}
void loop() {
cam.setTrackingWindow(0, 0, 159, 119); //Windows 160X120
cam.trackColor(200, 255, 0, 60, 0, 60); //Color RED
CMUcam4_tracking_data_t t_data;
cam.getTypeTDataPacket(&t_data);
}
Where i can used data to control my robot ?
Thanks
First mention of a robot.
What does it do?
What does it look like
I acquired a CMUCAM4 and I don't have any problems to installing it with the Arduino MEGA
The Mega has 4 hardware serial ports, so why?
#include <SoftwareSerial.h>