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

    How many sensors can be hooked up to Port B Grove HUB?

    Units
    2
    2
    5.1k
    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.
    • H
      Happy Hippo
      last edited by

      I have a noobie question. I just got the M5Go kit. So I attached the Grove HUB that it came with to PortB. To the HUB, I attached the PIR sensor unit (using pin 36) and the RGB unit (using pin 26). I modified the example PIR.ino code to make a beep sound when motion is detected and to also light the RGB LED. It works great.

      But now I'm wondering what else I could hook up to the HUB? There is another empty socket. Since there are only 2 pins in Port B, I really can't hook up anything else (unless I wanted to hook up a duplicate sensor unit that reacted the same way), right?

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

        @happy-hippo Correct. In order to connect more you need to use the PbHub.

        As you have discovered, sensors use 1 pin and actuators use the other pin.

        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