taib1
May 24, 2022, 9:16pm
1
hey guys I'm trying to measure the pressure of a vacuum pump using the XGZP6847A pressure sensor I need the pressure to be around -95kpa but the voltage that is supposed to make that happen is 0,475 ( m
odele 100KPGn) and while I was reading the datasheet
It might help if you deleted one of these two posts as they are identical. When you do this people tend to ignore you.
Thanks for removing it.
Wawa
May 25, 2022, 9:33am
3
I recently posted a similar sketch for an MPXV6115V (-115kPa).
Try this sketch.
Leo..
const byte sensorPin = A0;
float sensorRating = 100; // -100kPa sensor
int vCal = 102; // vacuum cal
int zCal = 922; // zero cal
float pressure; // final pressure
void setup() {
Serial.begin(9600);
}
void loop() {
pressure = (analogRead(sensorPin) - zCal) * sensorRating / (zCal - vCal);
Serial.print("Pressure: ");
Serial.print(pressure, 1); // one decimal place
Serial.println(" kPa");
delay(500); // dirty delay
}
1 Like
system
Closed
November 21, 2022, 9:28pm
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.