Multi-button relay switch without debounce
-
I am trying to figure out how to have multiple relays (2 in my case) with a button to trip the relays but without the debounce. I want the relay to only be active while the switch is being pushed. Could anyone help me with this?
-
why do you want to do that without debounce? Afaik there is no downside on using the debounce lib to get a smoother switching behaviour.
Because I am controlling an actuator with the ability for manual controls with a button. I want 1 button when held down to open it and another button when held down to close. With debounce I have to click it to open, click it again to turn of relay, then click the other button to retract, and then click to turn of relay.
-
The bounce2 library supports detecting changes. See this example https://github.com/thomasfredericks/Bounce2/blob/master/examples/change/change.ino
I get this error "'class Bounce' has no member named 'fell'"
-
I have bounce2... Ill try redownloading it
-
When downloading MySensors this library is included. For usage see MySensors example 'BinarySwitchSensor'.
Yea thats what I thought, and I see it. Ill check this out thanks
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login