Cov txheej txheem:

Tsab ntawv tsa suab qhib lub teeb hloov nrog lub teeb Sensor: 5 Kauj Ruam
Tsab ntawv tsa suab qhib lub teeb hloov nrog lub teeb Sensor: 5 Kauj Ruam

Video: Tsab ntawv tsa suab qhib lub teeb hloov nrog lub teeb Sensor: 5 Kauj Ruam

Video: Tsab ntawv tsa suab qhib lub teeb hloov nrog lub teeb Sensor: 5 Kauj Ruam
Video: Xyw By Nquab Tsab New Song 2022-2023 2024, Hlis ntuj nqeg
Anonim
Tsab ntawv tsa suab qhib lub teeb hloov nrog lub teeb Sensor
Tsab ntawv tsa suab qhib lub teeb hloov nrog lub teeb Sensor

Tsab ntawv tsa suab qhib lub teeb hloov muaj ntau daim ntawv thov hauv tsev thiab hauv chaw ua haujlwm. Qhov no, txawm li cas los xij, tau ntxiv qhov zoo ntawm kev suav nrog lub teeb pom kev zoo, yog li ntawd, lub teeb no tsuas tuaj yeem ua rau hmo ntuj.

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Txoj haujlwm no yog ua raws PIR lub tshuab ua kom pom. Peb siv yooj yim heev, npaj tau, cov khoom siv hluav taws xob.

1. Arduino Nano (Koj tuaj yeem siv Uno lossis lwm yam)

2. PIR Sensor

3. LDR Sensor (nrog ua hauv D/O)

4. 5V Kev Tshaj Tawm (Kuv siv ob channel, txawm li cas los Ib Leeg Channel txaus)

5. Cov Cheeb Tsam rau Cov Khoom Siv Hluav Taws Xob: (a) 230V/ 6V Transformer

(b) Choj Rectifier

(c) Capacitor: 1000 Mfd, 100 Mfd thiab 0.1 Mfd

(d) Lub Hwj Chim IC: 7805

6. Lwm yam: Vero Board, Hlau, Txuas Txuas.

Kauj ruam 2: Kev sib txuas

Kev sib txuas
Kev sib txuas

Lub zog siv hluav taws xob yog tus qauv tsim siv Choj Rectifier / Capacitor thiab 7805 IC, uas muab kev ruaj khov 5V DC rau txoj haujlwm. Nws tau tsim los ntawm Vero Board. Ib tug 20x2 Pin poj niam lub taub hau tau muab muag kom lees paub Arduino Nano, ntawm vero board. Qhov plug-in no yuav pab tshem tawm Arduino yooj yim.

Ob lub nos ntawm 230V AC qib qhov (socket) tau tsau rau ntawm Pawg Thawj Coj thiab Kev Txuas Hluav Taws Xob tau ua tiav raws li hauv qab no:

(a) Ob Theem thiab nruab nrab (Hauv daim duab Liab & Dub) txuas nrog los ntawm lub qhov (socket) mus rau HV sab ntawm kauj ruam qis hloov pauv.

(b) Tsis tas li ntawd cov xov hlau nruab nrab tau txuas ncaj qha los ntawm lub qhov (socket) mus rau lub qhov (socket) thiab cov hlau theem tau txuas nrog ntawm NO thiab Cov davhlau ya nyob twg ntawm Relay vaj huam sib luag.

(c) Lub qhov (socket) yuav txuas nrog 230V AC Mains cov khoom siv thiab cov zis yuav txuas nrog AC Load.

#Ceev faj: Kev saib xyuas zoo yuav tsum tau ua nyob rau hauv cov xov hluav taws xob. Thaum txuas nrog Mains, lub thawv yuav tsum raug kaw ua ntej siv.

Txuas Arduino thiab Sensors:

PIR Sensor Tso Tawm: Arduino Pin 7

LDR Sensor Tso Tawm: Arduino Pin 4

Cov tswv yim Relay: Arduino Pin 6

Ib qho hluav taws xob sib txuas ntawm 5V DC tau tsim hauv Vero Board, uas muab rau txhua tus neeg sawv cev, Arduino thiab Relay board. Ib lub ntsiab lus yuav tsum nco ntsoov tias Relay input yog Active Low thiab program tau hloov kho kom haum.

Kauj ruam 3: Program thiab Software

Qhov kev zov me nyuam yog tus qauv zoo heev thiab ncaj ib qho.

1. Pib PIR Sensor.

2. Tshaj tawm I/O thiab hloov pauv.

3. Txais PIR Kev Nkag Mus thiab yog tias pom muaj kev tawm suab thiab nws tsaus ntuj sab nraud (Lub teeb pom kev D/O yuav muab cov ntaub ntawv), Kev xa tawm yuav raug qhib.

4. Nws yuav tos txog 1 Min thiab yog tias cov lus pom tau txuas mus txuas ntxiv, Relay yuav nyob twj ywm ON, lwm qhov nws yuav tsis ua haujlwm, yog li Hloov OFF lub load. Koj tuaj yeem hloov lub sijhawm no hauv "Pause" sib txawv.

5. Yog tias nws tshav ntuj sab nraum, kev xa xov yuav tsis qhib txawm hais tias pom lub suab.

Kauj Ruam 4: Txhim Kho Txoj Haujlwm hauv Lub Thawv

Txhim Kho Txoj Haujlwm hauv Lub Thawv
Txhim Kho Txoj Haujlwm hauv Lub Thawv
Txhim Kho Txoj Haujlwm hauv Lub Thawv
Txhim Kho Txoj Haujlwm hauv Lub Thawv

Txoj haujlwm no yog nyob hauv tus txheej txheem 8 Nti x 6 Nti PVC Hluav Taws Xob Hluav Taws Xob. Txhua lub Cheebtsam raug tsau sab hauv lub thawv. Raws li tau hais ua ntej, ob lub nos ntawm AC 230V Mains qhov txuas tau txuas nrog raws li qhia. PIR sensor tau so sab nraum los ntawm kev txiav tawm 25mm ncig. Tsis tas li, LDR ntawm lub teeb pom kev zoo ib yam nyob sab nraum.

Koj tuaj yeem nce tag nrho Lub Thawv raws li qhov koj xav tau.

Kauj ruam 5: Koj Cov Lus

Kuv vam tias koj txaus siab rau kuv qhov project thiab vam tias koj yuav muab koj cov lus teb muaj txiaj ntsig. Kuv yuav zoo siab los pab koj yog tias koj ntsib teeb meem dab tsi thaum ua qhov project.

Pom zoo: