Sointhisvideo, whatwe'regoingtodioiswe'regoingtouse a 16 bytwoLCDscreeninordertodisplayatthetemperatureinbothFahrenheitandCelsiusfromananalogtemperaturesensor.
Whatthisisgoingtoteachyouhowtodoisthisisgoingtoteachyouhowtobringindatafrom a sensorandthenbeabletodisplaybothstaticanddynamictextonanLCDscreen.
ThepenitentiaryometerisusedessentiallyforcontrastontheLCDscreen, weneed 1 212 a 220 ohmresistoragainfortheLCDscreenandweneed a nicebreadboard.
PutallthistogetherSothisinthisparticularproject, youactuallydoneed a fullsizedbreadBoardversus a smallBradboardbecauseweneed a lotofroominordertobuildthisthisthingsothatwetake a lookatwhattheprojectlookslikewhenit's allbuilt.
Andsothisis a 16 columnbytworowscreen, So 16 acrosstoohigh, andthenwe'regonnacomedown, andwe'regoingtorunthroughtheloopandactuallydothecodethatmakesallofthiswork.
Sothefirstthingthatwe'regonnaneedtodoisthebasicmathrequiredinordertoget a temperatureoutoftheanalogtemperaturesensor.
Sointhefirstpositionofthecolumninthesecondrow, soRowoneis a secondrow.
TheyweregoingtodoLCDdotprintandthenTempusTemp N C.
Then, inordertoprintthevalueofthevariabletemperature, see, we'regoingtogotothe 12thpositioninthecolumnofthesecondrow, andthenwe'regoingtoprinttemperature, see, thenwhatwe'regoingtodoisdownhere.
Andonceyouput a delayinthere, soifyouhave a numberthat's changingeverymillisecondover a coupleofmilliseconds, thedisplayisgonnachangeover a coupleofmilliseconds.
Andwhatyouseeis a humanbeingisbasically a blur.
Soyouhavetofigureoutlikewhatyouwantthedelaytobe.
I'm puttingtoedelayof 22 seconds.
I thinkthat's veryreasonableforfor a temperatureproject, sothatwilluploadit, and I'llshowyoutheresults.
If I putmyfingeronhere, basically, we'llseethatthetemperaturestartsgoingupsoagain, abouteverytwoseconds.
Sotheregoesto 66.
Theregoesto 60 acre, theregoesto 72.
Andthenif I takemyfingeroff, thenitshouldstartdroppingdownagainsoyoucanseethatthisisdynamicallychangingapproximatelyeverytwoseconds, basedoffofthevaluethatisreceivingfromthatanalogtemperaturesensor.
Sothisisjust a verysimplewaytobeabletoseehowtodisplaybothstatictextandthevaluesofvariablesusinganLCDscreenagain.
It's a nice, simpleproject, butthisisoneofthosethingsthatcouldberelativelyusefulagain.
Ifyoujustneed a simplejust a simpletemperaturesensororwhateverinyourserverroomorsuch, thismaybevaluableforyou.
Sothat's allthereistousingananalogtemperaturesensorandwritingtheoutputtoe a littleLCDscreen.
Nowitisimportant.
Understand?
YouknowsomethingtobethinkingaboutwhenyoudotheseArduinoprojectsisremember, allyou'reusingisjustbasiccopperwiretoconnectallthesecomponentssoyoucandothingssuchasPutthisintoyourcomputercase, so I know.
No, I know a lotofwhatthewhat?
Thecoolkids.
I'm not a coolkid.
I'm not a cook.
It, but a lotofcoolkidsouttherereallycareaboutthetemperatureinsidetheirgamingPC.
Likeyouhave a gamingPCorsoughtsomehighendrenderingPC, youmaywanttoknowwhatisthetemperatureinsidethecase.
So a lotoftimes, ifyouhavesomethinglikethat, ifyouhave a PC, you'llbeabletoreadthingslikethetemperatureoftheCPU.
I nowknowwhatthetemperatureisinsideinsidetheroom, butbasicallytheideahereisHey, youcanfigureoutthingslike, Whatisthetemperatureinsideyourcomputercaseoryourservercaseorotherdifferenttypesofthings?
That's a typeofstuffthatmightbevaluable.
Andhaveyoudo a projectlikethis?
Sothat's reallyallthereistoit.
We'regonnabedoing a lotmoreprojectsspecialwiththeLCDscreenandalwayswiththeanalogtypicalsensor, youhavetosay, andlongtemperaturesensorsarejustreallygreatfor a casinoprojectshewas a verysimplewaytobeabletoinputvariabledataintoyourprojects.