Something about ADC's

ADC stands for Analog to Digital Converter. Signals in real life are in the form of analog signals. These have to be converted to Digital signals to be understood by the micro controller. Output given by sensor such as LDR, IR, LM35 sensors etc. are given to the ADC.

In Atmega16 the ADC value shown = Vin * 1024 / 5

where Vin = voltage given by the sensor which is ultimately given to the ADC pin
5V = reference voltage (can be changed..)
1024 stands for the 10bit inbuilt ADC in Atmega16

not getting into the details of ADCs, I will end this topic. I hope this helped anyone out there.
For more info just go through the atmega16 datasheet.

0 comments: