Go to Post Also, I did not know that Autodesk had changed our name from WildStang to "Digital Cheetanators"? - Raul [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 16-10-2011, 13:17
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: How do Encoders work?

I can only offer a short answer, since I think the question you really wanted to ask was "How do we use encoders?"

There are many kinds of encoders, the ones in the KoP use a tiny precision disk that has black and shiny lines on it, that are spun past an optical sensor. Every time a sensor sees a line go past, it generates an electrical pulse. These pulses are sent to the software, and by counting the pulses in a period of time, you know how fast the encoder (and thus whatever it's attached to) is moving.

By using two sensors (in the encoder) on the same disk, mounted "in quadrature", you can tell which direction it's going too. The KoP encoders do this, using "Channel A" and "Channel B". (BTW, they connect to digital inputs in a cRio)

As for how you should use them, they are made to know (rather than guess) how far your robot has moved, or how far your robot arm (for example) has moved. Lots of ways that information can be valuable, for example during Autonomous mode.

As for how you use them in software, you might find that 238 pulses means you have moved one foot. So, to move 10 feet, just turn on the motors until the count reaches 2380. (Of course, you'll want to slow them down as you approach that number and stop exactly when you hit it, otherwise you'll coast past it)

Does that help?
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #2   Spotlight this post!  
Unread 17-10-2011, 23:03
4AngryNutjobs's Avatar
4AngryNutjobs 4AngryNutjobs is offline
Registered User
FRC #3859
 
Join Date: Oct 2011
Location: Elk Grove, CA
Posts: 16
4AngryNutjobs is an unknown quantity at this point
Re: How do Encoders work?

Yes, thank you so much, both of you you've been a tremendous help to us.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-10-2011, 11:02
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,923
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: How do Encoders work?

What programing software are you using? They all have encoder objects in their library. A lot easier than trying to program it yourself.
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 21:52.

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