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 in to microcontroller. The only way is to digitize or simply speaking to convert analog in to digital. This is why almost all microcontrollers are featured with ADC module. Atmega328 microcontroller also have 8 (or 6 in PDIP package) ADC input channels. All these can be used to read any analog value that is within reference voltage range. Let us see how this is easy. Continue reading