Airspeed from MPX5500DP differential pressure sensor using a PIC16F88


Results 1 to 27 of 27

Threaded View

  1. #20
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    I am glad your code works. But in case you will need one decimal place precision in your calculation, then you can re-work your formula in this way:

    Code:
    Vu  var byte ' unit
    Vd var byte  ' decimal
    
    P = 6000 * ad_word / 614
    V = SQR(P)
    Vu = V DIG 1
    Vd = V DIG 0
    
    LCDOUT $FE, 1, Vu,".",Vd
    Cheers

    Al.
    Last edited by aratti; - 11th November 2010 at 14:59.
    All progress began with an idea

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts