Analog Comparator Atmega328p. It compares the value between the ain0 positive pin and the ain1 negative pin. The positive input is given on ain0 pb2 pin of controller.
Pin On Raspberry Pi Arduino And Others from www.pinterest.com
The analog comparator is a crazy little thing. This means microcontroller can compare maximum of nine analog signals with one positive input voltage. Avr based atmega16 atmega32 has an on chip analog comparator which compares two input analog voltage signals and gives which is higher in between them.
The negative input is analog pin 7 on the arduino.
In atmega16 nine pins are available to connect negative input of comparator. I am trying to find some information on how to use the analog comparator on an atmega328 to detect when an analog pin has reached a certain voltage 3 16 volts. It compares the value between the ain0 positive pin and the ain1 negative pin. This means microcontroller can compare maximum of nine analog signals with one positive input voltage.