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

    4Relay Module UIFlow

    Scheduled Pinned Locked Moved Review
    3 Posts 2 Posters 7.6k 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.
    • C Offline
      crami25
      last edited by

      The M5Stack UIFlow libraries for 2Relay Module or the 4Relay Unit don't work for the 4Relay Module. So you have to use the I2C Master Blocks.

      Here is an example using the M5Stack Core toggling 3 Relays using the buttons A B C:

      0_1673535165986_4Relay.png
      0_1673535245682_Relais4.jpg

      UiFlow-Code (m5f): [https://forum.bastelgarage.ch/assets/files/2023-01-12/1673533548-943791-4relay6.zip)]

      1 Reply Last reply Reply Quote 1
      • D Offline
        domi
        last edited by

        Sorry, but my M5 core ist hanging and this ui flow does not work. sorry, but i need help.

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          crami25 @domi
          last edited by crami25

          @domi
          Are you using the "4Relay module" or the "4Relay unit" or the "2Relay module" ?

          If you still get an error, try to make a simple Uiflow programm scanning the i2c bus with the 4Relay connected:
          0_1675006853542_cfe4a152-de11-4d5b-8158-f44191defe28-image.png
          You should get the number [38, 117] displayed as Label0, 38 is the decimal for 0x26.
          If you get 37 you have another firmware than I have (I2C address 0x25).
          If you only get [117] your 4Relay module is not connected to the M5Stack core. 117 (0x75) is the I2C address of the battery management chip.

          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