A
Anonymous
Guest
I have the digital PI processor connected to a normal Analog PI board now, and I am starting to get test results.
The diagram below shows how the boards are connected for these tests. The digital PI taps into the analog PI at two points. The output of the analog PI amplifier goes to the digital PI A-D converter. A strobe signal is also needed to tell the digital PI when to sample the signal. A timing signal that goes low when the analog PI integrator gate opens is connected to a Digital PI interrupt line. A few microseconds after the timing signal goes low the Digital PI takes its main sample. One hundred microseconds later the digital PI takes its secondary sample. The secondary sample is subtracted from the main sample and the result is integrated.
When I first turned on the analog PI I found the output of the integrator was hard against one side, and putting a target near the coil did not change the output. The output from the amplifier had part of a sine wave during the coil off-time. This turned out to be from an IB coil sitting on the floor a couple of feet away from the PI coil. The IB coil was not powered but the PI pulses were exciting it and the signal returned from the IB coil was overloading the PI receiver. When I moved the IB coil to the other side of the room that problem went away.
Then the analog PI seemed to be working correctly so I connected the digital PI. The digital PI had a lot more noise at the output of the integrator than the analog PI did. I found about 50 mv of noise coming out of the amplifier that the analog PI was able to cope with but not the Digital PI. I could not get the scope to sync on the noise and could not tell what it was. While I was scratching my head trying to figure it out, my computer display timed out and went blank, and at the same time the noise disappeared. Once I knew what I was looking for I was able to see that the noise was a 50 kHz triangular wave from the display deflection circuits. The analog PI integration window was 20 usec which was almost exactly one period of the display signal so the analog PI was almost completely eliminating this interference. The digital PI was just taking one narrow sample. Sometimes it would catch the peak of the interference waveform and sometimes the trough. This resulted in some large random looking noise at the output of the digital PI integrator. I expected that taking a single A-D sample would give more noise than integrating for 10 or 20 usec, but I did not expect to get hit so hard in the first few minutes of testing. As long as I am careful to blank the display I can continue with testing.
The test conditions are:
Pulse repetition frequency: 5000 Hz
Main delay: 20 usec
Secondary delay: 100 usec after start of main sample
Analog integration window: 20 usec
Digital sample: one A-D sample at each point
I have a windmill type device that swings a target past the coil at a constant rate. The target is moving about one foot per second, and the signal from this moving target is about 250 msec wide. With the outputs of both integrators on a dual trace scope the controls are adjusted so both traces deflect the same amount on average when the target goes by.
The digital PI is doing a two stage integration. It is adding up 160 differential samples to get approximately 30 samples per second (5000/160 = 31.25). Then the low rate samples are digitally filtered with a 3 pole low pass filter. The output of the digital PI integrator has about twice as much noise as the analog integrator. I assume that this is because the analog integrator has a wider sample window. With the computer display on there is a lot more than twice as much noise.
Besides the noise, the output of the analog integrator is much better looking. It is more consistent and smoother. One reason for this is that the digital integrator output is only updated 30 times a second or about 7 times during the width of the target signal. I am not sure at this point if the update rate and extra noise on the digital integrator output account for all of the inconsistency in the target signal or if there is something else going on.
At this stage I am getting approximately what I expected. With single A-D samples the output from the digital PI is worse than the output from the analog PI, but not so much worse that It's hopeless.
I will post additional test results as I try other variations.
Robert
The diagram below shows how the boards are connected for these tests. The digital PI taps into the analog PI at two points. The output of the analog PI amplifier goes to the digital PI A-D converter. A strobe signal is also needed to tell the digital PI when to sample the signal. A timing signal that goes low when the analog PI integrator gate opens is connected to a Digital PI interrupt line. A few microseconds after the timing signal goes low the Digital PI takes its main sample. One hundred microseconds later the digital PI takes its secondary sample. The secondary sample is subtracted from the main sample and the result is integrated.
When I first turned on the analog PI I found the output of the integrator was hard against one side, and putting a target near the coil did not change the output. The output from the amplifier had part of a sine wave during the coil off-time. This turned out to be from an IB coil sitting on the floor a couple of feet away from the PI coil. The IB coil was not powered but the PI pulses were exciting it and the signal returned from the IB coil was overloading the PI receiver. When I moved the IB coil to the other side of the room that problem went away.
Then the analog PI seemed to be working correctly so I connected the digital PI. The digital PI had a lot more noise at the output of the integrator than the analog PI did. I found about 50 mv of noise coming out of the amplifier that the analog PI was able to cope with but not the Digital PI. I could not get the scope to sync on the noise and could not tell what it was. While I was scratching my head trying to figure it out, my computer display timed out and went blank, and at the same time the noise disappeared. Once I knew what I was looking for I was able to see that the noise was a 50 kHz triangular wave from the display deflection circuits. The analog PI integration window was 20 usec which was almost exactly one period of the display signal so the analog PI was almost completely eliminating this interference. The digital PI was just taking one narrow sample. Sometimes it would catch the peak of the interference waveform and sometimes the trough. This resulted in some large random looking noise at the output of the digital PI integrator. I expected that taking a single A-D sample would give more noise than integrating for 10 or 20 usec, but I did not expect to get hit so hard in the first few minutes of testing. As long as I am careful to blank the display I can continue with testing.
The test conditions are:
Pulse repetition frequency: 5000 Hz
Main delay: 20 usec
Secondary delay: 100 usec after start of main sample
Analog integration window: 20 usec
Digital sample: one A-D sample at each point
I have a windmill type device that swings a target past the coil at a constant rate. The target is moving about one foot per second, and the signal from this moving target is about 250 msec wide. With the outputs of both integrators on a dual trace scope the controls are adjusted so both traces deflect the same amount on average when the target goes by.
The digital PI is doing a two stage integration. It is adding up 160 differential samples to get approximately 30 samples per second (5000/160 = 31.25). Then the low rate samples are digitally filtered with a 3 pole low pass filter. The output of the digital PI integrator has about twice as much noise as the analog integrator. I assume that this is because the analog integrator has a wider sample window. With the computer display on there is a lot more than twice as much noise.
Besides the noise, the output of the analog integrator is much better looking. It is more consistent and smoother. One reason for this is that the digital integrator output is only updated 30 times a second or about 7 times during the width of the target signal. I am not sure at this point if the update rate and extra noise on the digital integrator output account for all of the inconsistency in the target signal or if there is something else going on.
At this stage I am getting approximately what I expected. With single A-D samples the output from the digital PI is worse than the output from the analog PI, but not so much worse that It's hopeless.
I will post additional test results as I try other variations.
Robert