Go to Post Along with having good manners, having good judgement goes a long way in life. - ebarker [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2016, 13:46
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
Talon SRX Magnetic Encoders

We are trying the new magnetic encoders plugged into the Talon SRX. When we read the encoder values in our java code, the values (both quad and analog) are constantly changing, floating around a center point (if you will) but are not steady values like you see with regular encoders. If you move the magnet, the values do change but never settle to a constant value. The velocity values also are constantly changing. We must be missing something. I can't see how you can use encoder values that don't sit a zero when not moving and increase decrease at a constant rate when moving. You can't look for a particular number of encoder counts or do feedback if the values are constantly changing even when you are not moving.
  #2   Spotlight this post!  
Unread 30-01-2016, 13:59
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
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: Talon SRX Magnetic Encoders




Post your code, and pictures of your wiring.


  #3   Spotlight this post!  
Unread 30-01-2016, 14:13
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: 522
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: Talon SRX Magnetic Encoders

Also how much is the data changing (plus/minus units).

This is what I would expect if the magnet is not aligned. Is the sensor LED green?
  #4   Spotlight this post!  
Unread 30-01-2016, 14:27
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
Re: Talon SRX Magnetic Encoders

The values vary 20-30 units on pwm and quad, less on analog and if we are careful holding the encoder, the analog settles down. Light is green. Note we are hand holding the encoder for testing as the mount is not built yet. Perhaps that is the problem...but we thought of that and are bracing it and holding as still as possible.
  #5   Spotlight this post!  
Unread 30-01-2016, 14:32
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
Re: Talon SRX Magnetic Encoders

Ok. So it is the manual "mount". No matter how carefully you hold it you can't hold it still enough. An actual mount seems to settle it down...though it is very sensitive and may drift a bit but I think that cures it.
  #6   Spotlight this post!  
Unread 30-01-2016, 14:44
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: 522
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: Talon SRX Magnetic Encoders

20-30 units is about 2 degrees (4096 is one rotation).

You could try placing the magnet in such a way where the entire system is at rest (hands off) and LED is green. Or just continue using your mount.

Analog? You mean the analog input on the Talon SRX? That's not wired in the CTRE Mag Encoder, so I expect that to be ~100 (section 16.21 Talon SRX software reference manual).
Closed Thread


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 11:24.

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