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

    Replacement for Tube pressure sensor

    Scheduled Pinned Locked Moved Modules
    pressuretubeports
    8 Posts 4 Posters 7.6k Views 1 Watching
    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.
    • B Offline
      Bipman
      last edited by

      Hi

      I have the tube pressure sensor connected to port B on an M5stack Core 2 using the M5GO Battery Bottom2. All works OK but the resolution/range is not fine enough for my project. I do however have another little circuit board I was using on an Arduino IOT 33 that I'd like to use. It's a simple unit that only requires VCC,GND,SCK and OUT. I'm hoping to put it in an external unit and plug it in. All seems pretty easy apart from SCK. How would I get that signal to an external unit from the M5?

      Bipman

      teastainT 1 Reply Last reply Reply Quote 0
      • teastainT Offline
        teastain @Bipman
        last edited by

        @bipman Are you programming in Arduino?
        If so, what is the device part name?

        Cheers, Terry!

        100% M5Stack addict with several drawers full of product!

        1 Reply Last reply Reply Quote 0
        • B Offline
          Bipman
          last edited by

          Hi. I am indeed. The part is from China (https://www.ebay.co.uk/itm/193482839640) and uses the HX711 library.

          Steve

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

            SCK and out or DOUT ?
            Sounds like a 2 wire aka I2C device not an analogue device. You need to find the data sheet for the part and find out how it communicates and if there is an existing module/driver for 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
            • B Offline
              Bipman
              last edited by Bipman

              Hi

              The output is a DOUT as the module contains an HX710B A/D converter. Really simple to use with for example on an Arduino IOT 33 SCLK goes to SCK, DOUT going to any digital in pin and vcc,ground. The only connection I cannot work out is how to connect to sck from an external unit.

              Steve

              1 Reply Last reply Reply Quote 0
              • B Offline
                Bipman
                last edited by

                I've checked all three port types so it's easy to see where everything is but I can't see how to get the SCK line into a plug-in module (not base) via say port A (red).

                Steve

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

                  Hello @Bipman

                  port A on M5Core2 should be fine if you don't need external I2C.

                  Maybe this tutorial can help? On ESP32 almost any function can be mapped to almost any GPIO (unlike Arduino boards) and therefore on ESP32 SCK isn't required to go to a specific clock pin it can go to any GPIO.

                  Thanks
                  Felix

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

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    Bipman
                    last edited by

                    I shall take a look thanks!

                    Steve

                    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