Cov txheej txheem:
- Kauj Ruam 1: Muab Cov Khoom Ua Ke
- Kauj ruam 2: Blynk Teeb
- Kauj Ruam 3: Txoj Cai
- Kauj ruam 4: Cov ntsiab lus
Video: Motion Detector With Blynk Cov Ntawv Ceeb Toom (WeMos D1 Mini + HC-SR04): 4 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:31
Thov VOTE rau txoj haujlwm no hauv Wireless Contest. Ua tsaug!
Hloov kho tsis tau. 2 - Ob peb tweaks (version 2.2), koj tuaj yeem teeb tsa koj lub ntsuas (ntau yam thiab lub npe) txoj cai hauv lub ntsiab lus. Tsis tas li, qee zaum nws tau tshwm sim uas lub ntsuas ntsuas nyeem tsis raug thiab xa ntawv ceeb toom, yog li kuv tau ntxiv thiab "yog" qhov twg qhov txiaj ntsig yuav tsum nyob hauv thaj tsam ob zaug ua ke. Yog tias koj tseem muaj teeb meem nrog nws, koj tuaj yeem kho nws rau kev nyeem 3, 4,….x zaug ua ntej xa ntawv ceeb toom.
Txoj hlua qhov chaw = "Chaw rau tsheb"; int rangeMin = 0; int rangeMax = 50;
_
Hloov kho tsis tau. 1 - Kuv tseem tab tom nrhiav qhov zais zais tom qab Blynk… qhov no los nrog cov cai huv huv (version 2.1), lub voj kom raug, thiab lwm yam Txaus siab rau thiab qhia rau kuv paub tias txoj haujlwm no ua haujlwm rau koj li cas … ua tsaug! _
Kuv xav ua lub ntsuas suab uas yuav ceeb toom rau kuv txhua lub sijhawm kuv lub qhov rooj qhov rooj qhib. Kuv tau ua si nrog PIR sensor ib pliag tab sis tom qab muaj qee qhov teeb meem teeb meem (rhiab heev x lub sijhawm) Kuv txiav txim siab siv HC-SR04 sensor hloov… thiab nws ua haujlwm zoo li ntxim nyiam. Lub tswv yim yog qhov yooj yim: koj teeb lub ntsuas hluav taws xob yog li thaum lub qhov rooj (lossis lub qhov rais - nyob ntawm seb koj xav siv nws li cas) qhib, nws tau txais txoj hauv kev ntawm lub ntsuas kom ntsuas ntsuas tau hloov pauv. Qhov kom zoo dua siv UltraSonic sensor hloov PIR loj heev. Nws tsis tuaj yeem tshwm sim nrog lub teeb lossis yoov tshaj cum uas yog qhov laj thawj tseem ceeb uas kuv tsis xav siv PIR.
Koj yuav xav tau dab tsi:
- WeMos D1 mini board - eBay - USD 3.47 (lwm cov laug cam muaj peev xwm ua tau - tsuas yog nco ntsoov tias piv txwv li NodeMCU ESP -12E V1.0 muab tawm tsuas yog 3.3V thiab HC -SR04 sensor xav tau 5V)
- HC -SR04+ Ultrasonic sensor - eBay - USD 1.06 (siv "+" raws li nws tuaj yeem ua haujlwm ntawm 3.3V)
- Blynk app (yog tias koj tshiab rau Blynk thiab siv iOS ntaus ntawv, koj yuav tsum tau qiv lub xov tooj Android los teeb tsa cov ntawv ceeb toom)
- Breadboard los yog cov hlau txuas
- Hlau
- Khoos phis tawj nrog Arduino IDE teeb tsa
Kauj Ruam 1: Muab Cov Khoom Ua Ke
Kuv hnov txog cov tib neeg muaj teeb meem thaum lub zog HC-SR04 sensor los ntawm pawg thawj coj saib. Nws ua haujlwm tau zoo rau kuv, tab sis txoj hauv kev nyab xeeb tshaj plaws los tiv thaiv qhov no yog siv HC -SR04P (lossis "+"), uas muaj qhov ntau ntawm 3 - 5.5v
Kev Sib Txuas (saib daim duab)
WeMos D1 HC-SR04 (P)
5 V VCC
G GND
D6 Echo ua
D7 Kev
Kauj ruam 2: Blynk Teeb
Rau cov uas tsis paub tias Blynk yog dab tsi, nws yog Platform nrog iOS thiab Android apps los tswj Arduino, Raspberry Pi thiab nyiam hauv Is Taws Nem. Nws yog lub digital dashboard uas koj tuaj yeem tsim cov duab nraaj rau koj txoj haujlwm los ntawm kev yooj yim rub thiab nqis cov cuab yeej.
Cia peb pib ntawm Andorid ntaus ntawv:
- Rub tawm Blynk app
- Sau npe lossis nkag mus (yog tias koj twb muaj tus as khauj lawm)
- Coj mus rhaub "+" los tsim Txoj Haujlwm Tshiab
- Muab lub npe project thiab xaiv lub cuab yeej koj siv (hauv peb qhov xwm txheej nws yog ESP8266) thiab coj mus rhaub "Tsim"
- Koj yuav tau txais Daim Ntawv Pov Thawj Pov Thawj hauv koj lub thawv xa ntawv, peb yuav xav tau nws tom qab
- Ntawm Blynk Project nplooj ntawv coj mus rhaub "+" ntxiv cov ntawv ceeb toom widget (yog tias qhov no yog koj thawj Blynk txoj haujlwm, koj yuav tsum muaj lub zog txaus los yuav nws) thiab teeb nws raws li koj xav tau. Kuv siv cov chaw teeb tsa raws li pom ntawm lub vijtsam.
- Hauv qhov haujlwm teeb tsa (lub cim txiv ntoo nyob rau sab saud) "Xa app txuas nrog cov lus txib" rau ON.
- Kaw qhov chaw thiab ntaus lub pob ua si
Tam sim no koj tuaj yeem nkag mus rau Blynk app ntawm koj lub cuab yeej iOS ib yam thiab koj yuav tsum pom qhov haujlwm nrog lub ceeb toom widget.
Kauj Ruam 3: Txoj Cai
Tam sim no nws yog lub sijhawm los rub cov cai rau peb pawg thawj coj.
- Qhib *.ino cov ntaub ntawv hauv Arduino IDE
- Txuas lub WeMos board rau koj lub computer
- Hauv Cov Cuab Yeej xaiv WeMos D1 R2 & lub rooj tsav xwm me
Kho cov hauv qab no:
char auth = "Koj daim ntawv pov thawj kev lees paub los ntawm koj lub npov xa ntawv mus ntawm no"; char ssid = "Koj lub npe WiFi"; char dhau = "Koj li WiFi password";
Tsis tas li, koj tuaj yeem hloov pauv, qhov uas koj xav tau ceeb toom (lub neej ntawd tau teeb tsa rau 1 - 49cm)
yog (0 <nrug deb && nrug <50) {
Nyem Upload
Nrog koj zoo siab! Yog tias txhua yam tau teeb tsa raug, koj yuav tsum tam sim no tau txais koj thawj qhov kev ceeb toom!
Kauj ruam 4: Cov ntsiab lus
Muaj peb daim ntawv ceeb toom uas koj yuav tau txais tam sim no. Thawj qhov yog qhia koj, tias Tus Ntes tau ua tiav txuas nrog koj li WiFi, qhov ceeb toom thib ob uas koj yuav tau txais yog thaum qee yam tau txais hauv koj li kev teeb tsa. Thiab qhov thib peb thaum koj Ntes Ntes raug kaw vim yog qhov teeb meem txuas lossis lub hwj chim.
Kev hloov kho koj tuaj yeem ua rau txoj haujlwm no tsis muaj qhov kawg. Koj tuaj yeem teeb tsa cov ntawv ceeb toom ntau dua rau ntau qhov sib txawv (Tsuas yog paub tias Blynk tso cai ceeb toom tom qab 15s tsawg kawg). Siv cov ntsuas sib txawv, thiab lwm yam.
Kuv vam tias koj nyiam txoj haujlwm no, yog tias koj ua, thov pov npav rau kuv thiab tawm lus/tawm tswv yim … Kuv yuav zoo siab tau txais qee qhov kev nkag siab los ntawm lwm tus!
Muaj FUN!
Pom zoo:
Kev Ceeb Toom Kub Ceeb Toom: 10 Kauj Ruam
Kev Ceeb Toom Kub Ceeb Toom: Nyob hauv Florida, Kuv txaus siab tsim cov khaub ncaws uas tuaj yeem ceeb toom kuv thaum nws kub heev sab nraum. Siv Arduino thiab ob peb yam yooj yim kuv tuaj yeem tsim lub rooj tsav xwm hauv Circuit uas tuaj yeem suav nrog hauv lub taub hau uas ceeb toom kuv thaum
Ua Tus Hais Lus / Lub Suab Ceeb Toom Ceeb Toom: 4 Kauj Ruam
Ua Tus Hais Lus / Lub Suab Ceeb Toom Ceeb Toom: Qhov haujlwm no peb tau ua Kev Tham / Lub Suab Ceeb Toom thiab Ceeb Toom. Tsawg kawg ob lub cim tuaj yeem siv tau hauv txoj haujlwm no
Ceeb Toom Cov Neeg Tuaj Saib Lub Vev Xaib ceeb toom Nrog IFTTT: 6 Cov Kauj Ruam
Kev ceeb toom Cov Neeg Tuaj Saib Lub Vev Xaib Nrog IFTTT: Hauv cov lus qhia no, koj yuav tau txais Android ceeb toom thaum ib tus neeg mus ntsib koj li Website.so rau qhov no Koj yuav tsum muaj kev paub me ntsis ntawm PHP programming lus thiab Kev paub yooj yim ntawm C Yam Lus kom paub li cas IFTTT App cov haujlwm (
Kev Pom Kev Ceeb Toom Kev Ceeb Toom: 9 Kauj Ruam
Kev Pom Kev Ceeb Toom Kev Ceeb Toom: Phau ntawv qhia no qhia koj yuav ua li cas txhawm rau qhia rau Phillips Hawj kom ceeb toom. Nws yuav muaj txiaj ntsig zoo rau cov neeg lag ntseg thiab tsis hnov lus zoo, muaj lub zeem muag qis lossis tsis hnov lus zoo. Kev Pom Kev Ceeb Toom Ceeb Toom yog qhia rau cov neeg siv tom qab tau txais kev ceeb toom
Lus Ceeb Toom Arduino Tshuab Ntxhua Khaub Ncaws - Thawb Ceeb Toom rau Xov Tooj Nrog Blynk: 5 Cov Kauj Ruam (nrog Duab)
Lus Ceeb Toom Arduino Tshuab Ntxhua Khaub Ncaws - Thawb Ceeb Toom rau Xov Tooj Nrog Blynk: Peb lub tshuab ntxhua khaub ncaws nyob hauv lub nkas -las thiab peb tsis hnov lub suab nrov nrov los qhia tias ntxuav tas lawm. Kuv xav nrhiav txoj hauv kev kom tau txais kev ceeb toom, txhua qhov chaw peb nyob hauv tsev, thaum lub voj voog tiav lawm. Kuv tau tinkering nrog Arduino, ESP8266 WiFi