Tải bản đầy đủ - 0 (trang)
Internet of Things Example – An E-mail Alert Water Fountain

Internet of Things Example – An E-mail Alert Water Fountain

Tải bản đầy đủ - 0trang

Chapter5.InternetofThingsExample–

AnE-mailAlertWaterFountain

Inthisproject,wewillworkonbuildingawaterfountainenabledbyRaspberryPi.We

willalsodecoratethefountainwithlightingthatcanbecontrolledwiththehelpofaweb

interface.Thisfountainwillenableustoreceiveemailalertsaswell.Itisagreatexample

toenabletheInternetofThingsusingtheRaspberryPi.



Missionbriefing

WewilllearntobuildafountainandcontrolitusingaRaspberryPi.Wewillbuildaweb

pagebasedontheFlaskframeworkandtrytocontrolthelightingarrangementonthe

fountain.Wewilldemonstratehowadecorativepiece,suchasatabletopfountain,canbe

usedtoreceivee-mailortweetalerts.

FollowingisanimagethatshowsafountaincontrolledbytheRaspberryPi:



Whyisitawesome?

Tabletopfountainsaresoothingineffectandplayagreatroleinrelievingstress.Itisfun

tohaveaRaspberryPiplayagreatroleincontrollingourbehavior.Italsoenablesusto

remindourselvestocheckoure-mails/Twitterfeedsonaregularbasis.



Yourobjectives

Inthisproject,wewillbuildthetabletopfountaininthefollowingsteps:

Assemblingthefountain

InstallationoftheFlaskframeworkandinterfacingthefountain

ControllingRGBLEDsfromthewebpage

Settingupe-mailalertsforthefountain



Missionchecklist

Atabletopfountaincanbebuiltinseveralways,anditispossibletoincludealotof

decorativepiecestoenhancetheappeal.Theitemslistedinthefollowingtableincludea

basiclistofitemstodemonstrateafountaincontrolledbyaPi:

Item



Cost

(approximate)



ADIYfountainkit,includingcontainer,pebbles,andsoon(fromhomeimprovementcompaniessuch

30USD

asHomeDepotoraDIYproductsuppliersuchasAmericanScienceandSurplus).

Asubmersiblepump(source:sameastheprecedingkit).



10USD



AdigitallyaddressableRGBLEDstrip(AdafruitorBanggood.LinktosourcesofLEDprovidedin

thepreviousproject).



16.00/meter

USD



Awoodendowelrod(source:anyhobbystore).



2.00USD



Anacrylicsheet(source:anyhomeimprovementstore).



12.00USD



Mountingaccessories(scotchtapeandsoon).



10.00USD



Inthistask,wewillgetstartedwithassemblingthewaterfountainforourproject.The

fountainassemblyisasimplethree-stepprocess.Thereareseveralresourcesavailable

onlinetobuildadesktopfountainusingrawmaterialsavailableathome(asomewhat

simpletutorialonbuildingatabletopfountainusingasubmersiblefromapetstore:

http://www.instructables.com/id/Table-Fountain/).Wewilllookintoanexampleusingan

off-the-shelfDIYfountainkitinthisstep.



Prepareforliftoff

IfthereaderisnotabletogainaccesstoaDIYfountainkit,thefollowingitemsare

required:

Abasin(preferablyopaquesothatitdiffuseslight)

Afountain/submersiblepumpfromapetshop

Pebblesandgravel

Decorativeaccessoriesavailablefromaquariums

Theseitemscouldbepurchasedfromahobbyshoporanaquariumsuppliesstore.



Engagethrusters

1. TheDIYtabletopfountainkitcomeswithabasinthathasaprovisiontorunthe

fountainpump’scableoutofthebasinthroughasealedoutlet.



Abasinwithasealedelectricaloutlet

2. Next,wewillplacethefountainpumpinsidethebasin.



Fountainpumptobeplacedinsidethebasin

3. Wewillnowcoverthepumpwithacoverandplaceadecorativepot.



Fountainpumpcoveredwithadecorativepot

4. Wecanfillthesidesofthepumpwithgravel,pebbles,smallpiecesofrock,andother

decorativeaccessories.Wethenturnonthepumpandtestthewaterflowtomake



surethatwedon’tspillwaterandmakeamess.



Afountainwithdecorativeaccessories

5. We’llwrapthefountainwithadigitallyaddressableRGBLEDstripandwearedone

withassemblingthefountainwhenwepowerthefountainalongwiththeRGBLEDs.



AwaterfountainstrappedwithadigitallyaddressableRGBLED



Objectivecomplete–minidebriefing

Inthefirststep,wefinishedassemblingthefountainandtheRGBLEDstrip.Wewill

moveontoinstallawebframeworktoimplementlightingcontrolfortheframework,

whichwecanchangebasedonourneeds.



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Internet of Things Example – An E-mail Alert Water Fountain

Tải bản đầy đủ ngay(0 tr)

×