Cov txheej txheem:

ESP8266/ESP-01 Arduino Powered SmartThings Leak Detector: 5 Cov Kauj Ruam (nrog Duab)
ESP8266/ESP-01 Arduino Powered SmartThings Leak Detector: 5 Cov Kauj Ruam (nrog Duab)

Video: ESP8266/ESP-01 Arduino Powered SmartThings Leak Detector: 5 Cov Kauj Ruam (nrog Duab)

Video: ESP8266/ESP-01 Arduino Powered SmartThings Leak Detector: 5 Cov Kauj Ruam (nrog Duab)
Video: ESP8266/ESP-01 Детектор утечек Hubitat/SmartThings с питанием от Arduino 2024, Hlis ntuj nqeg
Anonim
Image
Image

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

Kho vajtse - Yam Koj Yuav Tsum Tau
Kho vajtse - Yam Koj Yuav Tsum Tau
Kho vajtse - Yam Koj Yuav Tsum Tau
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

Software - Yam Koj Yuav Tsum Tau
Software - Yam Koj Yuav Tsum Tau
Software - Yam Koj Yuav Tsum Tau
Software - Yam Koj Yuav Tsum Tau
Software - Yam Koj Yuav Tsum Tau
Software - Yam Koj Yuav Tsum Tau
Software - Yam Koj Yuav Tsum Tau
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

Image
Image
Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb
  1. 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)
  2. 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.
  3. Txuas Vcc Source rau ESP's Vcc, Ch_Pd, thiab Hygrometer.
  4. Txuas Grnd Source rau ESP's Grnd, Hygrometer, thiab Piezo/LED 'luv' txhais ceg.
  5. Txuas tus ESP tus pin 2 mus rau Hygrometer Cov Ntaub Ntawv (Tsis yog analog).
  6. 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

Kev teeb tsa software/teeb tsa
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.

  1. 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.
  2. Qhib koj nplooj ntawv SmartThings IDE, thiab ob:… Kuv Tus Kheej Tus Kheej Tus Kheej nplooj ntawv.
  3. Nrhiav tus ogiewon: Menyuam Tiv Thaiv Sensor hauv koj daim ntawv thiab nyem rau nws qhib.
  4. 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.
  5. 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.

  6. Nyem rau Txuag los ntawm cov ntawv qhia zaub mov saum toj/sab xis.
  7. Nyem rau Luam tawm los ntawm cov ntawv qhia zaub mov saum toj/sab xis.
  8. Nyem 'Rau Kuv'. Tawm ntawm IDE.
  9. 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.
  10. 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.
  11. 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: