Cov txheej txheem:
- Kauj ruam 1: Kho vajtse - Yam Koj Yuav Tsum Tau
- Kauj ruam 2: Software - Yam Koj Yuav Tsum Tau
- Kauj Ruam 3: Teeb Kho Vajtse
- Kauj Ruam 4: Kev teeb tsa Software/teeb tsa
Video: ESP8266/ESP-01 Arduino Powered SmartThings Leak Detector: 5 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Sooooo Muaj ntau qhov ntsuas pom los xaiv los ntawm, qhov twg yuav ua haujlwm zoo tshaj rau koj? Yog tias koj muaj Samsung SmartThings tswj hwm ib qho khoom siv hauv koj lub tsev, tom qab ntawv qhov no tsuas yog daim pib xwb!
Nov yog qhov kawg ntawm kab ntawv uas kuv tau tsim nyob ib puag ncig ESP8266/ESP-01 tus tswj hwm los ntawm Arduino. Peb txhua tus paub tias cov nus muag loj dua ntawm ESP-01 zoo li NodeMCU ESP12's, thiab lwm yam … tau yooj yim dua ua haujlwm nrog, tab sis qhov no yog lub hom phiaj los qhia tawm lub zog ntawm ESP-01 me me uas kuv tseem nyiam heev. Nws yog kuv thawj ESP8266 !!
Txhawm rau pom cov ntawv dhau los hauv qhov me me 'Leak Detector How-To' series, thov ua tibzoo saib Cov Lus Qhia hauv qab no. Muaj qee yam rau txhua tus!
ESP8266/ESP-01 Arduino Powered Leak Detector-Tsis muaj Wi-Fi Basic Tswb Hauv Zos
ESP8266/ESP-01 Arduino Powered MQTT Leak Detector & Remote Tswb Txais
Yog tias cov kauj ruam muaj nyob hauv Cov Lus Qhia no paub zoo, nws yog vim lawv zoo ib yam li cov kauj ruam hauv Cov Lus Qhia saum toj no, ntxiv rau ib qho rau ESP8266/Arduino SmartThings Relay rau Christmas Teeb
Kauj ruam 1: Kho vajtse - Yam Koj Yuav Tsum Tau
Kuv TSIS TXAUS SIAB, sawv cev, lossis tau txais txhua yam rau qhov piv txwv hauv qab no. Ceev faj Emptor.
- ESP8266 ESP-01 ** Koj tuaj yeem khaws ESP thiab Tus Kws Ua Haujlwm raws li pob ntawv cog lus ntawm no **
- Programmer ** Koj tuaj yeem khaws ESP thiab Tus Kws Ua Haujlwm raws li pob ntawv cog lus ntawm no **
- Mini Breadboard Cov
- LED (Zoo nkauj nyab xeeb thawj koom ruam koj twb muaj qee qhov tso tseg ib puag ncig nrog koj cov khoom GEEK)
- Piezo Buzzer Cov
- Cov neeg dhia
- ESP01 Breadboad Adapter
- Dej/Los Sensor (Hygrometer)
- Samsung SmartThings 2.0 Hub
Kauj ruam 2: Software - Yam Koj Yuav Tsum Tau
ASSUMPTIONS: Yooj yim ua haujlwm nrog Arduino IDE, Tsev qiv ntawv, SmartThings IDE thiab GITHub.
- Arduino IDE Cov
- Samsung SmartThings IDE
- SmartThings Android App
- GITHub
Kauj Ruam 3: Teeb Kho Vajtse
- Txheeb xyuas lub zog siv rau koj li ESP. Kuv siv tus ESP programmer qub txuas rau hauv kuv lub laptop USB, thiab ntsaws VCC thiab Grnd dhia mus rau hauv lawv qhov chaw. (Saib Duab)
- Straddle lub ESP breadboard adapter hla nruab nrab ntawm cov channel ntawm lub khob cij me me kom ib kab ntawm 4 tus pin nyob ntawm ob sab.
- Txuas Vcc Source rau ESP's Vcc, Ch_Pd, thiab Hygrometer.
- Txuas Grnd Source rau ESP's Grnd, Hygrometer, thiab Piezo/LED 'luv' txhais ceg.
- Txuas tus ESP tus pin 2 mus rau Hygrometer Cov Ntaub Ntawv (Tsis yog analog).
- Txuas tus ESP tus pin 0 mus rau Piezo/LED 'ntev' txhais ceg.
-
Tswv yim
- TSIS TXHOB xav tias cov xim jumper hauv cov duab txuas sawv cev rau Vcc lossis Grnd.
- Piezo thiab/lossis LED tsis tuaj yeem txuas thaum khau raj. Yog tias lawv yog, ESP yuav ua kom muaj zog nyob rau hauv hom bootload thiab yuav tsis ua tiav txoj cai thauj khoom. Txuas lawv tom qab ESP tau txhawb zog.
- Kho qhov rhiab heev raws li xav tau ntawm Hygrometer nrog txuas nrog Potentiometer.
WrapUp: Kuv npaj yuav ua kev sib txuas ntawm qhov ruaj khov no thiab ua kom nws nyob txhua qhov chaw zoo. Cov ntaub ntawv ntawd yuav tuaj yeem ua lwm qhov ntawm kuv lub npe Lego lub npe dua !! Thaum nws ua tiav kuv mam qhia nws ib yam.
Kauj Ruam 4: Kev teeb tsa Software/teeb tsa
ASSUMPTIONS: Yooj yim ua haujlwm nrog Arduino IDE, Tsev qiv ntawv, SmartThings IDE thiab GITHub.
- Nkag mus rau koj li SmartThings IDE thiab GITHub tus lej.
- Ua raws txhua txoj hauv kev qhia los ntawm Daniel Ogorchock. AKA Ogiewon.
Thov Ceev Faj Hauv Cov Kauj Ruam Li Hauv qab no (Yog tias koj tab tom siv ST_Anything Contact Sensor tus me nyuam ntaus ntawv, cov kauj ruam no yuav ua rau nws:
Lus Cim Ntxiv: Yog tias koj teeb tsa koj li SmartThings IDE kev sib txuas rau GITHub rau ST_Anything repo, kev hloov pauv yav tom ntej uas tau ua rau lub ntsuas kev sib cuag hauv lub repo yuav raug thawb rau koj SmartThings. Qhov no yuav ua rau cov kev hloov hauv qab no raug sau tseg.
- Hloov kho daim duab txuas nrog Arduino, ntxiv koj li WiFi/SmartThings ib puag ncig tshwj xeeb. Cov duab kos tawm qhov twg los hloov pauv, raws li ua cov kauj ruam ntawm GITHub Nplooj Ntawv.
- Qhib koj nplooj ntawv SmartThings IDE, thiab ob:… Kuv Tus Kheej Tus Kheej Tus Kheej nplooj ntawv.
- Nrhiav tus ogiewon: Menyuam Tiv Thaiv Sensor hauv koj daim ntawv thiab nyem rau nws qhib.
- Xaiv tag nrho cov cai, Luam thiab Muab tshuaj txhuam rau hauv ib daim ntawv rau 'kev nyab xeeb-khaws cia' ntawm Tus Thawj. Txuag daim ntawv no qee qhov koj yuav nco tau yog tias/thaum xav tau yav tom ntej.
-
Ua qhov kev hloov hauv qab no rau Tus Menyuam Tiv Thaiv Sensor koj tam sim no tau qhib hauv SmartThings IDE: Hloov:
attributeState "qhib", daim ntawv lo: '$ {name}', icon: "st.contact.contact.open", backgroundColor: "#e86d13" attributeState "kaw", daim ntawv lo: '$ {name}', icon: "st.contact.contact.closed ", backgroundColor:"#00a0dc"
NROG: attributeState ("qhib", daim ntawv lo: "Qhuav", icon: "st.alarm.water.dry", backgroundColor: "#ffffff") attributeState ("kaw", daim ntawv lo: "Ntub", icon: "st. alarm.water.wet ", backgroundColor:"#00a0dc ") Saib txuas rau cov ncauj lus kom ntxaws ntxiv yog tias xav tau.
- Nyem rau Txuag los ntawm cov ntawv qhia zaub mov saum toj/sab xis.
- Nyem rau Luam tawm los ntawm cov ntawv qhia zaub mov saum toj/sab xis.
- Nyem 'Rau Kuv'. Tawm ntawm IDE.
- Thauj koj daim duab hloov kho Arduino mus rau ESP-01. Txuas koj li ESP-01 rau koj lub Leak Detector rig thiab txhawb zog.
- Qhib koj lub SmartThings Mobile App ntawm koj lub cuab yeej. Hauv koj cov npe ntawm 'Yam', tam sim no koj yuav tsum pom Tus Hu Xov Tooj Hnav khaub ncaws zoo li lub ntsuas dej.
- Dunk Tus Dej Sensor thiab pom dab tsi tshwm sim. Ntiv tes hla tias koj cov txiaj ntsig zoo ib yam li kuv thiab cov cim dej zoo li hloov pauv thaum tshwm sim. QHOV TSEEB: Ntxiv SmartThings SmartApp los thawb Alarms los ntawm lub cuab yeej no. Xaiv Automation, SmartApps, Scroll down rau Ntxiv SmartApp, Kev Nyab Xeeb thiab Kev Ruaj Ntseg, Qhia Rau Kuv Thaum. Ua raws Tus Pabcuam rau 'Tiv Thaiv Kaw'.
Pom zoo:
Pib Nrog Esp 8266 Esp-01 Nrog Arduino IDE - Txhim Kho Esp Boards hauv Arduino Lub Tswv Yim thiab Kev Ua Haujlwm Esp: 4 Cov Kauj Ruam
Pib Nrog Esp 8266 Esp-01 Nrog Arduino IDE | Txhim Kho Esp Boards hauv Arduino Lub Tswv Yim thiab Kev Ua Haujlwm Esp: Hauv cov lus qhia no peb yuav kawm paub yuav teeb tsa esp8266 cov laug cam hauv Arduino IDE li cas thiab yuav ua haujlwm li cas esp-01 thiab tso cov lej rau hauv. qhov no thiab feem ntau ntawm cov neeg ntsib teeb meem
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
QHOV TSEEB CAMERA HOUSING LEAK DETECTOR: 7 Kauj Ruam (nrog Duab)
Txhim Kho Lub Koob Yees Duab Nyob Hauv Qhov Chaw Xau DETECTOR: Ib qho ua ntej ntawm lub koob yees duab hauv qab lub tsev ntsuas lub tsev xau tau tshaj tawm ntawm Cov Lus Qhia xyoo tas los uas tsim raws li Atmel AVR raws AdaFruit Trinket. Qhov kev txhim kho no ua haujlwm ntawm Atmel SAMD M0 raws li AdaFruit Trinket. Qhov re
ESP8266/ESP-12 Arduino Powered SmartThings DS18B20 Temp. Sensor: 4 Kauj Ruam (nrog Duab)
ESP8266/ESP-12 Arduino Powered SmartThings DS18B20 Temp. Sensor: Peb txhua tus nyiam paub tias qhov kub ntawm chav nyob tam sim no yog dab tsi, thiab qee zaum qhov kub nyob hauv lwm chav, lossis tej zaum tseem nyob hauv koj lub tsev so nyob rau lwm sab ntawm lub ntiaj teb. Tej zaum koj xav tshuaj xyuas qhov kub hauv koj tus tsiaj Lizard lub tsev
ESP8266/ESP-01 Arduino Powered Leak Detector: 3 Cov Kauj Ruam (nrog Duab)
ESP8266/ESP-01 Arduino Powered Leak Detector: Dej yog cov khoom zoo heev? Tsis ntau npaum li cas thaum nws raug yuam kom tawm hauv nws lub tsev thiab pib ua luam dej nyob ib puag ncig koj lub tsev hauv av. Kuv paub qhov no yog qhov 'tom qab-qhov tseeb' txoj haujlwm, tab sis kuv vam tias nws tuaj yeem pab lwm tus kom tsis txhob muaj peev xwm