Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    5 volt pressure sensor on Pysense or Expansion Board

    Scheduled Pinned Locked Moved Expansion Board
    6 Posts 4 Posters 438 Views 4 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.
    • S Offline
      svonbentzel
      last edited by

      Hello together, I need help ;-)

      How I can connect a 5v Analog Pressure Sensor to a Pycom Board.
      In the docs I only read Pycom Boards supports only 3.3 volt periphery.

      Can anyone help me?

      J T 2 Replies Last reply Reply Quote 0
      • J Offline
        jcaron @svonbentzel
        last edited by

        @svonbentzel you need to check what the actual range of voltages are, for both input and output of your sensor. Providing the details of the sensor (brand, reference and data sheet) would help.

        Some sensors will take lower voltages, and will have an output voltage which depends on the input voltage. Others require the right voltage but may have an output with a smaller voltage range than 0-5V.

        If the sensor always delivers a signal in the 0-5V range you’ll need to add a voltage divider (that’s just two resistors) to get in the ESP32 range. See discussions on the subject (mostly about measuring battery levels).

        If the sensor needs 5V you’ll either need a source for that (which may already be available, depending on what power source you use and what other board/circuitry you have), or may need to use a boost converter.

        S 1 Reply Last reply Reply Quote 0
        • T Offline
          tuftec @svonbentzel
          last edited by

          @svonbentzel Just use a simple resistive voltage divider to scale the output from the pressure sensor. It works fine for me.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            svonbentzel @jcaron
            last edited by

            @jcaron

            Hello, This is the Sensor I would to use

            pressure Sensor

            Medium: liquid/gas without corrosion
            Wiring: Gravity-3Pin (Signal-VCC-GND)
            Pressure Measurement Range: 0~1.6 Mpa
            Input Voltage: +5 VDC
            Output Voltage: 0.5~4.5 V
            Measurement Accuracy: 0.5%~1%FS (0.5%, 0~55°C)
            Threadably: G1/4
            Adapter: G1/2 to G1/4
            Waterproof level: IP68
            Operating Temperature: -20~85°C
            Response Time: <2.0 ms
            Quiescent Current: 2.8 mA
            Normal Operating Pressure: ≤2.0 Mpa
            Damaged Pressure: ≥3.0Mpa
            Service Life: 10’000’000 times

            alt text

            1 Reply Last reply Reply Quote 0
            • S Offline
              svonbentzel @tuftec
              last edited by

              @tuftec
              Ok thank you. But what do you use for power source?

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                Steve Williams @svonbentzel
                last edited by Steve Williams

                @svonbentzel how are you powering the Pycom board? Is the Pycom device standalone or on an expansion board? 5V power from a separate DC supply (to the VIN pin) or from USB to the socket on the board?

                Whichever you are using, you should be able to extend that to the sensor without too much difficulty - from the sensor specs it doesn't seem to draw much DC power. If you are using any deep sleep type function, then that might need to be looked at.

                1 Reply Last reply Reply Quote 1

                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
                • 1 / 1
                • First post
                  Last post

                Pycom on Twitter

                Pycom