Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Tools
Old 6th July 2009, 11:05 AM   #16
Default

okey .... i understood .

Quote:
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
alkoko111 is offline  
Old 6th July 2009, 12:05 PM   #17
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/
ericgibbs is offline  
Old 6th July 2009, 12:16 PM   #18
Default

ok ..... allright .

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

thank you very much eric .
alkoko111 is offline  
Old 6th July 2009, 12:44 PM   #19
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 Thumbnails
[help] home weather monitoring miniproject-aaaimage01.gif  
__________________
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/
ericgibbs is offline  
Old 6th July 2009, 04:56 PM   #20
Default

thank you so much eric .

for any new doubts I'll DISCUSS it with you .
alkoko111 is offline  
Old 13th July 2009, 12:00 AM   #21
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 .
alkoko111 is offline  
Old 13th July 2009, 08:21 AM   #22
Default

Quote:
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/
ericgibbs is offline  
Old 13th July 2009, 08:57 PM   #23
Default

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

Tags
home, miniproject, monitoring, weather

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Guys this is my home made 2.1 Home Theater System pasanlaksiri Electronic Projects Design/Ideas/Reviews 40 11th November 2009 05:07 AM
Weather Station jigzpad General Electronics Chat 8 27th December 2008 09:54 AM
Weather Vane otm Electronic Projects Design/Ideas/Reviews 64 24th November 2008 06:37 PM
DIY Weather Stations leongibbs Electronic Projects Design/Ideas/Reviews 3 8th February 2005 03:25 AM
Weather station ala199 Electronic Projects Design/Ideas/Reviews 7 17th March 2004 02:46 AM



All times are GMT. The time now is 01:13 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker