I'm not very experienced in programming, but in the past I've had pretty good luck working off of the examples in the Arduino IDE.
I'm having trouble figuring out what seems to be a simple task...
All I want to do is activate an output when a corresponding input (push-button) becomes high.
I'd like the output to remain high for a set time after the button is released, then deactivate.
if the push button is activated while the output is already active, reset the timer until it is again released.
Basically an off-delay timer. I've done this many times via an analog 555 IC, but I'd like to be able to accomplish this with the Arduino, and don't know how.
I've looked through the IDE examples, a few Arduino workshop text books, and this forum. But can't find what I'm looking for.
It seems like this would be a pretty common programming task (particularity for beginners), so I'm sure I'm not the only one who would find this helpful.
Can anybody show how to do this? (or point me to a thread that has already explained this).
Thank you in advance.