NTC thermistor temperature sensing


Closed Thread
Results 1 to 37 of 37

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    27


    Did you find this post helpful? Yes | No

    Default

    PBP can only handle integer, it clips off the .874 dec portion.

    where analog in is 0-1024 I would do something like this, tho your scaling would vary :

    Analog_In_1:
    ADCIN 1, AIN1
    Volts_1=AIN1*50/51/2
    Start_Seconds=AIN1*50/51/2
    HI_1 = Volts_1/100
    LOW_1 = Volts_1//100
    Lcdout $fe,$c0,"Temp.: ",#HI_1,".",#LOW_1,"°C"

    Return

    So work in values*100
    Divide by 100 for the integer
    get the modulus of the Divide by 100 for the floating portion
    if you support longs even better!
    note // is modulus
    I thought B0 was reserved for Byte zero, but I may be thinking of something else.
    Last edited by Plcguy; - 14th January 2011 at 19:42.

Members who have read this thread : 0

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

Posting Permissions

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