Cov txheej txheem:

Txoj Haujlwm 2: Teeb Pom Kev deb: 3 Kauj Ruam
Txoj Haujlwm 2: Teeb Pom Kev deb: 3 Kauj Ruam

Video: Txoj Haujlwm 2: Teeb Pom Kev deb: 3 Kauj Ruam

Video: Txoj Haujlwm 2: Teeb Pom Kev deb: 3 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
Txoj Haujlwm 2: Teeb Pom Kev deb
Txoj Haujlwm 2: Teeb Pom Kev deb

Txoj haujlwm no yog kev sib tw ntawm lub tswb ib txwm ua rau lub teeb thiab lub suab nrov tom qab qee yam. Txoj haujlwm no luam tawm mus rau tus saib xyuas uas tus neeg lossis yam khoom tau los ze dua thiab ze dua thiab yuav tsum tso tseg. Lub teeb ntsuab ntsuab teeb thiab lub tshuab luam ntawv luam tawm rau tus neeg siv tias nws yog kev nyab xeeb nyob deb thiab yuav tsum nyob ntawd. Thaum tus neeg siv ze dua lub teeb xiav LED teeb thiab lub saib luam tawm rau tus neeg siv tias nws tau mus deb txaus thiab tau ceeb toom. Tom qab ntawd, lub teeb liab liab teeb rau peb thiab tus saib pom sau tawm tias lub tswb nrov tau qhib thiab ua rau lub tswb nrov.

Nov yog yam koj xav tau

1 x daim duab

1 x Arduino Uno

1 x ultrasonic sensor

1 x active buzzer

3 x led

3 x 220 ohm resistors

ob peb jumper xov hlau.

Kauj Ruam 1: Kauj Ruam 1: Ntxiv 3 LEDs

Kauj Ruam 1: Ntxiv 3 LEDs
Kauj Ruam 1: Ntxiv 3 LEDs

Ua ntej tsuas yog kom nws tawm ntawm txoj kev, mus tom ntej thiab txuas GND thiab 5V los ntawm lub microcontroller mus rau lub khob cij.

Tam sim no tsuas yog ntxig rau txhua tus coj mus rau hauv lub rooj tsavxwm thiab txuas cov tiv thaiv rau cov khoov (anode) ib feem ntawm ob txhais ceg thiab GND kev tsheb nqaj hlau. Tom qab ntawd txuas lub jumper hlau los ntawm ob txhais ceg ntev dua thiab mus rau tus pin 9, 12, thiab 13.

Kauj Ruam 2: Kauj Ruam 2: Siv Buzzer

Kauj ruam 2: Active Buzzer
Kauj ruam 2: Active Buzzer

Tam sim no, ntu no yog qhov yooj yim tsuas yog txuas lub jumper hlau mus los ntawm luv luv ceg ntawm tus nquag buzzer mus rau GND txoj kev tsheb nqaj hlau thiab lwm lub jumper hlau mus rau tus ceg ntev dua rau tus pin 7.

Kauj Ruam 3: Kauj Ruam 3: Ultrasonic Sensor thiab Code

Kauj Ruam 3: Ultrasonic Sensor thiab Code
Kauj Ruam 3: Ultrasonic Sensor thiab Code

Kauj ruam kawg yog txhawm rau ntxig lub ntsuas hluav taws xob ultrasonic rau lub rooj tsavxwm thiab txuas VCC mus rau txoj kev tsheb nqaj hlau, Ua rau tus pin 2, Echo rau tus pin 3, thiab thaum kawg GND rau GND tsheb nqaj hlau.

Credit: Lej rau qhov ntsuas nrug deb

Pom zoo: