View Single Post
  #9   Spotlight this post!  
Unread 17-03-2015, 23:22
Fred326 Fred326 is offline
Registered User
FRC #5442
 
Join Date: Mar 2015
Location: United States
Posts: 5
Fred326 is an unknown quantity at this point
Re: Getting value from Potentiometer on SRX Talon

Quote:
Originally Posted by ozrien View Post
So what value did you get from getAnalogInPosition().

If it's near 0, then the analog input pin is being pulled to ground externally.
If it's near 1023, it's being pulled to positive voltage (greater then 5V at the analogbreakout input, or greater than 3.3V at the Talon input).
If it's near 100 then it's floating (not connected to anything).

Also it might just be easier to grab the self-test results in the web-based config (section 2.4). That will rule out bad code.

Use a DC meter to confirm you are getting 0 - 5V swing on the analog input pad on the breakout. Your MA3 might not be getting power. Rotate the mechanism slowly while monitoring the voltage of the analog signal.
It was 102 so I'll talk to electrical about it tomorrow. Thank you for your help.
Reply With Quote