Go to Post "my life is incomplete, my nose has lost the imprint of my safety goggles." - Nin_estarSaerah [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
View Poll Results: What PPR (CPR * 4) do you use?
1-127 2 6.45%
128-255 3 9.68%
256-511 8 25.81%
512-1023 2 6.45%
1024-2047 7 22.58%
2048-8191 6 19.35%
8192+ 1 3.23%
None, we're too cool for encoders. 2 6.45%
Voters: 31. You may not vote on this poll

Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-09-2016, 03:49
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,222
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
How much PPR do you use on your encoders?

Just wondering what accuracy people look for in incremental encoders.
I'm using the USDigital method of PPR vs. CPR; CPR is Cycles Per Revolution and is 4x smaller than PPR (pulses per revolution).

Option 8 also applies if you use potentiometers or absolute encoders in the place of incremental ones. A post below if you're one of those teams would be appreciated.
__________________
<Now accepting CAD requests and commissions>


Last edited by asid61 : 06-09-2016 at 13:38.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-09-2016, 04:56
ollien ollien is offline
Registered User
FRC #5202
 
Join Date: Feb 2015
Location: United States
Posts: 308
ollien has a spectacular aura aboutollien has a spectacular aura aboutollien has a spectacular aura about
Re: How much PPR do you use on your encoders?

Quote:
Originally Posted by asid61 View Post
Just wondering what accuracy people look for in incremental encoders.
I'm using the USDigital method of PPR vs. CPR; CPR is Cycles Per Revolution and is 4x larger than PPR (pulses per revolution).

Option 8 also applies if you use potentiometers or absolute encoders in the place of incremental ones. A post below if you're one of those teams would be appreciated.
Depends on what it's for Are we talking drivetrain?
Reply With Quote
  #3   Spotlight this post!  
Unread 06-09-2016, 07:17
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: How much PPR do you use on your encoders?

For drive train we use 250 or 360, whichever have or get that season. They're more precise than we can reasonably use.

We also use absolute encoders (analog, no PPR) for where we need repeatability from powerup to powerup (think elevators).

For shooter wheels, it depends on the size of the wheel. We prefer to use 4 minimum, more if we can get it on the wheel itself (hall effect or similar sensor).
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
Reply With Quote
  #4   Spotlight this post!  
Unread 06-09-2016, 09:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,069
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: How much PPR do you use on your encoders?

Quote:
Originally Posted by asid61 View Post
CPR is Cycles Per Revolution and is 4x larger than PPR (pulses per revolution).
I think you have that backwards.


Reply With Quote
  #5   Spotlight this post!  
Unread 06-09-2016, 09:19
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,274
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: How much PPR do you use on your encoders?

It's at least 7. Possibly 25 but definitely at least 7.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Reply With Quote
  #6   Spotlight this post!  
Unread 06-09-2016, 09:32
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: How much PPR do you use on your encoders?

Quote:
Originally Posted by Ether View Post
I think you have that backwards.


How people define CPR can depend on whether the decoder can do 4x decoding. In short if a decoder can count on rising/falling edges. So it is possible CPR to be higher than PPR by as much as 4x. Still changing direction requires a quick transistion of phase which makes this less than 4x.

Link:
https://granitedevices.com/wiki/Quadrature

Picture the function of the 4x decoder design like this:

1. Build a high speed asynchronous binary up/down counter.
2. Determine the minimum reliable pulse length to move the counter reliably.
3. Create a circuit that makes pulses of that minimum length on the rising edge and falling edge of the channel A/B encoder inputs (R/C time delay or even better a good crystal based TTL oscillator).
4. Logical OR the Channel A pulses to the Channel B pulses.

The resulting count will be 2X for each pulse of the encoder and 2X higher than expected because of the logical OR.

5. Now build a circuit to detect the leading phase and toggle the up/down count.
Interface to that whole thing how you like (SPI, I2C, parallel bus, RS232...)

Mind you the duty cycle of what you are counting (pulses on channel A/B of the encoder) is not 50% if you change direction of rotation or speed of rotation; and the duty cycle of the pulses you are creating on rising and falling edge are either extreme of duty cycle (depends on perspective).

Note: if you gate a crystal based TTL oscillator with a one-shot circuit you can turn the steady free-run pulses into the pulse for your counter on the input edges. Using RC time constants has all the same issues as a simple 555 timer pulse generator.

Note: I had to do this years ago in CUPL for an Altera CPLD.

Last edited by techhelpbb : 06-09-2016 at 12:05.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-09-2016, 10:25
Richard Wallace's Avatar
Richard Wallace Richard Wallace is offline
I live for the details.
FRC #3620 (Average Joes)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1996
Location: Southwestern Michigan
Posts: 3,646
Richard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond repute
Re: How much PPR do you use on your encoders?

For drive trains we like the Grayhill 63R. 256 or 128 PPR.

Nice and rugged. Not cheap. Very durable. We have used the same two sets for three consecutive seasons so far, with no complaints.
__________________
Richard Wallace

Mentor since 2011 for FRC 3620 Average Joes (St. Joseph, Michigan)
Mentor 2002-10 for FRC 931 Perpetual Chaos (St. Louis, Missouri)
since 2003

I believe in intuition and inspiration. Imagination is more important than knowledge. For knowledge is limited, whereas imagination embraces the entire world, stimulating progress, giving birth to evolution. It is, strictly speaking, a real factor in scientific research.
(Cosmic Religion : With Other Opinions and Aphorisms (1931) by Albert Einstein, p. 97)
Reply With Quote
  #8   Spotlight this post!  
Unread 06-09-2016, 12:48
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,069
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: How much PPR do you use on your encoders?

Quote:
Originally Posted by techhelpbb View Post
How people define CPR can depend on whether the decoder can do 4x decoding. In short if a decoder can count on rising/falling edges. So it is possible CPR to be higher than PPR by as much as 4x.
The OP explicitly defined CPR the way US Digital does: Cycles Per Rev, not Counts Per Rev.

In the context of the OP's (US Digital's) definition, the CPR rating of an encoder is never greater than PPR.



