Go to Post The best we can all do for our kids as parents, mentors and world citizens, is to model [Gracious Professionalism] always: not to win an award, but because it is the right thing to do. - chapman1 [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 11-02-2011, 13:56
reuven reuven is offline
Registered User
FRC #3211 (The Y team)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2009
Location: yeruham Israel
Posts: 38
reuven will become famous soon enough
encoder problems

hi everyone!
finally we have wired the us-digital encoder right.
when we try to use the example program. we get "jumps" between 0 and a different value (it changes every time we rest the encoder).
can anyone think what is the problem? and how can we fix it?
  #2   Spotlight this post!  
Unread 11-02-2011, 14:07
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 673
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: encoder problems

Did you follow the instructions when assembling the encoders? In particular, did you use the centering and spacing tools? This is to make sure you did not scratch the optical disc of the encoder. If the disc has scratches, the readings will be unreliable.
Also, please tell us how you finally "wired it right". That phrase does not mean it is really right.
__________________
  #3   Spotlight this post!  
Unread 11-02-2011, 14:26
reuven reuven is offline
Registered User
FRC #3211 (The Y team)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2009
Location: yeruham Israel
Posts: 38
reuven will become famous soon enough
Re: encoder problems

for the first question the answer is yes.
we have followed the instructions on how to assemble it and as far as i know there are no scratches on the disc.
for the second question: we have used the diagram printed on the cover of the encoder to know which wire is which. and then we have connected them to the right ports on the digital DIO ports...
  #4   Spotlight this post!  
Unread 11-02-2011, 14:42
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 673
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: encoder problems

I still don't have enough details to tell you what could be wrong. The problem could be physical (defective encoder), wiring or coding.
One year, one of our electrical guys mis-wired the encoder. Although we have corrected it later, it turned out the encoders were fried. Had been scratching our heads for hours until I pulled out an oscilloscope to check the encoder output and found nothing. So the best bet is to first make sure the ecnoders are physically working. Then check the wiring correctness and finally check the code.
__________________
  #5   Spotlight this post!  
Unread 11-02-2011, 15:38
reuven reuven is offline
Registered User
FRC #3211 (The Y team)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2009
Location: yeruham Israel
Posts: 38
reuven will become famous soon enough
Re: encoder problems

i think we probably burned them when we wired them wrong (is there any way to cheek that?).
thanks a lot!
  #6   Spotlight this post!  
Unread 11-02-2011, 15:43
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 673
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: encoder problems

We hooked up the encoder outputs to an oscilloscope and turned the wheels to check if we have pulses. I can't think of another easier way to check that.
Do you have robots from previous years that you can swap their encoders?
__________________

Last edited by mikets : 11-02-2011 at 15:48.
  #7   Spotlight this post!  
Unread 11-02-2011, 15:51
reuven reuven is offline
Registered User
FRC #3211 (The Y team)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2009
Location: yeruham Israel
Posts: 38
reuven will become famous soon enough
Re: encoder problems

can we use a voltmeter?
  #8   Spotlight this post!  
Unread 11-02-2011, 15:53
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 673
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: encoder problems

Encoder pulses are fast, voltmeter cannot capture them.
__________________
  #9   Spotlight this post!  
Unread 11-02-2011, 15:58
reuven reuven is offline
Registered User
FRC #3211 (The Y team)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2009
Location: yeruham Israel
Posts: 38
reuven will become famous soon enough
Re: encoder problems

the problem is we don't have an oscilloscope ...
so can you think another method of cheeking that?
  #10   Spotlight this post!  
Unread 11-02-2011, 16:00
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 673
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: encoder problems

Do you have robots from previous years? FIRST included encoders in KOP every year. So unless this is your first year, you should have some lying around or on previous robots.
__________________
  #11   Spotlight this post!  
Unread 11-02-2011, 16:06
reuven reuven is offline
Registered User
FRC #3211 (The Y team)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2009
Location: yeruham Israel
Posts: 38
reuven will become famous soon enough
Re: encoder problems

this year is our second year.
but last year we gave them to a different team (cause we didn't used them at all)
we found a team in the area how don't use theres and they can give them to us on Sunday. i hope that will fix the problem ...
  #12   Spotlight this post!  
Unread 11-02-2011, 16:08
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 673
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: encoder problems

Good, that's what I will suggest next.
__________________
  #13   Spotlight this post!  
Unread 11-02-2011, 16:20
kgzak's Avatar
kgzak kgzak is offline
Registered User
AKA: Kris
FRC #4392 (Decievers) FRC #2075 (Enigma)
Team Role: College Student
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Grand Rapids, Michigan
Posts: 418
kgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to beholdkgzak is a splendid one to behold
Re: encoder problems

Make sure there are no shorts in your wiring and that all the wires are connected right. We had a problem where we shorted our B signal to ground so it jumped between 0 and .25 when we turned the wheel.
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 07:13.

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