Three examples where DSP saved my butt!by Steve Smith
Get back- It's gonna blow!As shown below, the SECURE 1000 operates by passing an x-ray beam through various collimators, including a rotating chopper wheel containing several slits. As the chopper wheel rotates, a narrow beam of x-rays is formed that sweeps rapidly from right-to-left. The chopper wheel is a brass disk about 8 inches in diameter, 1/4 inch thick, and contains 4 silts (although 6 slits are shown in the illustration). The chopper wheel turns at about 2,000 rpm, and is very quiet, much less than normal conversation.
Here's the problem: a customer paid us to make the chopper spin three times faster, i.e., 6000 rpm. Three times the speed means nine times the stored energy. Worse yet, at 6000 rpm it sounded louder than a jet airplane taking off; people standing nearby backed away in fear! I did too! We had two choices: hope the customer was deaf, or find a way to reduce the noise.
In this experiment, the chopper wheel was turning at 90 hertz (rotations per second). Noise resulting from an imbalance therefore shows up at 90 Hz, plus its harmonics, 180 Hz, 270 Hz, and so on. On the other hand, noise originating from the four slits shows up at four times this frequency, 360 Hz, plus its harmonics, 720 Hz, 1080 Hz, 1440 Hz, etc. Lastly, noise from random air turbulence is spread equally across all frequencies. The result? As shown in the frequency spectrum, nearly all the noise was originating from the slits. When we plugged them with plastic inserts, the noise went away. Problem solved- thank's to DSP.
It was suppose to be a 12 bit converter?The shipping date of our prototype bone densitometer was only three weeks away when we found the problem. The high-voltage being applied to the x-ray tube was jumping all over (say, +/- 10% over a few seconds). Clearly unacceptable- the system needed a stability of better than 0.1%; anything less would make the final bone measurement meaningless. The high-voltage was controlled by a digital feedback loop. An analog-to-digital converter allowed the on-board computer to monitor the high-voltage. In turn, the computer could correct errors through a digital-to-analog converter controlling the drive circuits of the high-voltage power supply. The stability problem turned out to be in the analog-to-digital converter: it was only an 8 bit device, incapable of achieving 0.1% precision. But there was an even more severe problem, the analog-to-digital conversion was trashed with noise. As shown on the left below, the digital output randomly toggled over about a dozen digital numbers. The system should have been designed with 12 bits; it was designed with 8 bits; but it operated with only about 5 bits of usable data. As any good electrical engineer would, our first step was to plaster the ADC with capacitors. No luck- the noise was coming from high current pulses in the ground plane of the electrical panel- very difficult to solve. Two months minimum to redesign the problem areas. What a mess.
DSP TO THE RESCUE First, the fancy explanation: we used a multirate technique. The original system sampled at 100 samples per second. We increased the sampling rate to 100,000 samples per second, and then used a digital low-pass filter to eliminate the noise. This was followed by a decimation to lower the sampling rate back to 100 samples per second. Voila! The digital data was now equivalent to direct sampling using 10 bits, as shown in the above figure on the right. Too complicated? Here's a simpler explanation. We acquired 1000 samples each 10 milliseconds. Averaging these 1000 readings provided a single value each 10 millisecond, i.e., a sampling rate of 100 samples per second. Since 1000 values were averaged, the noise in the signal was reduced by the square-root of 1000, or about 32. While this is a very simple technique, it illustrates the tremendous power of DSP to replace hardware with software. In this case, a dozen lines of code saved months of hardware redesign.
Well, my simulations weren't exactly right
|