Onwiththatinformation, youcanthenalertusersoryourselfthatthere's a problemsoyoucanuseledlightstobasicallyshowwhethertheconditionsgreenorwhethertheconditionsredyoucanuseanLCDscreeninordertoexplainthings a littlebitbetter.
YoucanevenusenetworkorWiFishieldstobeabletosendinformationoutto a server.
Butinthismodernworld, wedon't justwanttobenotifiedthatthere's a problem.
Sooneofthings I havetothinkaboutwheneveryou'rebuildingprojectswithmotors, whethertheirfansorwaterpumpsorwheelsorwhateverelseoneofthings I thinkaboutishowareyougoingtopowerinthemotors?
What I havedecidedtodoforthisparticularprojectiswe'reactuallyusing a ninevoltoneandpowersupplyhere, andsothisweplugintotheyard, weknowboardthearteryknowsVendapenset V I N penwillthensendtheelectricitydowntothe l 298 andmodule, andthatwillthenpowerthesefans.
Sothisisthespeedforforthemotor's offofthe l 298 andmodule.
So e n A isfordigitalpensix e and B didyourpenseven.
Thenforthefirstmotor, I inoneand I endtoo.
Sowe'regoingtosignthosetwopeneightandthennine.
Andthenforthesecondmotor, I amthreeand I andfour, we'regoingtosignthosetwopen 10 and 11.
Finally, whatwe'regoingtodohereiswe'reactuallygoingthiosetthegoodandhightemperaturesas a variable.
Somanytimeswhen I dealwiththetemperaturesensors, I justhardcodethetemperatureintothecodesof 73 80.
Whateverelse, I actuallycodethatifelsestatementsdownhere, what I'm goingtodoforthisparticularprojectis I'm actuallyjustgoingtomakethosevariablesandthensetthevaluesfortheveryoldbullsuphere.
Theyweregoingtocreate a variableandhightempequals 80.
So, Edieandaboveequalsbad.
Andthenwewillusethevaluesofthesevariablesforourif l statements, thenwe'regonnagodown, andwe'regoingtousethepenmodefunctiontoturnonallthosedigitalpens a greenledyellowled E and A e and B I andoneeyeintosoonandsoforth.
Notonlyis a turningledusonandoff, butit's alsoturningthesefansonandofftotrytohelpmitigateanyproblemswiththesituationthatyou'redealingwith.
Andsothatwasjust a basicprojecttoshowyouhowanArduinocannotifyyouthatthere's a problemanditcanactuallyalsotriggerphysicaleventsthathappenagain.
Somethingliketurningon a fan.
Now, a lotofpeopleoutthere I don't knowwhatitis.
I don't knowwhatitis.
Theylook a little, aren't weknowstheygo.
Ah, what?
Why?
Whyareyou t shirtaren't weknowswhyareyoutalkingaboutAreyouknowwhatareyoutalkingabout?
Realtytechnologyand I justwanttolosemymind.
I justwanttolosemymindbecausebackwhen I hadmycompanybackwhenweweredealingwithsmallclientsbackwhen I wasintheenterpriseworld, letmetellyou, oneofthebiggestproblemswehadwereserverrooms.
Hey, don't getmewrong.
Someofourserverroomswereamazing.
Someofourserverroomshaddedicated a t B A C systemsandraisedfloorsandtheywerebeautiful.
Theywereuptospec.
But I havetosay a lotofserverrooms I dealtwithwereliteral a broomclosets, literalbroomclosetsandagainyouputsomeserversintheremostofthetimethey'reworking, Okay.
ButlikehereintheBaltimorearea, itgetstobe 100 degreesoutsidethe V A C.
Theairconditioningunitfortheentirebuildingishaving a hardtimekeepingupthoseservers.
Thatroomstartsgettingwarmerandwarmerandwarmer, andallof a suddenyoustarthavingthermaleventsandyoureally, youknowthatthatcouldbe a reallymajorproblemagain, likewithwhenyouhavebroomclosets.
Onebigproblemsis, uh, youknow, I wouldhaveclientswhowouldusebroomclosets, forwhateverreasonistheirserverroom.
Therewasn't a wholelot I coulddoaboutit, buttheonething I wouldsayis, justkeepthedooropen, justkeepthedoorcrackedand I'llwalkaway, eyesgets, keepitcrackedandandfindthesystemswillbecoolenough.