Hi Guys, and Lady, :-)

Im no good with maths, :-(

I have a differential pressure sensor and am looking to use it to get an airspeed, once I have the airspeed I can work with it, :-)

Vref = 3.0V
ADC = 10-bit = 1023 steps
Air density @ sea Level = 1.225
Sensor Range = 0.6V per kpa

So, the formula that Im currently trying to get right is as follows:

Code:
VelocityKPH VAR WORD
A VAR WORD

ADCIN 4, A ‘will do a loop of 10 samples later

VelocityKPH = (A-186)*36667
VelocityKPH = SQR VelocityKPH
VelocityKPH = VelocityKPH / 18
As I say, my maths is shocking, :-( I kinda understand the principles but dont get how to string it all together, any help will be very much appreciated.

Kind Regards
Rob