@bertus Looks interesting, I will try that. But what is the point of C3? I also thought LM324 was just four 741 in one package, which only (or best) worked with +/- power supply, not just ground.
I tried to see if I could debounce a terrible switch I have laying around, but this circuit didn't seem to work. Could anyone give a clue as to why? I forgot to scope the switch before the opamp, so I don't know if it had any effect at all.
Also forgot the value of the cap, but IIRC did I try a few sizes.