Analog Comparator and Voltage Reference Example
This hands-on project demonstrates a simple example of analog comparator and reference voltage:
Bandgap reference as positive input (1.1V) and AIN1 as negative input. By wiring AIN1 (PD7) to Switch (SW0, PB7), which turns on to high (5 V) and off to GND, and wiring ACO (PE0) to PB5 (LED0), the output of the comparator (ACO, PE0) can be observed by checking the LED’s status.
- Wiring : PD7 (AIN1) | PB7 (SW0; PE0 (ACO) | PB5 (LED0)
Xplained Board:
3
Select ATmega328PB Xplained Mini:
To download the ATMega328PB Analog Comparator Demo, visit this page.