Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   High speed encoder with slotted / flat end... can't find one. (http://www.chiefdelphi.com/forums/showthread.php?t=106568)

Ether 23-05-2012 09:08

Re: High speed encoder with slotted / flat end... can't find one.
 
Quote:

Originally Posted by Tom Line (Post 1171137)
the equivalent of a 64 count per rotation encoder.

what do you mean by "the equivalent of"? what part number were you using?

at 4000rpm, a variation of +/-0.13 degree in the absolute location of the edges1 could produce the +/-200 counts/sec jitter you saw when using GetRate.


1 equivalent to +/- 0.26 degree with respect to adjacent edges


Tom Line 23-05-2012 11:34

Re: High speed encoder with slotted / flat end... can't find one.
 
Quote:

Originally Posted by Ether (Post 1171159)
what do you mean by "the equivalent of"? what part number were you using?

at 4000rpm, a variation of +/-0.13 degree in the absolute location of the edges1 could produce the +/-200 counts/sec jitter you saw when using GetRate.


1 equivalent to +/- 0.26 degree with respect to adjacent edges


We were using a 128 count bourns encoder, however it was geared down: we were taking readings from the chain with a sprocket on the encoder.

Ether 23-05-2012 11:41

Re: High speed encoder with slotted / flat end... can't find one.
 
Quote:

Originally Posted by Tom Line (Post 1171172)
We were using a 128 count bourns encoder, however it was geared down: we were taking readings from the chain with a sprocket on the encoder.

Using GetRate to read a chain-driven high-count encoder has the potential for producing a lot of jitter, even with a high-quality encoder. Any angular free play at the encoder can show up as jitter, especially in the high-vibration environment of FRC robotics.

Not trying to be a pest, but what do you mean by "we were taking readings from the chain with a sprocket on the encoder"? Could you post a picture?



Ether 23-05-2012 12:39

Re: High speed encoder with slotted / flat end... can't find one.
 
Quote:

Originally Posted by JamesTerm (Post 1171133)
I don't think it is similar... I think it sounds similar...

Not sure I understand the distinction, but OK.

Quote:

The kalman limits the amount of change from reading to reading when noise is introduced.
So does a simple low-pass filter of any type.



JamesTerm 23-05-2012 13:58

Re: High speed encoder with slotted / flat end... can't find one.
 
Quote:

Originally Posted by Ether (Post 1171174)
Using GetRate to read a chain-driven high-count encoder has the potential for producing a lot of jitter

Thanks for sharing this, as we have a chain driven encoder as well and it is not geared down at all. Could a chain-driven encoder explain the extremly noisy graph that I showed on page 2? I can say that our shooter had a lot of vibrations at higher speeds, probably more than what it should have had.

All:
What are teams doing as a better alternative to a chain-driven encoder for the shooter?

Ether 23-05-2012 14:58

Re: High speed encoder with slotted / flat end... can't find one.
 
Quote:

Originally Posted by JamesTerm (Post 1171206)
we have a chain driven encoder

Is the encoder separately chain-driven? Or is the encoder mounted directly to the wheel (or wheel axle) which is chain-driven?

Makes a difference.



Brandon Holley 23-05-2012 15:00

Re: High speed encoder with slotted / flat end... can't find one.
 
Quote:

Originally Posted by JamesTerm (Post 1171206)
All:
What are teams doing as a better alternative to a chain-driven encoder for the shooter?

Encoder's require very little torque to spin (usually). In the past I've used rubber bands with no issue to transfer one shafts rotation to an encoders.

Our particular shooter wheel has the end of the shooter wheel shaft drilled out. We then just wrapped the encoder shaft in a layer or two of Teflon tape and inserted the encoder into the shooter shaft. The encoder was mounted to a simple rectangular plate and some standoffs space the encoder off the shooter wheel's mounting plate.

-Brando

apalrd 23-05-2012 15:02

Re: High speed encoder with slotted / flat end... can't find one.
 
Quote:

Originally Posted by JamesTerm (Post 1171206)
All:
What are teams doing as a better alternative to a chain-driven encoder for the shooter?

Direct-driving the encoder off the shooter, via several methods:

-Using a live axle shooter and connecting the encoder directly to it
-Using a live or dead axle shooter with a code wheel and optical sensor (Banner and Rockwell sensors seem to be the most popular)

In addition to the vibrations of a chain, I assume the constant modification of output power by the control loop would cause additional jitter if the chain was slightly (or more than slightly) slack, probably more than any other single source of jitter.

