microcontroller Analog to Digital Converter and Negative Voltages

Posted on Feb 6, 2014

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
Click here to download the full size of the above Circuit.

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:

Related Circuits

  • New Circuits



    Popular Circuits

    ESD Testing for RS232 Interface Circuits
    Active band-reject filter
    Crystal checker
    Precision-Increasing Buffer
    Digital Mixer
    10 Band Graphic Equalizer Circuit
    2-Line Intercom-Cum-Telephone Line Changeover Circuit
    Video Amplifier Circuit for Camera PCB
    On-off Infrared Remote Control
    Rustl3rs Custom Smart LED Light
    Audio mV Meter