Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Khoom Siv Hluav Taws Xob (Kho Vajtse)
- Kauj Ruam 2: Electronics (Software)
- Kauj ruam 3: IFTTT Configuration
- Kauj ruam 4: SnowAlert Configuration
- Kauj Ruam 5: Mount Sensor
- Kauj Ruam 6: Tau Txais Kev Hu
Video: Tsis Siv Neeg Snow Wake-up Hu: 6 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Tawm ntawm lub tsev thaum sawv ntxov tuaj yeem ua rau muaj kev ua ub no tom qab ob peb ntiv tes ntawm cov khoom dawb nyob rau hmo ntuj. Puas yog nws zoo uas yuav tsum tau sawv ntxov ua ntej hnub ntawd kom tshem tawm kev ntxhov siab thaum sawv ntxov? Txoj haujlwm no tsuas yog qhov ntawd!
Txoj haujlwm no siv Arduino, lub ntsuas ntsuas nrug deb, thiab IFTTT (ib qho yooj yim siv lub vev xaib) kom siv lub xov tooj hu rau koj lub xov tooj yog tias nws daus ib hmos. Thaum npaj tau lawm, koj yuav tso lub cuab yeej uas koj tau ua rau ntawm qhov chaw siab (piv txwv li ntawm lub tswg) thiab taw nws rau hauv av. Los ntawm qhov ntawd nws yuav ntsuas qhov kev ncua deb ntawm nws tus kheej thiab hauv av. Raws li nws los nag, "av" txav mus rau nws, yog li qhov kev ntsuas nws ntsuas qis dua. Yog tias muaj qhov sib txawv loj ntawm yav tsaus ntuj thiab yav sawv ntxov, lub cuab yeej yuav ceeb toom koj tias nws daus!
Cov khoom siv hluav taws xob tau yooj yim txuas thiab kuv yuav muab txoj cai, yog li cia peb dhia mus!
Khoom siv
-
Lub Wifi tau qhib Arduino-tau tshaj microchip. Txog qhov haujlwm no kuv xav tias koj yuav siv ESP8266 NodeMCU Pawg Thawj Saib Xyuas Kev Txhim Kho, uas kuv pom zoo rau ntau yam laj thawj:
- Nws muaj Wifi built -in.
- Nws nthuav tawm zoo nkauj npaum li txhua tus pins koj xav tau.
- Nws muab qhov yooj yim USB interface rau kev ua haujlwm.
- Nws ua haujlwm ntawm lub rooj tsav xwm rov pib dua thaum xa cov cai, thiab nthuav tawm cov khawm pib dua rau kev debugging.
-
Ib qho TF Mini Lidar ntau qhov ntsuas.
Nco tseg muaj cov ntsuas hluav taws xob ultrasonic zoo dua li HC-SR04, tab sis lub suab mos mos muffles suab txaus uas lawv tsis ua haujlwm rau qhov no
- Ib daim ntawv me me.
- Ib lub tripod lossis ib qho kev daws teeb meem rau kev teeb tsa lub sensor ob peb ko taw saum toj daus.
- Ib lub micro usb cable.
- Ib txoj kab txuas ntxiv.
- Ib tug usb charger.
- Lub thawv yas.
Nco tseg, cov khoom 5 thiab siab dua tuaj yeem yuav ntawm Dollar Tree yooj yim zoo nkauj.
Cov nqi sib txawv, tab sis kuv muaj peev xwm ua txoj haujlwm no rau ib ncig $ 50 (tsis suav cov tripod) los ntawm kev yuav khoom ntawm Dollar Tree rau qhov yooj yim. Qhov kim tshaj plaws nyob deb yog Lidar sensor, uas tuaj yeem rov siv dua rau lwm txoj haujlwm.
Kauj Ruam 1: Khoom Siv Hluav Taws Xob (Kho Vajtse)
Cov khoom siv hluav taws xob rau txoj haujlwm no yuav tsum ua kom zoo nkauj sai sai. Tsuas yog txuas lub TF Mini Lidar Distance Sensor mus rau lub nti. Cov xov hlau yuav tsum txuas raws li tau piav qhia hauv phau ntawv qhia SparkFun zoo heev no.
Nov yog cov ntsiab lus ceev:
Sensor -> ESP8266
Ntsuab -> D2 (aka GPIO 4, uas peb yuav siv ua peb li RX)
Dawb -> D1 (aka GPIO 5, uas peb yuav siv los ua peb TX)
Liab -> Vin
Dub -> Gnd
Kauj Ruam 2: Electronics (Software)
Qhov kev txiav txim siab xa koj hu xov tooj rau koj yuav yog los ntawm koj lub microchip, yog li peb yuav tsum tau teeb tsa nws kom tsim nyog! Txhawm rau ua haujlwm rau koj cov nti, peb yuav siv cov lus hu ua Arduino uas koj tuaj yeem xa mus rau koj lub nti siv Arduino IDE (software uas khiav ntawm koj lub computer).
1. Rub tawm Arduino software ntawm no. Phau ntawv qhia no yuav hais txog Arduino Desktop IDE menus, yog li mus tom ntej thiab rub tawm qhov ntawd tshwj tsis yog koj nyob zoo nrog Web IDE.
2. Teeb koj Arduino Desktop IDE los ua haujlwm nrog ESP8266 microchip. Cov lus qhia rau qhov ntawd tuaj yeem pom ntawm no. Mus tom ntej, phau ntawv qhia no kwv yees tias koj tau txais koj lub LED ntsais thiab paub yuav ua li cas rub cov ntawv sau mus rau ESP8266.
3. Rub cov ntawv sau rau koj lub microchip los ntawm https://github.com/robertclaus/snowalert. Tsis tas yuav kho cov ntawv. Txhua yam koj xav tau teeb tsa yuav raug teeb tsa tom qab koj tso cov cai.
4. Qhib tsab ntawv hauv Arduino thiab teeb tsa lub tsev qiv ntawv nws nyob ntawm koj li kab ke. Nyob rau sab saum toj ntawm IDE, nyem: Sketch -> suav nrog Tsev Qiv Ntawv -> Tswj Cov Tsev Qiv Ntawv
Tom qab ntawv tshawb nrhiav thiab teeb tsa cov tsev qiv ntawv no:
- WifiManager los ntawm tzapu (version 0.14.0)
- ArduinoJson los ntawm Benoit Blanchon (version 6.14.1)
- TFminiArduino los ntawm hideakitai (version 0.1.1)
- NTPClient los ntawm Fabrice Weinberg (version 3.2.0)
- ESP_DoubleResetDetector los ntawm Khoi Hoang (version 1.0.1)
5. Kho koj lub rooj tsavxwm rau txoj haujlwm no. Nyob rau sab saum toj ntawm IDE, nyem Cov Cuab Yeej thiab kho cov teeb tsa no:
- Flash Loj - 4M (1M SPIFFS) - Qhov no khaws qhov chaw rau peb teeb tsa kom tau txais kev cawmdim.
-
Luag Flash - Txhua Cov Ntsiab Lus - Qhov no ua kom ntseeg tau tias tsis muaj cov ntaub ntawv yav dhau los ntawm lub nti.
Nco tseg, yog tias koj ib txwm xav hloov kho cov cai, teeb tsa qhov no rau Sketch Tsuas yog yuav khaws koj cov kev teeb tsa
6. Nco ntsoov tias koj lub ESP microchip tau ntsaws rau hauv koj lub khoos phis tawj thiab muaj chaw nres nkoj xa mus. Xaiv qhov chaw nres nkoj raug hauv IDE, thiab rub tawm!
7. Qhib Serial Monitor (Cuab Yeej -> Serial Monitor) hauv Arduino IDE. Tom qab ntawv nyem khawm Pib dua ntawm koj lub nti. Paub meej tias koj tau txais cov ntawv qhia hauv Serial Monitor
Kauj ruam 3: IFTTT Configuration
Tam sim no uas koj Arduino tau ua haujlwm, peb yuav tsum teeb tsa nws ua yam peb xav tau. Txog qhov kev qhia no, peb yuav siv qhov kev pabcuam hu ua IFTTT uas tso cai rau peb txhais cov lus yooj yim los ntawm peb Arduino rau cov haujlwm nyuaj dua.
Piv txwv li, yog tias peb Arduino hais tias "Nws Snowed!" ces IFTTT yuav tsum hu rau peb lub xov tooj ntawm tes nrog lub tswb nrov.
1. Koj yuav xav tau tus lej IFTTT dawb, uas koj tuaj yeem tsim ntawm
2. Txhawm rau tsim Applet tshiab uas siv cov laj thawj no, mus rau Tsim, lossis tsuas yog ua raws qhov txuas no:
3. Nyem rau Qhov no -> Tshawb nrhiav thiab xaiv Webhooks -> Yog tias nws nug koj, nyem Txuas -> Sau snow_alert hauv lub thawv.
4. Nyem rau ntawd -> Tshawb nrhiav thiab xaiv Xov Tooj (Asmeskas Xwb) -> Yog tias nws nug koj, nyem Txuas -> Yog tias koj tau txais qhov tshwm sim, ua raws cov lus qhia sai sai -> Sau cov lus zoo li Nws tau daus nag hmo! uas koj xav tau xov tooj los nyeem rau koj.
5. Nyem Ua tiav kom qhib koj lub applet.
6. Kuaj koj lub Webhook los ntawm kev mus rau koj li Webhooks cov kev pabcuam teeb tsa hauv IFTTT, thiab nrhiav qhov ntsuas URL teev tseg nyob ntawd. Nkag mus rau qhov URL ntawd thiab hloov {xwm txheej} nrog snow_alert. Tom qab ntawv nyem qhov Test. Yog tias txhua yam ua haujlwm, koj yuav tsum tau txais kev hu xov tooj!
7. Ntawm nplooj ntawv sim, txuag qhov url mus rau hauv qab ntawm nplooj ntawv. Koj yuav xav tau nws hauv qib tom ntej. Nws yuav tsum zoo ib yam li no:
maker.ifttt.com/trigger/snow_alert/with/key/d-Y8rXge5kibp0dkdrCgxu
Txog qhov teeb meem debugging, cov neeg siv kuj tseem yuav xav teev qhov siab daus nyob rau lub sijhawm. Lawv tuaj yeem teeb tsa cais IFTTT applet uas lees txais snow_measurement webhook thiab cav rau Google Ntawv. Txhawm rau ua qhov no, tsuas yog rov ua cov kauj ruam saum toj no, tab sis hloov snow_alert nrog snow_measurement hauv Webhooks cov kauj ruam saum toj no thiab hloov Cov Xov Tooj Hu kauj ruam nrog rau Google Cov Ntawv Pabcuam -> Ntxiv kab rau daim ntawv nthuav tawm.
Kauj ruam 4: SnowAlert Configuration
Txog tam sim no cov txheej txheem software kawg yog teeb tsa cov cai ntawm koj li ESP kom xa cov lus rau koj li IFTTT applet tshiab.
Txog qhov teeb tsa no, Kuv yuav qhia koj ua raws SnowAlert cov lus qhia ntawm Github vim tias cov lus qhia ntawm no yuav dhau mus yog tias SnowAlert tau txais cov yam ntxwv tshiab.
Thaum lub sijhawm sau cov lus qhia no, koj yuav ua cov hauv qab no.
Tseem ceeb heev, txhua lub sijhawm koj teeb tsa yuav tsum nyob hauv UTC lub sijhawm thiab hauv 24 teev sijhawm (tsis yog AM/PM).
- Txiav txim siab lub sijhawm koj xav tau txais kev hu xov tooj thaum sawv ntxov. Nov yog Koj Lub Sijhawm Kawg.
- Txiav txim siab lub sijhawm pib ntsuas yav tsaus ntuj yav dhau los. Nov yog Koj Lub Sijhawm Pib.
- Txuas koj li ESP thiab qhib Serial Monitor hauv Arduino IDE zoo li peb tau ua yav dhau los.
- Txuas rau SnowMeasure wifi network ntawm koj lub computer. Koj yuav tsum pom qee yam haujlwm hauv Serial Monitor thaum koj txuas.
- Koj yuav tsum raug coj mus rau nplooj ntawv teeb tsa hauv koj tus browser txiav tom qab ob peb feeb.
- Nyem Configure Wifi
-
Nkag mus rau qhov tseem ceeb hauv qab no:
- SSID - wifi network ESP yuav tsum txuas rau internet.
- Lo lus zais - Lo lus zais txuas rau lub network wifi ntawd.
- Pib Teev - Teev teev uas koj xav kom nws ntsuas qhov siab daus thaum yav tsaus ntuj.
- Pib Minutes - Cov feeb ib feem rau lub sijhawm koj xav kom nws ntsuas thaum yav tsaus ntuj.
- Xaus Sijhawm - Teev teev uas koj xav kom nws ntsuas qhov siab daus thaum sawv ntxov (thiab muaj peev xwm hu koj)
- Xaus Lub Sij Hawm - Lub sijhawm tivthaiv feeb rau lub sijhawm koj xav kom nws ntsuas thaum sawv ntxov.
- Alert Webhook URL - Qhov no yuav tsum yog qhov url koj tau khaws tseg hauv cov kauj ruam dhau los uas zoo ib yam li qhov no:
- Kev Ntsuas Webhook URL - Qhov no yuav tsum yog qhov url zoo ib yam li saum toj no, tab sis hloov snow_alert nrog snow_measurement
Kauj Ruam 5: Mount Sensor
Txij ntawm no txhua yam yuav tsum npaj mus. Koj yuav xav txiav qhov hauv lub thawv yas, thiab rub nws mus rau qee qhov ob peb taw tawm hauv av. Yuav ua li cas koj nce nws yuav nyob ntawm koj qhov thiab lub hom phiaj, tab sis ntawm no yog ob peb lus pom zoo kom ua kom raug.
- Xyuas kom tseeb tias koj lub ntsej muag tig rau ntawm lub kaum me ntsis. Koj tsis xav kom nws ntsia ncaj qha txij li koj lub npov yuav ua duab ntxoov ntxoo qhov twg daus tsis tsoo hauv av.
- Koj yuav xav tau lub ntsuas cua tawm ntawm cov daus txog 2-3 ko taw.
- Daus yaj rau hauv dej, yog li xyuas kom koj cov teeb tsa muaj dej tsis haum.
- Xyuas kom koj muaj hwj chim! Xijpeem ntev usb cable, lossis txuas txuas ntxiv yuav tsum ua rau koj deb ntawm lub ru tsev mus rau qhov chaw muaj txiaj ntsig. Ua li cas los xij, xyuas kom tseeb tias nws muaj kev nyab xeeb sab nraum.
Kauj Ruam 6: Tau Txais Kev Hu
Yog tias txhua yam ua tau raws li phiaj xwm, koj yuav tsum tau hu thaum sawv ntxov yog tias nws los nag. Yog tias qee yam tsis ua haujlwm, txheeb xyuas koj cov ntaub ntawv nyob nrug deb hauv Google Ntawv los saib dab tsi tau ntsuas tiag.
Khiav Tawm Hauv Kev Sib Tw Daus
Pom zoo:
Tsis Siv Neeg Tshuab Luam Ntawv Tsis Siv Neeg Gumball: 18 Kauj Ruam (nrog Duab)
Tsis Siv Neeg Tshuab Luam Ntawv Tsis Siv Neeg Gumball: Peb tau Ua Kov Tsis Pub Siv Gumball Siv lub micro: me ntsis, Crazy Circuits Bit Board, ntsuas qhov deb, siv servo, thiab duab los qhia. Ua nws thiab siv nws yog "BLAST" "! ? ? Thaum koj tso koj txhais tes rau hauv lub hauv paus ntawm lub foob pob hluav taws, lub ntsuas qhov deb
Tsis siv neeg TV Tsis Zoo: 6 Kauj Ruam (nrog Duab)
Automated TV Bias Light: Nyob Zoo Txhua Tus, Hauv Phau Ntawv Qhia no, peb yuav ua lub TV tsis ncaj uas tig mus thaum tsaus ntuj Qhov teeb meem tsis ncaj ncees no yog cov cuab yeej yooj yim uas tuaj yeem ntxiv rau txhua lub TV nrog lub hom phiaj ntawm teeb pom kev phab ntsa tom qab TV. Lub teeb pom kev zoo no txo cov
AUVC Tsis Siv Neeg Nqus Plua Plav Tu Neeg Hlau Nrog UV Germicidal Irradiation: 5 Kauj Ruam (nrog Duab)
AUVC Tsis Siv Neeg Nqus Plua Plav Tu Neeg Hlau Nrog UV Germicidal Irradiation: Nws yog lub tshuab siv ntau lub tshuab ua haujlwm uas tau tsim los ua haujlwm xws li nqus plua plav, ntxuav hauv pem teb, tua cov kab mob thiab moping. Nws siv Arduino microcontroller uas tau teeb tsa los tsav plaub lub tshuab hluav taws xob, ib qho servo thiab ob lub tshuab ultrasonic
Tsis Siv Neeg Chaw Taws Teeb ON / OFF Siv MIC Jack ntawm Koj Lub Koob Yees Duab / Tsawg Voltage Solid State Relay: 4 Kauj Ruam (nrog Duab)
Tsis Siv Neeg Chaw Taws Teeb ON / OFF Siv MIC Jack ntawm Koj Lub Koob Yees Duab / Tsawg Voltage Solid State Relay: Txheej txheem cej luam: Peb tau siv MIC jack ntawm lub koob yees duab kom pom thaum lub koob yees duab nyob. Peb tau tsim cov khoom siv hluav taws xob tsawg hauv lub xeev kom pom lub MIC nkaus thiab qhib thiab kaw lub cuab yeej nyob deb tib lub sijhawm tib yam li lub koob yees duab. Lub xeev-solid
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: 4 Cov Kauj Ruam
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: Nyeem … lub npe