|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Our two problems...
You'll want to make sure the servos are on the default PWM outs 1 and 2. (This conflicts with the drive motors of Default_Routine(), by the way, so make sure that the call to Default_Routine() is commented out.) The fact that the servos are twitching upon activation makes it sound like they're just getting a 127 output to me. If you can't use PWMs 1 and 2, you can easily redefine them in tracking.h (for the Kevin.org streamlined code, I've never used anything else).
|
|
#2
|
|||
|
|||
|
Re: Our two problems...
Quote:
Quote:
Quote:
|
|
#3
|
|||||
|
|||||
|
Re: Our two problems...
we managed to get our camera working today. Here's what we did:
1. download the Kevin Watson's camera code (we used the bells and whistles version) 2. Make sure everything is plugged in. This includes the fully charged backup battery, main battery, pwm cable to the camera for power (plugged into any pwm port), pwm01 and pwm02 connected to pan and tilt respectively, and the TTL - RS232 converter chip is inserted correctly with a pwm cable running to the 3-pin RS232 port on the camera 3. make sure the lens cap is off of the camera and the camera switch is on. 4. turn on the microcontroller and, after building the camera code, download to the microcontroller. 5. press the reset button or turn off the microcontroller and turn it back on. You should see the green light and possibly the red one on the camera. At that point, if there is no target in sight, the camera should go into it's search mode. 6. check the terminal window on the computer (forgot to mention: make sure you leave the microcontroller connected so you can see the messages in the terminal window) If it says No camera data., you may need to check all the connections to make sure they work and then press the reset button. When we were working on the camera today, we found that the TTL - RS232 converter chip was somewhat loose, and after checking it and getting it on firmly, it seemed to work. that's about all we did, and after much testing, it finally worked. You may find that it takes several days to locate the problem, but don't give up, the camera is very important (I think) in the game this year. |
|
#4
|
|||
|
|||
|
Re: Our two problems...
Okay, here is the update. Today I remembered to comment out the bit in the Default_Routine() with pwms 1 and 2 which got the camera to work, however it would seem not completely. I remember last year the camera would move around until it found the light, currently all our camera does is center itself to the home position.
This is quite a bit further than we were last meeting. Today was spent pouring over all of the tracking code to figure out how to get it to "search." The majority of our time was spent looking at the T_Packet code(whatever a T_Packet is ) trying to figure out how to get our camera to search. I'm using the streamlined version of Kevin's camera code, our third and hopefully final problem: How to make it start searching? |
|
#5
|
|||||
|
|||||
|
Re: Our two problems...
Quote:
Depending on which way you mounted the camera in the pan/tilt assembly, you might have to change the sign of the pan direction definition in the code. You can tell when this is necessary by seeing the camera "hide" from the light rather than seek it. |
|
#6
|
|||
|
|||
|
Re: Our two problems...
Quote:
The only thing that I still do no understand is the T_Packets. Also, when I define which serial port the camera goes into... Serial Port 1 is the programming and Serial Port 2 is the tether correct? And I just noticed the CMU cam sub-thread... should I have put this there instead? |
|
#7
|
|||||
|
|||||
|
Re: Our two problems...
Serial port 2 is the one labeled "TTL" (not the tether) and depending on which camera port you connect to it usually requires the tiny TTL-converter chip that came packaged with, but separate from, the camera board.
You'll want to keep your PC connected to the Program port while you test the camera, so you can see the status messages displayed to tell you what's wrong (or right) with the camera. Did you look at the T-packet description? http://kevin.org/frc/CMUcam2_data_packets.pdf Yea, CMUCam issues should be posted in the CMUCam sub-forum, but we'll forgive you. Last edited by Mark McLeod : 23-01-2007 at 15:17. |
|
#8
|
|||
|
|||
|
Re: Our two problems...
I've finally got it all working.
Quote:
Quote:
Quote:
Anyways, my primary problem, aside from leaving the serial cable plugged in was that I never included terminal.c and terminal.h. I re-read the insrtuctions and found no reference to either. Thanks for your help everyone. ^_^ |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Two of our favorite people ... | Stu Bloom | General Forum | 0 | 03-05-2006 15:49 |
| Our pump has problems! | waialua359 | Pneumatics | 7 | 24-01-2006 13:02 |
| Problems with our school | Team1726Nerds | Chit-Chat | 6 | 13-01-2006 23:55 |
| Putting two and two together... | Andy Grady | General Forum | 13 | 08-01-2004 18:29 |
| problems with our programmer | AlphaOmega870 | Programming | 12 | 31-01-2003 08:23 |