View Full Version : Hardware is all good, what do i do now for software?
GraphicArtDesig
19-01-2006, 21:35
Hi
I have:
PC tethered to RC via program port
RC tethered to OI via tether port
TTL Cable connected to Camera
Servo's 1/2 connected to PWM ports 1/2
Camera power inpute connect to PWM port 3
Backup battery is charged up
Main battery is charged up
all connections are not loose everything is good
what do i do now? what program do i load onto the RC? how do I load it? etc etc. Please help
Go to Kevin's website (http://kevin.org/frc/) and download the frc_camera.zip file and load the .hex file included in the zip onto the RC using IFI_Loader (http://ifirobotics.com)! Also tripple check the power to the camera because you can fry it easily!
GraphicArtDesig
19-01-2006, 22:17
okay great, and it'll look for the green light? is the pan suppose to be plugged into PWM port 1 or 2? or doesn't matter? anyways. So once i load the frc_camera.zip file (i assume the .hex file since it's using IFI loader) what will it do?
Pan and Tilt servos are supposed to be plugged into the RC ports PWM1 and PWM02. When you download the zip file you will need to unzip it first and it will create a folder called frc_camera. Then you will need to open ifi_loader and hit browse and go to the frc_camera folder in which there will be a camera.hex file (the only one that will appear in the browse window) just double click that and hit download to start downloading to the RC. Make sure the program light on the RC is orange and it should start blinking once the code starts downloading. Once the code is done downloading a terminal window will pop up that gets feedback from printf() functions in the code.
The code will search for the green light and lock onto it. If you get the bell and whistles version there are two menus a tracking menu and a camera menu where you can change the color values and all of the configuration options from tracking.h and camera.h.
GraphicArtDesig
19-01-2006, 23:48
I inpute the code, the tilt works fine, but the pan seems to be stuck, keeps going to the left (If looking at the camera) any ideas?
The code will search for the green light and lock onto it. If you get the bell and whistles version there are two menus a tracking menu and a camera menu where you can change the color values and all of the configuration options from tracking.h and camera.h.[/QUOTE]
Hehe all you have to do is open up tracking.h in MP Lab and then change
// If your camera suddenly moves away from the target once
// it finds it, you'll need to change the sign on one or
// both of these values. Start with the tilt first.
#define PAN_ROTATION_SIGN_DEFAULT -1
#define TILT_ROTATION_SIGN_DEFAULT 1
Recompile and then dump your new hex file onto the RC and the PAN will go the other way!
GraphicArtDesig
20-01-2006, 00:01
okay, thanks a lot iBheat!
okay, thanks a lot iBheat!
Anytime!
GraphicArtDesig
20-01-2006, 19:13
well I did what you said, the pan doesn't work, the tilt works fine going from about 0 degrees (looking at side of caemra, camera is pointing straight across) to about somewhere about 170 degrees, hitting the metal. The pan works a bit, shifting but gettings hifted back because of the tilt. Any ideas?
Well the first problem is that your servos are reversed you have the PAN servo plugged into the TILT servo PWM out and the TILT servo plugged into the PAN servo PWM out. And for your second problem check if your backup battery is low!
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.