Cov txheej txheem:

Yuav Ua Li Cas Ua Arduino Social Distancing Device Nrog PIR: 4 Cov Kauj Ruam
Yuav Ua Li Cas Ua Arduino Social Distancing Device Nrog PIR: 4 Cov Kauj Ruam

Video: Yuav Ua Li Cas Ua Arduino Social Distancing Device Nrog PIR: 4 Cov Kauj Ruam

Video: Yuav Ua Li Cas Ua Arduino Social Distancing Device Nrog PIR: 4 Cov Kauj Ruam
Video: Leap Motion SDK 2024, Kaum ib hlis
Anonim
Image
Image

1

Kauj Ruam 1: Daim duab Circuit Court

Ntau lawm
Ntau lawm

Kauj Ruam 2: Qhov Chaw:

Arduino NANO, HC-SR501, HC-SR04, 12 ntsis WS2812 5050 RGB Hloov LED

Buzzer, Jumper xov hlau,

Kauj ruam 3: Ntau lawm

Ntau lawm
Ntau lawm
Ntau lawm
Ntau lawm

Nruab ib lub tsev qiv ntawv cov ntaub ntawv: Qhib "Cuab Yeej"-"Tswj Cov Tsev Qiv Ntawv ……" hauv Arduino txoj kev txhim kho software, tom qab ntawd tshawb rau "Adafruit_NeoPixel" thiab nruab nws.

Kauj ruam 4: NCO TSEG:

NCO TSEG
NCO TSEG

Hauv qhov haujlwm no kuv tau siv HC-SR501 tib neeg lub cev infrared sensor module. HC-SR501 tib neeg lub cev infrared sensor module muaj ob txoj hauv kev ua rau. Ib qho yog tsis rov ua dua: uas yog, tom qab lub ntsuas hluav taws xob tso tawm qib siab, lub sijhawm ncua sijhawm dhau , Cov zis yuav hloov pauv los ntawm qib siab mus rau qib qis. Txhawm rau muab nws yooj yim, nws yuav tso tawm qib siab thaum nws nkag siab tib neeg lub zog, tab sis tom qab lub sijhawm nws ncua kev hloov khawm dhau lawm, nws yuav tsis nkag siab ntxiv txawm tias ib tus neeg txav mus rau nws xub ntiag. HC-SR501 muaj lub sijhawm kaw ntawm 0.2 vib nas this, lub sijhawm nws yuav tsis ua haujlwm. Nws tseem yuav nkag siab ntxiv tom qab lub sijhawm kaw haujlwm tas lawm. Kuj tseem muaj qhov rov ua dua hom: tom qab lub ntsuas hluav taws xob tso tawm qib siab, thaum lub sijhawm ncua, yog tias tib neeg lub cev txav mus nyob hauv nws qhov kev xav ntau, nws cov zis yuav nyob siab txog thaum tus neeg tawm mus. Hloov qib siab mus rau qib qis (qhov ntsuas pom yuav cia li ncua lub sijhawm ncua sijhawm tom qab kuaj pom txhua yam haujlwm ntawm tib neeg lub cev, thiab siv sijhawm ntawm cov haujlwm dhau los ua qhov pib ntawm lub sijhawm ncua). Yooj yim muab, yog tias koj tsiv mus nyob rau pem hauv ntej ntawm tib neeg lub tshuab hluav taws xob ntsuas hluav taws xob, HC-SR501 ib txwm tso tawm qib siab.

Pom zoo: