Thread: cmucam1
View Single Post
  #5   Spotlight this post!  
Unread 11-11-2007, 13:57
steve d steve d is offline
Registered User
FRC #1277
 
Join Date: Jan 2007
Location: Groton, ma
Posts: 38
steve d is an unknown quantity at this point
Re: cmucam1

You can use the CMUcam in just about any project.
1) The big 9 pin D shaped connector can hook up to the serial port of a PC and you can send and recieve command and data using Hyperterminal, (in Windows-Programs- Accesories-Communications) or another terminal program,like TerraTerm.
2) You hook up like in 1), but use a GUI, try the IFIRobotics page for the camera. Go here and download "CAM2 Getting Starting". Everything you need is there including the manual.
3 Use the TTL port connector, black 4 female pins next to 9 pin D connector.
Use this port to talk to it with another uController. I use a BasicStamp to cause it to track a blue light. This port talks serial at a baud rate set by jumpers on the CMUcam (top row of male pins, look in manual for setting).

Basicly, once the camera is initalized, giv it a "TC" command with teh RrdBluGreen values to track, and it will send back a packet, telling you where the target is located, x & y, in it's field of view. You can use those values to move the robots drive motors untill the target is centered.