Go to Post There is no offseason. - Jeff Rodriguez [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 12-01-2015, 23:52
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
What is an encoder

I'm trying to grasp my head around it. How can it be used what are the pros and cons of using it? How to program in labview?

Thank you.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2015, 00:04
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,659
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: What is an encoder

Essentially, an encoder is a sensor which detects motion through digital impulses, as opposed to a potentiometer, which reports through an analog channel. The most common sensor to be called an encoder is one which uses two digital inputs and has 4, or some multiple of 4, state changes per rotation of a shaft, referred to as a quadrature encoder.

A simple quadrature encoder has one pin at "zero" when the angle is between 0 and 180, and "one" when between 180 and 360. The other has "one" when the angle is between 90 and 270, "zero" otherwise. The nifty thing about this setup is that (for motion in a constant direction), the order of ups and downs tells you which direction the rotation is going, as the rate of transitions gives you rotational speed.

If you need "absolute" position rather than speed (as you might want for a lift this year), you can either use a potentiometer type sensor, or some sort of limit switch in addition to the encoder that gives you a reference point to count transitions from.

Sorry; we don't use labview.

Last edited by GeeTwo : 13-01-2015 at 00:05. Reason: addendum
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2015, 00:16
Team3993Tom Team3993Tom is offline
Registered User
FRC #3993
 
Join Date: Feb 2013
Location: Newhall
Posts: 35
Team3993Tom is an unknown quantity at this point
Re: What is an encoder

Thanks GeeTwo,
We aren't using servos, but we are using an encoder to try to measure the speed we are going. We wired it to the DIO, and the the designated ports. Would the encoder need to be coded, or should it show up on the driver station screen? Thanks Again
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2015, 10:40
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: What is an encoder

The LabVIEW examples include instructions on how to wire and program for quadrature encoders.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-01-2015, 15:13
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 419
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: What is an encoder

Quote:
Originally Posted by Team3993Tom View Post
Thanks GeeTwo,
We aren't using servos, but we are using an encoder to try to measure the speed we are going. We wired it to the DIO, and the the designated ports. Would the encoder need to be coded, or should it show up on the driver station screen? Thanks Again
You will have to write software to calculate the rpm and other software to write that info to the driver station. In software you have to call either the Encoder VI or Counter VI and these will give you a rate and direction for the encoder VI or a number of pulses or time between pulses for the counter. If all you need is speed than use the Counter VI.
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620

Last edited by jman4747 : 13-01-2015 at 17:51.
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:10.

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