Attached Thumbnails
Click image for larger version

Name:	capture_005_06092016_124654.png
Views:	20
Size:	5.5 KB
ID:	21025  
Reply With Quote
  #9   Spotlight this post!  
Unread 06-09-2016, 13:12
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: How much PPR do you use on your encoders?

Quote:
Originally Posted by Ether View Post
The OP explicitly defined CPR the way US Digital does: Cycles Per Rev, not Counts Per Rev.

In the context of the OP's (US Digital's) definition, the CPR rating of an encoder is never greater than PPR.



Yeap then the OP is confused.

Counts per revolution might be 4x higher because of the decoder, but cycles per revolution as you say is the same as PPR.

The only way this might not be the case would be having part of the quadrature decoder in the encoder and this is clearly not the case with most U.S. Digital encoders. At best the U.S. Digital encoders have some buffer functions in general.

This was why I posted in another topic the PPR not the CPR or anything else. Too confusing.
Reply With Quote
  #10   Spotlight this post!  
Unread 06-09-2016, 13:25
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,069
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: How much PPR do you use on your encoders?

Quote:
Originally Posted by techhelpbb View Post
...cycles per revolution as you say is the same as PPR
I did not say that. Neither does US Digital.

I said CPR (=Cycles Per Rev per US Digital) is never greater than PPR.

See attachment.


Attached Thumbnails
Click image for larger version

Name:	US_Digital_CPR_vs_PPR.png
Views:	14
Size:	92.6 KB
ID:	21026  
Reply With Quote
  #11   Spotlight this post!  
Unread 06-09-2016, 13:30
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: How much PPR do you use on your encoders?

I
Quote:
Originally Posted by Ether View Post
I did not say that. Neither does US Digital.

I said CPR (=Cycles Per Rev per US Digital) is never greater than PPR.

See attachment.


Okay then what exactly is 'cycles per revolution' in that context?

I can see a 100 cycles per revolution encoder yielding 400 pulses per revolution.

I can see a 360 cycles per revolution encoder yielding 1440 pulses per revolution.

Those are all multiples of 4.
I have taken a ton of PCB out of these encoders (they fail a lot and not just in FIRST robots but on my MaxNC CNC tools) and there is no decoding in them.

Are they just being cute and declaring the pulses you could get in the decoder circuit with a 4x decode? Effectively exchanging the meaning of PPR and CPS as other companies use it?

Last edited by techhelpbb : 06-09-2016 at 13:39.
Reply With Quote
  #12   Spotlight this post!  
Unread 06-09-2016, 13:42
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,222
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: How much PPR do you use on your encoders?

Quote:
Originally Posted by Ether View Post
I think you have that backwards.


Yup.
I knew it in my head as I was typing, and it came out all weird. I edited the post to reflect the correct notation.
I had it right in the poll though.

Quote:
Originally Posted by techhelpbb View Post
I

Okay then what exactly is 'cycles per revolution' in that context?

I can see a 100 cycles per revolution encoder yielding 400 pulses per revolution.

I can see a 360 cycles per revolution encoder yielding 1440 pulses per revolution.

Those are all multiples of 4.
I have taken a ton of PCB out of these encoders (they fail a lot and not just in FIRST robots but on my MaxNC CNC tools) and there is no decoding in them.

Are they just being cute and declaring the pulses you could get in the decoder circuit with a 4x decode? Effectively exchanging the meaning of PPR and CPS as other companies use it?
Probably just USDigital being weird. I find that I like their method because it essentially shows the maximum possible precision you can get with an encoder.
If your encoders fail a lot, you may want to consider just switching to magnetic encoders. 115 has killed many, many US Digital encoders in its time.
__________________
<Now accepting CAD requests and commissions>


