Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

ADC on Atmega328. Part 1

Microcontrollers are meant to deal with digital information. They only understand ‘0’ and ‘1’ values. So what if we need to get some non-digital data into the microcontroller. The only way is to digitize or, to speak to convert analog into digital. This is why almost all microcontrollers are featured with the ADC module. Atmega328 microcontroller also has 8 (or 6 in PDIP package) ADC input channels. All these can be used to read an analog value that is within the reference voltage range. Let us see how this is easy. Continue reading