Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Multi-button relay switch without debounce

Multi-button relay switch without debounce

Scheduled Pinned Locked Moved Hardware
9 Posts 3 Posters 3.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CJ CassarinoC Offline
    CJ CassarinoC Offline
    CJ Cassarino
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • AndurilA Offline
      AndurilA Offline
      Anduril
      wrote on last edited by
      #2

      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.

      CJ CassarinoC 1 Reply Last reply
      0
      • AndurilA Anduril

        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.

        CJ CassarinoC Offline
        CJ CassarinoC Offline
        CJ Cassarino
        wrote on last edited by
        #3

        @Anduril

        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.

        1 Reply Last reply
        0
        • mfalkviddM Online
          mfalkviddM Online
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          The bounce2 library supports detecting changes. See this example https://github.com/thomasfredericks/Bounce2/blob/master/examples/change/change.ino

          CJ CassarinoC 1 Reply Last reply
          1
          • mfalkviddM mfalkvidd

            The bounce2 library supports detecting changes. See this example https://github.com/thomasfredericks/Bounce2/blob/master/examples/change/change.ino

            CJ CassarinoC Offline
            CJ CassarinoC Offline
            CJ Cassarino
            wrote on last edited by
            #5

            @mfalkvidd

            I get this error "'class Bounce' has no member named 'fell'"

            1 Reply Last reply
            0
            • mfalkviddM Online
              mfalkviddM Online
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              You'll probably need Bounce2 then.

              CJ CassarinoC 1 Reply Last reply
              0
              • mfalkviddM mfalkvidd

                You'll probably need Bounce2 then.

                CJ CassarinoC Offline
                CJ CassarinoC Offline
                CJ Cassarino
                wrote on last edited by
                #7

                @mfalkvidd

                I have bounce2... Ill try redownloading it

                1 Reply Last reply
                0
                • AndurilA Offline
                  AndurilA Offline
                  Anduril
                  wrote on last edited by
                  #8

                  When downloading MySensors this library is included. For usage see MySensors example 'BinarySwitchSensor'.

                  CJ CassarinoC 1 Reply Last reply
                  0
                  • AndurilA Anduril

                    When downloading MySensors this library is included. For usage see MySensors example 'BinarySwitchSensor'.

                    CJ CassarinoC Offline
                    CJ CassarinoC Offline
                    CJ Cassarino
                    wrote on last edited by
                    #9

                    @Anduril

                    Yea thats what I thought, and I see it. Ill check this out thanks

                    1 Reply Last reply
                    0

                    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
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    21

                    Online

                    12.0k

                    Users

                    11.2k

                    Topics

                    113.4k

                    Posts


                    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • MySensors
                    • OpenHardware.io
                    • Categories
                    • Recent
                    • Tags
                    • Popular