navigationGo.pngQuick Navigation
allprojects32.pngAll projects
hardware32.pngHardware
links32.pngLinks

favoriteStar32.pngTop projects
Alan numitron clock
Clapclap 2313/1386
SNES Pi Webserver
USB Volume/USB toys
Smokey amp
Laser cutter
WordClock
ardReveil v3
SNES Arcade cabinet
Game boy projects
cameleon
Home Presence Detector

github32.pngGitHub
AlanFromJapan

navigationMail.pngContact me

alanfjmail.png
3flags.pngWho's Alan?


Akizukidenshi
Elec-lab
Rand Nerd Tut
EEVblog
SpritesMods
Switch-science
Sparkfun
Suzusho
Datasheet Lib
Reddit Elec
Ermicro
Carnet du maker (fr)
Marutsu
ATmel blog (defunct)

Arduino and a thermometer

kalshagar - Arduino and a thermometer

Connect to a thermometer

Best and most common choice (for non highly demanding applications) is the LM35 from National (Panasonic electronic branch).
Feed the baby with anything between 0 and 35 V (!), you get a reading between -1 and %206V on the Vout pin (in basic mode, most likely what you need; see pdf for other possibilities).
Reading returns %200.01v per degree above 0. Convert to Celsius degrees like that :
val = analogRead(potPin);             //read the value of sensor
temperature = (5*val*100/1024);         //convert voltage to temperature

LM35_TO92.PNG

Documentation

Official documentation from National: LM35.pdf

Links

All content on this site is shared under the MIT licence (do what u want, don't sue me, hat tip appreciated)
electrogeek.cc ~ Formerly known as Kalshagar.wikispaces.com (AlanFromJapan [2009 - 2019])