ADC by Arduino
ADC by Arduino
Theory
When we interface sensors to the microcontroller, the output of the sensor many of the times is analog in nature.
But the microcontroller processes digital signals. Hence, we use ADC in between the sensor and microcontroller.
It converts an analog signal into a digital and gives it to the microcontroller. There are many applications of ADC
like in a biometric application, Environment monitoring, Gas leakage detection etc.
Arduino Uno has 6 0n-board ADC channels which can be used to read analog signal in the range 0-5V.
It has 10-bit ADC means it will give digital value in the range of 0 – 1023 (2^10). This is called as resolution
which indicates the number of discrete values it can produce over the range of analog values.
where
Vref - The reference voltage is the maximum value that the ADC can convert.