CMUCam2 w/Propeller and motor control
Thomas Rippy
Posts: 2
I have a desire to utilize the capability within the CMUCam2 for motion tracking. If anyone is not familiar w/the CMUCam2 it is a very straight forward device that can easily control servo motors for pan/tilt operation. Unfortunately my project requires much higher torque than a servo motor can provide. I currently have the Propeller (which is awesome) controlling a powerful actuator and stepper motor. To make motion tracking easy I figured I could make use of the CMUCam2 servo outputs to tell the Propeller pan/tilt positioning. I'm having difficulties interpreting the output signal from the CMUCam2 and turning it over to my actuator and stepper motor controllers. Currently I am attempting to feed the PWM signal through a 1K resistor (CMUCam2 is a 5V system). Right now I am unable to even verify the timing/frequency of the signal fed into the Propeller let alone transitions to trigger a change in direction. Is this approach feasible? Should I just use the TTL output on the CMUCam2 instead of the direct PWM signal? Should I forget about the CMUCam2 abilities and only use the 6620 camera module directly controlled by the Propeller? Is anyone working w/the Propeller and motion tracking? Any advice is greatly appreciated.
Comments
It is assumed you have the two PWM signals going connected to two pins(verified by a scope) on the Prop via 1k's, and the stepper driver controls already working. If you post your code for the translation maybe someone will notice something to help solve it.
Are you translating the duty to positional information, i.e. duty 20 = a scaled position of 2000?
Post Edited (originator) : 3/22/2007 5:57:23 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,
Simon
BTW: I type as I'm thinking, so please don't take any offense at my writing style
www.norfolkhelicopterclub.co.uk
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)
**This doesn't account for duty = 0
Post Edited (originator) : 3/22/2007 8:12:10 PM GMT