+ Reply to Thread
Page 2 of 2
First 1 2
Results 16 to 23 of 23

Thread: [help] home weather monitoring miniproject

  1. #16
    alkoko111 Newbie
    Join Date
    Jun 2009
    Location
    yemen / aden city
    Posts
    23

    Default

    okey .... i understood .

    As your project is for a limited temperature range, say +2C thru +50C, it would make sense to amplify the LM35 output so that a tempr of +50C would give a voltage Vin to the adc of +2.5V,,, which would give the max resolution from the adc of 255. i think u talked about this , but please would u clearify it again i mean how will amilfy it to give you 50 c for 2.5 v
    The range between 2 to 60 degcent .... ok

    i want to ask about the accuarcy of the a LM35 , from the datasheet it is a +0.5/-0.5 , knowing this value , in what that will help me ?

    thank you


  2. #17
    ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent
    Join Date
    Jan 2007
    Location
    Hampshire. England.
    Posts
    10,839
    Blog Entries
    13

    Default

    Quote Originally Posted by alkoko111 View Post
    okey .... i understood .
    The range between 2 to 60 degcent .... ok

    i want to ask about the accuarcy of the a LM35 , from the datasheet it is a +0.5/-0.5 , knowing this value , in what that will help me ?

    thank you
    hi,
    So your Tmax is 60Cdeg, the LM35 will output +0.6V for 60C.

    If you set the LM358 to a gain of 4.17, this will increase the 0.6V to 2.5V.
    So for Tmax the adc [with a Vref=2.5] will have an Vinp of 2.5V which will convert to 255 decimal.

    In your PC program you will have to multiply the 255 by say,2.353 to make it equal to 600, which be equivalent to 60.0Cdeg

    As an option, as you are amplifying the LM35 output to the ADC, you could just use the +V[5v] ref of the ADC.
    This would mean amplifying the LM35 0.6V by 8.33, so the 0.6V would become 5V, which with a +5Vref would give 255.
    This method for the Vref is simpler and cheaper.!

    If you think about it, if you made the Tmax = 51Cdeg, so the LM35's 0.51V was multiplied by 9.8 to +5V, this would give an adc value of 255.
    When multiplied by 2 in the PC program would give 51Cdeg.!

    The +/-0.5C accuracy is over the temperature working range of the LM35.

    OK.?
    Eric " Good enough is Perfect "
    I will NOT answer PM's requesting technical help, please use the Forum
    PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

    Link to my Articles: http://www.electro-tech-online.com/a...icgibbs-55450/

  3. #18
    alkoko111 Newbie
    Join Date
    Jun 2009
    Location
    yemen / aden city
    Posts
    23

    Default

    ok ..... allright .

    The +/-0.5C accuracy is over the temperature working range of the LM35.
    ???? i did not get it

    thank you very much eric .

  4. #19
    ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent
    Join Date
    Jan 2007
    Location
    Hampshire. England.
    Posts
    10,839
    Blog Entries
    13

    Default

    Quote Originally Posted by alkoko111 View Post
    ok ..... allright .

    ???? i did not get it

    thank you very much eric .
    hi,
    Look at this graph from the LM35 data.
    Examine the Tempr plot over the full range of the LM35.
    Attached Images
    Eric " Good enough is Perfect "
    I will NOT answer PM's requesting technical help, please use the Forum
    PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

    Link to my Articles: http://www.electro-tech-online.com/a...icgibbs-55450/

  5. #20
    alkoko111 Newbie
    Join Date
    Jun 2009
    Location
    yemen / aden city
    Posts
    23

    Default

    thank you so much eric .

    for any new doubts I'll DISCUSS it with you .

  6. #21
    alkoko111 Newbie
    Join Date
    Jun 2009
    Location
    yemen / aden city
    Posts
    23

    Default

    hello .. eric ! i want to ask about something

    About the temperature . someone implement the project like me with these values :

    Vref=1.28 v . applied on pin9 is 0.64 v
    LM358 works as buffer .

    he used these formulas :
    To get the minimum span that the adc can identify . min-span=Vref/255
    To get the Vin . Vin= Dout * min-span

    then :
    =1.28/255 = 5.01 mV

    He that this the min-span according the formula. and we know that the adc will give us 10 mV / centi but here will give us 5mv/centi ..... which mean we will take the output of the adc and divide it by 2 to get the tempr .

    example : if the output is 00000010= 2 in decimal then the program will read 2 and divide it by 2 to get the tempr ...... 2/2=1 c .

    is that make any sense ? i asked him about why you divided by 2 ? but he did not respond till now ?

    what do u think ?

    note : the program is working fine as this person illustrated .

  7. #22
    ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent
    Join Date
    Jan 2007
    Location
    Hampshire. England.
    Posts
    10,839
    Blog Entries
    13

    Default

    hello .. eric ! i want to ask about something

    About the temperature . someone implement the project like me with these values :

    Vref=1.28 v . applied on pin9 is 0.64 v
    Why is pin9 at 0.64v, it should be 1.28v in order to give a Span of LM35 [1.28v] = 255 adc value.

    LM358 works as buffer .
    Repeating myself, in this application a buffer is NOT required, it serves no purpose.

    he used these formulas :
    To get the minimum span that the adc can identify . min-span=Vref/255
    This should be equivalent to 1.28v/255 , when the Vref is 1.28v

    To get the Vin . Vin= Dout * min-span
    This should read: adc value out = [Vin /1.28v] * 255

    then :
    =1.28/255 = 5.01 mV
    So for 5mV CHANGE in Vin ,,,, adc val = [0.005/1.28] = 1 count CHANGE
    BUT a 5mV change is only equal to 0.5Cdeg change in temperature at the LM35, so a 1Cdeg change would give an adc value of 2.


    He said that this the min-span according the formula. and we know that the adc will give us 10 mV / centi but here will give us 5mv/centi ..... which mean we will take the output of the adc and divide it by 2 to get the tempr .
    So if you want to convert this adc value of 2[decimal] to 1Cdeg, you need to divide by 2.

    example : if the output is 00000010= 2 in decimal then the program will read 2 and divide it by 2 to get the tempr ...... 2/2=1 c .
    Yes.

    is that make any sense ? i asked him about why you divided by 2 ? but he did not respond till now ?
    Look at my explanation above.

    what do u think ?

    note : the program is working fine as this person illustrated .
    Hi,
    I would still advise to use the LM358 as an amplifier for the LM35 output also use the ADC's internal 5Vref.
    Eric " Good enough is Perfect "
    I will NOT answer PM's requesting technical help, please use the Forum
    PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

    Link to my Articles: http://www.electro-tech-online.com/a...icgibbs-55450/

  8. #23
    alkoko111 Newbie
    Join Date
    Jun 2009
    Location
    yemen / aden city
    Posts
    23

    Default

    okay .... i think this is convinced . thank you so much ...any new doubt i 'll DISCUSS it with you .

+ Reply to Thread
Page 2 of 2
First 1 2

Similar Threads

  1. Guys this is my home made 2.1 Home Theater System
    By pasanlaksiri in forum Electronic Projects Design/Ideas/Reviews
    Replies: 41
    Latest: 24th January 2010, 09:52 AM
  2. Weather Station
    By jigzpad in forum General Electronics Chat
    Replies: 8
    Latest: 27th December 2008, 08:54 AM
  3. Weather Vane
    By otm in forum Electronic Projects Design/Ideas/Reviews
    Replies: 64
    Latest: 24th November 2008, 05:37 PM
  4. DIY Weather Stations
    By leongibbs in forum Electronic Projects Design/Ideas/Reviews
    Replies: 3
    Latest: 8th February 2005, 02:25 AM
  5. Weather station
    By ala199 in forum Electronic Projects Design/Ideas/Reviews
    Replies: 7
    Latest: 17th March 2004, 01:46 AM

Tags for this Thread