Coin operated water dispenser help!

What’s feeding the interrupt input pin..

Is it a clean ‘denounced’ signal, or just spring contacts from whatever device is attached ?

Contact bounce is a thing.

This is one issue with using interrupts - they’re very fast, and you need to be ready for bursts of unwanted pin changes.
How you handle them is up to you, or your source device might be able to help.

Possibly adding a small capacitor on the input pin may help quench some of those ‘extra’ pulses.

1 Like