This can also be done using the ATMEGA328P analog input comparator.
I'm going to try @GigaNerdTheReckoning's diode/capacitor technique.
This can also be done using the ATMEGA328P analog input comparator.
I'm going to try @GigaNerdTheReckoning's diode/capacitor technique.