|
help with timed function
So I have searched for a few days for any examples of what I am trying to do but I cannot seem to find it.
Here is what I need to do:
press of button (x) turns on solenoid 1 while the button is pressed and turns off when the button is let go. However when the button is let go I need it to trigger solenoid 2 for say 3 seconds then turn it off.
I have gotten it to work where I press the button and it triggers solenoid 1 and when you let go it triggers solenoid 2 and turns off solenoid 1. The issue is that I dont want solenoid 2 left on all the time.
Can anyone show me an example of how to time this? any help will be greatly appreciated!
|