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

    Can some 1 help me with the code?

    Micropython
    2
    7
    2.7k
    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.
    • T
      thijsnl
      last edited by

      Hello folks, I am currently working on a project where I want to transmit the temperature over the LoRa network.

      I use an M5stickC plus and a Lorawan868 module with a MeterISO(K) module, all from m5stack.

      I can send a message via the LoraWan network that is not the problem.
      the problem is that i don't know how to use the MeterISO(K) because it also needs a grove plug and I only have 1 on the M5stickC plus. So I want to use the pins that are located at the top of the M5stickC plus.

      how can I apply I2C to the top pins? And what code do I need for this?

      This is what I got
      0_1704481491737_CodeMicroPython.png

      I want to write everything in micropython but I really need your help.
      As you can see, I'm not really a programmer and still a learner.
      I hope someone can help me because I'm really desperate

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

        @thijsnl You need a grove to Dupont cable to connect the MeterISo to the pins and then in UIFlow, you change the port to custom and then set the pins in the dropdown box that appears when you select the unit.0_1704531375728_Screenshot 2024-01-06 at 08.55.24.png

        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 1
        • T
          thijsnl
          last edited by

          thank you for your response. awesome for your help!

          but i found the problem.
          I have an older one
          software version of M5StickC+ installed there. and every time I want to do a code update I first have to do a new burn of the software on the M5stickC+.

          Otherwise I keep getting an I2C error (110)

          but this is not the solution. Do you/anyone have an idea why this is? and how I can solve this

          1 Reply Last reply Reply Quote 0
          • T
            thijsnl
            last edited by

            latest version of M5stickC + software also works, yet the problem persists that new software has to be installed every time before I upload the code

            Used code:

            0_1704546341861_CodeMicroPythonTestScript.png

            1 Reply Last reply Reply Quote 0
            • T
              thijsnl
              last edited by

              Solved

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

                how did you solve it?

                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
                • T
                  thijsnl
                  last edited by

                  If an I2C error occurs, I use M5Burner and then burn new software on it. the I2C error code only appears if you have the M5 stick in USB mode. If you have the M5stick in App mode, it does not happen. probably it is in the COM port that is active.

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