Sinceallweallwehaveforthisparticularprojectissimplytoo l ladies, I'm justrunningthegroundwiresbacktothetwothetwogroundconnectorsontheArduinoboarditself.
Andsothisisallthat's requiredinordertomakethisworkNowagain, sincethisshowswiththeladies, wecanconnectthistoanexternalpowersupplyandnothavethisconnectedtothecomputeratall s sowecanconnectusagaintolikesomethinglike a batterypack, orjustconnectthisto a walloutlet.
Today I willbeusedconnectingdirectlytothecomputerbecausewewillalsobeusingtheserialmonitortoseewhattheoutputfromthecerealmonitorisandseehowthatcorrespondstothese l ladies.
Butdoyourealizewiththisprojectthisisoneofthoseprojectsthatyoucanseparateoffandhavecompletelydisconnectedfrom a computersothatlet's gooverandtake a lookatthecode?
Sohere's a coatthatwe'relookingattoday, Sothisisrelativelysimplecode.
There's not a lothere, butitisimportantthatyouunderstandallthedifferentcomponentsofit.
There's some a coupleof I wanttorelease a trickythingsbutthingsthatifyouifyoumessup, couldcauseproblems, that's thefirstthingweneedtodoisweneedthioIncludetheWiFi, A library.
Somy s s i d istestand I donothave a passwordatall.
Sothat's allthat's hereagain.
I leavemypasswordblankgonnakeepthissimpleso I don't runintoweirdnetworkingissues.
Well, I'm developingthings.
Thenwe'regoingtocomedown, we'regoingtocreate a variableforstatus, andwe'regoingtosetthatstatusvalueto W ElIdolstatus.
SoThisisjustsimply a variablethatwecandeterminewhatisthecurrentstatusofthewirelesslinkwhenwe'retryingtoconnect, thenextthingwe'regonnadoandthisisoneoftheimportantones, iswe'regoingtocreate a variableforGoogle.
Wegototools, wegot a serialmonitorandwecouldseeitsattemptingtoconnectto a networknametest.
Sorightnow, nolightsareonasit's tryingtoconnect.
We'regonnawait.
Isgonnatake l.
I saidrightaround 10 secondsorso.
Okay.
Thisisthetheinformationwehavenow.
Sowehavethe s s i d oftest.
Wehavethe i.
P.
Address.
Sothisisthe I.
P addressofourArduinodeviceandthenthedefaultgatewayofourTorinodevice.
Again, thiscouldbethiscouldbe a bigproblem, right?
Thatdefaultgatewayismissconfigured.
Thenit's notaboutrise.
Andit's notaboutComcast.
It's aboutsomebodyinyoursidebeingfatfingered, thenpassedthatweseeGoogleisonlineandit's onlineonthatremote I p addressof 1 72 to $17 on 64 1 42 andwecanseethattheledisgrain.
Sothat's great.
Sonowwhat I'm gonnadiois I actuallyhave a a a connectiontotothenetworkdownhereinmybasement.
So I amliterallygoingtorunover, andnow I'm goingtorunover.
When I wannayankthecableofitshowsthatGooglewasofflineandyougettheredlightassoonasyouplugthecablebackin.
Well, we'vegot a fewsecondswithin a numberofseconds.
Youcanseethatisbackonline.
Thegreenledislit.
AndsoSothereyougo.
Thisishowthisprojectworks.
Sothat's a simpleprojectthatyoucanuseanArduinogonnaWiFiinordertocreate a visualalertsystemforwhethertheInternetisuporwhethertheInternetisdown.
Thisisoneofthosegreatthingsagainwhenyou'redealingwithendusersthatarealreadystupidasrockstobeginwith, right, givingthem a littlethingslikethisjustmakesyourlife a loteasier, becauseagain, ifthey'resittingthereandhavingproblems, iftheylookupandseethelightsred, thentheyknowthereis a largerissuegoingon.
Solet's saywhenit's constantlyconnectingtoGoogle, youhavethelightbegreen, butthenyouhave a progressivelylongertimeoffforthegreenledtobasicallymakeitblinkifit's causingproblems.
Soinsteadofimmediatelygoingfromgreentored, maybeyoucouldhave a middleprocesswherethegreenlightstartstoblink.
Ifit's noticingissuesAndthen, ifitcontinueshavingissuesforsomethinglike a minute, thenitflipsovertoreadthoseairkindofsomeofthethingsyoucanthinkaboutwithadding a littlebitofcodetheretomakeit a littlebitmorefunctionalagainwithanyoftheseprojects, I'm showingyouthingsin, likethisclassroomenvironmentyoureallyhavetothinkabout.