LM35DZ + Temp


Closed Thread
Results 1 to 14 of 14

Thread: LM35DZ + Temp

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by savnik View Post
    It's not show corect.
    I try the code below and work but the decimal change every 0.5C
    How change to have resolution every 0.1C
    Ok, forget all the math and displaying for the moment...

    What is the output on the LCD if you only read the A/D converter with the LM35DZ connected... no averaging, no multiple samples, no nothing, just one saple, one display...pause, one sample, one display, and so on...
    Get a good reading that seems to make sense, then we can work on displaying it correctly...

  2. #2
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Ok, forget all the math and displaying for the moment...

    What is the output on the LCD if you only read the A/D converter with the LM35DZ connected... no averaging, no multiple samples, no nothing, just one saple, one display...pause, one sample, one display, and so on...
    Get a good reading that seems to make sense, then we can work on displaying it correctly...
    The output on the LCD is 44-46 (Vin = 44~46)
    The temperature is about 22C in room

  3. #3
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    I change to :
    Code:
    ADCloop:
    
        ADCIN 2,Vin
        Pause 200 
        Vin=(Vin* 10)/2
        Lcdout $fe, 1
        LCDOUT $FE,2
        Lcdout "Temp=",DEC (Vin DIG 2),DEC (Vin DIG 1),".",DEC (Vin dig 0),"C"			          
        goto ADCLoop
    and believe is right
    The LCD now show : Temp=22.5C

Similar Threads

  1. Graphic LCD with PICbasic pro
    By amindzo in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 25th November 2012, 11:45
  2. Stuck with 85C temp on ds18b20
    By revelator in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 3rd April 2009, 19:50
  3. Random Numbers
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 18th December 2008, 08:47
  4. help with write command
    By cphillips82 in forum General
    Replies: 9
    Last Post: - 20th April 2008, 23:49
  5. LM35DZ and 18F2455 settings
    By Mark J in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 25th January 2008, 08:31

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