XGZP6847A Pressure Sensor Modul

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.

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

Other thread removed.

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