Hi @titanium @goscicki @tamil @Frankje @JackANDJude @jonomobile @DionoiD @tomparsons2 @mmalpartida
I created a Littlebits single pulse monostable timer, generating a 3 second pulse when the input button changes from GND to VCC and when it changes back from VCC to GND.
This is the circuit:
USB power - Button - Differentiator - Bright LED - Timeout - Bargraph LED.
(The bright LED is only there to show the pulse from the differentiator).
There is only one bit needed that is not available as standard, it is a so called "differentiator". I made this bit from a proto bit with only 3 components, a 0.33 uF capacitor and 2 resistors 10 kOhm. This bit detects the rising and falling edge from the button bit signal by generating a small pulse when the button switches ON and also when the button switches OFF. (See the oscilloscope pictures)
Both pulses can activate the timeout bit, set to 3 seconds.
See this video, the bargraph LED flashes 3 seconds when the button is switched ON (and stays ON) and it flashes also 3 seconds when the button is released.