🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    2 Relay on PaHub

    Arduino
    3
    7
    5.5k
    Loading More Posts
    • 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.
    • M
      mad23
      last edited by

      Hello everyone, I would like to switch the relay separately using PaHub 2 and can't get any further. Does anyone have an example here of using the PaHub with Relay?

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @mad23

        Pa.Hub is an I2C extension hub so unless your relays use I2C (which I doubt) you cannot use a Pa.Hub to connect and switch two relays.

        Did you mean Pb.Hub?

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • M
          mad23
          last edited by

          @felmue said in 2 Relay on PaHub:

          Pa.Hub is an I2C extension hub so unless your relays use I2C (which I doubt) you cannot use a Pa.Hub to connect and switch two relays.
          Did you mean Pb.Hub?

          Would the PbHub be used for this application?

          1 Reply Last reply Reply Quote 0
          • felmueF
            felmue
            last edited by

            Hello @mad23

            I'd say so, yes, but I don't have a Pb.Hub so I cannot say for sure, sorry.

            @all: maybe somebody who owns a Pb.Hub can help out here?

            Thanks
            Felix

            GPIO translation table M5Stack / M5Core2
            Information about various M5Stack products.
            Code examples

            1 Reply Last reply Reply Quote 0
            • M
              mad23
              last edited by

              Hello felmue, thank you for your answer.
              @All benefit I want 2 con this relay:
              https://docs.m5stack.com/#/en/unit/relay
              Does anyone have an idea?

              1 Reply Last reply Reply Quote 0
              • felmueF
                felmue
                last edited by

                Hello @mad23

                have you considered using the 4 relay unit?

                Thanks
                Felix

                GPIO translation table M5Stack / M5Core2
                Information about various M5Stack products.
                Code examples

                1 Reply Last reply Reply Quote 0
                • ajb2k3A
                  ajb2k3
                  last edited by

                  You should be able to run up to 5 relay units connected to the i/ohub (pbhub).

                  UIFlow, so easy an adult can learn it!
                  If I don't know it, be patient!
                  I've ether not learned it or am too drunk to remember it!
                  Author of the WIP UIFlow Handbook!
                  M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post