Go to Post Don't forget to stock up on luck. You'll need some of that too. - Molten [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
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 26-01-2016, 23:35
Tparbotmail Tparbotmail is offline
Registered User
FRC #3944
 
Join Date: Jan 2015
Location: Az
Posts: 68
Tparbotmail is an unknown quantity at this point
Encoder on SRX Returning wildly differing values

Just hooked up our E4P encoders, and we are getting wildly differing values. I confirmed that my java code matched the the rio browser selftest output. All firmware is up to date. I am pretty sure it is not a coding problem.

If you push the joystick forward for 2 seconds 1 encoder will read several thousand revolutions the will read a couple hundred. The wheels are spinning just fine. The robot move in perfectly straight line.

How do you confirm that an encoder is damaged or wired incorrectly?
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2016, 23:54
Poseidon5817's Avatar
Poseidon5817 Poseidon5817 is offline
"Cool" Squad
AKA: Mitchel Stokes
FRC #5817 (Uni-Rex)
Team Role: Mentor
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Clovis, CA
Posts: 360
Poseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud of
Re: Encoder on SRX Returning wildly differing values

Quote:
Originally Posted by Tparbotmail View Post
Just hooked up our E4P encoders, and we are getting wildly differing values. I confirmed that my java code matched the the rio browser selftest output. All firmware is up to date. I am pretty sure it is not a coding problem.

If you push the joystick forward for 2 seconds 1 encoder will read several thousand revolutions the will read a couple hundred. The wheels are spinning just fine. The robot move in perfectly straight line.

How do you confirm that an encoder is damaged or wired incorrectly?
Do you have the encoder counts per revolution configured correctly? This was an issue for us for a little while.
__________________
My FRC History:

2014 - Team 1671: Central Valley Regional Finalist and Chairman's Award Winner, Sacramento Regional Finalist, Archimedes Quarterfinalist
2015 - Team 1671: Central Valley Regional Semifinalist, Sacramento Regional Semifinalist and Chairman's Award Winner, Newton Winner, Einstein Winner
2016 - Team 5817: Central Valley Regional Finalist and Rookie All-Star, Orange County Regional Quarterfinalist and Rookie All-Star, Newton Division
2017 - Team 5817: Return of the bench grinder


Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2016, 00:13
Tparbotmail Tparbotmail is offline
Registered User
FRC #3944
 
Join Date: Jan 2015
Location: Az
Posts: 68
Tparbotmail is an unknown quantity at this point
Re: Encoder on SRX Returning wildly differing values

We've done no configuring yet. Just out of the box, working with get methods just to get a feel for them. The browser and my code match. I think the one is damaged. They are off by thousands. We are dependent on our electrical team to swap, and I was wondering if there is a way to prove it is physically damaged without just swapping it out.
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2016, 09:55
sraque's Avatar
sraque sraque is offline
Registered User
AKA: Steve Raque
FRC #2614 (MARS)
Team Role: Mentor
 
Join Date: Jun 2012
Rookie Year: 2009
Location: Morgantown, WV
Posts: 79
sraque is on a distinguished road
Re: Encoder on SRX Returning wildly differing values

You can be 100% sure of you code not being the issue if you use the web interface to the RIO and do a self-test on each Talon SRX. There you will see raw encoder counts measured by the SRX.
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2016, 11:55
gpetilli gpetilli is offline
Registered User
FRC #1559
 
Join Date: Jan 2009
Location: Victor, NY
Posts: 285
gpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to allgpetilli is a name known to all
Re: Encoder on SRX Returning wildly differing values

Quote:
Originally Posted by Tparbotmail View Post
Just hooked up our E4P encoders, and we are getting wildly differing values. I confirmed that my java code matched the the rio browser selftest output. All firmware is up to date. I am pretty sure it is not a coding problem.

If you push the joystick forward for 2 seconds 1 encoder will read several thousand revolutions the will read a couple hundred. The wheels are spinning just fine. The robot move in perfectly straight line.

How do you confirm that an encoder is damaged or wired incorrectly?
I would start by swapping the wires from the encoders to the SRXs to see if the speed follows the encoder or the SRX.

If the encoder, reseat the optical disk using the spacing tool that came with the encoder. A long shot, but check the lines per rev on the optical disks, there are several options available from 100 per rev to 360 per rev. You can try to count them or the count should be engraved on the inner hub of the disk.

If it follows the SRX it is most likely an error in the code or that one SRX had it's defaults changed (perhaps last year) and the other did not.
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2016, 21:30
Tparbotmail Tparbotmail is offline
Registered User
FRC #3944
 
Join Date: Jan 2015
Location: Az
Posts: 68
Tparbotmail is an unknown quantity at this point
Re: Encoder on SRX Returning wildly differing values

Quote:
Originally Posted by sraque View Post
You can be 100% sure of you code not being the issue if you use the web interface to the RIO and do a self-test on each Talon SRX. There you will see raw encoder counts measured by the SRX.
Thank you, I did do that and that is how I was sure it was not a Java error.
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2016, 21:33
Tparbotmail Tparbotmail is offline
Registered User
FRC #3944
 
Join Date: Jan 2015
Location: Az
Posts: 68
Tparbotmail is an unknown quantity at this point
Re: Encoder on SRX Returning wildly differing values

Quote:
Originally Posted by gpetilli View Post
I would start by swapping the wires from the encoders to the SRXs to see if the speed follows the encoder or the SRX.

If the encoder, reseat the optical disk using the spacing tool that came with the encoder. A long shot, but check the lines per rev on the optical disks, there are several options available from 100 per rev to 360 per rev. You can try to count them or the count should be engraved on the inner hub of the disk.

If it follows the SRX it is most likely an error in the code or that one SRX had it's defaults changed (perhaps last year) and the other did not.
The long shot was most likely the problem. Electric engineer was available tonight to come over and break it down. Turns out that the optical disk on one side is 250 and 360 on the other. The person doing the work to mount them must not have seen it.

Last edited by Tparbotmail : 27-01-2016 at 21:33. Reason: Follow up
Reply With Quote
  #8   Spotlight this post!  
Unread 27-01-2016, 21:35
Tparbotmail Tparbotmail is offline
Registered User
FRC #3944
 
Join Date: Jan 2015
Location: Az
Posts: 68
Tparbotmail is an unknown quantity at this point
Re: Encoder on SRX Returning wildly differing values

Thank you all for replying. I suspected it was a config problem but I thought it would be a good topic to have on the boards for others to learn from
Reply With Quote
  #9   Spotlight this post!  
Unread 27-01-2016, 22:19
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,025
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: Encoder on SRX Returning wildly differing values

Quote:
Originally Posted by Tparbotmail View Post
Turns out that the optical disk on one side is 250 and 360 on the other. The person doing the work to mount them must not have seen it.
Just curious: how do you guys store and label E4P encoders and their disks when you are not using them on a bot?


Reply With Quote
  #10   Spotlight this post!  
Unread 28-01-2016, 01:19
Tparbotmail Tparbotmail is offline
Registered User
FRC #3944
 
Join Date: Jan 2015
Location: Az
Posts: 68
Tparbotmail is an unknown quantity at this point
Re: Encoder on SRX Returning wildly differing values

Let's put it this way, The mechanical team will not be handling delicate equipment any more.

We will put a system in place to properly store and catelogue electronics. If u have any suggestions please share them. Love to hear it.
Reply With Quote
  #11   Spotlight this post!  
Unread 28-01-2016, 08:36
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,025
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: Encoder on SRX Returning wildly differing values

Quote:
Originally Posted by Tparbotmail View Post
If u have any suggestions please share them. Love to hear it.
The E4P optical disks are fragile and easily damaged. They must be handled and stored with great care. When they are damaged (scratched or smudged) or improperly installed they can cause frustrating problems that may be difficult to diagnose.

Store optical disks individually in clean lint-free labeled soft plastic bag, inside a small labeled box. Store that small box inside a larger labeled box containing the rest of the encoder parts.

Team policy: no one handles or installs until they have been properly trained.


Reply With Quote
  #12   Spotlight this post!  
Unread 28-01-2016, 21:20
Tparbotmail Tparbotmail is offline
Registered User
FRC #3944
 
Join Date: Jan 2015
Location: Az
Posts: 68
Tparbotmail is an unknown quantity at this point
Re: Encoder on SRX Returning wildly differing values

Amen! Thanks and grateful for your input. Our competition encoders E4Ts and mag encoders and boards from our great CTR vendor are in transit right now. and they will be kept in the china cabinet until our electronics mentor is ready for them. We might be getting a new fridge this summer I am thinking about turning the old fridge into a robot part storage cabinet.

What was great about the problem was the kids got to see how to diagnose the issue and confirm it was broken. We took the optical reader off and cleaned it with an alcohol wipe. Did some manual turns of the wheels. It was a good night.

The other thing that came out of the effort was some of the tasks our pit crew will be doing to check the bot after we compete. Learned a lot from the mistake.
Reply With Quote
  #13   Spotlight this post!  
Unread 30-01-2016, 00: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: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Encoder on SRX Returning wildly differing values

Another useful sanity check is oscilloscope-ing the A/B outputs of the optical encoder while it's spinning. Just in case this helps anyone, here's a video demonstrating this...
http://www.ctr-electronics.com/downl...odEncoders.mp4
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 07:56.

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