Cov txheej txheem:

Me ESP8266 Kub Logger (Google Ntawv): 15 Cov Kauj Ruam
Me ESP8266 Kub Logger (Google Ntawv): 15 Cov Kauj Ruam

Video: Me ESP8266 Kub Logger (Google Ntawv): 15 Cov Kauj Ruam

Video: Me ESP8266 Kub Logger (Google Ntawv): 15 Cov Kauj Ruam
Video: Log DHT11 sensor Data to Google Sheet using NodeMCU ESP8266, Make your own Weather Station IoT 2024, Hlis ntuj nqeg
Anonim
Me ESP8266 Kub Logger (Google Ntawv)
Me ESP8266 Kub Logger (Google Ntawv)
Me ESP8266 Kub Logger (Google Ntawv)
Me ESP8266 Kub Logger (Google Ntawv)
Me ESP8266 Kub Logger (Google Ntawv)
Me ESP8266 Kub Logger (Google Ntawv)

Nov yog phau ntawv qhia yuav ua li cas thiaj ua rau koj tus kheej, me me kiag li WiFi qhib qhov ntsuas kub. Nws yog ua raws ESP-01 tus qauv thiab DS18B20 cov ntsuas kub digital, ntim rau hauv cov ntawv luam tawm 3D nruj nrog 200mAh lithium roj teeb thiab micro USB them nyiaj.

Nws yog qhov haujlwm txaus yog tias ua tiav kom raug, tab sis lo lus ceeb toom nws yog kev ntxhov siab heev rau qhov muag txhua yam ntawm tus kheej thiab ua kom nws me me yam tsis tau ua txhaum dab tsi thiab tau txais cov software ua haujlwm tau ntev heev. Yog li thov nyeem tag nrho cov lus qhia ua ntej muab nws mus.

Yog tias leej twg tsim ib qho kuv xav pom nws thiab koj tab tom siv nws li cas, txog tam sim no kuv tau siv nws los txiav txim lub luag haujlwm ntawm kuv AC ntawm lub caij ntuj sov ib txwm muaj (50min rau, 20min tawm) thiab yuav siv nws los tshuaj xyuas qhov kub ntawm hnyuv ntxwm hauv lub caij ntuj no…

Kauj Ruam 1: Cov Khoom Siv/Khoom Siv

Cov Khoom/Khoom Siv
Cov Khoom/Khoom Siv

Txawm hais tias cov khoom siv tsawg thiab cov txheej txheem yooj yim heev, nws yuav siv zog ntau kom tau txais lawv mus rau hauv daim ntawv zoo thiab ua haujlwm tau zoo …

Cov khoom uas koj xav tau yog:

  • Ib ESP01
  • Ib lub roj teeb LiPo 200mAh
  • Ib qho TP4056 LiPo Charger Module
  • Ib HT7333A 3.3V Voltage Regulator
  • Ib qho DS18B20 Kub Sensor
  • Ob lub SMD 4.7kΩ Resistors
  • Ob Qhov Me Nyuam Khawm

Cov cuab yeej/Khoom siv uas koj xav tau yog:

  • Nyias Insulated Wire (Kuv siv xaim-qhwv hlau)
  • Soldering Iron/Station, Solder, Flux thiab Desoldering Pump
  • Snips/Wire Strippers, Tweezers
  • Ib lub Computer
  • ESP01 Programming Board
  • Ib Lub Tshuab Luam Ntawv 3D
  • Superglue/Cyanoacrylate nplaum

Kauj Ruam 2: Soldering: Tiny Deep_Sleep Wire

Soldering: Qhov Me Me Deep_Sleep Hlau
Soldering: Qhov Me Me Deep_Sleep Hlau
Soldering: Qhov Me Me Deep_Sleep Hlau
Soldering: Qhov Me Me Deep_Sleep Hlau
Soldering: Qhov Me Me Deep_Sleep Hlau
Soldering: Qhov Me Me Deep_Sleep Hlau

Ib qho ntawm cov yam ntxwv tseem ceeb ntawm lub roj teeb uas siv lub logger xav tau yog lub zog qis kom nws tuaj yeem siv tau ntev li ntev tau. ESP8266 muaj ESP. DeepSleep (); xaiv, tab sis nws xav kom GPIO_16 txuas nrog EXT_RSTB (Pib dua) tus pin, uas hmoov tsis zoo rau peb tsis tawg tawm ntawm ESP01 tus qauv. Qhov no txhais tau tias peb yuav tsum tau muab tes xaim xaim xaim rau tus pin raug ntawm SMD ESP8266 nti. Qhov no nyuaj heev tab sis tuaj yeem ua tiav siv tsuas yog cov hlau txuas tas mus li thiab ua siab ntev thiab txhais tes khov kho. GPIO_16 yog tus pin kawg ntawm ib sab ntawm lub nti nyob ze ntawm lub tshuab txiav tawm vim tias nws nyob ntawm ntug nws ua rau nws yooj yim dua rau cov laug rau. Hmoov zoo!

