![]() |
Getting value from Potentiometer on SRX Talon
Hi,
We're using a command based robot written in Java and trying to use a 10 turn precision potentiometer (am-2619) hooked into an SRX Talon for our lift system but we cannot figure out how to get the value of its rotation back from the Talon. |
Re: Getting value from Potentiometer on SRX Talon
talon srx software reference manual
http://www.crosstheroadelectronics.c...ol_system.html |
Re: Getting value from Potentiometer on SRX Talon
We've tried using AnalogInPosition, getPosition, and AnalogInVelocity and the only one we get changes from is AnalogInVelocity.
|
Re: Getting value from Potentiometer on SRX Talon
Quote:
|
Re: Getting value from Potentiometer on SRX Talon
Go the talon page on web dashboard and make sure the input is reading correctly. Hardware wise it is easy to exchange the wiper with one of the ends of the pot. Makes for funky readings that sort of work
|
Re: Getting value from Potentiometer on SRX Talon
I won't be able to get any pictures till Monday but thank you for your help so far.
|
Re: Getting value from Potentiometer on SRX Talon
Here's the pictures. I wasn't sure what the MA3 was so I just took a picture of all the connections I could.
![]() ![]() ![]() |
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. |
Re: Getting value from Potentiometer on SRX Talon
Quote:
|
Re: Getting value from Potentiometer on SRX Talon
Yep sounds like it's floating (section 16.21 in Talon SRX Software reference manual).
|
| All times are GMT -5. The time now is 10:27. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi