Is there any way to interface the LM 19 with the arduino?
Ive been trying and i cant get a good temperature number...
I am rather new to all this but from what I read the LM sensors give the temp at about 10mv per degree celsius. I think to turn the reading into Fahrenheit you would need something like this, but I'm not sure:
temp = (5sensor-reading100/1024);
¤$²j¤$ºj¤$²j¤$²j¤$ºj¤$²j¤$ºj¤$ºj¤$²j¤$ºj¤$ºj¤$²j¤$ºj¤$²j¤$²j¤$ºj¤$²j¤$ºj¤$Âj¤$Âj¤$ºj¤$ºj¤$Âj¤$Âj¤$ºj¤$ºj¤$Âj¤$Âj¤$ºj¤$Âj¤$Âj¤$ºj¤$ºj¤$Âj¤$ºj¤$Âj¤$ºj¤$²j¤$Âj¤$ºj¤$Âj¤$Âj¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$Âj¤$ºj¤$Âj¤$Âj¤$ºj¤$Âj¤$ºj¤$ºj¤$²j¤$ºj¤$²j¤$ºj¤$ºj¤$ºj¤$²j¤$²j¤$ºj¤$²j¤$²j¤$²j¤$ºj¤$ºj¤$²j¤$ºj¤$²j¤$²j¤$²j¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$Âj¤$Âj¤$²j¤$ºj¤$Âj¤$Âj¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$Âj¤$ºj¤$ºj¤$ºj¤$Âj¤$Âj¤$Âj¤$ºj¤$ºj¤$ºj¤$Âj¤$ºj¤$²j¤$ºj¤$ºj¤$ºj¤$²j¤$Âj¤$Âj¤$ºj¤$ºj¤$ºj¤$ºj¤$²j¤$ºj¤$²j¤$ºj¤$²j¤$²j¤$²j¤$²j¤$²j¤$ºj¤$²j¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$²j¤$²j¤$²j¤$²j¤$²j¤$²j¤$ºj¤$ºj¤$²j¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$Âj¤$ºj¤$ºj¤$Âj¤$ºj¤$ºj¤$ºj¤$Âj¤$Âj¤$ºj¤$Âj¤$ºj¤$ºj¤$²j¤$ºj¤$Âj¤$Âj¤$ºj¤$Âj¤$Âj¤$ºj¤$ºj¤$Âj¤$Âj¤$²j¤$ºj¤$ºj¤$ºj¤$²j¤$²j¤$²j¤$ºj¤$²j¤$²j¤$ºj¤$ºj¤$ºj¤$²j¤$ºj¤$ºj¤$²j¤$²j¤$ºj¤$²j¤$²j¤$²j¤$ºj¤$²j¤$ºj¤$ºj¤$ºj¤$²j¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$Âj¤$Âj¤$Âj¤$ºj¤$ºj¤$ºj¤$²j¤$ºj¤$Âj¤$ºj¤$ºj¤$Âj¤$Âj¤$Âj¤$ºj¤$Âj¤$ºj¤$Âj¤$ºj¤$ºj¤$ºj¤$ºj¤$Âj¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$²j¤$ºj¤$²j¤$²j¤$ºj¤$ºj¤$²j¤$²j¤$ºj¤$ºj¤$²j¤$²j¤$ºj¤$²j¤$²j¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$ºj¤$²j¤$ºj¤$²j¤$ºj¤$²j¤$²j¤$ºj¤$ºj¤$ºj¤$Âj¤$Âj¤$Âj¤$ºj¤$ºj¤$ºj¤$Âj¤$Âj¤$²j¤$Âj¤$ºj¤$ºj¤$²j¤$Âj¤$Âj¤$²j¤$ºj¤$ºj¤$Âj¤$Âj¤$²j¤$Âj¤$ºj¤$ºj¤$Âj¤$Âj¤$ºj¤$ºj¤$Âj¤$²j¤$ºj¤$²j¤$²j¤$ºj¤$ºj¤$²j¤$²j¤$ºj¤$ºj¤$²j¤$ºj¤$²j¤$ºj¤$²j¤$²j¤$ºj¤$ºj¤$²j¤$ºj¤$ºj¤$ºj¤$ºj¤$
I tried your code and that is the output.
ARGHHH
it would help if you posted your code.
temp = (5sensor-reading100/1024);
You will need to substitute whatever you are calling the temp reading for "sensor-reading." For example:
lm19_val=analogRead(lm19Pin); //read value of center leg of LM19 on source
tempmV = lm19_val; //output voltage of LM19, 10mV = 1 Degree Celcius
tempF=(5tempmV100/1024); //mV converted to Fahrenheit
I think there might be something wrong with my atmega.
I leave nothing attached to the atmega and it prints out values in the upper 400's to the lower 500's.
If i touch the wire, it changes, ranging from 0 to 1023, and if i touch the wire and ground with my other hand, it constantly prints out 0.
heres the kicker, look at the cycle of the numbers..
63
205
171
0
0
0
119
289
0
0
0
0
115
273
40
0
0
0
15
154
122
0
0
0
0
139
227
18
0
0
0
90
161
29
0
0
0
0
40
135
70
0
0
0
18
163
122
0
0
0
0
11
105
63
0
0
0
Unconnected analog input pins will always read noisy and touching them only injects more noise. Try wiring a ground to the analog input and see what you read. Once it is wired to something that is outputing a valid voltage in the 0-5vdc range you should get steady readings if the source being measured is steady.
Good luck
Lefty
Don't forget to tie the lm19 ground to the arduino ground. You could also tie a 1M resistor to ground from your analog pin to quiet the signal.