Strange, does not look like we can edit our previous posts in the new forum, :-(
Slight correction was, the sensor range is not 0.6v, :-), rather, sensitivity.
The Zero (min Vout) value is 0.66V, thus I need to remove the first 207 / 208 counts of the AD value in order to get a 0 value.
The sensor range is rather: 0 to 3.92Kpa
Dave, I tried the long Var and PBP complains on compile, help only lists BIT, BYTE and WORD as valid variable types?
Any ideas on what the PBP equivalent equation / formula would be to extrapolate the Kpa to a speed?
In a C / Arduino example using the same sensor (although 5V sensor) is as follows:
I've been able to get the RAW ad reading as well as the sensor output voltage displaying on the LCD, however I'm lost on the conversion from a ratiometric voltage to a speed, :-(Code:;#define Pressure_MTS(x) sqrt((((x*(INTPUT_VOLTAGE/1024.0))/1.0)*2.0)/1.225) //Converts to AirSpeed in meters per second ;#define Pressure_KMH(x) Pressure_MTS(x)*3.6 //converts to KPH




Bookmarks