When the comparator on the AVR detects a rise in the voltage drop across the resistor it rings the chimes ... press and triggers the chime accordingly. One of the problems I ran into was that ...