Kauj Ruam 3: Tsab Ntawv

Tsab ntawv
Tsab ntawv
Tsab ntawv
Tsab ntawv

Ua ntej kev cog lus nws mus rau qhov kawg ntawm cov khoom siv hluav taws xob mus rau hauv rooj plaub kuv tau ua tus qauv siv perf-board. Qhov no yog cov kauj ruam xaiv tau los tshuaj xyuas tias txhua lub Cheebtsam yuav ua haujlwm ua ke, vim nws yuav nyuaj rau daws teeb meem thaum nws tau ua me me thiab sab hauv rooj plaub nruj. Tseem tuaj yeem ua tau yooj yim ntawm daim ntawv qhia zaub mov.

Kauj ruam 4: Programming

Programming
Programming
Programming
Programming
Programming
Programming

Txhawm rau ua haujlwm ESP8266 koj tuaj yeem siv tus txheej txheem pheej yig los ntawm Tuam Tshoj nrog kev hloov kho me ntsis ntxiv lub khawm kom txuas GPIO_2 rau hauv av. Teeb nyem ESP8266 tsis dhau qhov kev qhia no, tab sis nws tuaj yeem ua tau yooj yim nrog Arduino kos duab pom ntawm GitHub nplooj ntawv. Nco ntsoov teeb tsa ArduinoJSON thiab OneWire lub tsev qiv ntawv thiab ntawm chav kawm ESP cores.

TSEEM CEEB! Tsis txhob hnov qab muab cov ntaub ntawv SPIFFS tso rau hauv lub rooj tsavxwm. Tus logger yuav tsis khau raj yam tsis muaj cov ntaub ntawv teeb tsa khaws hauv SPIFFS nco.

github.com/Luigi-Pizzolito/ESP8266-Temperatu…

Kauj Ruam 5: Interwebz: Google Cov Ntawv

Interwebz: Google Cov Ntawv
Interwebz: Google Cov Ntawv
Interwebz: Google Cov Ntawv
Interwebz: Google Cov Ntawv
Interwebz: Google Cov Ntawv
Interwebz: Google Cov Ntawv
Interwebz: Google Cov Ntawv
Interwebz: Google Cov Ntawv

Lub backend ntawm peb tus neeg txiav ntoo yuav ua tiav nrog Google Cov Ntawv thiab Cov Ntawv thiab IFTTT nyob nruab nrab. Tsuas yog ua raws cov duab los ntawm no yog qhov yooj yim tshaj plaws ua.

  1. Ua daim ntawv tshiab.
  2. Nqa daim foos thov kev thov nrog Google Chrome Cov Tsim Kho Cov Cuab Yeej.
  3. Nco ntsoov thov URL, thiab thov cov ntaub ntawv
  4. Txuas Daim Ntawv mus pib kho dua Google Ntawv
  5. Ntxiv kab kos rau nplooj ntawv

Kauj Ruam 6: Interwebz: IFTTT Webhooks

Interwebz: IFTTT Webhooks
Interwebz: IFTTT Webhooks
Interwebz: IFTTT Webhooks
Interwebz: IFTTT Webhooks
Interwebz: IFTTT Webhooks
Interwebz: IFTTT Webhooks
Interwebz: IFTTT Webhooks
Interwebz: IFTTT Webhooks

Tiag tiag tsuas yog ua raws cov duab ib qib zuj zus ntawm qhov no.

  1. Tsim qhov tshiab IFTTT applet
  2. Xaiv tus txhais ua Webhook thov kev tshwm sim, nco lub npe txheej xwm.
  3. Xaiv qhov ua los ua Webhook thov.
  4. Muab tshuaj txhuam qhov kev thov URL los ntawm Cov Cuab Yeej Tsim Kho los ua Google Cov Ntawv.
  5. Teem txoj kev thov kom POST
  6. Teem cov ntsiab lus hom rau 'daim ntawv thov/x-www-urlencoded'
  7. Muab cov ntaub ntawv thov nyoos los ntawm Cov Cuab Yeej Tsim Kho los ua Google Cov Ntawv.
  8. Nrhiav cov teb rau qhov kub thiab txias thiab hloov nrog 'Cov khoom xyaw'; Tus nqi 1 & Tus nqi 2.
  9. Tiav applet.

Kauj Ruam 7: Interwebz: Teeb Koj Tus Logger

