View Single Post
  #8   Spotlight this post!  
Unread 17-03-2015, 16:04
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 523
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: Getting value from Potentiometer on SRX Talon

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.
Reply With Quote