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

    4-Relay Unit question

    Scheduled Pinned Locked Moved Units
    3 Posts 2 Posters 3.8k 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.
    • R Offline
      robjasey
      last edited by

      I just bought some 4-Relay Units (i2C) and I found that there are two operating modes; synchronous and asynchronous. The documentation does not describe the difference between these modes except to say, don't use asynchronous!

      from documentation - UIFlow functions
      "Set LED and relay mode
      Synchronize
      LED and relay ON/OFF are synchronized.
      Asynchronous
      LED and relay ON/OFF are asynchronous."

      1. Can anybody shed light on what they are referring to? Does this mean that in asynchronous mode you can select the LED and Relay separately?? Or does it refer to the settings of the individual relay values?

      from documentation - RELAY control Reg 0x11
      "Note:The relay can only be controlled in synchronous mode, if the relay is controlled in asynchronous mode, it will not work."
      2. If we are not supposed to use the asynchronous mode the why the heck do they let you select it???

      Thanks in advance!

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

        Hello @robjasey

        the description is misleading, I can use both modes and they do as I'd expect. Synchronous mode: relay and LED go together. Asynchronous mode: relay and LED can be controlled separately.

        Here is what I found using UIFlow 1.10.6 and the 4-Relay unit:
        Synchronous mode:

        • turn on relay works (LED turns on too)
        • turn off relay works (LED turns off too)
        • turn on LED does not work
        • turn off LED does not work

        Asynchronous mode:

        • turn on relay works (LED does not turn on)
        • turn off relay works (LED does not turn off)
        • turn on LED works
        • turn off LED works

        I suggest you just give it a try.

        Thanks
        Felix

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

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

          @felmue Thanks for you fast reply Felix!
          I will.

          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