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

    Is Relay Unit programming broken

    Units
    2
    4
    1.3k
    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
      Kombistack
      last edited by

      Stupid question! I have been trying to get my relay units working on UIFLow 2 with an AtomS3Lite and on UIFLow 1 with a Stamp Pico. I've resorted to very basic programming to turn the relay unit on and off once every 5 seconds and they are not working. I have used these M5stack relay units only last week and they were both working fine.
      I'm just wondering if something is broken in both versions of UIFLow??

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

        0_1709960204161_uiflow.jpg
        This is the simple program

        0_1709960227582_terminal.jpg
        This is the terminal response.
        Does this indicate a problem with the Relay Unit programming in UIFlow?

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

          By default the port is set as a digital/I2CPort and so normally a relay unit wouldn't work.

          Oh BTW the default Port is A not B, the terminal says you set it to port B which doesn't exist on the Atom and stamp.

          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
          • K
            Kombistack
            last edited by

            Thanks ajb2k3,
            I did manage to get my Stamp Pico working with both a PIR sensor and relay unit.
            The problem was my fault. In soldering on the grove connector to the Stamp Pico, I soldered it on the wrong side of the board so when I connected a grove cable - ground was connected to GPIO 33, 5v was connected to GPIO 32, GPIO 32 was connected to 5v and GPIO 33 was connected to ground. Fortunately I didn't cook my board.

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