microcontroller Analog to Digital Converter and Negative Voltages

Using the ADC on an ATtiny24 to record a AC signal. The ADC has a range from 0-3. 3V. I`m using a precision rectifier to get rid of the negative portion of the signal. I`ve attached a picture of the circuit I`m using for the rectifier. I`m using an LMC6484 as the op-amp with 3. 3V to the V+ rail and 0 to the V- rail. I`m using 1N4004`s as the di
microcontroller Analog to Digital Converter and Negative Voltages - schematic

odes and 10k for the resistors. My logger is able to graph the waveform of the rectifier very well. BUT the oscope shows that the output of the rectifier varies from -0. 5 to 1V. But my micro shows a signal with the same waveform that goes from 0-1. 5V! If I replace the precision rectifier with a simple diode/resistor combination, I get a waveform that varies from -0. X volts to Y volts (depending on the input through the function generator). The micro follows the shape of the waveform correctly but the voltage range is from 0. X to Y volts. I always have a little bit of a negative signal even with the precision rectifier and when I graph the results through my logger, it appears that the largest negative value has been moved up to zero, so I seem to get a larger range than the input. I`ve input positive voltages into the logger through a power supply, and it reads those voltages perfectly! It follows the shape of the waveforms very well too. The only problem seems to be the range. I`m completely lost.

Leave Comment

characters left:

New Circuits