Interwebz: Teeb Koj Tus Logger
Interwebz: Teeb Koj Tus Logger
Interwebz: Teeb Koj Tus Logger
Interwebz: Teeb Koj Tus Logger
Interwebz: Teeb Koj Tus Logger
Interwebz: Teeb Koj Tus Logger

Ua raws li cov duab…

  1. Mus ntsib IFTTT Maker Webhooks cov ntaub ntawv ntawm no:
  2. Luam koj qhov URL, tom qab nkag mus rau lub npe kev tshwm sim.
  3. Nkag mus teeb hom ntawm koj TinyTempLogger los ntawm kev tuav lub pob teeb tsa thiab rub lub pob pib dua, txuas rau ESP_Logger thiab qhib 192.168.4.1
  4. Nkag mus rau koj URL, faib ua Tus Tswv thiab URI
  5. Nkag mus rau 'tus nqi 1' thiab 'tus nqi 2' raws li lub npe rau qhov ntsuas.
  6. Nyem rau txuag ces pib dua.

Tam sim no koj lub logger yuav tsum muaj peev xwm tshaj tawm cov ntaub ntawv rau Google Cov Ntawv, los ntawm IFTTT kev xa tawm.

Kauj Ruam 8: Soldering: Roj Teeb, Charger thiab Tus Tswj

Soldering: Roj teeb, Charger thiab Regulator
Soldering: Roj teeb, Charger thiab Regulator
Soldering: Roj teeb, Charger thiab Regulator
Soldering: Roj teeb, Charger thiab Regulator

Los ntawm qhov no, koj yuav tsum muaj daim ntawv ua haujlwm puv ntoob ntawm daim ntawv qhia zaub mov/perf-board. Hauv ob peb kauj ruam tom ntej no, peb yuav ua kom tag nrho cov txheej txheem tuag-kab qauv, rau hauv daim ntawv me tshaj plaws uas peb tuaj yeem ua tau.

Pib los ntawm kev siv lub roj teeb, tus tswj hwm, thiab them nyiaj rau ib leeg, raws li cov txheej txheem.

Cov txheej txheem kuj tseem tuaj yeem pom ntawm GitHub nplooj ntawv.

Kauj Ruam 9: Kuaj: Tshem Tus Pin Headers

Soldering: Tshem Pin Headers
Soldering: Tshem Pin Headers
Soldering: Tshem Pin Headers
Soldering: Tshem Pin Headers
Soldering: Tshem Pin Headers
Soldering: Tshem Pin Headers

TSEEM CEEB! Ua ntej tshem tus pin headers kom paub tseeb tias koj tau ua haujlwm rau qhov program thiab SPIFFS thiab tau tsim qauv rau hauv Circuit thiab lees paub tias nws ua haujlwm! Flashing nco tom qab cov kauj ruam no yuav mob !!

XAUS TSHAJ yog tias lub tshuab ua haujlwm tau zoo raws li tus qauv.

Kev tshem tus pin lub taub hau yog qhov nyuaj me ntsis, kuv lub tswv yim tsuas yog siv cov dej ntws tawm thiab sim ua kom sov tag nrho cov pins ib zaug nrog cov laug thaum siv tweezers rub tawm tus pin. Tom qab ntawd kuv siv lub twj tso kua mis los ntawm hauv qab no thiab hlau los ntawm sab saum toj kom yaj cov laug uas tau daig hauv qhov thiab nqus nws tawm. Ceevfaj kom tsis txhob xauv qhov xaim sib sib zog nqus hlau.

Kauj Ruam 10: SMD Resistor Soldering, Hloov Tam Sim No ntawm Charger Module

SMD Resistor Soldering, Hloov Tam Sim No ntawm Charger Module
SMD Resistor Soldering, Hloov Tam Sim No ntawm Charger Module
SMD Resistor Soldering, Hloov Tam Sim No ntawm Charger Module
SMD Resistor Soldering, Hloov Tam Sim No ntawm Charger Module

Ua ntej peb siv LiPo them tus nqi nrog peb lub roj teeb me me 200mAh peb yuav tsum hloov kho nws. Los ntawm lub neej ntawd, cov qauv no them lub xov tooj ntawm 500mA uas siab dhau rau cov roj teeb me me. Los ntawm kev hloov SMD teeb tsa tus tiv thaiv tam sim no los ntawm 1.2kΩ (122) txog 4.7kΩ (472) peb tuaj yeem txo qhov tam sim no rau ~ 150mA. Txoj kev no peb lub xovtooj yuav nyob ntev dua.

Kauj Ruam 11: Soldering: Nyees khawm

Soldering: Nyees khawm
Soldering: Nyees khawm
Soldering: Nyees khawm
Soldering: Nyees khawm
Soldering: Nyees khawm
Soldering: Nyees khawm
Soldering: Nyees khawm
Soldering: Nyees khawm

Thawj qhov uas kuv tau siv rau ESP-01 yog lub laub khawm, Kuv tsuas yog siv nyias 'xaim qhwv' xaim thiab ntab ntab khawm thawb, tsuas yog ua raws cov txheej txheem thiab khaws txhua yam me me li sai tau.

Kauj Ruam 12: Soldering: DS18B20

Soldering: DS18B20
Soldering: DS18B20
Soldering: DS18B20
Soldering: DS18B20
Soldering: DS18B20
Soldering: DS18B20

Tom ntej no kuv tau siv lub ntsuas DS18B20 ntsuas kub, ua ntej kuv txiav nws cov hlau lead thiab muab lub ntsej muag txuas 4.7kΩ resistor ntawm VCC thiab DATA pins, tom qab ntawd nws tsuas yog ua raws cov txheej txheem txuas nws mus rau ESP.

Kauj Ruam 13: Kev Muag Khoom: Txuas Txhua Qhov Ntxiv

Kev Muag Khoom: Txuas Nws Txhua Yam Ntxiv
Kev Muag Khoom: Txuas Nws Txhua Yam Ntxiv
Kev Muag Khoom: Txuas Nws Txhua Yam Ntxiv
Kev Muag Khoom: Txuas Nws Txhua Yam Ntxiv
Kev Muag Khoom: Txuas Nws Txhua Yam Ntxiv
Kev Muag Khoom: Txuas Nws Txhua Yam Ntxiv

Qhov kawg uas tseem tshuav los ua qhov muag tau zoo yog koom nrog cov xov hluav taws xob los ntawm lub roj teeb mus rau ESP, tom qab ntawd qhov muag tau ua tiav!

Kauj Ruam 14: 3D Lub Sijhawm Luam Ntawv thiab Lub Rooj Sib Tham Kawg

Lub Sijhawm Luam Ntawv 3D thiab Lub Rooj Sib Tham Kawg
Lub Sijhawm Luam Ntawv 3D thiab Lub Rooj Sib Tham Kawg
Lub Sijhawm Luam Ntawv 3D thiab Lub Rooj Sib Tham Kawg
Lub Sijhawm Luam Ntawv 3D thiab Lub Rooj Sib Tham Kawg
Lub Sijhawm Luam Ntawv 3D thiab Lub Rooj Sib Tham Kawg
Lub Sijhawm Luam Ntawv 3D thiab Lub Rooj Sib Tham Kawg

Txhawm rau ua kom tiav kev sib dhos tom qab ua kom ntseeg tau tias txhua yam tseem ua haujlwm tom qab nws tau muag nws nws yog lub sijhawm los 3D luam tawm rooj plaub rau nws. Kuv pib los ntawm kev ntsuas tawm qhov ntev thiab ua tus qauv hauv Fusion 360, tshwj tsis yog tias koj tau tswj hwm los ua koj li me me lossis loj ib yam li kuv li koj yuav xav tau hloov kho Fusion 360 tus qauv. Txwv tsis pub, STLs rau sab saum toj thiab hauv qab ntawm rooj plaub thiab khawm khawm tau npaj los luam tawm. Kuv siv Cura rau kev hlais ntawm 0.1mm daws teeb meem, 20% ntxiv, ABS cov ntsiab lus thiab "Sau Cov Phab Ntsa Nyias" qhib. Nco ntsoov qhib qhov ntawd lossis lwm qhov sib koom ua ke uas haum rau ob qhov ntawm rooj plaub yuav tsis luam tawm.

STLs thiab fusion 360 cov ntaub ntawv nyob ntawm GitHub.

github.com/Luigi-Pizzolito/ESP8266-Temperatu…

Tom qab luam ntawv nws tsuas yog rooj plaub (txim siab xav) ntawm cov khoom txhua yam rau hauv nws thiab kaw nws nrog cov kua nplaum super. Nws yog qhov nruj heev thiab nws yuav siv ntau lub siab ntev. Kuv pom zoo qee yam zoo li Scotch Weld vim tias nws tuab dua me ntsis, cov kua nplaum zoo li ua rau nyias nyias thiab npog txhua yam thiab lo txhua qhov (suav nrog cov ntiv tes).

Kauj ruam 15: Ua kom tiav

Ua tiav
Ua tiav
Ua tiav
Ua tiav
Ua tiav
Ua tiav

Muaj koj muaj nws, me me kiag li WiFi qhib qhov ntsuas kub. Hmoov zoo yog tias koj sim sib sau ua ke koj tus kheej thiab ua siab ntev ua cov khoom no me me tab sis tseem ua haujlwm tau zoo.

Pom zoo: