Cov txheej txheem:

Kev ceeb toom lub tswb rau qhov hnov lus tsis zoo ntawm Lub Tsev Automation (ESP-tam sim no, MQTT, Openhab): 3 Cov Kauj Ruam
Kev ceeb toom lub tswb rau qhov hnov lus tsis zoo ntawm Lub Tsev Automation (ESP-tam sim no, MQTT, Openhab): 3 Cov Kauj Ruam

Video: Kev ceeb toom lub tswb rau qhov hnov lus tsis zoo ntawm Lub Tsev Automation (ESP-tam sim no, MQTT, Openhab): 3 Cov Kauj Ruam

Video: Kev ceeb toom lub tswb rau qhov hnov lus tsis zoo ntawm Lub Tsev Automation (ESP-tam sim no, MQTT, Openhab): 3 Cov Kauj Ruam
Video: Finance with Python! Portfolio Diversification and Risk 2024, Hlis ntuj nqeg
Anonim
Image
Image

Hauv Cov Lus Qhia no kuv qhia koj li cas kuv ua ke kuv lub qhov rooj ib txwm nyob hauv kuv lub tsev siv tshuab. Qhov kev daws teeb meem no zoo haum rau cov neeg tsis hnov lus.

Hauv kuv qhov xwm txheej kuv siv nws kom tau txais kev ceeb toom yog tias chav tsis khoom thiab nrov nrov ntawm lub hnub yug menyuam yaus.

Kuv tseem tuaj yeem pom thaum lub tswb nrov nrov nrov rau zaum kawg.

Qhov kev siv tshuab no siv kuv li ESP-tam sim no, Node-Red thiab MQTT cov txheej txheem, raws li tau piav qhia hauv kuv Cov Lus Qhia.

Khoom siv

Koj tuaj yeem pom tag nrho cov khoom siv hluav taws xob niaj hnub no ntawm Aliexpress lossis eBay

  • ESP-01S
  • 4x 1 N4001 Diode
  • AMS1117 3.3V qhov ntsuas hluav taws xob
  • 10uF thiab 1000uF capacitors
  • 7.5 lossis 10k Resistor
  • Connectors, xov hlau thiab PCB

Kauj Ruam 1: Thawj Sim

Thawj Zaug
Thawj Zaug
Thawj Zaug
Thawj Zaug
Thawj Zaug
Thawj Zaug

Kuv lub qhov rooj hloov hluav taws xob tsim hluav taws xob 8V. Yog li, kuv tau tsim lub voj voog yooj yim, muab nws tso rau ntawm daim txiag ntoo thiab sim nws.

Tus lej Arduino nyob hauv kuv Github. ESP-01S tau flashed raws li theem 3 ntawm Cov Lus Qhia no.

Kuv pom tias thaum lub tswb nrov nrov, ESP-01S tsis tau pib (qhov taw qhia xiav LED tsis pom kev). Thaum kuv ntsuas qhov hluav taws xob hla lub tswb qhov rooj thaum nws tau nrov, Kuv tsis tshua ntsuas ib qho hluav taws xob. Vim li cas?

Tom qab ntawd lub tswb nrov hauv kuv lub siab nrov nrov: Nws yog lub qhov rooj AC. Qhov tseeb, thaum kuv ntsuas AC voltage, kuv ntsuas 8V AC. Yog li kuv hloov mus rau phiaj xwm B.

Kauj Ruam 2: Ntxiv Choj Rectifier

Ntxiv Choj Rectifier
Ntxiv Choj Rectifier
Ntxiv Choj Rectifier
Ntxiv Choj Rectifier
Ntxiv Choj Rectifier
Ntxiv Choj Rectifier

Kuv pom Cov Lus Qhia no uas tau piav qhia tus choj txuas hluav taws xob. Kuv tau muaj qee chav ntawm kuv lub rooj tsav xwm perf thiab ntxiv plaub lub 1N4001 diodes thiab ntxiv 1000uF capacitor.

Txog cov khoom lag luam tiag, tus tswj hluav taws xob yuav tsum tau muab tso kom zoo dua, tab sis rau qhov kev sim me me no nws txaus.

Kauj Ruam 3: Ntxiv Tsev Automation

Ntxiv Tsev Automation
Ntxiv Tsev Automation

Tam sim no lub suab nrov ntawm lub qhov rooj tau hloov pauv mus rau MQTT cov lus, lub ntuj yog qhov txwv rau kev siv lub tshuab koj xav pib:

  • Teeb nyem
  • Ntiav lwm WiFi txuas nrog lub tswb lossis tswb
  • Kaw lossis qhib qhov rais qhov muag tsis pom los yog qhov rooj.

Hauv kuv lub tsev siv tshuab ua haujlwm (Openhab) Kuv suav nrog cov hauv qab no thaum cov lus "RING" tau tshaj tawm ntawm "sensor/doorbell" ntsiab lus:

  • Qhib ib qho xwm txheej ntawm kuv LEDstrip (ntsais liab) - thaum lub tshuab siv tau qhib.
  • Sau npe lub sijhawm lub pob qhov rooj raug nias.
  • Pib dua lub xeev cov khoom ntawm lub qhov rooj.

Kuv cov ntaub ntawv qhib rau hauv kuv Github.

Pom zoo: