Go to Post 30 point hang is brutal. Those who say it is easy are not thinking it through or are way smarter than the rest of us ... - Paul Copioli [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, 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,623
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
  #2   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,100
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:	8
Size:	3.3 KB
ID:	21027  
Reply With Quote
  #3   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,623
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
  #4   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,224
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
  #5   Spotlight this post!  
Unread 06-09-2016, 14:26
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,623
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 asid61 View Post
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.
Yes but factually the other guys are often doing no less. They are sometimes using different terms to do it. Course this means you may have to double check.

FRC11 has been using the Grayhill potentiometer style encoders recently. Too many issues with the end of shaft style. Using the terms used as criteria for this topic we get 128 cycles per revolution.

Last edited by techhelpbb : 06-09-2016 at 14:29.
Reply With Quote
  #6   Spotlight this post!  
Unread 06-09-2016, 14:28
Munchskull's Avatar
Munchskull Munchskull is offline
CAD Designer/ Electrical Consaltant
AKA: Anthony Cardinali
FRC #0997 (Spartan Robotics)
Team Role: CAD
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Corvallis, OR
Posts: 527
Munchskull is a splendid one to beholdMunchskull is a splendid one to beholdMunchskull is a splendid one to beholdMunchskull is a splendid one to beholdMunchskull is a splendid one to beholdMunchskull is a splendid one to beholdMunchskull is a splendid one to beholdMunchskull is a splendid one to behold
Re: How much PPR do you use on your encoders?

Depends where in the gearbox/ system. You don't want to flood the Roborio with data.
__________________
“In theory, theory and practice are the same. In practice, they are not.” ― Anonymous
Anthony Cardinali
4th year of FRC
Class of 2017



Reply With Quote
  #7   Spotlight this post!  
Unread 06-09-2016, 14:42
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?

Quote:
Originally Posted by asid61 View Post
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).
The two common encoders are 250 & 360 from US Digital. Not sure about the (much higher) others.
__________________
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
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 04:15.

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