Last edited by asid61 : 06-09-2016 at 13:52.
Reply With Quote
  #13   Spotlight this post!  
Unread 06-09-2016, 13:48
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,069
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: How much PPR do you use on your encoders?


A cycle is one repeating pattern. It's a good way to define an encoder because it's independent of how you plan to use (decode) the signal.

The space between the red lines is one cycle.

One cycle can be 1 count (if you are counting only rising edges on one channel); or 2 counts (if you are counting only rising edges on 2 channels); or 4 counts (if you are counting rising and falling edges on 2 channels).


Attached Thumbnails
Click image for larger version

Name:	Cycle.png
Views:	6
Size:	3.3 KB
ID:	21027  
Reply With Quote
  #14   Spotlight this post!  
Unread 06-09-2016, 13:58
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: How much PPR do you use on your encoders?

Quote:
Originally Posted by Ether View Post

A cycle is one repeating pattern. It's a good way to define an encoder because it's independent of how you plan to use (decode) the signal.

The space between the red lines is one cycle.

One cycle can be 1 count (if you are counting only rising edges on one channel); or 2 counts (if you are counting only rising edges on 2 channels); or 4 counts (if you are counting rising and falling edges on 2 channels).


At best that is a matter of 2 differring terms for the same thing.

Yes using cycle in that context seemingly eliminates the idea you can get 4 pulses from the decoder circuit, but it ignores that not all decoders are 4x decoders.

What is the difference between a cycle and a pulse in a 1x decoder? Nothing. Even over time, a bunch of pulses and a bunch of cycles, still nothing.

Granted: to the point of the OP, U.S. Digital's use of the term is what matters so I will accept the cycles per revolution in their case is 4x lower than the potential PPR as they use the terms. I prefer to think of them the other way and simply assume the quadrature decoder circuit is 1x unless provided as part of the encoder assembly.

Still a lot of good information in here on the point, minus the ambiguity of the terms. The ambiguity of the term is itself notable.

Quote:
Originally Posted by asid61 View Post
If your encoders fail a lot, you may want to consider just switching to magnetic encoders. 115 has killed many, many US Digital encoders in its time.
Also: the failure rate for that style encoder Ether linked has to do with the end play of the shaft with the encoder disc. My MaxNC servos have eventually had encoder failures at the back of the steppers because the axis coupled to the shaft of the stepper exerts at times enough vibration (screw lash) and force to displace the disc and either scratch it or put it out of range of the detector. MaxNC has historically used a similar encoder from other companies and they suffered the same fate. I solved this problem using sealed encoders, a timing belt and a mount for the encoder. With 12 axis between these machines I'd have spent $1,400 on fixing those encoders or more by now without making those changes. Point being - I am noting a limitation of that style encoder not taking a shot at U.S. Digital.

Last edited by techhelpbb : 06-09-2016 at 15:19.
Reply With Quote
  #15   Spotlight this post!  
Unread 06-09-2016, 14:09
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,222
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: How much PPR do you use on your encoders?

Quote:
Originally Posted by Ether View Post
I think you have that backwards.


Quote:
Originally Posted by techhelpbb View Post
At best that is a matter of 2 differring terms for the same thing.

Yes using cycle in that context seemingly eliminates the idea you can get 4 pulses from the decoder circuit, but it ignores that not all decoders are 4x decoders.

What is the difference between a cycle and a pulse in a 1x decoder? Nothing. Even over time, a bunch of pulses and a bunch of cycles, still nothing.

Granted: to the point of the OP, U.S. Digital's use of the term is what matters so I will accept the cycles per revolution in their case is 4x lower than the potential PPR as they use the terms. I prefer to think of them the other way and simply assume the quadrature encoder circuit is 1x unless provided as part of the encoder assembly.

Still a lot of good information in here on the point, minus the ambiguity of the terms.
I like that US Digital doesn't take the decoder into account. Their encoders don't come with decoders, so why should it be their job to decide things for you? They do provide both CPR and PPR if you want to calculate your counts per revolution given your own decoder. All US Digital encoders (to my knowledge) are 4 pulses per cycle, that is, A high, B high, A low, B low, so for them it makes sense to count it that way.
Your point about the 1x decoder seeing CPR and PPR as the same is valid, but then the designer would have to determine that themselves. Are we defining pulses as the actual counts the decoder spits out, or just the step changes coming in from the encoder?
AFAIK FRC encoder decoders (TalonSRX and RoboRio) count all the step changes/pulses anyway, so for the purposes of this discussion I think using PPR = 4 x CPR is the best way to define it.

EDIT: On topic: The results of the poll are pretty interesting. It looks like most people are using 256 or 512 CPR encoders, with a few people using 64 CPR (or just picked the wrong option in the poll... I should have used CPR instead).
__________________
<Now accepting CAD requests and commissions>


Last edited by asid61 : 06-09-2016 at 14:13.
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 17:36.

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