Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15265

Pushbutton switch to single press

$
0
0

I’m very new at this coding thing, I understand the logic but have a lot of learning ahead of me. I am designing a gate opener that has a single open button, 2 limit switches and a obstruction switch.
The open button switch starts the motor. The run command goes for 10 seconds or until the limit switch goes low. If the open button is pressed any time during that interval the motor is stopped.

My first obstacle is getting the code to read the open button as a single press (to get things started) but not stop everything if it is held too long.
.
I installed ezbutton library but am confused if it will do what I need, and what call out to use, any suggestions?

7 posts - 7 participants

Read full topic


Viewing all articles
Browse latest Browse all 15265

Trending Articles