|
Re: Angle Sensor for Vex
UPDATE*** I used 2 50k pots (1 for each arm) and linked them directly to the pivot axle of the arm to get my readings. I know get analog values from 0 to 86 or so that I can use to determine if I am close to the arms limit for range of motion. Wiring was easy as I took a pwm extension cable and cut off the female end to solder it to the pot (center & either outer tap on pot, signal & ground on controller end). To mount it to the shaft I had to cut off some of the length (RS's pots are like 3-4 inches) and then I used a dremel to hollow out the shaft so it would fit over an axle. Origionally, I had drilled another hole in the side of the shaft for a set screw, but the walls are to thin to get any turns, so I have resorted to gluing the pot to the axle. Once accomplished, it is a simple thing to read the value of the pot to see where the arms are.
|