Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   USB - Serial cable (http://www.chiefdelphi.com/forums/showthread.php?t=59321)

Tottanka 28-10-2007 10:53

USB - Serial cable
 
Hey guys,
i am trying to get a picture from the cmucam2 using mplab to my laptop, which doesnt have serail ports, only usbs (4 of them).
i read somewhere that i need a driver of some sort...
the usb cable im using is from the vex kit, i think, and its orange, if it helps you help me =]

Thanks, im depsperate here!

MrForbes 28-10-2007 10:56

Re: USB - Seiral cable
 
maybe this thread will help?

http://www.chiefdelphi.com/forums/sh...ad.php?t=46174

a real serial port does seem to work better, though. Don't you have any old computer around? (asks the guy with about 100 old computers at home)

Tottanka 28-10-2007 11:25

Re: USB - Seiral cable
 
thanks, its ALIVE!

Tottanka 29-10-2007 07:18

Re: USB - Seiral cable
 
ANOTHER PROBLEM:
i've downloaded kevin's whistling code to the RC, connectede the camera as said (i think), and it isnt searching for the light at all...
anyone knows what it might be?

Alan Anderson 29-10-2007 10:26

Re: USB - Seiral cable
 
Quote:

Originally Posted by Tottanka (Post 648443)
...it isnt searching for the light at all...
anyone knows what it might be?

It might be any one of a dozen wiring issues.

It might be that you don't have camera power applied.

It might be that you don't have the pan and tilt servos correctly connected.

It might be that you don't have a fully-charged backup battery connected.

It might be that you don't actually have the camera serial data connected properly.

It might be that you don't have the Robot Controller enabled.

It might be that you have a faulty camera board.


What is it doing? You should be able to monitor the process with a terminal window while the computer is connected to the RC's program port.

MrForbes 29-10-2007 10:41

Re: USB - Seiral cable
 
yup, having a few photos showing your setup, including all the wiring connections, and maybe some screen shots, would help others help you figure it out.

Tottanka 29-10-2007 14:46

Re: USB - Seiral cable
 
the camers is on, backup battery is good too...
it might be the wiring, though i dont thins so. pan is pwm1 tilit is pwm2, power is frome pwm16 and the ttl is connected, is that it?

The window is supposed to say search, but it doesnt...
any clue?

whytheheckme 29-10-2007 15:22

Re: USB - Seiral cable
 
What is the LED on the camera doing?

How about when you put the green light in front of the lens?

Jacob

Alan Anderson 29-10-2007 16:58

Re: USB - Seiral cable
 
Quote:

Originally Posted by Tottanka (Post 648493)
The window is supposed to say search, but it doesnt...
any clue?

At the risk of (almost) repeating myself...what does it say?

It sounds like the Robot Controller is not running the program. Are you running it tethered or via radio? What color are the status LEDs on the RC and OI?

Tottanka 29-10-2007 18:06

Re: USB - Seiral cable
 
OK, now i've got her searching for the light, but once she finds it she doesnt stop searching, but keeps on going..
the red led doesnt turn on when she's "on" the target.

Alan Anderson 29-10-2007 19:10

Re: USB - Seiral cable
 
Quote:

Originally Posted by Tottanka (Post 648539)
OK, now i've got her searching for the light, but once she finds it she doesnt stop searching, but keeps on going..
the red led doesnt turn on when she's "on" the target.

Make sure the camera lens is properly focused.

You might find most of your concerns are addressed in Kevin Watson's CMUCam2 FAQ.

bear24rw 30-10-2007 01:26

Re: USB - Seiral cable
 
If the red light doesnt come on the camera is not tracking it, even though its pointing at it. You might want to recalibrate your camera and get new color values.

Tottanka 30-10-2007 07:27

Re: USB - Serial cable
 
The camers if focused. I have calibrated her udins LabView, but it still doesnt work.
Any ideas?

Tottanka 30-10-2007 12:57

Re: USB - Serial cable
 
Any ideas anyone?

JamesBrown 30-10-2007 19:06

Re: USB - Serial cable
 
Quote:

Originally Posted by Tottanka (Post 648696)
Any ideas anyone?

Download the CMUCam2 GUI and capture an image with the light in it. Next select the light and check to make sure that the values Y, Cr, and Cb are within the ranges you found when you calibrated the camera.

If the red light does not come on then the camera doesn't see the light, it must either be out of focus, calibrated wrong, or wired wrong.

James


All times are GMT -5. The time now is 01:21.

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