Rune Allnor wrote:> Jerry Avins wrote: > >>In ancient times, DC servo motors usually had small generators attached >>(today, we use encoders) whose output is proportional to rpm. These >>antediluvian devices suffer from commutator ripple, which can have nasty >>effects on feedback loops. For servos that don't run over very wide >>ranges of speed, the ripple is easily dealt with. Commutators almost >>always have an odd number of segments, so the number of cycles of ripple >>per turn is double the number of segments. A 17-segment commutator's >>ripple frequency if 34 times the angular frequency of the motor, and >>it's easily filtered without excessive delay /at any one speed/. >> >>There's a rub. The filter needed to smooth the ripple at 1 rpm >>introduces enough delay at 1000 rpm to have a noticeable -- possibly >>unacceptable -- effect on stability. The simple solution lets the speed >>wobblulate at low speeds and hope nobody notices or wonders where the >>sound comes from. >> >>An adaptive filter seems to be in order. Just changing coefficients in a >>fixed structure doesn't seem to be the best way. We want a lowpass >>filter whose cutoff and group delay track the motor speed. Moreover, a >>prompt (close to minimum phase) filter preserves stability best. Is >>there a known structure for this, or is an invention (or motor >>replacement) in order? > > > Whose time and/or money is at risk here? Is this a hobby project of > yours > or are other people involved? > > I am sure the guys here will be happy to join in on any of your hobby > projects. If this is some device that actually is important to > somebody, I think > I would have gone for a COTS solution. Not so much because I don't > think > you can come up with something that works (I have every confidence that > > you can), but whoever takes up responsibility when you eventually have > to give up follow-up and maintenance, may not be able to fill your > shoes. > > It's one of those "corporate memory" things.There's only one other person involved, so corporate memory isn't an issue. It borders on hobby, because there's no product involved and the time for changeover to digital is flexible -- the analog system works. One present shortcoming is the modulated low-speed operation, and I'd like to improve that in the next iteration. It doesn't interfere. It's merely disconcerting. There's an easy fix available that I'll describe below. I wondered if there weren't a clever and direct way. Easy fix: the sample rate is high to keep the servo stable despite mechanical compliances between instrumented actuator and inertial load. It should be easy to peak-detect the tach output, eliminating the ripple. I sort of do that now, but it breaks down at low speeds. The tach feeds a capacitor through a diode paralleled by a discharge resistor. When the speed is steady, the discharge current is very low, but if the motor slows, the increased drop across the resistor speeds discharge. This follows well at 1500 rpm -- 12 volts on the motor -- and still eliminates ripple at 200 rpm. By 10 rpm, "hunting" is pronounced. As for documentation, it has been my practice to write down what needs to be done, how I do it, why I do it that way*, and a description of algorithms and optimizations. If a competent programmer/engineer can't produce working code from it, I haven't written enough. I was trained in that art by years of writing code for other people with the clear understanding that, once delivered and accepted, it was no longer my concern (consultation time charged for). Otherwise, my career would have changed from creation to maintenance after a few major projects. Jerry __________________________________ * "It seemed like a good idea at the time" is often all I can write. -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →
Filtering a tachometer generator
Started by ●January 6, 2006
Reply by ●January 7, 20062006-01-07
Reply by ●January 7, 20062006-01-07
Jack Ace wrote: ...> Hi Jerry, > > this seems a good starting point .... > > Y. X. Su, C. H. Zheng, Dong Sun, Member, IEEE, and B. Y. Duan > "A Simple Nonlinear Velocity Estimator for High-Performance Motion > Control" > IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS, VOL. 52, NO. 4, AUGUST > 2005Thanks, Jack. I'll try to get the paper soon. I have no position sensor in this system, but there will be others. I have to add that mine is not a high-performance system by necessity. There's a bit of lily gilding here. Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Reply by ●January 7, 20062006-01-07
Hello Jerry, Can't you just sample very fast and have the algorithm kick out all the outliers? Another option might be median filtering: http://www.prosig.com/signal-processing/CleaningUpData.html I have used 2D median filters in the processing of noisy images (ultrasound) and the effect was quite remarkable. Regards, Joerg http://www.analogconsultants.com
Reply by ●January 7, 20062006-01-07
"Jerry Avins" <jya@ieee.org> wrote in message news:HvWdnWawJYaOKyPeRVn-ug@rcn.net...> In ancient times, DC servo motors usually had small generators attached > (today, we use encoders) whose output is proportional to rpm. These > antediluvian devices suffer from commutator ripple, which can have nasty > effects on feedback loops. For servos that don't run over very wide ranges > of speed, the ripple is easily dealt with. Commutators almost always have > an odd number of segments, so the number of cycles of ripple per turn is > double the number of segments. A 17-segment commutator's ripple frequency > if 34 times the angular frequency of the motor, and it's easily filtered > without excessive delay /at any one speed/. > > There's a rub. The filter needed to smooth the ripple at 1 rpm introduces > enough delay at 1000 rpm to have a noticeable -- possibly unacceptable -- > effect on stability. The simple solution lets the speed wobblulate at low > speeds and hope nobody notices or wonders where the sound comes from. > > An adaptive filter seems to be in order. Just changing coefficients in a > fixed structure doesn't seem to be the best way. We want a lowpass filter > whose cutoff and group delay track the motor speed. Moreover, a prompt > (close to minimum phase) filter preserves stability best. Is there a known > structure for this, or is an invention (or motor replacement) in order? > > Jerry > -- > Engineering is the art of making what you want from things you can get. > ����������������������������������������������������������������������� Use an observer. The benefit is that the estimated states are floating point numbers and not quantized values. This should be easy to do with a DC motor. Peter Nachtwey
Reply by ●January 7, 20062006-01-07
Peter Nachtwey wrote:> "Jerry Avins" <jya@ieee.org> wrote in message > news:HvWdnWawJYaOKyPeRVn-ug@rcn.net... > >>In ancient times, DC servo motors usually had small generators attached >>(today, we use encoders) whose output is proportional to rpm. These >>antediluvian devices suffer from commutator ripple, which can have nasty >>effects on feedback loops. For servos that don't run over very wide ranges >>of speed, the ripple is easily dealt with. Commutators almost always have >>an odd number of segments, so the number of cycles of ripple per turn is >>double the number of segments. A 17-segment commutator's ripple frequency >>if 34 times the angular frequency of the motor, and it's easily filtered >>without excessive delay /at any one speed/. >> >>There's a rub. The filter needed to smooth the ripple at 1 rpm introduces >>enough delay at 1000 rpm to have a noticeable -- possibly unacceptable -- >>effect on stability. The simple solution lets the speed wobblulate at low >>speeds and hope nobody notices or wonders where the sound comes from. >> >>An adaptive filter seems to be in order. Just changing coefficients in a >>fixed structure doesn't seem to be the best way. We want a lowpass filter >>whose cutoff and group delay track the motor speed. Moreover, a prompt >>(close to minimum phase) filter preserves stability best. Is there a known >>structure for this, or is an invention (or motor replacement) in order? >> > > Use an observer. The benefit is that the estimated states are floating > point numbers and not quantized values. This should be easy to do with a DC > motor. > > Peter Nachtwey > >Excuse me? 1. An observer is just a filter (often a MIMO one) that has been designed with a certain technique; for a system with significant noise the best observer will be a low pass (with some feedforward from the motor torque command). 2. There's nothing that says an observer has to be implemented in floating point -- and floating point numbers are quantized in any case. So calling your filter an observer doesn't guarantee no quantization, has guaranteed quantization in a digital system, and even if you built it with analog components would _still_ have guaranteed noise. How do you define the word observer that makes so different? -- Tim Wescott Wescott Design Services http://www.wescottdesign.com
Reply by ●January 7, 20062006-01-07
Joerg wrote:> Hello Jerry, > > Can't you just sample very fast and have the algorithm kick out all the > outliers? Another option might be median filtering: > > http://www.prosig.com/signal-processing/CleaningUpData.html > > I have used 2D median filters in the processing of noisy images > (ultrasound) and the effect was quite remarkable.There is some brush noise, but that's not a problem. I think the sampling will be fast enough to find the peak. The waveform is in one way similar to scalloping loss, and looks like the output of an unfiltered polyphase rectifier, with more time near the peak than near the dip. It won't be a mountain to climb. I wanted the collective wisdom to assure me that I'm not overlooking an obvious way. Thanks to everyone. Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Reply by ●January 7, 20062006-01-07
Peter Nachtwey wrote: ...> Use an observer. The benefit is that the estimated states are floating > point numbers and not quantized values. This should be easy to do with a DC > motor.I should have mentioned that I expect to implement this on an integer machine. I'm afraid I made a mountain out of a molehill by asking. Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Reply by ●January 7, 20062006-01-07
Jerry Avins wrote:> In ancient times, DC servo motors usually had small generators attached > (today, we use encoders) whose output is proportional to rpm. These > antediluvian devices suffer from commutator ripple, which can have nasty > effects on feedback loops. For servos that don't run over very wide > ranges of speed, the ripple is easily dealt with. Commutators almost > always have an odd number of segments, so the number of cycles of ripple > per turn is double the number of segments. A 17-segment commutator's > ripple frequency if 34 times the angular frequency of the motor, and > it's easily filtered without excessive delay /at any one speed/. > > There's a rub. The filter needed to smooth the ripple at 1 rpm > introduces enough delay at 1000 rpm to have a noticeable -- possibly > unacceptable -- effect on stability. The simple solution lets the speed > wobblulate at low speeds and hope nobody notices or wonders where the > sound comes from. > > An adaptive filter seems to be in order. Just changing coefficients in a > fixed structure doesn't seem to be the best way. We want a lowpass > filter whose cutoff and group delay track the motor speed. Moreover, a > prompt (close to minimum phase) filter preserves stability best. Is > there a known structure for this, or is an invention (or motor > replacement) in order? > > JerryI've read the last dozen or so posts. Are all looking for a complicated solution? Jerry stated that signal resembles rectified output of multi-phased generator. OK, so output is unipolar. What would happen if a modified peak follower were implemented. Choose time0 such that signal=0 As input rises, output rises to match As input falls, output remains at previous max a secondary output tracks falling input Input rises above previous secondary output triggering change of state secondary output now tracks rising signal -- track and hold input falls below secondary output secondary output transferred to primary output repeat Why would this not be optimal? Seems it could be implemented in either analog or digital domain. Have I've missed something?
Reply by ●January 7, 20062006-01-07
Jerry Avins wrote:> In ancient times, DC servo motors usually had small generators attached > (today, we use encoders) whose output is proportional to rpm. These > antediluvian devices suffer from commutator ripple, which can have nasty > effects on feedback loops. For servos that don't run over very wide > ranges of speed, the ripple is easily dealt with. Commutators almost > always have an odd number of segments, so the number of cycles of ripple > per turn is double the number of segments. A 17-segment commutator's > ripple frequency if 34 times the angular frequency of the motor, and > it's easily filtered without excessive delay /at any one speed/. > > There's a rub. The filter needed to smooth the ripple at 1 rpm > introduces enough delay at 1000 rpm to have a noticeable -- possibly > unacceptable -- effect on stability. The simple solution lets the speed > wobblulate at low speeds and hope nobody notices or wonders where the > sound comes from. > > An adaptive filter seems to be in order. Just changing coefficients in a > fixed structure doesn't seem to be the best way. We want a lowpass > filter whose cutoff and group delay track the motor speed. Moreover, a > prompt (close to minimum phase) filter preserves stability best. Is > there a known structure for this, or is an invention (or motor > replacement) in order? > > JerryJerry, I have seen a 'dead-band' used for this type of thing. It was inserted in the error-signal path and adjusted to be a little wider than the noise. It got rid of the wobbulation when the system was not correcting, while the wobbulation during correction was measurable but not audible. By the way, "wobbulator" has distinguished roots, going back to the electrically variable capacitor used in WW2 panoramic receivers. Other thoughts: 1. Is gearing-up the tacho a possibility? 2. Increase the field current: Since the ripple is due, not to the commutator itself, but to the selected winding traveling across a region of non-uniform magnetic flux, this may help by evening out the variation (but I have never tried it.) This idea is based on the hope that the flux density in the lower-flux regions will increase more than in the higher-flux regions, as the iron approaches saturation. Regards, John
Reply by ●January 8, 20062006-01-08
"Tim Wescott" <tim@seemywebsite.com> wrote in message news:Wq6dnaolzY5g-V3eRVn-tg@web-ster.com...> Peter Nachtwey wrote: >> >> Use an observer. The benefit is that the estimated states are floating >> point numbers and not quantized values. This should be easy to do with a >> DC motor. >> >> Peter Nachtwey >> >> > Excuse me? > > 1. An observer is just a filter (often a MIMO one) that has been designed > with a certain technique;The observer estimates states and uses the feed back to keep the states from varying too much from reality.> for a system with significant noise the best observer will be a low pass > (with some feedforward from the motor torque command).And you will implent this how? See my reference below. A low pass filter has phase lag that can degrade performance. Have you tried to design one on your Mathcad? You should. With a good model you don't need to depend so much on the feedback so the effects of quantizing is reduced.> > 2. There's nothing that says an observer has to be implemented in > floating point --True, it is just a lot easier.> and floating point numbers are quantized in any case.A 24 bit mantissa is much better than the 5 bits Jerry has to work with now. Try it and then come back and report what you have found out.> So calling your filter an observer doesn't guarantee no quantization,It still occurs but effects are reduced significantly. An observer can reduce the effects of quantizing or even phase delay.> has guaranteed quantization in a digital system, and even if you built it > with analog components would _still_ have guaranteed noise. > > How do you define the word observer that makes so different? > > Tim Wescott > Wescott Design Services > http://www.wescottdesign.comSee the example in Digital Control Systems Analysis and Design by Philips and Nagle section 9.3. Use your Mathcad to implement a system position system that requires the derivative gain. Now use the round function to round the feedback to simulate quantizing. With out the observer the output will jump in increments proportional to the derivative gain because of the quantizing. Now add the observer and see the output is much smoother. Peter Nachtwey







