Go to Post Let's leave the football uniforms at home though, teams. ... The last thing I want to see is Baker in Brett Favre yellow spandex... *shudder* - Amanda Morrison [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2006, 18:05
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
CMUCam TTL problems

We're having trouble with our camera. We are unable to get it to track properly. We have followed the Tutorial 7 in easyC, and have an understanding of how it works. We have tried using both the 3 pin RS-232 to TTL converter, and a TTL to TTL cable. We can initialize the camera (which is extremely slow ~20 seconds), but we can't GetTrackingData. The function just hangs in the terminal window.

Are there more settings? Is there a way to tell if the data is even coming off the camera board?
  #2   Spotlight this post!  
Unread 23-01-2006, 21:56
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 586
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: CMUCam TTL problems

Quote:
Originally Posted by gabrielse
We're having trouble with our camera. We are unable to get it to track properly. We have followed the Tutorial 7 in easyC, and have an understanding of how it works. We have tried using both the 3 pin RS-232 to TTL converter, and a TTL to TTL cable. We can initialize the camera (which is extremely slow ~20 seconds), but we can't GetTrackingData. The function just hangs in the terminal window.

Are there more settings? Is there a way to tell if the data is even coming off the camera board?
You can view the data coming from the camera by setting an internal variable to 1. To do this you need two blocks:
  1. User code block with an extern declaration: extern unsigned char _camera_debug;
  2. Then add an assignment block before the camera is initialized that has: _camera_debug = 1;
This will cause the stream of initialization commands that are sent to the camera to be displayed in the terminal window. You won't see the actual tracking data being returned since that is in binary.
If you don't see the initialization data being sent, then look for problems with the camera connections.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #3   Spotlight this post!  
Unread 24-01-2006, 13:43
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
Re: CMUCam TTL problems

I did what you suggested but I don't know how to interpret the results.

I created the code from Tutorial 7, added comments, and added the two code blocks you suggested (code attached).

It appears that the camera is never capturing a frame. This is the terminal output (also in attached zip file).

->
<-
->
<-
-> RM 1
<-
-> DM 20
<-
-> CR 41 128
<-
-> CR 19 32
<-
-> CR 42 128
<-
-> CR 43 32
<-
-> CR 45 132
<-
-> CR 18 32
<-
-> CR 0 0
<-
-> CR 1 128
<-
-> CR 2 128
<-
-> CR 3 128
<-
-> CR 6 1
<-
-> CR 16 1
<-
-> ST 85 115 15 17 10 145
<-
-> NF 1
<-
-> SM 12
<-
-> SP 16 8 5 30 15 5
<-
camera initialized
two wheel drive selected, left motor = PWM 1, right motor = PWM 2
Autonomous Mode commencing
-> TC
<-
camera started


No matter how long I wait I never get a message that the camera captured a frame.

I also noticed that the red light on the camera board (DS3) is always on. Should it be on?
Attached Files
File Type: zip camera test.zip (524 Bytes, 69 views)

Last edited by Kingofl337 : 24-01-2006 at 14:10.
  #4   Spotlight this post!  
Unread 25-01-2006, 07:54
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 586
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: CMUCam TTL problems

Quote:
Originally Posted by gabrielse
I did what you suggested but I don't know how to interpret the results.

I created the code from Tutorial 7, added comments, and added the two code blocks you suggested (code attached).

It appears that the camera is never capturing a frame. This is the terminal output (also in attached zip file).

->
<-
->
<-
-> RM 1
<-
-> DM 20
<-
-> CR 41 128
<-
-> CR 19 32
<-
-> CR 42 128
<-
-> CR 43 32
<-
-> CR 45 132
<-
-> CR 18 32
<-
-> CR 0 0
<-
-> CR 1 128
<-
-> CR 2 128
<-
-> CR 3 128
<-
-> CR 6 1
<-
-> CR 16 1
<-
-> ST 85 115 15 17 10 145
<-
-> NF 1
<-
-> SM 12
<-
-> SP 16 8 5 30 15 5
<-
camera initialized
two wheel drive selected, left motor = PWM 1, right motor = PWM 2
Autonomous Mode commencing
-> TC
<-
camera started


No matter how long I wait I never get a message that the camera captured a frame.

I also noticed that the red light on the camera board (DS3) is always on. Should it be on?
There are no ACKs coming back from the camera. Can you try either cycling the power or holding down the reset on the robot controller for about 5 seconds and see if it starts working. You should see an ACK after each of those commands in your terminal window output.

Sometimes the camea seems to get into a state where it won't respond next time it is run. Give that a try and see if it starts working.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #5   Spotlight this post!  
Unread 13-02-2006, 14:07
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
Re: CMUCam TTL problems

Quote:
Originally Posted by BradAMiller
There are no ACKs coming back from the camera. Can you try either cycling the power or holding down the reset on the robot controller for about 5 seconds and see if it starts working. You should see an ACK after each of those commands in your terminal window output.

Sometimes the camea seems to get into a state where it won't respond next time it is run. Give that a try and see if it starts working.
Thanks for the help. Team 007 came over with their camera. Our camera board was broken. We had to get a new one.
Closed Thread


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
Major CMUcam issues - LabView app won't work, very low-quality picture scottmso Programming 5 19-01-2006 17:51
CMUcam setup Ryan Collings Programming 26 13-01-2006 01:00
CMUcam 2 problems KChampion Programming 1 07-06-2005 10:39
EDU-RC, USART2 (TTL), CMUCAM ChrisHomer44 Programming 2 30-04-2004 21:38
TTL pins Dave... Control System 3 07-02-2004 23:59


All times are GMT -5. The time now is 16:17.

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