hello everybody
I don't know if any one can help me and i'am so thankful
I search to understand the Nominal Data Value for my Pressure Sensor MPX4250DP that i'am using to calculate the atmospheric pressure and how to make it into my arduino code ![]()
Here is the Nominal Transfer Value:
*Vout = VS x (0.00369 x P + 0.04) *
± (Pressure Error x Temp. Factor x 0.00369 x VS)
*VS = 5.1 ± 0.25 Vdc *
and here is my arduino code
void setup() {
Serial.begin(9600);
}
void loop(){
float pressure = readPressure(A1);
float hpascal = pressure/100;
Serial.println();
Serial.print("Pressure = ");
Serial.print(pressure);
Serial.println(" pascals");
Serial.print("Pressure = ");
Serial.print(hpascal);
Serial.println(" hpascal");
delay(100);
}
/* Reads pressure from the given pin.
* Returns a value in Pascals
*/
float readPressure(int pin){
int pressureValue = analogRead(pin);
float pressure= (******************************************) nominal tranfer value is missing
return pressure;
}
This is what displays
Pressure = 464090.37 pascals
Pressure = 4640.90 hpascal
i'm waiting for your help thanks and so sorry for my bad english