16f877 with LM335 problem


Closed Thread
Results 1 to 40 of 47

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Re: Setting up the LM35 and an opamp as voltage doubler

    Thanks Ioannis,

    You're right: less than that is almost impossible

    Now drive the raised GND of the LM35 to another ADC input of your PIC
    I need to ADC measure the raised GND only once since it will never change - or am I missing something?

    And "yes", for sure I'll have values to measure that will be below 0°C; in fact, they will have to be always under 0°C or I'll have a problem with the food inside the freezer
    Roger

  2. #2
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Re: Setting up the LM35 and an opamp as voltage doubler

    The two diodes connected to the ground of LM35 will change their value due to temperature change.

    So this is the reason for why two ADC channels are needed.

    Since I'll have to locate the LM35 inside the freezer, shall I put these two diodes as close as possible to the LM35, meaning, the sensor and the diodes will be located inside the freezer? Or is it not necessary?
    Roger

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Re: Setting up the LM35 and an opamp as voltage doubler

    You got it right about the temp instability of the diodes.

    And since both (diode and LM35) have positive coefficient regarding the temperature, i'd put both in the same thermal spot.

    Remeber, NOT to use the LM35D

    Ioannis

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    Did you find this post helpful? Yes | No

    Default Re: 16f877 with LM335 problem

    if you wire a lm335 like this
    would not a adc reading of 512 = about -22C and a adc read of 569 = about 0 C
    not very much resolution but workable

    or am I missing something
    Attached Images Attached Images  

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Re: 16f877 with LM335 problem

    Of course it it workable if you accept the 2,59 counts per degree. Noise will be an issue also and especially in this case I would insist on using oversampling to 12 bits to iron out the noise as much as possible.

    Ioannis

  6. #6
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    Did you find this post helpful? Yes | No

    Default Re: 16f877 with LM335 problem

    having in mind the accuracy I need is not that critical (+/- 2°C is okay),
    with a bit of averaging or oversampling 0.5 resolution is achievable, the software solution is at least cheap and easy to try out

  7. #7
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Re: 16f877 with LM335 problem

    Hello,

    I have built the circuit and I'm now testing.

    I'll send some pictures from the the values I read from the LM35 in a moment - very strange values, not stable at all... :-(
    Roger

Similar Threads

  1. 16F877 HSERIN problem with 3th party software
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 11th March 2009, 17:11
  2. LCD problem with 16F877
    By alexx_57 in forum General
    Replies: 10
    Last Post: - 25th July 2007, 13:47
  3. problem using 16f877
    By yrch in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th February 2006, 18:58
  4. 16F877 20MHz problem
    By swordman in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 31st July 2004, 10:02
  5. 16F877, DS18S20 and Serial Comm Problem
    By YellowTang in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th April 2004, 10:36

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