Vacuum calculatie problem. Nano, oled, HX711 en MD-PS002

Hi everybody,

I am making a vacuum meter. It works pretty well, but I don't understand how I can calculate it.

maybe someone knows how to handle that.
I have an arduino Nano with an HX711 with dar to an MD-PS002 sensor.
I want to read the Psi data on an Oled display 128X32.
I am now guessing what the Psi should be. I do that with an auto vacuum analog meter.
But that is not the right way.

I have the code for the Arduino here:

#include "HX711.h"
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

#define OLED_RESET LED_BUILTIN
float analog_pot=0;
#define DOUT 2
#define CLK 3

HX711 scale;

//float calibration_factor =5.1714924102396; // 1 Psi is 5.1714924102396 cm Hg
float calibration_factor =51714; // maby

Adafruit_SSD1306 display(OLED_RESET);
#if (SSD1306_LCDHEIGHT != 32)
#error("Height incorrect, please fix Adafruit_SSD1306.h!");
#endif
void setup() {
Serial.begin(9600);
scale.begin(2, 3);
scale.set_scale();
scale.tare(); //Reset the scale to 0
long zero_factor = scale.read_average(); //Get a baseline reading

display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // initialize with the I2C addr 0x3D (for the 128x64)
// init done
display.display();
delay(200);
// Clear the buffer.
display.clearDisplay();
}

void loop() {
scale.set_scale(calibration_factor); //Adjust to this calibration factor

display.clearDisplay();
display.setTextSize(1.9);
display.setTextColor(WHITE);
display.setCursor(25,0);
display.println("Vacuum");

display.setTextSize(2.5);
display.setTextColor(WHITE);
display.setCursor(10,16);
//display.print(scale.get_units()*0.0000, 2);
display.print(scale.get_units()*0.135, 2);
display.println(" Psi");
display.println();
display.print(scale.get_units(), 2);
display.println(" £");
display.setTextColor(BLACK, WHITE); // 'inverted' text
display.display();

delay(10);

}

if anyone can help me with that i will appreciate it very much.

cheers

Is this thread useful? Help with pressure sensor MD-PS002 - Science and Measurement - Arduino Forum

Thanks MarkT. i wil ask my qwestion there.
Thank you