Cov txheej txheem:

Arduino PIR Kev Ruaj Ntseg Siv Tsheb Horn: 7 Cov Kauj Ruam (nrog Duab)
Arduino PIR Kev Ruaj Ntseg Siv Tsheb Horn: 7 Cov Kauj Ruam (nrog Duab)

Video: Arduino PIR Kev Ruaj Ntseg Siv Tsheb Horn: 7 Cov Kauj Ruam (nrog Duab)

Video: Arduino PIR Kev Ruaj Ntseg Siv Tsheb Horn: 7 Cov Kauj Ruam (nrog Duab)
Video: Arduino tutorial - PIR sensor 2024, Hlis ntuj nqeg
Anonim
Arduino PIR Kev Ruaj Ntseg Siv Tsheb Horn
Arduino PIR Kev Ruaj Ntseg Siv Tsheb Horn

Zoo li hauv qhov haujlwm no peb yuav ua lub tswb tswb siv lub PIR sensor, Arduino, Relay thiab lub tsheb horn!

Kauj Ruam 1: Yam Koj Yuav Tsum Tau

Qhov Koj Yuav Tsum Xav Tau
Qhov Koj Yuav Tsum Xav Tau
Qhov Koj Yuav Tsum Xav Tau
Qhov Koj Yuav Tsum Xav Tau
Qhov Koj Yuav Tsum Xav Tau
Qhov Koj Yuav Tsum Xav Tau
Qhov Koj Yuav Tsum Xav Tau
Qhov Koj Yuav Tsum Xav Tau

yog li rau qhov haujlwm no koj yuav xav tau:

1x --- PIR Sensor HC-SR501

1x --- 5v Relay board

1x --- Arduino nano

1x --- 12v 60 decibel tsheb qwj horn

1x --- 12v 3s 200mah roj teeb

1x --- 12v 3s 2000mah roj teeb

Thiab qee qhov jumper xov hlau thiab cov hlau txuas

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit

potentiometers ntawm PIR HC-SR501 tau siv los kho qhov rhiab heev thiab lub sijhawm tso tawm.

Ntawm no yog lub Circuit Court uas koj yuav tsum tau siv.

Kauj Ruam 3: Muab tag nrho cov Cheebtsam hauv ib lub thawv

Muab tag nrho cov Cheebtsam tso rau hauv ib lub thawv
Muab tag nrho cov Cheebtsam tso rau hauv ib lub thawv
Muab tag nrho cov Cheebtsam tso rau hauv ib lub thawv
Muab tag nrho cov Cheebtsam tso rau hauv ib lub thawv
Muab tag nrho cov Cheebtsam tso rau hauv ib lub thawv
Muab tag nrho cov Cheebtsam tso rau hauv ib lub thawv
Muab tag nrho cov Cheebtsam tso rau hauv ib lub thawv
Muab tag nrho cov Cheebtsam tso rau hauv ib lub thawv

ib zaug koj tau ua tiav tag nrho ntawm lub Circuit Court kuv tau luam ib lub thawv me me nrog kuv lub tshuab luam ntawv 3d kom haum txhua yam hauv.

Kuv yuav suav nrog cov ntaub ntawv stl ntawm no!

Yog tias koj tsis muaj lub tshuab luam ntawv 3d koj tseem tuaj yeem tsim lub thawv koj tus kheej yog li tsis txhob txhawj!

Kauj Ruam 4: Txuas Lub Horn Mus Rau Tus Kheej

Txuas lub Horn Mus Rau Qhov Tshaj Tawm
Txuas lub Horn Mus Rau Qhov Tshaj Tawm

Yog li ua kom sov koj cov hlau txuas dua thiab ua raws cov phiaj xwm no!

Kauj Ruam 5: Arduino Code

Thov nco ntsoov tias TXHUA QHOV CREDIT rau cov cai mus rau arduino lub vev xaib:

playground.arduino.cc/Code/PIRsense

Qhov kuv tau ua yog tsuas yog hloov kho tus lej kom lub chaw xa khoom ua haujlwm nrog PIR Sensor, yog li rau qhov haujlwm no thov rub cov lej arduino tsis yog los ntawm arduino lub vev xaib tab sis los ntawm no.

Tseem nco ntsoov tias thaum koj rub tawm/rov pib dua lub arduino lub sensor txiav txim siab 30 vib nas this los ntsuas.

Kauj Ruam 6: Tiav Tawm

Tiav Tawm
Tiav Tawm
Tiav Tawm
Tiav Tawm
Tiav Tawm
Tiav Tawm

Tam sim no tau txais qee cov kua nplaum super lossis kua nplaum kub thiab yog tias koj xav tau koj tuaj yeem ua raws cov duab no ntawm yuav ua li cas kuv muab txhua yam ua ke!

Kauj ruam 7: Saib ua ntej

rau qhov saib ua ntej kuv txuas lub suab nrov mus rau 7.4v qhov chaw vim kuv tsis xav ua rau cov neeg nyob sib ze ntxhov siab. Tab sis lub horn yuav tsum muaj peev xwm nce mus txog 12v yam xyuam xim. Kuv kuj tau txiav lub hwj chim kom tsuas yog nyem qhov txuas ib ncig 3 vib nas this thiab kom tsis txhob cuam tshuam rau cov neeg nyob ze.

Pom zoo: