Está en la página 1de 5

29/2/2016

AnIoTTemperatureMonitorformyBalconyGardenelectronut.in

EstaeslamemoriacachdeGoogledehttp://electronut.in/IoTtempsensor/.Esunainstantneadela
pginasegnapareciel28Feb.201601:06:31GMT.
Sepuedehabercambiadolapginaactualmientrastanto.Msinformacin
Versincompleta

Versindeslotexto

Verorigen

Consejo:paraencontrartutrminodebsquedarpidoenestapgina,presionaCtrl+FoF(Mac)yusala
barradebsqueda.

electronut.in
Blog
Shop
About
Search

AnIoTTemperatureMonitorformyBalconyGardenfeatureimage

electronutLabs
CoolHardware&AwesomeProjectsforMakersworldwide.
EmailTwitterGithub

AnIoTTemperatureMonitorformyBalconyGarden
IoTsensor
IhadpreviouslywrittenaboutusingtheESP8266WiFimoduletomakeanInternetOfThings(IoT)device
thatplotstemperaturedataontheweb,atthingspeak.com.Thatwasamessofwiresonabreadboard.Ihave
nowrefinedthisprojectsimplifiedsomecomponents,putthemonaPCB,givensomethoughttosaving
batterylife,aswellasbuiltalasercutenclosureforthedevice,whichisnowinstalledinmybalcony
garden.
Theschematicforthedeviceisbelow.Iamusingthe01versionoftheESP8266WiFimodulehere.Iam
alsousinga3.3VversionoftheArduinoProMini(oracloneinmycase)totalktotheESP8266,sincethe
latterworksatthisvoltageandIdontneedtoworryaboutshiftingvoltagelevelsfrom5Vto3.3V.As
before,IamusinganLM35temperaturesensor,andIuseanArduinoanalogpin(ADC)toreadit.The
wholethingispoweredbya9Vbattery.AnLD333.3VregulatortakescareofthesupplytotheESP8266,
andsincetheArduinohasabuiltinregulator,Icandirectlyconnect9VtotheRAWpin.Forconserving
batterylife,Idothefollowing:
1.Takeatemperaturereadingevery10minutes.
2.Plotitonthingspeak.com.
3.PuttheArduinotodeepsleepusingawatchdogtimer.(IusetheNarcolepticlibraryforthispurpose.)
4.UsetheCH_PDpinoftheESP8266fordisablingthechipwhennotneeded,usingadigitalWriteon
theArduino.
http://webcache.googleusercontent.com/search?q=cache:http://electronut.in/IoTtempsensor/&gws_rd=cr&ei=ON7TVsa_G8vXetyheAD

1/5

29/2/2016

AnIoTTemperatureMonitorformyBalconyGardenelectronut.in

IalsousetheSoftwareSeriallibraryontheArduinotocommunicatewiththeESP8266.ThatwayIcan
keepthehardwareserialpinsconnectedtotheUSBtoTTLadapteranduseitfordebugging.Butyoucould
dotheopposite.
IalsoassumeherethattheESP8266modulehasbeensetuptoconnecttoyourWiFinetwork.Ivecovered
thispartinmypreviouspost.TheSSIDandpasswordarestoredontheESP8266onceyousetitup,and
youdonthavetokeepsendingthatinformationinyourArduinocode.

LM35IoTCircuit
HereistheArduinocode.



 












 
 




















http://webcache.googleusercontent.com/search?q=cache:http://electronut.in/IoTtempsensor/&gws_rd=cr&ei=ON7TVsa_G8vXetyheAD

2/5

29/2/2016

AnIoTTemperatureMonitorformyBalconyGardenelectronut.in
































 





 












 






 

http://webcache.googleusercontent.com/search?q=cache:http://electronut.in/IoTtempsensor/&gws_rd=cr&ei=ON7TVsa_G8vXetyheAD

3/5

29/2/2016

AnIoTTemperatureMonitorformyBalconyGardenelectronut.in

 

















Forenclosure,IdesignedaTslotbasedacrylicboxusingtheInkscapeTSlotBoxmakerplugin.Ituses
M2x10hexscrewsandhasslotsfortheLM35,PCBspacer,aswellasoneforhangingtheboxonanail.
Theacrylicthicknessis3mm.Hereswhatitlookslike:

IoTEnclosure
IbuiltthecircuitonageneralpurposePCB.Hereswhatitlookslikeintheprocessofassembly.(Thanks
tomypalRaviforgettingtheenclosurelasercutquickly!)

IoTAssembly
Hereiswhatthedevicelooks,hangingoutonmybalcony:

IoTbalcony
Thisiswhattheplotlookslikeafteranightofdatacollection:

IoTthingspeak
Clickhereforalivefeedoftemperaturedatafrommybalconygarden.
http://webcache.googleusercontent.com/search?q=cache:http://electronut.in/IoTtempsensor/&gws_rd=cr&ei=ON7TVsa_G8vXetyheAD

4/5

29/2/2016

AnIoTTemperatureMonitorformyBalconyGardenelectronut.in

Youcanfindallthenecessaryfilesforthisprojectatmygithublinkhere.

electronutLabs
CoolHardware&AwesomeProjectsforMakersworldwide.
EmailTwitterGithub
AnIoTTemperatureMonitorformyBalconyGardenwaspublishedonJanuary18,2015andlast
modifiedonJanuary18,2015.

Supportelectronut.in
Generatingoriginalcontentforelectronut.intakesupalotofmytimeandmonetaryresources.Ifyoufound
thisarticleuseful,pleaseconsidermakingasmalldonation.Thiswillhelpmemaintainelectronut.inasa
highqualityAdfreewebsite.
Donate
$5.00USD

Pleasesignupforourmonthynewsletter
Onlyonceamonth,Iwillsendyouanemailupdateonthelatestelectronut.inprojects,aswellasother
relatedinterestinghappeningsaroundtheglobe.Youremailaddresswillneverbesharedorabused,ever.
EmailAddress(required)
FirstName
LastName
Subscribe

Youmightalsoenjoy(Viewallposts)
AllRoadsLeadtoShenzhen(forElectronics)
TalkingtoMMA7660usingI2CandATtiny85
HackingaCheapLEDLampwithnRF51822
2016electronutLabs.PoweredbyJekyllusingtheMinimalMistakestheme.
commentspoweredbyDisqus

http://webcache.googleusercontent.com/search?q=cache:http://electronut.in/IoTtempsensor/&gws_rd=cr&ei=ON7TVsa_G8vXetyheAD

5/5

También podría gustarte