Professional Documents
Culture Documents
Explore(/tag/typeid/)
Publish(/about/create.jsp)
You (/you/)
Industr.Weighing
Catalog
METTLERTOLEDOindustrial
productrangeataglance.Order
freecopy!
(/tag/typeid/categorycostumes/) Costumes(/tag/typeid/categorycostumes/)
AboutThisInstructable
8 356,169 views
122 favorites
Follow
MAKETHECONNECTIONASSHOWNINIMAGEANDUPLOADTHE
FOLLOWINGCODEONARDUINOBOARD.
voidsetup()
{
Serial.begin(9600)
}
voidloop()
{
val=analogRead(tempPin)
26
(/member/TAPAN+MOJIDRA/)
MorebyTAPANMOJIDRA:
(/id/ARDUINO44
OR43KEYPADConvertKeyPressed
IntoI/)
intval
inttempPin=1
License:
Public
Domain
TAPANMOJIDRA
(/member/TAPAN+MOJIDRA/)
(/file/FDWWCKVHKBG733D/)
NowmakeyourowntemperaturesensorbyArduinoandLM35Sensor
Yourequiredfollowingparts
1ARDUINOBOARDANYVERSION
2LM35TEMPERATURESENSOR
3USBCABLE
4COMPUTERWITHARDUINOSOFTWERE
Posted:
Aug18,2013
(/id/2410
LEDMATRIXPERFECTLYRUNNING/)
(/id/ARDUINOASA
8051PROGRAMMER/)
Addinstructableto:
floatmv=(val/1024.0)*5000
floatcel=mv/10
floatfarh=(cel*9)/5+32
; Group
Serial.print("TEMPRATURE=")
Serial.print(cel)
Serial.print("*C")
Serial.println()
delay(1000)
/*uncommentthistogettemperatureinfarenhite
Serial.print("TEMPRATURE=")
Serial.print(farh)
Serial.print("*F")
Serial.println()
*/
}
NOWSEETHESERIALMONITORINTHEARDUINOSOFTWERE,
ITSDONE.
VISIThttps://www.facebook.com/SparkingElectronics
(https://www.facebook.com/SparkingElectronics)FORMOREPROJECTS
)
:)
Wehaveabenicecommentpolicy.
Pleasebepositiveandconstructive.
wIMadeit!
AddImages
spradana1(/member/spradana1)
PostComment
2yearsago
Reply
Wecangetvaluemagicnumber0.48828125fromfollowingexpression:
(SUPPLY_VOLTAGEx1000/1024)/10whereSUPPLY_VOLTAGEis5.0V
(thevoltageusedtopowerLM35)
1024is2^10,valuewheretheanalogvaluecanberepresentedbyATmega
(cmiiw)orthemaximumvalueitcanberepresentedis1023.Theactualvoltage
obtainedbyVOLTAGE_GET/1024.
1000isusedtochangetheunitfromVtomV
10isconstant.Each10mVisdirectlyproportionalto1Celcius.
Bydoingsimplemath:(5.0*1000/1024)/10=0.48828125