In our shooter system, I can hear the difference between running the control loop and applying fixed power, especially at low speeds where we're approaching the Victor deadband. The motor is pulsing at a low frequency, and I can hear the gears in the gearbox make nasty noises as they're being driven by the motors, then the motors back off and the inertia of the system drives the output gear faster than the motors, then the motors pick up. It's much less noticeable at high speeds.

ParkerF 23-05-2012 15:16

Re: High speed encoder with slotted / flat end... can't find one.
 
Quote:

Originally Posted by Ether (Post 1171213)
Is the encoder separately chain-driven? Or is the encoder mounted directly to the wheel (or wheel axle) which is chain-driven?

Makes a difference.

Separately driven. It's a short 1:1 #25 chain off of the main shooter shaft.

-Parker

Ether 23-05-2012 15:30

Re: High speed encoder with slotted / flat end... can't find one.
 
Quote:

Originally Posted by francistexas (Post 1171217)
Separately driven. It's a short 1:1 #25 chain off of the main shooter shaft.

If you're using GetRate() with a separately-chain-driven 128 CPR encoder, that could be the source of a lot of your noise.



JamesTerm 23-05-2012 15:57

Re: High speed encoder with slotted / flat end... can't find one.
 
Quote:

Originally Posted by Ether (Post 1171219)
If you're using GetRate() with a separately-chain-driven 128 CPR encoder, that could be the source of a lot of your noise.



I've managed to find a rate compare dump that may be of interest... this shows GetRate() (magenta) vs. The GetDistance()/time (cyan)... where the yellow shows a minor change in time of 10-11 ms. I believe GetRate() has better results in this test. Setting that aside, notice how the faster speeds have more linear patterns at certain points. This is measuments in RPS from 0 to 35... where x is 10-11 ms iterations.


Ether 23-05-2012 17:22

Re: High speed encoder with slotted / flat end... can't find one.
 
1 Attachment(s)
Quote:

Originally Posted by JamesTerm (Post 1171220)
I've managed to find a rate compare dump that may be of interest... this shows GetRate() (magenta) vs. The GetDistance()/time (cyan)... where the yellow shows a minor change in time of 10-11 ms. I believe GetRate() has better results in this test. Setting that aside, notice how the faster speeds have more linear patterns at certain points. This is measuments in RPS from 0 to 35... where x is 10-11 ms iterations.


Two things:

1) You might want to consider converting your large (1+ megabytes) BMP file attachments to a compressed format (PNG would be nice) before uploading. Attached PNG file is 380 times smaller (only 3 kilobytes) than the BMP you posted, with no noticeable decrease in quality

2) 35 revs/sec @ 64 counts/rev = 2240 counts/sec = 22.4 counts/(10 ms), so +/- 1 count should give jitter of approx +/-1/22.4 = +/-4.5%. So I can't draw any conclusion from your graph except that something is not right.



Tom Line 23-05-2012 18:01

Re: High speed encoder with slotted / flat end... can't find one.
 
With regards to the questions about how we were running our encoder in the past: we had a sprocket on the encoder shaft riding against the chain that drove the shooter. The shooter sprocket was smaller than the encoder sprocket by a ratio of 2:1, resulting in 2 turns of the shooter for 1 turn of the encoder.

Since then, in our quest to lower noise, we now have the encoder coupled directly to the output shaft with a very short piece of surgical tubing. That has worked very well (it puts less stress on the encoder shaft as well).

Ether 23-05-2012 18:13

Re: High speed encoder with slotted / flat end... can't find one.
 
1 Attachment(s)
Quote:

Originally Posted by Tom Line (Post 1171238)
With regards to the questions about how we were running our encoder in the past: we had a sprocket on the encoder shaft riding against the chain that drove the shooter.

Like this?

That explains a lot of the noise:)

Quote:

Since then, in our quest to lower noise, we now have the encoder coupled directly to the output shaft with a very short piece of surgical tubing. That has worked very well (it puts less stress on the encoder shaft as well).
Makes sense.



Tom Line 23-05-2012 20:01

Re: High speed encoder with slotted / flat end... can't find one.
 
Quote:

Originally Posted by Ether (Post 1171240)
Like this?

That explains a lot of the noise:)

Makes sense.



No... our encoder and sprocket was on top of the chain, not under it..... ;)

Yes, exactly like that.


All times are GMT -5. The time now is 05:55.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi