I'm a complete beginner and I been trying to control an AC solenoid with a relay module and a push button...this is what I need... when I push the button I want the the relay to be ON for certain amount of time.. doesn't matter it is a short press, a long press or a hold...I don't have any idea with the coding...
(deleted)
Hi,
Welcome to the forum.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html .
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Please show us what code you have and what it does.
Thanks... Tom...
Take a look at the examples that come with the IDE, in particular in the basics and digital sections. Much of what you need in your code is in there. DigitalInputPullup and BlinkWithoutDelay in particular have useful stuff.