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

    Stamp Pico and connecting more than one unit

    Scheduled Pinned Locked Moved UIFlow
    3 Posts 2 Posters 2.9k Views
    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.
    • K Offline
      Kombistack
      last edited by

      I am creating a project using a Stamp Pico with a PIR sensor connected to the grove port. I want to connect a single relay unit to the Pico also. As there are no other grove ports I specified ‘custom’ for the port for the relay unit. I chose what came up initially, that was pins 21 and 22. My question is do I need to define the GPIO pins in UI flow (v1.13.2) in Python or can I stay using Blockley and they will be automatically defined?
      Am I indeed using suitable pins for connecting the relay unit to the Pico?
      Thanks for any/all help offered.

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

        Hello @Kombistack

        PIR unit only needs one input GPIO and the relay unit only needs one output GPIO. You can combine both to the same Groove port with default GPIOs using a Groove-T connector.
        Below UIFlow blocks turn the relay on and off, depending on what the PIR sensor reports:

        0_1708693638060_UI1_Stamp_PIR_Relay_20240223.png

        Thanks
        Felix

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

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          Kombistack @felmue
          last edited by

          @felmue said in Stamp Pico and connecting more than one unit:

          PIR unit only needs one input GPIO and the relay unit only needs one output GPIO.

          Thanks felmue I did get this working.

          1 Reply Last reply Reply Quote 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
          • First post
            Last post