We use these for counting the revolutions of our motor. We mount them to the output shaft of the gearbox with a piece of surgical tubing. One of our mentors manufactured some spiffy plastic mounts that strap onto the side of the motor to hold the potentiometer. Works pretty nice.
Hey everyone. Here is detailed shots, as well as a shot giving dimentions, of the POT holder for the 2.5" CIM motor. Sorry I can’t find my CAD drawing. Might of went with my computer when I had it wiped.
Quick question and I dont want to start a thread about it. Do potentiometers have to be reset at all some way? Ive been tinkering with code and simply using the AnalogChannel->GetVoltage() and printing it to the console gives a voltage reading somewhere around ~30,000,000 which I assume means it isnt hooked up. No one has touched it since competition season and the potentiometer was fine since the last competition.
What format string are you using when you print the value? The GetVoltage() function returns a float. You might have accidentally tried to print it as an int instead.
Not in the room atm but I’m sure that all three wires are connected to a pwm which then feeds into the analog module. It hasnt been changed (or at least not that I know of because OCCRA happened and fuses/pwms were taken off of the robot.) since last competition.
Colin,
Assuming that the code is functional, the reading sounds like what I would expect with a shorted wire. Use a voltmeter and check at both the pot and the wiring entry to the analog module.