Go to Post They see us come into school looking like zombies, and they know that some people start smelling like chain lube and such...but for the most part, they don't realize that for a lot of us, there is a deep commitment to our team that we do a very large amount of work for that team. - JakeGallagher [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 17-02-2011, 16:52
Ian McShane Ian McShane is offline
Registered User
FRC #3585 (Rogue Robots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: NH
Posts: 141
Ian McShane will become famous soon enoughIan McShane will become famous soon enough
Encoders

What will encoders do, how will they help us in teleop, and how do i program them?
__________________
in FIRST, it's process over product, and team over robot.
http://www.roguerobotsof4h.com/
Team 3585 Rogue Robots of 4-H
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2011, 17:03
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is offline
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 2,557
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: Encoders

Encoders measure the rotation of an axle. You can put them on your drive wheels and they will measure how far you have turned the wheels. Some encoders (called quadrature encoders) are able to give you direction of rotation while other are just able to tell you that the shaft has turned. With that information you can figure out how fast your wheels are spinning by determining how much they have rotated during a certain time interval.

During teleop it is possible to use them to control the velocity of your wheels using a control loop (like a PID controller) this will allow you to ensure that all of your wheels are spinning at the correct speed. You could also travel a certain distance or determine if your wheels are spinning at different rates and correct that to help you keep your robot strait. You could also use them on an arm(though a potentiometer might be better) or a lift so that you could know what position they are in during teleop.

How to program them is more complicated because I don't know what language you are using but WPILIB has built in support for encoders, so you should be able to get readings rather quickly with any language.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2011, 17:11
Ian McShane Ian McShane is offline
Registered User
FRC #3585 (Rogue Robots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: NH
Posts: 141
Ian McShane will become famous soon enoughIan McShane will become famous soon enough
Re: Encoders

labview is what i am programming them in, hence me posting it in the labview forum.
__________________
in FIRST, it's process over product, and team over robot.
http://www.roguerobotsof4h.com/
Team 3585 Rogue Robots of 4-H
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2011, 09:13
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 137
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: Encoders

Quote:
Originally Posted by Ian McShane View Post
What will encoders do, how will they help us in teleop, and how do i program them?
For programming (and physical wiring) you can look at examples. From the LabVIEW Getting Started Window click on Find FRC Examples...
__________________
Doug Norman
National Instruments
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2011, 16:12
Ian McShane Ian McShane is offline
Registered User
FRC #3585 (Rogue Robots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: NH
Posts: 141
Ian McShane will become famous soon enoughIan McShane will become famous soon enough
Re: Encoders

I can't find any examples of encoder programs, i would love it if someone could send me an example.
__________________
in FIRST, it's process over product, and team over robot.
http://www.roguerobotsof4h.com/
Team 3585 Rogue Robots of 4-H
Reply With Quote
  #6   Spotlight this post!  
Unread 19-02-2011, 15:10
Baconfly Baconfly is offline
Registered User
AKA: Tylor
FRC #3330
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: St.Louis
Posts: 9
Baconfly is an unknown quantity at this point
Re: Encoders

If you go down to find FRC Examples on the mainpage of the LabVIEW program there is an example there.
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 20:31.

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