Log in

View Full Version : cmucam1


neroc
08-11-2007, 12:45
hi everyone,
sorry if ask for the old question....
i'm newbies in cmu cam field....
actually, i haven't enough budget to develop my final project....
at least this cam can be able me to play with the vision camera.....
how to use gui software for this kind of camera?
anyone can help me....:(

neroc
10-11-2007, 06:59
anyone wouldn't help???
give me some guide please....:(

whitetiger0990
10-11-2007, 16:43
What are you trying to do with the cmucam?

Are you trying to get it to track a light?

neroc
11-11-2007, 09:02
i want to track the ping pong ball.....so i want it know that a ping pong ball....the ball yellow coloured...

steve d
11-11-2007, 13:57
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.

neroc
11-11-2007, 15:00
emmm... i will try out your step....
but i wonder, could be cmucam2 gui is appropriate with my cmucam version 1...
if could, what type of suitable packet to use?

teh_pwnerer795
12-11-2007, 00:57
Im confused. Are you using the CMU cam for your robot, or for a side project?

Nathan
12-11-2007, 17:38
I don't think he's on a robotics team, so technically it's not a side project :D

neroc: Search the forums, read the manuals. If you can't get it working, post very specific questions which we can answer.

One question from me to you, are you using a programming environment such as EasyC or MPLAB?

Need.. More.. Info...

-Nathan

neroc
12-11-2007, 18:24
i'm using MPLAB IDE....
ok i will find out my specific problem....
but i'm still blur whether all technique in cmu version 2 could be implement to cmu version 1?

teh_pwnerer795
12-11-2007, 21:47
ok.. cmucam1... are u talking about the older version ... newer version....is this even from ifi robotics KOP?? or did u just buy it off ebay?

steve d
12-11-2007, 22:08
Actually, I think software-wise version1 and version are the same. The new, version 2 that came with last years kit, doesn't have all the connectors installed, but does have RS232 & TTL serial connectors.

neroc
16-11-2007, 11:22
yes the older version...that was make me dumb....

teh_pwnerer795
16-11-2007, 11:26
K just wondering..

the older version of the cmu cam isnt much different from the 2nd version. The only big difference is the pwm outputs. Someteams hooked these into their victor motors, and the robot went nuts and could not be turned off.

As with programming. There is no difference between the two. Both are programmable using the same language in MPLab.

What code are you using?

Nathan
18-11-2007, 21:48
If you want to, you can get Kevin Watson's code for the CMU cam here: http://www.kevin.org/frc/

There's also tons of documentation on his site.

-Nathan

neroc
08-12-2007, 14:55
hallo everyone....
i'm back.....
i have the question about the command...
1. when send TW and then TC command it send back the M data packet, it's that ok using only one type data packet?
2. Where we can get the TC parameter which is the max/min value of red, blue,
green.
3.in my understanding the initial target of object only when the TW command is send, and it will only refer to the output of TW command as a reference to track the target. Am i correct?
4. Could someone tell me the alghoritm how the cmu operate when interface with PIC?