Site icon Circuit Ideas for You

Arduino Air Pressure Circuit with Sensor HX710B

Air pressure is around us all time, but we cannot see it.

With HX710B sensor and Arduino, we can measure it easily.

This project for Arduino Air Pressure Circuit with Sensor HX710B show pressure value on LCD in real time.

Just connect wires, upload code and see pressure on screen.

Circuit is easy, code is simple and result is clean.

Good for beginners who want to learn sensor reading.

Arduino Coding:

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

long readHX710B() {
long data = 0;
while (digitalRead(A1) == 1);
for (int i = 0; i < 24; i++) {
digitalWrite(A0, 1);
delayMicroseconds(1);
data = data << 1;
digitalWrite(A0, 0);
delayMicroseconds(1);
if (digitalRead(A1) == 1) data++;
}
digitalWrite(A0, 1);
delayMicroseconds(1);
digitalWrite(A0, 0);
delayMicroseconds(1);
if (data & 0x800000) data |= 0xFF000000;
return data;
}

void setup() {
lcd.begin(16, 2);
pinMode(A1, INPUT);
pinMode(A0, OUTPUT);
}

void loop() {
long raw = readHX710B();
float pressure = (raw - 1000) * 0.001;
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Raw:");
lcd.print(raw);
lcd.setCursor(0, 1);
lcd.print("P:");
lcd.print(pressure);
delay(300);
}

Code Explanation:

Circuit Working:

Arduino Air Pressure Circuit Diagram with Sensor HX710B

Parts List:

ComponentQuantity
Arduino Uno1
HX710B Sensor1
16×2 LCD Display1
Potentiometer 10k1

This circuit is used to check air pressure in small pipes, air tanks, tyres and balloons.

Arduino send clock pulse to HX710B.

HX710B give digital data based on pressure.

Arduino read data from DT(OUT) pin.

Arduino convert this value to pressure.

LCD display final reading.

Potentiometer VR1 adjust brightness of letters.

Note:

We can use this circuit for tyre and balloon pressure.

Connect sensor through safe air tube.

Do not give tyre pressure directly to HX710B because it is sensitive.

Use small nozzle to reduce pressure shock.

Arduino will show final pressure on LCD.

Formula with Calculation:

HX710B gives count value.

Pressure goes up when count goes up.

Formula is: Pressure = (RawValue – Offset) × Scale.

Example:

RawValue = 80000

Offset = 1000

Scale = 0.001

So Pressure = (80000 – 1000) × 0.001

Pressure = 79000 × 0.001

Pressure = 79 units (unit depends on calibration).

How to Build:

To build a Arduino Air Pressure Circuit with Sensor HX710B follow the below steps:

Conclusion:

This project show about Arduino Air Pressure Circuit with Sensor HX710B

Arduino make reading easy.

LCD help display value.

Good for learning sensor reading.

Simple circuit and with easy coding.

References:

Using HX710b pressure sensor

Exit mobile version