Pressure sensors and Arduino, better with HX711

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 34

  • @HuyTran-vu3bh
    @HuyTran-vu3bh 3 місяці тому

    hi, really love your work on this sensor. how did you connect your wires from the sensor to the HX711 breakout board? I can tell that you put V_cc as E+ and GND as E-, but for your B- and B+ is it V1 and V2? Thanks!

    • @Ed.R
      @Ed.R  3 місяці тому

      Thanks, it's been a while so a little rusty on this now. The data sheet I'm looking at says V+ and V- but I'm guessing V1 and V2 are similar. You are correct with the other 2 V_cc and GND. As long as the voltage output is low and within the range of the HX711 it should be fine. Just flap the wires at B+ and B- if the reading goes the wrong way.

  • @beautifulsmall
    @beautifulsmall 3 роки тому

    Good work . Used the HX711 - arduino with a siesmometer coil. flat coil ~ 75R 3d printed the former and wound 0.1mm enameled with a hand drill.

    • @Ed.R
      @Ed.R  3 роки тому

      Thanks, another interesting use for one. They sure are sensitive enough, shining a bright light on my strain gauges is enough to show up on the reading.

  • @mos9311
    @mos9311 2 роки тому

    Hello, which HX711 library you are using. I want to measure a hydrostatic pressure so i can see the level of my water pit. My first idea was to take an operation amplifier, but your solution i like more

    • @Ed.R
      @Ed.R  2 роки тому

      Hello, the HX711 will be a lot easier than an amplifier. I use the library by Bogde github.com/bogde/HX711. Is available in the Arduino IDE library manager if you are using it.

    • @mos9311
      @mos9311 2 роки тому

      @@Ed.R One further question. I have made a test setup and have follow situation.
      The MPX53DP Sensor has a offset of 20mV. With the gain 32 the input can be -40mV to +40mV, so for the measure range for the sensor are only 20mV. This means with this setup the real measurement range is 20mV/15kPa. can you agree them

    • @Ed.R
      @Ed.R  2 роки тому

      @@mos9311 I think I'm right the way I've read the datasheet but channel B with the gain of 32 can go from -80mV to +80mV. I believe the sensor outputs up to 60mV at 50kPa. If I'm right you should get the full range.

  • @daniel62018
    @daniel62018 3 роки тому +1

    Is there an advantage of connecting the MPXV5010 to the HX711?

    • @Ed.R
      @Ed.R  3 роки тому

      The MPXV5010 outputs up to 4.7V so is not suitable for the HX711. The HX711 can only measure +‐ 0.08V.
      If you want a better resolution than an Arduino ADC use a pressure sensor that outputs mV then you can use an HX711.
      Or you could get an ADC that measures up to 5V.

    • @Ed.R
      @Ed.R  3 роки тому

      You can now buy an MPX5010 on a breakout board with a 22bit ADC.
      www.ebay.co.uk/itm/SB-Components-Differential-Pressure-Breakout-Board-MPXV5010DP-Sensor-Breakout-/254790149257?mkcid=16&mkevt=1&_trksid=p2349624.m46890.l49286&mkrid=710-127635-2958-0

  • @TheFreshHotDog
    @TheFreshHotDog 2 роки тому

    Hello, what if i wanted to use the HX711 with the MPX5010DP censor? What would the wiring be like? The pins on both of the censors shown in this video are not the same. Thank you

    • @Ed.R
      @Ed.R  2 роки тому

      That sensor has up to a 5V output and an HX711 only accepts +-80mV so is not suitable. I'd suggest finding another suitable ADC without preamp if you want better resolution.

  • @sebastiandiazvivas613
    @sebastiandiazvivas613 2 роки тому

    Hi, can I use a HX711 Module with a MPX10DP?

    • @Ed.R
      @Ed.R  2 роки тому

      As far as I can tell yes. If its says uncompensated and has an output voltage up to 80mV then an HX711 is suitable.

  • @drewvigne
    @drewvigne 4 роки тому +1

    I think most pressure transducers use piezoelectric sensors to measure pressure. Different, but very similar to strain gauges.

    • @Ed.R
      @Ed.R  4 роки тому +3

      Maybe I should have researched them better first. Output is definitely of a similar magnitude to strain gauges.

  • @revanomoretto737
    @revanomoretto737 3 роки тому +1

    could you tell me how the wiring goes?

    • @Ed.R
      @Ed.R  3 роки тому +4

      Yes just realised I've unhelpfully covered the wires with tape. Assuming you mean the one connected to HX711?
      So pin 1 on the sensor marked with a notch is GND and pin 3 is Vs. Often on HX711s the ground and supply voltage is known as E- and E+, E for excitation voltage. GND -> E- and Vs -> E+.
      Pins 2 and 4 are the output and go to B- and B+ or channel B of the HX711. Which way around just determines if the output goes negative or positive so just swap if wrong.
      If you want it more sensitive you can use channel A but you won't get the full range of the sensor.

    • @revanomoretto737
      @revanomoretto737 3 роки тому +3

      @@Ed.R yes, thank you very much

    • @Dr.SanjeevSaxena
      @Dr.SanjeevSaxena 3 роки тому

      @@Ed.R Thanks for openly sharing your wisdom.
      I'm curious to know about the project you used this setup. Also, if you can share the details of the project, including the programming code.
      I'm more interested in details, because of I'm curious to use single MPX5010DP sensor for building electronic wind instrument.

    • @Ed.R
      @Ed.R  3 роки тому +2

      @Dr. Sanjeev Saxena It's my way of giving back to the community that has helped me learn so much.
      I'm reluctant to give away full details of wave device at the moment. It's based on air flow created by air pockets under the water is all I'll say.
      I was thinking of doing a video about data logger as it has a few interesting features not just an SD card module.
      It transmits the data with an nrf24l01, has a small air pump controlled by the wireless link, a magnetically operated on off switch and using a watchdog timer for reliability.

    • @Dr.SanjeevSaxena
      @Dr.SanjeevSaxena 3 роки тому +1

      @@Ed.R Seems, I failed to communicate by request with clarity. Probably that's why you felt so.
      Actually, I wanted to know more about the project, behind the use of HX711 along with MPX5010DP. and part of the coding related to the hx711-mpx5010dp Interfacing (instead of getting your complete intellectual efforts).
      Yes, I still respect your decision & your efforts that must have gone behind.

  • @otnil7889
    @otnil7889 2 роки тому

    can i know how to do conversion from HX711 output to pressure in kPa or flow_rate ?,, im using MPX53DP

    • @Ed.R
      @Ed.R  2 роки тому

      The only accurate way to calibrate for pressure I can think of is to compare to another pressure gauge. Or if you want an appropriate value max out the sensor and call that the max rated pressure of the sensor and record the HX711 value. Calculated a conversion factor. No guarantee that the sensor maxs out at its rated pressure though.
      As for flow rate if you are measuring pressure drop across an orifice. I created a giant syringe with a line of magnets so I could measure the plunger speed. From this I could calculate the volume flow rate.

  • @relisholivera805
    @relisholivera805 6 місяців тому

    How to bypass it?

    • @Ed.R
      @Ed.R  6 місяців тому

      Bypass what?

    • @relisholivera805
      @relisholivera805 5 місяців тому

      @@Ed.R" pressure sensor switch" for temporary to start the machine

  • @yurilima3324
    @yurilima3324 3 роки тому

    You can share the code for us ?

    • @Ed.R
      @Ed.R  3 роки тому

      The code I'm using with these 2 sensers includes a lot of data logging and wireless coms stuff so not sharing right now.
      However in the description of my other HX711 video's is some example code ua-cam.com/video/Rp_M0NbDSpo/v-deo.html
      You can delete most of the other features if you just want to get the sensor working.
      Change the HX711 setup line to scale.begin (LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN, 32); to use channel B.
      Replace *greater than* with a >.
      Add an analogRead in the if (scale.is_ready) statement for the other type of sensor if needed.