Cov txheej txheem:
- Kauj Ruam 1: Nqi Khoom
- Kauj ruam 2: PIR los ua ke
- Kauj Ruam 3: Kev sib txuas rau Microcontroller
- Kauj Ruam 4: Sib dhos ntawm Arduino
- Kauj ruam 5: Code
- Kauj ruam 6: Teeb meem tua
- Kauj Ruam 7: Qhov Kawg
Video: Openhab MQTT PIR Motion Sensor: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Nyob zoo, Hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas koj tuaj yeem ua koj tus kheej Motion sensor rau Openhab.
Kauj Ruam 1: Nqi Khoom
rau qhov project no koj yuav xav tau:
- HC-sr501
- 1X3 poj niam lub taub hau
- 1X3 txiv neej lub taub hau
- 3 xim hlau koj tuaj yeem siv txuas txuas ntxiv yog tias koj xav tau
- 1 10K resistor
- Arduino uno lossis mega
- 3d qhov chaw luam tawm.
Kauj ruam 2: PIR los ua ke
1. Muab lub taub hau tso rau ntawm cov hlau uas pom hauv daim duab.
2. Ntxiv 10K resistor nruab nrab ntawm GND thiab Lub Teeb.
3. Muab lub sensor tso rau hauv rooj plaub
4. Mout lub phaj rov qab rau ntawm phab ntsa.
5. Ntxiv mount lub tsev nyob rau sab nraum qab phaj nrog 3M ntsia liaj qhov rooj thiab ntsia hlau.
Kauj Ruam 3: Kev sib txuas rau Microcontroller
1. Txuas 5V rau 5V ntawm lub microcontroller.
2. Txuas GND mus rau GND ntawm lub microcontroller.
3. Txuas lub xov tooj liab mus rau A0 ntawm lub microcontroller.
Kauj Ruam 4: Sib dhos ntawm Arduino
1. Muab daim thaiv thaiv ethernet tso rau ntawm arduino.
2. Txuas Ethernet-cable mus rau arduino.
3. Hwj chim lub arduino.
Kauj ruam 5: Code
1. Rub tawm thiab teeb tsa lub tsev qiv ntawv rau qhov kos duab.
1. MQTT PubSubClient
2. Muab lub tsev qiv ntawv tso rau hauv phau ntawv teev npe ntawm koj li Arduino-IDE.
3. Hloov tus IP server mus rau koj li openhab server IP.
4. Hloov lub ncauj lus mus rau lub ncauj lus uas koj xav tau.
5. Upload Code rau arduino.
Kauj ruam 6: Teeb meem tua
-
Case: Arduino yuav tsis txuas rau server.
- Txheeb xyuas tias lub ethernet cable tau ntsaws.
- Puas yog tus pin 13 coj hlawv?
- kos tus IP server hauv tus lej.
-
Case: Openhab server yuav tsis tau txais cov lus.
- Cov khoom teeb tsa puas yog?
- Puas yog mqtt lub ntsiab lus raug hauv cov cai?
- Puas muaj mqtt server?
-
Case: Cov xwm txheej yuav tsis hloov.
- Puas yog lub ntsuas hluav taws xob ntsaws rau hauv qhov txuas txuas?
- Puas muaj lub hwj chim mus rau lub sensor?
- Puas yog lub ntsuas ntsuas tau raug?
Kauj Ruam 7: Qhov Kawg
Nov yog kuv thawj qhov kev qhia paub tsis pub tawm tswv yim rau nws.
Yog tias muaj lus nug xav nug lawv.
Pom zoo:
Tutorial: Yuav Siv Mini PIR Motion Sensor HC-SR 505 Nrog Arduino UNO: 3 Cov Kauj Ruam
Tutorial: Yuav Siv Mini PIR Motion Sensor HC-SR 505 Nrog Arduino UNO: Nqe lus piav qhia: Cov ntawv qhia no yuav qhia koj ob peb qib yooj yim txog yuav siv Motion Sensor Module los ntawm kev siv Arduino Uno li cas. Qhov kawg ntawm qhov kev qhia no, koj yuav tau txais txiaj ntsig los ntawm kev sib piv thaum lub ntsuas hluav taws xob tuaj yeem tshawb pom lub suab thiab tsis tuaj yeem pom ib qho mo
Yuav Ua Li Cas Ua PIR Motion Sensor Lub Teeb Hauv Tsev: 7 Cov Kauj Ruam
Yuav Ua Li Cas Ua PIR Motion Sensor Lub Teeb Nyob Hauv Tsev: Hauv cov vis dis aus no kuv tau qhia yuav ua li cas thiaj ua lub suab pir suab sensor nyob hauv tsev. Koj tuaj yeem saib kuv cov vis dis aus hauv youtube.Please subscribe Yog tias koj nyiam kuv cov vis dis aus thiab Pab Kuv Kom Loj hlob.https: //youtu.be/is7KYNHBSp8
Arduino Raws PIR Motion Sensor: 4 Cov Kauj Ruam
Arduino Raws PIR Motion Sensor: Nrog kev pab los ntawm txoj haujlwm no, koj tuaj yeem tswj hwm lub xeev siab thiab kev nkag siab ntawm PIR
PIR Motion Sensor: 5 Kauj Ruam
PIR Motion Sensor: Lub ntsuas hluav taws xob passive passive (PIR sensor) yog lub tshuab hluav taws xob ntsuas ntsuas infrared (IR) lub teeb ci los ntawm cov khoom hauv nws qhov kev pom. Lawv feem ntau siv hauv PIR-based motion detectors. PIR sensors feem ntau siv hauv
PIR Motion Sensor: Yuav Ua Li Cas Siv PIRs Nrog Arduino & Raspberry Pi: 5 Kauj Ruam
PIR Motion Sensor: Yuav Ua Li Cas Siv PIRs Nrog Arduino & Raspberry Pi: Koj tuaj yeem nyeem qhov no thiab lwm yam kev qhia zoo ntawm ElectroPeak lub vev xaib raug cai Hauv qhov kev qhia no, koj yuav kawm paub siv PIR lub suab ntsuas kom pom qhov txav mus li cas. Qhov kawg ntawm qhov kev qhia no koj yuav kawm: Yuav ua li cas PIR cov lus tsa suab ua haujlwm Yuav siv li cas