Go to Post Scouting wins championships folks...not draft orders. - Andy Grady [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 31-01-2013, 20:38
Lemons's Avatar
Lemons Lemons is offline
Registered User
AKA: Gooby
FRC #2383 (Ninjineers)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Plantation, Florida
Posts: 5
Lemons is an unknown quantity at this point
US Digital Encoder Distance/sec to Rpm

Ok so this is the first year we have really decided to implement digital encoders on motors. We hooked them up fine and using the example code in LabVIEW were able to get readings. The only question we have is what unit (distance/second) is the encoder reading in and is it possible to change that unit (distance/second) to an RPM reading if its not already set as such? We are using US Digital E4P Quadrature encoders. Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2013, 22:21
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: US Digital Encoder Distance/sec to Rpm

Most encoders, and I would assume yours, record the time between two "sprockets" inside the encoder. There are 360 of these bumps inside the encoder so a raw encoder reading will be in degrees. I don't program in LabView, but assuming it's the same speed settings, given with time in seconds, and you want RPMs, you would have to divide by 360 and multiply by 60, or just divide by 6. If you want to calculate distance travelled by a drivetrain lets say, you would need values such as the gear ratios used, and the diameter of the tires, etc.
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2013, 18:45
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: US Digital Encoder Distance/sec to Rpm

Actually, the number of pulses per revolution varies. On the casing of the E4P, 3 digits in the number are the pulses/revolution, ranging from 100 to 360. The bore will also be on there, so don't let that throw you off. for example:

http://ivan.blogs.chimerical.com.au/..._36_resize.jpg

The Pulses/Revolution on this encoder is 300, and the Bore is .157 inches.
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's Award
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2013, 20:09
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
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: US Digital Encoder Distance/sec to Rpm

Quote:
Originally Posted by blackflame2996 View Post
Actually, the number of pulses per revolution varies. On the casing of the E4P, 3 digits in the number are the pulses/revolution, ranging from 100 to 360
That number is Cycles Per Revolution, not Pulses Per Revolution. Those terms mean different things.


Reply With Quote
  #5   Spotlight this post!  
Unread 01-02-2013, 23:16
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: US Digital Encoder Distance/sec to Rpm

You are correct. My bad.
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's Award
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 08:57.

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