Cov txheej txheem:

Social Distancing Detector: 4 Kauj Ruam
Social Distancing Detector: 4 Kauj Ruam

Video: Social Distancing Detector: 4 Kauj Ruam

Video: Social Distancing Detector: 4 Kauj Ruam
Video: Department of Health briefing on coronavirus 2024, Kaum ib hlis
Anonim
Social Detection Detection
Social Detection Detection
Social Detection Detection
Social Detection Detection

Cov cuab yeej no pab koj tswj kev nrug deb ntawm 1 meter ntawm tib neeg (lossis muaj kev pheej hmoo poob koj lub ntsej muag).

Khoom siv

- Arduino Uno (thiab khoom siv) - Tau nws ntawm no

- Protoshield (xaiv tau -Kuv tau siv nws tom qab kuv thaij duab) - Tau nws ntawm no

- Ultrasonic sensor - (HC -SR04) - Tau nws ntawm no

- Piezo buzzer - Tau nws ntawm no

- Jumper xov hlau - Tau lawv ntawm no

- Mini breadboard - Tau nws ntawm no

Kauj ruam 1: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv

Cov kauj ruam no yooj yim, thiab yog tias daim duab saum toj no tsis ua haujlwm, cov cai muaj cov lus pom los pab. Lub piezo buzzer VCC mus rau tus lej digital 13, tus pin trig mus rau tus lej digital 6, thiab tus ncha tus pin mus rau tus pin 5.

Kev sib txuas hluav taws xob yog tus qauv.

Kauj ruam 2: Code

Code
Code

Cov cai nyob ntawm no ntawm GitHub thiab nws tau muab khaws cia. Yog tias koj tsis tuaj yeem tau txais, kuv yuav muab cov cai rau hauv cov lus ib yam nkaus.

Kauj Ruam 3: Xeem

Kev Xeem
Kev Xeem

Txuas koj Arduino rau hauv thiab khiav cov cai.

Muab koj txhais tes tso rau ntawm lub sensor. Koj yuav tsum hnov lub suab nrov nrov. Yog tias koj tsis ua, xyuas koj cov xov hlau. Feem ntau ntawm kuv cov teeb meem tshwm sim los ntawm xaim xaim xaim, xov hlau uas tsis tau nkag mus rau hauv lub khob cij, lossis txuas tsis raug. Txoj cai ua haujlwm, thiab tau hloov kho qhov ua haujlwm rau kuv lub sensor. Yog tias koj zoo li tsis raug, kho qhov chaws rau 6 ft/1 m. Hmoov zoo!

Kauj ruam 4: Ua tiav

Nov yog qhov haujlwm muaj txiaj ntsig/lom zem uas tuaj yeem cawm neeg txoj sia. Kuv tsis suav nrog cov npog/rooj plaub lossis cov clip rau koj txoj siv, tab sis cov ntawd tuaj yeem muaj txiaj ntsig.

Nrog koj zoo siab rau qhov ua tiav!

Txog rau lub sijhawm tom ntej, Zoo Siab Ua los ntawm g3holliday

Pom zoo: