some one can help me about thıs problem.
When I am checking the pressure with manuek boost gauge when boost hıts 2 bar on bosch 4bar map sensor it cant read the upper boost
how can I do this ?
int rawValue; // A/D readings
int offset = 102; // zero pressure adjust
int fullScale = 800; // max pressure (span) adjust
float pressure; // final pressure
void setup() { Serial.begin(9600); }
void loop() { rawValue = analogRead(A0);
pressure = (rawValue - offset) * 4.0 / (fullScale - offset); // conversion
Serial.print("Pressure is ");
Serial.print(pressure, 1); // one decimal place
Serial.println(" bar");
delay(500); }
int rawValue; // A/D readings
int offset = 102; // zero pressure adjust
int fullScale = 800; // max pressure (span) adjust
float pressure; // final pressure
void setup()
{
Serial.begin(9600);
}
void loop()
{
rawValue = analogRead(A0);
pressure = float(rawValue - offset) * 4.0 / float(fullScale - offset);
Serial.print("Pressure is ");
Serial.print(pressure, 1); // one decimal place
Serial.println(" bar");
delay(500);
}
changed like this but nothıng change about my problem.
Still afet 2 bar not readıng the value.
and also I changed the sensor mpx4250 ıt is not readıng after 1.7bar ıt must reads 2.5 bar I read ınthe data sheet . I cant fınd anythıng to solve thıs problem
I believe these are absolute transducers , so if you applying pressure ; it’s 3bar gauge full scale , that maybe affecting your maths in your sketch - the “offset” is atmospheric pressure ( the first of your 4 bars)
how are you measuring pressure ? You need an accurate reference For this
I know this mpx4250 is 250kpa never measure 4 bar. but it is the same when I connect bosch 4 map sensor and ıt reads the same 304 but when I gave the pressure ıt only measures 2 bar or maxımum 2.2 bar. ıt no measures the upper bars
Yes I thınk it is some problem for understandıng because of my writings.
Fırst of all I have 2 map sensor
fırst is mpx4250ap ,second ıs bosch 4 bar map sensor
of course I know mpx4250 ıts datasheet readıng. ıt only measures 250kpa
and bosch 4 bar map sensor can measure 400 kpa maxımum.
my problem ıs when I wıre de mpx4250 sensor to my cırcuıt it measures only 1.7 bar and upper bars not measure
second map sensor bosch 4 bar map sensor. when I wire bosch 4 bar map sensor I measure only 2.2 bar not measures upper bars..
two of the sensor I am usıng the code which I sent my prevıous messages.
It is an ABSOLUTE pressure sensor, you have atmospheric pressure for a start.
It is already reading atmospheric pressure.
So approx 1Bar atmos plus 1.7 you are measuring
1 + 1.7 = 2.7Bar or 270kpa, actually outside its range.
Which is what you get.