I am working on an art project that involves a garage door opener. I am very new to Arduino, and electronics. I have a starter kit with a ton of accessories.
The garage door opener has 2 screws (terminals?) designed to connect a button. If I touch a wire between them, the opener will start. I connected a button to my bread board, and ran wires to those terminals on the opener to see if a simple switch would work, and it does.
I want to:
- press a button, and the Arduino connects the terminals on the opener, and then it starts
- button is then ignored (delayed) for a set amount of time (5 seconds for this example)
- after the set amount of time, the button works as normal (like in step 1)
I ran through some tutorials on buttons, and I think I got ahead of myself.
- I can turn on an LED from a switch on the bread board, and use a
delay(5000)to ignore any other button presses. I tried to connect the wires that were going to LED to the 2 terminals on the garage door opener, and it did not work
- In code, I setup pin 5 as OUTPUT, and pin 6 as INPUT. I used the button to send a HIGH on pin 5, to see if that signal would work when connected to the 2 terminals on the opener. I tested this a bit in code by reading the state of pin 6, and it appears to have worked. However, it did not work when I connected both pin 5 to one terminal, and pin 6 to the other.
I tried looking for a simple example, but searching for garage door openers and Arduino results in too many tutorials on how to do super fancy wireless stuff. I just want to ignore a button press for 5 seconds after it has been pressed once.
I'm looking for a simple example that allows my button to tell the Arduino to make that connection on the garage door opener. I guess I'm looking for my Arduino to act like a switch instead of my (physical) switch?
My Arduino kit comes with a bread board, wires, switches, Uno R3 and tons of other stuff I haven't gotten to yet. I apologize in advance if I'm not thinking of something super-simple that would solve my problem. I'm very new to this.
Thanks for your time!
Edited for spelling. Elaborated on my attempts. I'm going to read about what a relay is.