View Full Version : Steps to make cam work?
magical hands
30-01-2006, 18:47
- Made the cam mount assembly
- Attached the cam to robot
- Cam works fine
- I load kevin's default code into the Controller
- In I/O window i get "CR" (What does that mean?) It keeps repeating "CR"
- Once i press reset button onto the robot in I/O window i see "RM" (what does that mean?)
How i set the cam up
************************************************** ********
- I connected my pan to pwm01
- connected my tilt to pwm02
- I give power to my cam throught pwm03
- Connected my TTL (Mini chip) on to the controller where it says TTL
Questions
************************************************** ********
1) What should my next step be to make my camera work?
2) When i get the values for Red, Green and Blue through GUI? How can i turn it so i can put this colour value into my code? and where and how can i put this colour value into my code?
Thank You Very Much :)
devicenull
30-01-2006, 18:57
Disconnect your laptop from the camera itself.. it doesn't know if it should be talking to you or the robot controller.
You do not have to change the code to track the target. You may want to calibrate the camera to make it track better, but that is well documented in the CMUCam2 Workbook at http://kevin.org/frc/
magical hands
30-01-2006, 19:03
Disconnect your laptop from the camera itself.. it doesn't know if it should be talking to you or the robot controller.
You do not have to change the code to track the target. You may want to calibrate the camera to make it track better, but that is well documented in the CMUCam2 Workbook at http://kevin.org/frc/
I did disconnect the link between camera and computer, but same problems.
1) when i first did it their was nothign showing up in I/O window however after reading the text files i figured out that you have to change the port values by commenting and uncommenting.
2) After i did that, some stuff started to show up in I/O window for e.g. "CR" repeating itself, so i chose to press reset button on controller and "RM" showed up and than "CR" again repeating itself.
How are you guys connecting your camera. Also, how did you guys make ur camera to show values in I/O window? It would be really helpful if someone can briefly make it clear. Thanks :)
The camera itself has 4 connections:
1) PWM cable - Power In (camera) to PWM Out (RC)
2) PWM cable - Pan Servo to PWM Out (RC)
3) PWM cable - Tilt Servo to PWM Out (RC)
4) PWM cable - RS232 3pin (camera) to TTL232 adapter to TTL port (RC)
If you want to view output on your computer, connect your computer's serial port to the Program port on the RC. Open the Terminal window in IFI Loader, and then you can view output.
Alan Anderson
30-01-2006, 20:51
- In I/O window i get "CR" (What does that mean?) It keeps repeating "CR"
- Once i press reset button onto the robot in I/O window i see "RM" (what does that mean?)
That sounds like the Robot Controller is sending its camera communication to the program port instead of the TTL port. You've apparently commented/uncommented the wrong lines. Kevin's code should work just fine without modification.
magical hands
30-01-2006, 21:01
I did but all i see is <IFI> nothing more than that? like the I/O window is completely blank. I don't see any messages in I/O so how can i troubleshoot such problem? What are the possible mistakes.
Alan Anderson
30-01-2006, 21:50
If all you get is the IFI> prompt, your RC is apparently not starting up the user program. Is it communicating properly with the OI?
magical hands
31-01-2006, 17:43
my I/O works fine with other codes. I don't know y it doesn't work with camera code?
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.