Youmightwanttotake a lookatthis, butthenoneofthetemperaturegetsabove 80 degreesabove 80 degrees.
Yougonnalettheserversinthere?
Alltheequipmentinthere.
That's a pointintimethatyoumaystarttoworryaboutyourequipmenteithernowworkingaswelloractuallythermalthermallyshuttingdownandreallycausing a lotofproblems.
Sointhatinstance, notonlydoyouwannahaveaward, youhavewhatyouwanttohave a warning, butyoualsowannahaveanactionablenotification.
What I meanbyanactionableactionableaboutnotificationisnotsimplytellingtheenduserthatthereis a problem, butalsotellingthemwhatthehellto d'oh!
Sonotonlyisthere a majorproblemthathastobedealtwith, buthereisanactionabletaskyoucan d'oh!
Here's thething.
Itthetemperatureistoohigh.
CallthisguyBobatthisparticularnumber.
Andsothisisoneofthosethingsthatyoureallyhavetostartthinkingaboutinthe i o T worldonyourArduinoworld, asyoudesignedeverythingyou'redesigning, theinterfacesyou'redesigning, howthingswillbecomputed.
You'redesigningtheoutput.
Andsooneofthethingsthatyouneedtothinkaboutis a kid.
Youdon't justtelltheenduserthere's a problem.
Youalsotellhimwhatthehelltheyshoulddoabout, evenifalltheyshoulddoiscallsomebodyThat's oneofthebiggestproblemsinthe I t worldistheenduser.
Oneofthingswe'regonnadoiswe'regoingtocreate a variableandendforplusminussowe'regoingtobedoingwiththisiswe'regoingtoreadoutthetemperatureandthenbesidethat, we'regoingtoshowwhetherit's aboveorbelow, whatevertheoptimumtemperatureis.
Soifthetemperatureistoohigh, notonlywill, let's say, 80 degreesandwarning, but I willsay 80 degreeslikeplusseven, Soit's sevendegreesabovetheoptimaltemperature.
It's at 60 degreesontheoptimaltemperatureis 73 whenit's goingtosaythey'llsay 60 minus 13 again, thisgivesyou a littlebitbetterideaabouthowthecoolingisworking, right?
Areyourightatthelimits?
Areyouwellaboveorbelowthelimits?
Justgets a littlebitofadditionalinformationthatmightbeusefultotheendusers.
Soit's a 16 columnso 16 charactersacrossByetorow, twocharactersupanddown, right, so 16 bytwoAndsoweusethisinordertodo, like, thecursorsettingsandallthat, becauseyouactuallyyouactuallyhavetotellthecodewheretostarttypingthingsout.
Whatcouldbe a bitof a pain, Butwe'regonnagodownhere, andthefirstthingthatwe'regoingtodoiswe'regoingtodothestandardcodefortemperature, Right?
SoinstandardcodeforSantacureanykindofanalogtemperaturesensorprojectbasicallycopyandpastethisinthere, endreadingequalsthatyou'regonnaanalogreadfromthesensorpentoinordertogetonceyougetthat, you'regoingtobethevoltagesecretafloat a decimalpoint.
So 10.1 25 orwhateveriswhatflotussoboltedequalsreadingtimesfivevoltage.
So I thoughtaboutthatbefore, whenyou'redealingwith, like, LCDareled.
I'm sorry.
Ledlights.
Whenyouturnledlightson.
Youalsohavetotoremembertoturnthemoff, right?
Soifyouifyouturnoneledlightonin a certainsituationandyouforgettoturnitoffandthenyouturnanotherledlightonin a differentsituation, thenalltheledlightsareturnedonandyouneverturnthemoff.
YoucanhavethesameproblemwiththeLCDscreenwhere, ifyouhave, ifyouhavetextthattakesup, a differentamountsofspaceisonyourscreen.
Thewholeideaofbeingabletogivesomekindofactionableresponsetoyourendusersagainnotjusttellingthemthatthereis a warningnotjusttellingthemthere's a problem, buttellingthemwhatthehell d'ohagain.
It's relativelysimpleitemsthatgetsstackedtogethertomake a verycomplicatedproject.
AllyouhavetodoisyoujusthavetoYouhavetostart.
Ifyouthinkaboutallthethingsthatneedtohappenandthenyouwriteoutallthepartsofthoseindividualthingsandthenat a certainpointyouactuallyhavesomethingthatseemsthatseemsprettyimpressive.
Sothat's allthereistothisparticularproject.
Oneofthebigtakeaways I wantyoutobethinkingaboutfromthisproject, though, isagain.
I saw 105 degrees, but I didn't knowwhat I wassupposedtodioandthenyougettheideaforall.
Didn't youreadonPaid 500?
Youknow, appendix A oftheusermanualthatififthetemperatureisabove X amountofdegrees, youshouldcallthispersonandit's nowNo, I didn't I didn't readthatmanual.
I didn't knowwehadthatmanual.
Isthatmanualstillexist?
Right.
Soifyoucangiveyourdevice, ifyoucanallowyourdevicetoactuallycommunicatetotheenduserandgivethemactionablethingsthat d'ohthatwillmakeeverybody's lives a hellof a lotbetter.
So, asalways, I enjoydoingthisvideoandlookfor a seatonthenextone.