Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Camera Help (http://www.chiefdelphi.com/forums/showthread.php?t=51821)

itzrobz 14-01-2007 10:26

Camera Help
 
LabView is unable to find my camera, but i am able to upload code to it. What could be wrong?

-Programming Cable is Connected to Camera
-PWM1 and PWM2 are servos pan and tilt, respectively
-The TTL chip is connected to the RC.

Thanks for your time.

Mark McLeod 14-01-2007 11:12

Re: Camera Help
 
To use Labview with the camera:
- Connect the camera directly to the PC via serial cable.
- Connect the camera power only to an RC PWM, analog or digital pin.
- Do not connect the camera to the RC TTL port.
- The RC and OI must be powered up and communicating.
- The camera must be switched on

You can have either Labview or the RC controlling the camera but not both at the same time. Trying to only confuses the camera since it doesn't know who to listen to.

itzrobz 14-01-2007 11:22

Re: Camera Help
 
The Camera Servos are connected to the RC. If i wanted to control those servos would I have to connect Camera or the RC?
In order to read the Camera output, would i have to combine the FRC code and the Camera code or upload the FRC code to RC and Camera code to camera?

Mark McLeod 14-01-2007 11:28

Re: Camera Help
 
We only download our code to the RC not to the camera. That code in the RC handles setting up the camera.
We can send commands directly to the camera through Labview or a terminal emulation program on your PC to play around, but in competition we'll only be working through the RC code.

Labview cannot be used to test drive the camera servos with this year's model of the camera. It can play with the other camera controls, and help you focus the camera lens.

To run the camera with the servos, then disconnect your PC from the camera and connect the camera instead to the TTL port on the RC.
There are two ways to program your RC 1) MPLAB 2) EasyC.
For MPLAB download Kevin Watson's camera code from http://kevin.org/frc/, specifically start with http://kevin.org/frc/frc_camera_2.zip and use IFI_Loader to download the enclosed hex file to your RC.
For EasyC o to http://www.intelitekdownloads.com/easyCPRO/ for the code and post specific questions about it on this CD sub-forum http://www.chiefdelphi.com/forums/fo...play.php?f=155

itzrobz 14-01-2007 11:30

Re: Camera Help
 
That would mean I would have to combine the camera code and the FRC code and upload them to the RC?

Sorry, I am new to this.

Mark McLeod 14-01-2007 11:47

Re: Camera Help
 
Sorry to throw so much at you.

Yes, you'll need to combine your code, but start with just the camera code to make sure you figure out how that works first.

Start simple and build up.

itzrobz 14-01-2007 11:52

Re: Camera Help
 
Alright I understand what to do. Thanks for the help.

Bomberofdoom 18-01-2007 16:13

Re: Camera Help
 
How does the connection of the camera for the Kevin's MPLab Camera code go?(or in simple english, how do I connect for he MPLab CMU code?)

itzrobz 21-01-2007 10:36

Re: Camera Help
 
you upload the code to the RC. ONLY the PWMs and the TTL should be connected from the RC to the Camera

Bomberofdoom 22-01-2007 08:05

Re: Camera Help
 
Ok, wait. We had the camera working with LabVIEW. We're supposed to connect the camera to the TTL, the RC to the comp', pass the MPLab camera program to the RC and then take out the TTL, connect the CMU to the comp' and then use LabVIEW to calibrate?
If so, how?(and please don't send me to even more manuals, I try to read them but evantually I barely understand what they tell me to do:( ).

Imajie 22-01-2007 08:31

Re: Camera Help
 
Quote:

Originally Posted by Bomberofdoom (Post 562383)
Ok, wait. We had the camera working with LabVIEW. We're supposed to connect the camera to the TTL, the RC to the comp', pass the MPLab camera program to the RC and then take out the TTL, connect the CMU to the comp' and then use LabVIEW to calibrate?
If so, how?(and please don't send me to even more manuals, I try to read them but evantually I barely understand what they tell me to do:( ).

Once you load the program to the RC leave the TLL connected to the camera so the RC knows what the camera is seeing. You only need to have the camera connected to the computer to calibrate it. Hope that helps a little.:)

Bomberofdoom 22-01-2007 10:11

Re: Camera Help
 
We loaded the program, it worked once(found the light), but the servos didn't move. Then we realized that we put the camera power and the Servo PWM cables to the Digital IO :eek: . We fixed it, put them all in the PWM output, didn't work. Put the power in the Digital IO. Didn't work.
What now????

itzrobz 24-01-2007 11:38

Re: Camera Help
 
Quote:

Originally Posted by Bomberofdoom (Post 562435)
We loaded the program, it worked once(found the light), but the servos didn't move. Then we realized that we put the camera power and the Servo PWM cables to the Digital IO :eek: . We fixed it, put them all in the PWM output, didn't work. Put the power in the Digital IO. Didn't work.
What now????

SERVOS get plugged into the PWM.
As for the Camera Power, if PWM dont power it try plugging it into the Analog, thats what we did.

Kingofl337 24-01-2007 11:47

Re: Camera Help
 
I also recommend using the Digital or Analog outputs to power the camera. To make the servo's move make sure you have your backup battery charged. You can check to see if the OI is reporting low backup battery.

Kevin Watson 24-01-2007 16:41

Re: Camera Help
 
Quote:

Originally Posted by Kingofl337 (Post 564162)
I also recommend using the Digital or Analog outputs to power the camera.

Perhaps I'm totally ignorant, but why do you continue to advise teams to do this?

-Kevin


All times are GMT -5. The time now is 18:54.

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