Reset circuit
This is an improved version with respect to previous circuit, allowing a fast capacitor discharge thanks to diode D1.
This addition allows to reduce the time when the output is kept to zero in order to discharge the capacitor; otherwise the circuit works in the same way of the previous one.
Note: we recommend to add also a 220 ohm resistor in series with the output to reduce peak current.