Earlier today before we started working we just hooked up the camera to show people how the tracking worked. It was working fine but the calibration for yellow was a bit off so I decided to get a new exposure value for yellow. I (eventually) got it, and put the new exposure value in, loaded the code and ran it, but I was getting the blinking red PWM lights and “Camera is not responding” message in the Terminal window. The strange thing is that the camera has power (the lights come on) and if it isn’t at its standard position its servos move it back.
I immediately figured the backup battery was low so I checked and it was okay, I then checked my connections, opened the camera case and checked its connections, and everything was in order.
I was stumped so I looked back at the code and noticed the lights are supposed to blink if:
(note: this is from the default code)
case 1:
if (camera_init(64,85,50)) // Set the 3 exposure values yellow, green and red
{
cam_state_flag = 2;
Pwm1_red = Pwm2_red = Relay1_red = Relay2_red = 0;
}
** else
{
cam_state_flag = 4; //Issue continual retries until camera responds
delay = 19; //Set delay for 1/2 sec (26.2ms * 19 = ~.5s)
Pwm1_red ^= 1; //Flash All Color LED Indicators when camera is not responding
Pwm2_red ^= 1;
Relay1_red ^= 1;
Relay2_red ^= 1;
}
**
I concluded that there must be something wrong with the exposure values, so I loaded the default code and got the same problem. I then figured it must be something wrong with the hardware, and since the servos and power were working then it must be something wrong with the TTL serial connection. I checked the connection with the ohmmeter and tried changing the wire between the adapter and the camera and nothing works!
My question is, what could have happened when I went to calibrate the camera?? Does the camera save the exposure values on its hardware somehow? Does anyone have any other ideas?? Please?!?!?
Thank you!