I'm curious if anyone has successfully built a PI using a microcontroller to sample the signal?
I have done some prototyping using a dsPIC30F4011. I'm using the PWM for the pulse timing, which works well, and the ADC for sampling. I have an LCD connected as well, but that is inconsequential.
The initial approach I am taking is to sample the signal directly, not using an integrator, and then calculate an exponential moving average of the samples within the microcontroller. A problem I've run into with this design is that the gain in the preamp stage(s) has to be higher than in an analog PI for the ADC to have a good signal to sample. The higher gain introduces many noise issues, much of which comes from the noisy microcontroller itself.
So, I'm curious, has anyone built a microcontroller PI that uses the ADC to sample the signal directly, not using an integrator stage? If so, how was this accomplished effectively?
I have done some prototyping using a dsPIC30F4011. I'm using the PWM for the pulse timing, which works well, and the ADC for sampling. I have an LCD connected as well, but that is inconsequential.
The initial approach I am taking is to sample the signal directly, not using an integrator, and then calculate an exponential moving average of the samples within the microcontroller. A problem I've run into with this design is that the gain in the preamp stage(s) has to be higher than in an analog PI for the ADC to have a good signal to sample. The higher gain introduces many noise issues, much of which comes from the noisy microcontroller itself.
So, I'm curious, has anyone built a microcontroller PI that uses the ADC to sample the signal directly, not using an integrator stage? If so, how was this accomplished effectively?
Comment