Go to Post A chop saw may cut aluminum, a knife can also be used to eat ice cream. - fox46 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 28-01-2005, 21:54
neilsonster's Avatar
neilsonster neilsonster is offline
Registered User
AKA: Andrew Neilson
FRC #0772 (Sabre Bytes)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Waterloo, ON, Canada
Posts: 188
neilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to all
Send a message via MSN to neilsonster
Unresponsive camera

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)
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!
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
Camera not found!!! Code\\Pilot Programming 11 02-02-2005 00:04
Kevin Watson's Kick-off Demo Code! Mr. Lim Programming 27 22-01-2005 03:38
Game Field Camera Calibration Matthew_H Regional Competitions 2 15-01-2005 23:09
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11


All times are GMT -5. The time now is 10:23.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi