Cov txheej txheem:

Cov Neeg Nyob Ze Li Cas: 8 Kauj Ruam
Cov Neeg Nyob Ze Li Cas: 8 Kauj Ruam

Video: Cov Neeg Nyob Ze Li Cas: 8 Kauj Ruam

Video: Cov Neeg Nyob Ze Li Cas: 8 Kauj Ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Kaum ib hlis
Anonim
Image
Image
Cov Neeg Nyob Li Cas
Cov Neeg Nyob Li Cas

Nov yog kev hloov kho yooj yim rau txoj haujlwm Qhia Zoo no:

www.instructables.com/id/Arduino-Distance-Detector-with-a-Buzzer-and-LEDs/https://www.instructables.com/id/Arduino-Distance-Detector-with-a- Buzzer-thiab-LEDs/

Taw qhia luv luv ntawm Thawj Txoj Haujlwm:

Cov cuab yeej muaj rau lub qhov muag teev nyob rau hauv cov xim sib txawv, liab, daj thiab ntsuab. Thaum ib yam khoom ze rau LED, nws teeb los ntawm ntsuab mus rau daj rau liab. Kuj tseem muaj tus hais lus, thiab cov khoom tau ze dua, qhov ntau dua ntawm tus hais lus. Thaum cov theem hloov pauv (hloov ntawm ib qho xim mus rau lwm qhov), qhov zaus ntawm tus hais lus nce ib qib.

Kev hloov kho suav nrog:

- Ib daim duab los qhia ib puag ncig

-Qhov kev hloov ntawm qhov deb thiab suab

Pawg Thawj Coj Lub Hom Phiaj ntawm Kev Hloov Kho:

- Cov duab los qhia ua lub cuab yeej nqa tau. Lub thawv ntawv ntawv no muaj tus hais lus ntawm ib sab thiab tag nrho cov LEDs ntawm nws. Qhov kev tsim no ua kom yooj yim siv.

- Qhov kev ncua deb ntawm thawj qhov haujlwm yog luv heev rau qhov ib txwm nyob nruab nrab ntawm tib neeg, yog li kuv ua kom ntev dua, nws muaj txiaj ntsig ntau dua.

- Kuv ua rau lub suab sib txawv dua, yog li tib neeg tuaj yeem paub qhov nrug deb kom meej dua.

Khoom siv

Arduino Leonardo (lossis Arduino Uno) x1

Cardboard lub thawv x1

Lub khob cij x1

HC-SRO4 Ultrasonic Sensor x1

Buzzer x 1

Ntsuab LEDs x2

LEDs daj x2

Liab LEDs x2

330-ohm Resistors x7

Lub hwj chim txhab nyiaj x1

USB kab x 1

Ink x 1

Sau Txhuam (lossis txhuam ib txwm) x1

Kab x 1

Riam riam siv hluav taws xob x1

Ntau cov xov hlau jumper (Ob Hom: ob xaus nrog tus pin, ib kawg nrog tus pin thiab lwm qhov thiab tsis muaj)

Kauj Ruam 1: Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau

Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau
Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau

Cov ntaub ntawv xav tau rau txoj haujlwm no yog:

(1x) Arduino Uno

(1x) Daim ntawv qhia zaub mov

(1x) HC-SRO4 Ultrasonic Sensor

(1x) Lub suab nrov

(2x) Ntsuab LEDs

(2x) LEDs daj

(2x) Liab LEDs

(7x) 330-ohm Resistors

Muaj ntau cov kab jumper

Kauj ruam 2: Kauj ruam 2: Teeb tsa

Kauj ruam 2: Teeb
Kauj ruam 2: Teeb

Tshooj lus no yog ua tiav raws qhov phiaj xwm qub. Cov ntaub ntawv thiab lus piv txwv Los ntawm

Daim duab saum toj no qhia txog kev teeb tsa ntawm txoj haujlwm.

Cov xov hlau jumper yuav tsum txuas nrog raws li hauv qab no:

