Go to Post FIRST already has 494 Martians, plus 70 more. - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-03-2015, 15:39
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
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-03-2015, 23:16
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 537
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

talon srx software reference manual
http://www.crosstheroadelectronics.c...ol_system.html
Reply With Quote
  #3   Spotlight this post!  
Unread 14-03-2015, 15: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

We've tried using AnalogInPosition, getPosition, and AnalogInVelocity and the only one we get changes from is AnalogInVelocity.
Reply With Quote
  #4   Spotlight this post!  
Unread 14-03-2015, 16:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,102
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Getting value from Potentiometer on SRX Talon

Quote:
Originally Posted by Fred326 View Post
We've tried using AnalogInPosition, getPosition, and AnalogInVelocity and the only one we get changes from is AnalogInVelocity.
Post a (focused) picture showing the connections at both the Talon end and the MA3 end.


Reply With Quote
  #5   Spotlight this post!  
Unread 14-03-2015, 22:35
FrankJ's Avatar
FrankJ FrankJ is online now
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,942
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
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
__________________
If you don't know what you should hook up then you should read a data sheet
Reply With Quote
  #6   Spotlight this post!  
Unread 15-03-2015, 19:32
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

I won't be able to get any pictures till Monday but thank you for your help so far.
Reply With Quote
  #7   Spotlight this post!  
Unread 17-03-2015, 09:15
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

Here's the pictures. I wasn't sure what the MA3 was so I just took a picture of all the connections I could.



Last edited by Fred326 : 17-03-2015 at 09:25.
Reply With Quote
  #8   Spotlight this post!  
Unread 17-03-2015, 16:04
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 537
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
  #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
  #10   Spotlight this post!  
Unread 17-03-2015, 23:37
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 537
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

Yep sounds like it's floating (section 16.21 in Talon SRX Software reference manual).
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:57.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi