Go to Post Sometimes at work I fantasize about being a giant bulldozer operator. - AdamHeard [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 03-02-2013, 23:42
spyla spyla is offline
Registered User
FRC #3616 (Phenomena)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: USA
Posts: 11
spyla is an unknown quantity at this point
Encoder - E4P-360-250-D-H-D-B

Hi,

First time mentor. Trying to get RPM from Encoder E4P-360-250-D-H-D-B. looked at two examples, "encoder" and "motor and encoder" rate is defined as different in one it is distance/sec in the other it is deg/sec where as when I click on detailed help for "encoder get" it tells me that rate is pluses in Hz. which is right?

if detailed help is right, then I would need to divide the rate by 1440 and multiply by 60 to get RPM

if it is Deg/sec then I would divide it by 360 and multiply by 60 to get RPM

if it is distance /sec then divide it by (6*pi) and multiply by 60 to get RPM assuming a 6" wheel.

Also we have not been able get the the "motor and encoder" example run properly. I can turn wheel by hand and get values to change but the motor won't turn by Joystick. Only thing I changed on the example was to change open motor to Jaguar. But I can run the motor through the default robot project.

thank you

spyla
team 3616
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2013, 23:51
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: Encoder - E4P-360-250-D-H-D-B

I didnt look up the model but my gut feeling is there are 360 pulses per revolution from your encoder, so you would get degrees per second by calling the rate, what language are you using?
__________________
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 03-02-2013, 23:53
spyla spyla is offline
Registered User
FRC #3616 (Phenomena)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: USA
Posts: 11
spyla is an unknown quantity at this point
Re: Encoder - E4P-360-250-D-H-D-B

labview, it 4X decoding type, hence 360*4 = 1440
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2013, 12:00
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Encoder - E4P-360-250-D-H-D-B

The units by default are cycles* per second. Your encoder has 360 cycles per revolution. It doesn't matter whether you use 1x or 4x decoding, as it takes 4 pulses in 4x decoding to equal one cycle, and everything is normalized to cycles. I think that the LabVIEW library may sometimes use the term pulses or counts, when they mean cycles.

Since your encoder is 360 cycles, one cycle also equals one degree, so you can say that it returns degrees per second, but only for that particular encoder.

There is an option to set the distance per cycle. This will scale both the distance and rate outputs. This is why some of the examples show other units, because they set that value.

By dimensional analysis, to go from cycles per second to revolution per minute, you would divide by 360 cycles per revolution and multiply by 60 seconds per minute.

For rate calculations, it's better to use 1x rather then 4x decoding, as the encoder wheel is more accurate cycle to cycle rather then pulse to pulse.

*Cycle is the term US Digital uses for a complete quadrature cycle. I've also seen people use the term count.
Reply With Quote
  #5   Spotlight this post!  
Unread 04-02-2013, 14:22
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: Encoder - E4P-360-250-D-H-D-B

Using 1x decoding on a quadrature input, the values go 0, 1, 2, 3, 4...

Using 4x decoding, the values change four times as often but by one fourth the amount: 0.00, 0.25, 0.50, 0.75, 1.00, 1.25, 1.50...

You get the same value for the same amount of rotation, just with a different precision.
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 22:56.

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