Arduino Readings and Analog Readings
Apllied pressure (kPa) Vout of sensor (mV) A0 output
0 208 49
50.04 526 105
100 847 170
150 1168 236
200 1490 301
250 1813 367
300 2132 434
350 2459 500
400 2785 567
450 3110 633
500 3437 700
i am battling to send my datasheet and pic. but these are my readings
Well a simple map() function set up to use the 'calibration' numbers you are seeing is one way to skin the cat.
void setup()
{
Serial.begin(9600);
}
void loop()
{
int val = analogRead(A0);
val = map(val, 49, 700, 0, 500);
Serial.println(val);
}
Lefty