Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: PIR Sensor Module
- Kauj Ruam 2: Txog Txoj Haujlwm
- Kauj Ruam 3: Daim duab Circuit Court
- Kauj ruam 4: Khiav qhov program
Video: Arduino Raws PIR Motion Sensor: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Nrog kev pab ntawm txoj haujlwm no, koj tuaj yeem tswj hwm lub xeev siab thiab kev nkag siab zoo ntawm PIR.
Khoom siv
Arduino Ib
PIR Tsab ntawv tsa suab Sensor
Buzzer
Software cuab yeej
Arduino IDE Cov
Kauj Ruam 1: PIR Sensor Module
PIR sensor module tau siv rau kev tshawb nrhiav pom. Nws nquag siv los siv "PIR", "Pyroelectric", "Passive Infrared" thiab "IR Motion" sensor. Tus qauv muaj lub ntsuas phoo hluav taws xob nyob ntawm lub ntsuas hluav taws xob, lub tshuab ua kom sov thiab lub ntsej muag zoo li Fresnel lens. Nws tau siv los nkag siab txog kev txav ntawm tib neeg, tsiaj lossis lwm yam khoom. Lawv feem ntau yog siv hauv lub tswb tswb thiab tau qhib lub teeb pom kev zoo.
Kauj Ruam 2: Txog Txoj Haujlwm
PIR Sensor qhov tseem ceeb yog lub tshuab hluav taws xob uas tswj cov duab hluav taws xob (IR) lub teeb ci los ntawm cov khoom hauv nws qhov kev pom.
Cov ntsuas no tseem tso cai rau koj nkag siab lub zog thiab feem ntau yog siv los tshawb pom seb tib neeg tau txav mus nyob hauv nws qhov ntau. Koj yuav xav tau 5 lub xov hlau txuas los ua ke txhua yam, tag nrho cov xov hlau no yuav tsum muaj txiv neej-poj niam txuas. Koj tuaj yeem teeb tsa zaus mus rau 3000 Hz vim tias feem ntau lub tswb siv qhov zaus no. PIR sensor yog lub hauv paus txav txav yog li thaum twg nws lees paub kev txav mus los, nws teeb tsa tawm mus rau HIGH, tus neeg siv kuj tseem tuaj yeem tswj lub sijhawm ntawm lub xeev HIGH no thiab kev nkag siab ntawm koj lub sensor nrog 2 lub zog ntsuas. Txoj haujlwm no ua suab nrov nrov thaum pom kev txav mus los. Peb tuaj yeem hloov kho lub sijhawm ntawm lub suab nrov tau yooj yim los ntawm kev hloov lub sijhawm ncua ntawm qhov kawg ntawm lub voj.
IoT Kev Kawm Online yuav pab koj tsim ntau txoj haujlwm zoo li Arduino ntxiv rau lwm qhov IoT platform los tsim Kev Lag Luam IoT Solutions.
Kauj Ruam 3: Daim duab Circuit Court
Kauj ruam 4: Khiav qhov program
bool isToneOn = tsis tseeb;
int zaus = 3000;
void teeb tsa () {
// ntawm no yog peb lub PIR sensor
pinMode (2, INPUT);
// ntawm no yog peb lub buzzer
pinMode (3, NTAWV);
}
void voj () {
// thaum PIR sensor muab rau peb siab nws txhais tau tias nws pom lub zog
yog (digitalRead (2) == HIGH) {
// peb yuav qhib lub tswb rau 15 vib nas this
// peb siv lub suab nrov () yog li peb tuaj yeem tswj hwm peb lub suab nrov nrov
// txhawm rau tua lub suab peb yuav tsum siv noTone ()
// yog tias koj xav hloov zaus ntawm lub suab koj tuaj yeem ua nws hauv qhov sib txawv
// nyob rau sab saum toj ntawm txoj cai
rau (int a = 0; a <30; a ++) {
yog (isToneOn) {
noTone (3);
isToneOn = cuav;
lwm yam {
// 3 txhais tau tias peb tus pin qhov twg buzzer txuas nrog
suab nrov (3, zaus);
// peb yuav tsum hloov qhov sib txawv no mus rau qhov tseeb, peb yuav tsum paub
// thaum twg yuav qhib lub buzzer thiab thaum twg yuav qhib nws
isToneOn = muaj tseeb; }
// ncua 0.5 thib ob, koj tuaj yeem hloov tus nqi no yog li nws yuav
// beep qeeb los yog sai dua
ncua (500);
}
}
}
Pom zoo:
Arduino Raws li ISP -- Hlawv Hex Cov Ntaub Ntawv hauv AVR -- Fuse hauv AVR -- Arduino Raws li Programmer: 10 Kauj Ruam
Arduino Raws li ISP || Hlawv Hex Cov Ntaub Ntawv hauv AVR || Fuse hauv AVR || Arduino As Programmer: ……………………… Please SUBSCRIBE To my YouTube channel for more videos …….. Kab lus no yog txhua yam hais txog arduino li isp. Yog tias koj xav xa cov ntawv hex lossis yog tias koj xav teeb tsa koj lub fuse hauv AVR ces koj tsis tas yuav yuav tus programmer, koj tuaj yeem ua
Huab Cua Raws Li Lub Tshuab Hluav Taws Xob (ESP8266 Raws Li Midi Generator): 4 Cov Kauj Ruam (nrog Duab)
Huab Cua Raws Li Lub Tshuab Hluav Taws Xob (ESP8266 Raws Li Midi Generator): Nyob zoo, hnub no kuv yuav piav qhia yuav ua li cas thiaj ua rau koj tus kheej me ntsis Huab cua raws li lub tshuab hluav taws xob. thiab lub teeb pom kev zoo.Tsis txhob cia siab tias nws yuav ua txhua zaj nkauj lossis chord progr
Kev Nkag Mus Rau Cov Hauv Paus Cov Hauv Paus Cov Ntaub Ntawv Siv DB410 Raws Li Ethernet Dongle: 6 Cov Kauj Ruam
Kev Nkag Mus Rau Cov Hauv Paus Cov Hauv Paus Cov Ntaub Ntawv Siv DB410 Raws Li Ethernet Dongle: Lub Hom Phiaj: Txhim kho cov cuab yeej cuab tam thiab rov ua dua cov ntsiav kom ntxig USB Ethernet CDC Gadget txhawb nqa; Rov tsim boot.img los ntawm Linaro rau khau raj USB Ethernet CDC; Tsim NFS server los tuav lub hauv paus cov ntaub ntawv system; IP teeb tsa hauv DEVICE thiab HOST
Arduino Raws Li Cov Kub Kub Sensor: 5 Cov Kauj Ruam (nrog Duab)
Arduino Raws Li Cov Kub Kub Sensor: Cov Kub Kub Sensor yog qhov muaj tiag tiag niaj hnub no, tab sis feem ntau ntawm lawv yog qhov nyuaj heev los ua lossis kim heev los yuav rau qhov haujlwm no muab rau koj Arduino Raws Cov Kub Kub Sensor uas tsis tsuas yog pheej yig thiab yooj yim heev. rau m
DIY Ntse Ua Raws Kuv Drone Nrog Lub Koob Yees Duab (Arduino Raws): 22 Cov Kauj Ruam (nrog Duab)
DIY Ntse Ua Raws Kuv Drone Nrog Lub Koob Yees Duab (Arduino Raws): Drones yog cov khoom ua si nrov heev thiab cov cuab yeej niaj hnub no. Koj tuaj yeem pom cov kws tshaj lij thiab txawm tias pib ua haujlwm drones thiab cov khoom siv ya hauv khw. Kuv muaj plaub lub drones (quadcopters thiab hexcopters), vim tias kuv nyiam txhua yam uas ya, tab sis lub davhlau 200th tsis yog