Cov txheej txheem:

Kev Ceeb Toom Ntxuav Tes Tsis Siv Neeg: 5 Kauj Ruam
Kev Ceeb Toom Ntxuav Tes Tsis Siv Neeg: 5 Kauj Ruam

Video: Kev Ceeb Toom Ntxuav Tes Tsis Siv Neeg: 5 Kauj Ruam

Video: Kev Ceeb Toom Ntxuav Tes Tsis Siv Neeg: 5 Kauj Ruam
Video: Tseem Ev Lub Kawm - Koos Loos 2024, Kaum ib hlis
Anonim
Tsis siv neeg ntxuav tes ceeb toom
Tsis siv neeg ntxuav tes ceeb toom

Nov yog lub tshuab uas tuaj yeem ceeb toom ib tus neeg thaum lawv taug kev los ntawm lub qhov rooj. Nws lub hom phiaj yog ceeb toom rau ib tus neeg kom ntxuav nws txhais tes thaum nws rov los tsev. Muaj lub ntsuas hluav taws xob ultrasonic nyob rau pem hauv ntej ntawm lub thawv pom rau ib tus neeg uas taug kev hauv tsev. Thaum lub ntsuas hluav taws xob ultrasonic hnov ib tus neeg, lub LCD yuav qhia "Ntxuav koj txhais tes" kom ceeb toom ib tus neeg kom ntxuav nws txhais tes. Thiab tom qab ntawd, tus neeg hais lus yuav raug cuam tshuam thiab yuav xa suab tawm kom ceeb toom koj kom ntxuav koj txhais tes. Tus neeg hais lus yuav raug cuam tshuam txhua lub sijhawm ib tus neeg taug kev hla lub ntsuas ultrasonic.

Kauj Ruam 1: Kauj Ruam 1: Npaj Cov Khoom Siv

Koj Yuav Tsum Tau

1. Arduino Leonardo, lossis Arduino Uno (Yuav nws ntawm no)

2. Jumper xov hlau (Yuav nws ntawm no)

3. Hais lus rau Arduino (Yuav nws ntawm no)

4. LCD (I2C) (Yuav nws ntawm no)

5. Ultrasonic sensor (Yuav nws ntawm no)

Kauj Ruam 2: Kauj Ruam 2: Tsim Outlook ntawm Lub Thawv

Kauj ruam 2: Tsim Outlook ntawm Lub Thawv
Kauj ruam 2: Tsim Outlook ntawm Lub Thawv
Kauj ruam 2: Tsim Outlook ntawm Lub Thawv
Kauj ruam 2: Tsim Outlook ntawm Lub Thawv
Kauj ruam 2: Tsim Outlook ntawm Lub Thawv
Kauj ruam 2: Tsim Outlook ntawm Lub Thawv
Kauj ruam 2: Tsim Outlook ntawm Lub Thawv
Kauj ruam 2: Tsim Outlook ntawm Lub Thawv

Npaj ib lub thawv ntawv thawv thiab tom qab ntawv txiav lub thawv rau hauv cov duab uas koj xav tau, nyiam dua rau hauv cov duab uas tuaj yeem kaw thiab qhib tau yooj yim. Kuv tau xaiv los siv cov duab los qhia uas twb muaj nws cov duab zoo li kuv xav kom nws ua. Tom qab ntawd txiav qee qhov ntawm daim duab los kom haum rau lub ntsuas ultrasonic thiab LCD. Rau tus neeg hais lus, koj tuaj yeem tso Nws sab hauv daim duab los, koj tseem yuav hnov nws. Thaum kawg, tso tag nrho cov ntaub ntawv uas koj xav tau rau hauv lub npov, cov kauj ruam no tsis suav nrog ntxiv cov jumper xov hlau rau hauv. Koj tuaj yeem hlais lub qhov me me nyob rau sab laug ntawm lub thawv kom cov kab txuas ntawm arduino tuaj yeem hla ntawm koj lub thawv ntawv los rau koj lub laptop, koj tseem tuaj yeem xaiv siv lub roj teeb nqa tau. Koj tuaj yeem qhwv cov ntawv los xij nrog qee cov ntawv qhwv kom daim ntawv tuaj yeem ua kom zoo nkauj dua.

Kauj Ruam 3: Kauj Ruam 3: Txuas Kab Nrog Arduino thiab Circuit

Kauj Ruam 3: Txuas Kab nrog Arduino thiab Circuit
Kauj Ruam 3: Txuas Kab nrog Arduino thiab Circuit
Kauj Ruam 3: Txuas Kab nrog Arduino thiab Circuit
Kauj Ruam 3: Txuas Kab nrog Arduino thiab Circuit
Kauj Ruam 3: Txuas Kab nrog Arduino thiab Circuit
Kauj Ruam 3: Txuas Kab nrog Arduino thiab Circuit
Kauj Ruam 3: Txuas Kab nrog Arduino thiab Circuit
Kauj Ruam 3: Txuas Kab nrog Arduino thiab Circuit

Cov kauj ruam tom ntej yog txhawm rau txuas cov xov hlau jumper rau Arduino thiab lub ntsuas hluav taws xob ultrasonic, LCD, hais lus. Cov txheej txheem ntawm kev txuas kab yuav raug cais ua peb ntu sib txawv, uas yog cais rau kev sib txuas ntawm ultrasonic sensor, rau LCD, thiab rau tus hais lus. Thaum kawg kuv tso daim phiaj xwm ntawm kuv qhov project, koj tuaj yeem luam nws thiab luam tau yooj yim

1. Ib feem ntawm ultrasonic sensor

Vcc - tus nqi zoo

Gnd - tus nqi tsis zoo

Trig - D -pin (6 rau kuv tus lej)

Echo - D -pin (7 rau kuv tus lej)

2. LCD

GND - NCO

SDA- SDA

VCC- tus nqi zoo

GND- GND

3. Tus hais lus

Tus nqi zoo - D tus pin (11 rau kuv tus lej)

Tus nqi tsis zoo - chrage tsis zoo

Kauj Ruam 4: Kauj Ruam 4: Code

Kauj ruam 4: Code
Kauj ruam 4: Code
Kauj ruam 4: Code
Kauj ruam 4: Code
Kauj ruam 4: Code
Kauj ruam 4: Code

Saum toj no yog cov cai uas kuv tau npaj siv Ardublock thiab raug xa mus rau cov cai siv rau Arduino. Yog tias koj xav saib lossis rub kuv tus lej, koj tuaj yeem rub nws ntawm no.

Kauj Ruam 5: Kauj Ruam 5: Kho kom zoo nkauj thiab Koj Ua tiav

Image
Image
Kauj Ruam 5: Kho kom zoo nkauj thiab Koj Ua tiav!
Kauj Ruam 5: Kho kom zoo nkauj thiab Koj Ua tiav!

Koj tuaj yeem kho qhov cradboard txawm li cas los koj xav kom nws saib.

Pom zoo: