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

    Atom Socket UIFlow example?

    Units
    atom socket
    2
    5
    4.6k
    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.
    • R
      robjasey
      last edited by

      I purchased an Atom Socket that I want to control using MQTT. I see there is an arduino example on the website but no UIFlow version. If there is no micropython module to control the socket , is there a description of the communication protocol so I can create the class myself?

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

        Hello @robjasey

        see this post to switch Atom Socket on / off.

        Thanks
        Felix

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

        R 1 Reply Last reply Reply Quote 0
        • R
          robjasey @robjasey
          last edited by

          @robjasey Looks like I was able to figure it out from the arduino code. Note that at this time I was only interested in turning on or off the socket, not monitoring the voltage or current. Basically you control the socket through Pin 23. I created a simple example that would turn on or turn off the socket from the button or an MQTT message to "socket" which I would have attached but it appears attachments are not supported in the community (or I don't know how to do it).
          Cheers!

          1 Reply Last reply Reply Quote 0
          • R
            robjasey @felmue
            last edited by

            @felmue Thanks! I made a simple MQTT UIflow example that I'd be willing to post. Do you know if there is a way to do that ?

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

              Hello @robjasey

              I am glad to hear you got it working to your liking. The forum allows to upload pictures (cloud symbol with arrow) or you could post the resulting python code.

              Thanks
              Felix

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

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