MrMikey83
New Member
I am using the ATMega32 controller to try and sense the output of an accelorometer. The output is 1.5 volts to 3.5 volts. I will be subtracting 1.5 from the voltage number and multiplying it by 90 so that I have a number from 0 to 180 degrees to use for tilt data.
I can't figure out how to interface the ADC inputs on port A. What kind of input comes from the ADC pins? I know it detects the voltage but does it compare it to the reference voltage? If the max voltage from the Accelorometer is 3.5 volts, is that what my VRef should be?
~Mike Steinbach
I can't figure out how to interface the ADC inputs on port A. What kind of input comes from the ADC pins? I know it detects the voltage but does it compare it to the reference voltage? If the max voltage from the Accelorometer is 3.5 volts, is that what my VRef should be?
~Mike Steinbach