# HX710B pressure sensor module issues

**URL:** <https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991>\
**Category:** Sensors\
**Created:** [March 14, 2022, 6:53am UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991 "2022-03-14T06:53:59Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon90086852](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon90086852](https://forum.arduino.cc/u/anon90086852)\
**Post date:** [March 14, 2022, 6:53am UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/1 "2022-03-14T06:53:59Z")

</div>

I am using HX710B pressure sensor module for my sphygmomanometer project on Arduino. The problem is that while using the formula (((16_hx711.read()_(2.98023224/10000000))-40)\*760)/101.325 to convert ADC to mmhg, one sensor is starting the reading in -14, and the other at -105. Why is that?

---

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [March 14, 2022, 8:21am UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/2 "2022-03-14T08:21:27Z")

</div>

> [@anon90086852](#):
>
> The problem is that while using the formula (((16_hx711.read()_(2.98023224/10000000))-40)\*760)/101.325 to convert ADC to mmhg

Whenever troubleshooting the first thing you should do is output the raw ADC values. You should verify the read function provides a 16 bit or 24 bit number. Arduinos being basically an 8 bit device will have to make three reads to get the complete number. Is this being accomplished in your library?

Low cost pressure sensor from China. I would imagine it could leak. Simple test bring it to a pressure and clamp the tube going to the sensor (really tight, like vice grips tight). Then see how fast the decay is.

---

<div class="post-metadata">

**Author:** ![Idahowalker](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/idahowalker/32/238858_2.png) [@Idahowalker](https://forum.arduino.cc/u/Idahowalker)\
**Post date:** [March 14, 2022, 12:04pm UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/3 "2022-03-14T12:04:08Z")

</div>

Has the OP considered that to help us help you, we'd want to see things like schematics and project photos and code in code tags?

Using an Uno?

---

<div class="post-metadata">

**Author:** ![hammy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hammy/32/238813_2.png) [@hammy](https://forum.arduino.cc/u/hammy)\
**Post date:** [March 14, 2022, 1:05pm UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/4 "2022-03-14T13:05:24Z")

</div>

The maths is also an issue

(2.98023224/10000000))-40)

2.98023/100000000 is a tiny number , multiplied by the analog reading then subtracting 40.  
You may well be suffering rounding errors or numbers getting out of range, or your maths might be wrong .You need to think about this and try some values with your calculator , round off any numbers with too many significant figures .  
Re arranging the equation so you multiply by the 760 first might yield better results ?? Try it

As others have said always start printing out the raw numbers to see if it’s working ok  
?

---

<div class="post-metadata">

**Author:** ![DaveEvans](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/daveevans/32/340502_2.png) [@DaveEvans](https://forum.arduino.cc/u/DaveEvans)\
**Post date:** [March 14, 2022, 5:22pm UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/5 "2022-03-14T17:22:15Z")

</div>

> [@anon90086852](#):
>
> one sensor is starting the reading in -14, and the other at -105. Why is that?

Lack of calibration?

What is the output, in mV, of each sensor, measured with a DMM, when they are at the same pressure?

---

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [March 14, 2022, 11:02pm UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/6 "2022-03-14T23:02:40Z")

</div>

There is an example in the library for the HX710B. You should use it to sort out the numbers you think you are receiving before you do any project calculations.

---

<div class="post-metadata">

**Author:** ![DaveEvans](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/daveevans/32/340502_2.png) [@DaveEvans](https://forum.arduino.cc/u/DaveEvans)\
**Post date:** [March 15, 2022, 6:09am UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/8 "2022-03-15T06:09:30Z")

</div>

Thanks. Oops, I guess your device has an on-board HX710B, so the output of the Wheatstone bridge in the sensor is not easily measured. So, never mind.....

But I wouldn't be surprised if, as I implied in my first post, that the sensors need to be calibrated before they give reasonable results.

In fact, I just found the following website says: "One thing to note is that after testing several sensors - they do not all agree in sensitivity and offset. **Therefore, the user must CALIBRATE EACH SENSOR in order to provide an accurate representations of pressure.**"

> **[MPS20N0040D Pressure Sensor Calibration with Arduino — Maker Portal](https://makersportal.com/blog/2020/6/4/mps20n0040d-pressure-sensor-calibration-with-arduino)**
>
> Pressure is defined as an evenly distributed force acting over a surface with a given area. The accurate measurement of pressure is essential for applications ranging from material testing to weighing scales, aircraft altitude prediction, and...

---

<div class="post-metadata">

**Author:** ![DaveEvans](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/daveevans/32/340502_2.png) [@DaveEvans](https://forum.arduino.cc/u/DaveEvans)\
**Post date:** [March 15, 2022, 4:33pm UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/10 "2022-03-15T16:33:44Z")

</div>

You are prototyping a medical device (sphygmomanometer ... blood pressure sensor) and intend to manufacture it for sale to health professionals?

---

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [March 15, 2022, 5:05pm UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/12 "2022-03-15T17:05:28Z")

</div>

> [@anon90086852](#):
>
> sphygmomanometer

An electronic sphygmomanometer will definitely require calibration both at the factory and periodically in use. However this is not the issue. The sensor used must be stable enough to make it from one calibration date to the next without drifting out of tolerance. Should we assume thie

Also note, with low pressure sensors like this the Zero reading is never stable. Most often the controller will "measure" the output with a known Zero pressure and use that measurement to remove the zero offset.

You mention you verified the calculation " (((16_hx711.read()_ (2.98023224/10000000))-40)\*760)/101.325" by hand. Have you looked at each operand result to see if it overflows/underflows your processor?

> Also there is a air constant leakage in the system the source of which I am not able to identify

Can you tell us what the "system" consists of? And how you determined there is a leak?

> In any case as I am prototyping with manufacturing in mind....

Is this an exercise or a real thought of manufacturing a product?

If a product, have you considered quality control, verification of stability of "EVERY" device you mfg? Is a hobby bridge IC really the best part for a commercial product?

Have you considered..

repeatability  
repeatability  
repeatability  
repeatability  
repeatability  
repeatability  
repeatability  
repeatabelty  
repeatability  
repeatability  
repeatability  
repeatability

---

<div class="post-metadata">

**Author:** ![hammy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hammy/32/238813_2.png) [@hammy](https://forum.arduino.cc/u/hammy)\
**Post date:** [March 21, 2022, 8:49am UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/13 "2022-03-21T08:49:24Z")

</div>

> [@JohnRob](#):
>
> You mention you verified the calculation " (((16_hx711.read()_ (2.98023224/10000000))-40)\*760)/101.325" by hand. Have you looked at each operand result to see if it overflows/underflows your processor?

Yep, when ever I see maths like this , there is more than likely a problem . Do as much of the maths outside of the sketch and , as I said look carefully at the order of calculation and sensitivity to value errors

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [March 14, 2022, 6:49am UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/15 "2022-03-14T06:49:08Z")

</div>

Why didn't you try Google?

---

<div class="post-metadata">

**Author:** ![TomGeorge](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tomgeorge/32/215261_2.png) [@TomGeorge](https://forum.arduino.cc/u/TomGeorge)\
**Post date:** [March 14, 2022, 8:07am UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/17 "2022-03-14T08:07:14Z")

</div>

Hi,  
Welcome to the forum.

I Googled;

> 2SMPP-02 Omron arduino

> **[GitHub - omron-devhub/2smpb02e-grove-arduino](https://github.com/omron-devhub/2smpb02e-grove-arduino)**
>
> Contribute to omron-devhub/2smpb02e-grove-arduino development by creating an account on GitHub.

It has library and example code.

Tom.... 😃 👍 ☕ 🇦🇺

---

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [March 14, 2022, 8:13am UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/18 "2022-03-14T08:13:29Z")

</div>

> [@anon90086852](#):
>
> 2SMPP-02 Omron pressure sensor

The sensor will not connect directly to the Arduino. You will need an interface board like the HX-711.  
This sensor has 4 resistors connected together in a bridge configuration. When you apply pressure the resistors change resistance (slightly). To measure these changes you need a high gain amplifier/converter.

I'm guessing @TomGeorge's link seems to be for a different Omron sensor.

---

<div class="post-metadata">

**Author:** ![Grumpy\_Mike](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/grumpy_mike/32/213521_2.png) [@Grumpy\_Mike](https://forum.arduino.cc/u/Grumpy_Mike)\
**Post date:** [March 14, 2022, 8:33am UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/19 "2022-03-14T08:33:39Z")

</div>

@anon90086852 Beginners tutorials is a place for posting guess what, tutorials aimed at beginners. **NOT** for asking questions about some project of yours. It says so in the description of the section. Therefore I have moved your post here. Please be more careful where you post in future.

You may want to read this before you proceed:-  
[how to get the best out of this forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/681308)

---

<div class="post-metadata">

**Author:** ![anon90086852](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon90086852](https://forum.arduino.cc/u/anon90086852)\
**Post date:** [March 14, 2022, 9:31am UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/20 "2022-03-14T09:31:50Z")

</div>

@Grumpy_Mike sure, will take care in future. and thanks

---

<div class="post-metadata">

**Author:** ![anon90086852](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon90086852](https://forum.arduino.cc/u/anon90086852)\
**Post date:** [March 14, 2022, 9:32am UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/21 "2022-03-14T09:32:26Z")

</div>

@TomGeorge isn't that a different pressure sensor?

---

<div class="post-metadata">

**Author:** ![Ballscrewbob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ballscrewbob/32/950458_2.png) [@Ballscrewbob](https://forum.arduino.cc/u/Ballscrewbob)\
**Post date:** [April 1, 2022, 11:41am UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/23 "2022-04-01T11:41:05Z")

</div>

TOPIC MERGED.

Could you take a few moments to Learn and Use The Forum

> [@](#):
>
> Hello.
> 
> Welcome to the Arduino Forum. This guide explains how to get the best out of this forum. Please read and follow the instructions below. Being new here you might think this is having rules for the sake of rules, but that is not the case. If you don’t follow the guidelines all that happens is there is a long exchange of posts while we try to get you to tell us what we need in order to help you, which is frustrating for you and frustrating for us.
> 
> [How to get the best out of this forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966)

It will help you get the best out of the forum in the future.

- Your OS and version can be valuable information, please include it along with extra security you are using.

- Always list the version of the IDE you are using and the board version if applicable.

- Use quote or add error messages as an attachment NOT a picture.

- How to [insert an image](https://forum.arduino.cc/t/a-thread-with-tips-and-tricks-for-the-new-discourse-based-arduino-forum/849827/3) into your post. ( Thanks @sterretje )

- Add your sketch where applicable but please use CODE TAGS ( **\</\>** )

- Add a SCHEMATIC were needed even if it is hand drawn

- Add working links to any specific hardware as needed ( **NOT** links to similar items)

- Remember that the people trying to help cannot see your problem so give as much information as you can

**COMMON ISSUES**

- Ensure you have **FULLY** inserted the USB cables.

- Check you have a [COMMON GROUND](https://forum.arduino.cc/index.php?topic=653831.msg4406618#msg4406618) where required. ( Thanks @Perry)

- Where possible use USB 2.0 ports or a USB 2.0 POWERED HUB to rule out USB 3.0 issues.

- Try other computers where possible.

- Try other USB leads where possible.

- You may not have the correct driver installed. [CH340/341](http://www.wch.cn/download/CH341SER_EXE.html) or [CP2102](https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers) or FT232 [VCP Drivers - FTDI](https://ftdichip.com/drivers/vcp-drivers/)

- There may be a problem with the board check or remove your wiring first.

- Remove any items connected to pins 0 and 1.

**COMPUTER RELATED**

- Close any other serial programs before opening the IDE.

- Ensure you turn off any additional security / antivirus just to test.

- There may be a problem with the PC try RESTARTING it.

- You may be selecting the wrong COM port.

- Avoid cloud/network based installations where possible OR ensure your Network/Cloud software is RUNNING.

- Clear your browsers CACHE.

- Close the IDE before using any other serial programs.

- Preferably install IDE’s as ADMINISTRATOR or your OS equivalent

**ARDUINO SPECIFIC BOARDS**

- CH340/341 based clones do not report useful information to the “get board info” button.

- NANO (Old Types) some require you to use the OLD BOOTLOADER option.

- NANO ( **ALL Types** ) See the [specific sections](https://forum.arduino.cc/index.php?board=135.0) lower in the forum.

- NANO ( **NEW Types** ) [Install your board CORE’s.](https://forum.arduino.cc/index.php?topic=642505.0)

- Unless using EXTERNAL PROGRAMMERS please leave the IDE selection at default “AVRISP mkII”.

- Boards using a MICRO usb connector need a cable that is both DATA and CHARGE. Many are CHARGE ONLY.

**CREATE editor install locations.**

- On macOs ~/Applications/ArduinoCreateAgent-1.1/ArduinoCreateAgent.app/Contents/MacOS/config.ini

- On Linux ~/ArduinoCreateAgent-1.1/config.ini

- On Windows C:\Users[your user]\AppData\Roaming\ArduinoCreateAgent-1.1

_ **Performing the above actions may help resolve your problem without further help.** _

**Language problem ?**

**Try a language closer to your native language:**

- [中文 (Chinese)](https://forum.arduino.cc/index.php?board=99.0)

- [Deutsch - German](https://forum.arduino.cc/index.php?board=31.0)

- [Español - Spanish](https://forum.arduino.cc/index.php?board=32.0)

- [Français - French](https://forum.arduino.cc/index.php?board=33.0)

- [অসমীয়া, বাংলা, बड़ो - India](https://forum.arduino.cc/index.php?board=82.0)

- [Italiano - Italian](https://forum.arduino.cc/index.php?board=34.0)

- [Nederlands - Dutch](https://forum.arduino.cc/index.php?board=77.0)

- [Portugues - Portuguese](https://forum.arduino.cc/index.php?board=35.0)

- [Россия - Russia](https://forum.arduino.cc/index.php?board=120.0)

- [Scandinavia Swedish, Suomi - Finnish, Norsk - Norwegian](https://forum.arduino.cc/index.php?board=36.0)

**Thanks to all those who helped and added to this list.**

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [September 28, 2022, 11:41am UTC](https://forum.arduino.cc/t/hx710b-pressure-sensor-module-issues/968991/24 "2022-09-28T11:41:33Z")

</div>

Closed on September 28, 2022, 11:41am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