Txuas lub xov hlau jumper los ntawm tus pin 5-volt ntawm Arduino mus rau hauv qab hauv qab ntawm lub khob cij

Txuas lwm lub jumper hlau los ntawm tus pin hauv av ntawm Arduino mus rau sab saud ntawm lub khob cij

Buzzer -> tus pin 3

(Ntawm Ultrasonic Sensor)

Echo -> pin 6

Trig -> pin 7

(Nyob rau hauv kev txiav txim ntawm sab xis mus rau sab laug)

LED1 -> pin 8

LED2 -> pin 9

LED3 -> pin 10

LED4 -> pin 11

LED5 -> pin 12

LED6 -> pin 13

Cov hlua txuas txuas nrog LEDs yuav tsum txuas nrog cov hlau lead ntawm sab xis, thaum sab laug ntawm LED yuav tsum txuas nrog rau hauv av hauv av ntawm 330-ohm resistor.

Kauj Ruam 3: Kauj Ruam 3: Kev Sib Ntsib thiab Kev Txuas Ntxiv

Kauj Ruam 3: Kev Sib Ntsib thiab Kev Sib Txuas Ntxiv
Kauj Ruam 3: Kev Sib Ntsib thiab Kev Sib Txuas Ntxiv
Kauj Ruam 3: Kev Sib Ntsib thiab Kev Sib Txuas Ntxiv
Kauj Ruam 3: Kev Sib Ntsib thiab Kev Sib Txuas Ntxiv
Kauj Ruam 3: Kev Sib Ntsib thiab Kev Txuas Ntxiv
Kauj Ruam 3: Kev Sib Ntsib thiab Kev Txuas Ntxiv

Ua lub rooj sib txoos.

Txuas tag nrho cov khoom siv nrog cov xov hlau dhia nrog ob qhov sib txawv raws li qhia hauv daim duab saum toj no.

Kauj Ruam 4: Kauj Ruam 4: Txiav Lub Thawv Cardboard

Kauj Ruam 4: Txiav daim Cardboard Box
Kauj Ruam 4: Txiav daim Cardboard Box
Kauj Ruam 4: Txiav daim Cardboard Box
Kauj Ruam 4: Txiav daim Cardboard Box
Kauj Ruam 4: Txiav daim Cardboard Box
Kauj Ruam 4: Txiav daim Cardboard Box
Kauj Ruam 4: Txiav daim Cardboard Box
Kauj Ruam 4: Txiav daim Cardboard Box

Txiav lub thawv rau qhov zoo uas koj xav tau:

- Nco ntsoov tias muaj qhov rau Ultrasonic Sensor, Buzzer thiab LEDs.

Kauj Ruam 5: Kauj Ruam 5: Xim lub thawv ntawv ntawv

Kauj Ruam 5: Xim lub Cardboard Box
Kauj Ruam 5: Xim lub Cardboard Box
Kauj Ruam 5: Xim lub Cardboard Box
Kauj Ruam 5: Xim lub Cardboard Box
Kauj Ruam 5: Xim lub Cardboard Box
Kauj Ruam 5: Xim lub Cardboard Box

1. Xim cov nplaim ntawm sab sau nrog tus lej thiab tus txhuam

2. Sau lub npe ntawm sab uas dawb (tsis muaj xim) nrog txhuam txhuam

Kauj Ruam 6: Kauj Ruam 6: Sib Sau Lub Thawv

Kauj Ruam 6: Sib Sau Lub Thawv
Kauj Ruam 6: Sib Sau Lub Thawv
Kauj Ruam 6: Sib Sau Lub Thawv
Kauj Ruam 6: Sib Sau Lub Thawv

Sib dhos lub thawv thiab muab cov khoom tso rau hauv lub qhov.

Kauj Ruam 7: Kauj Ruam 7: Code

Txuas:

create.arduino.cc/editor/j06098/e470873f-a…

Kauj Ruam 8: Kauj Ruam 8: Xeem

Tiav !!!

Pom zoo: