Cov txheej txheem:

Kev Teeb Meem Teeb Meem Hauv Tsheb: 4 Kauj Ruam
Kev Teeb Meem Teeb Meem Hauv Tsheb: 4 Kauj Ruam

Video: Kev Teeb Meem Teeb Meem Hauv Tsheb: 4 Kauj Ruam

Video: Kev Teeb Meem Teeb Meem Hauv Tsheb: 4 Kauj Ruam
Video: nkauj mim qhov teeb meem uas nw yuam kev txog ntawm ntxheej mua thiab Ray vang 6/3/20 2024, Hlis ntuj nqeg
Anonim
Kev Cob Qhia Kev Teeb Meem
Kev Cob Qhia Kev Teeb Meem
Kev Cob Qhia Kev Teeb Meem
Kev Cob Qhia Kev Teeb Meem
Kev Cob Qhia Kev Teeb Meem
Kev Cob Qhia Kev Teeb Meem

Teeb pom kev tsheb ciav hlau.

(Simulation ntawm kev muaj tiag)

Kev piav qhia yooj yim ntawm cov cai:

Txoj cai tso cai rau kev nkag siab tas mus li rau cov tsheb ciav hlau. Yog tias lub tsheb ciav hlau hla dhau ntu xaiv ntawm txoj kev tsheb ciav hlau, lub teeb liab yuav tig liab, ceeb toom rau lwm tus txog kev phom sij ua ntej. Txog li 10 vib nas this tom qab, lub teeb yuav tig daj, qhia rau kev ceev faj rau kev hla cov neeg tsav tsheb. Tsuas yog 20 vib nas this tom qab tig daj nws yuav tig ntsuab, txhais tau tias nws muaj kev nyab xeeb kom hla mus.

Nrog rau qhov ua tiav ntawm Circuit thiab cov ntaub ntawv raug, lub cuab yeej yuav tsum tau npaj rau siv. Muab nws tso rau ib sab ntawm txoj kev tsheb ciav hlau, thiab thaum lub tsheb ciav hlau hla dhau, saib nws mus rau hauv kev nqis tes ua!

Nco tseg: Qhov no yog rau kev sim ua lub hom phiaj nkaus xwb, thiab tsis yog txhais tau tias yog siv rau kev siv lub neej tiag.

Nco Ntsoov 2: Cov cuab yeej tuaj yeem txheeb xyuas txoj kev tsheb ciav hlau, thiab hloov lub teeb tsis raug, yog li siv lub cuab yeej nyob hauv thaj chaw siab dua yuav tsim nyog.

Khoom siv

3 teeb: ib qho rau liab, daj, ntsuab.

Arduino Uno (Leonardo ua haujlwm ib yam nkaus, Kuv siv Leonardo rau qhov piv txwv no.) Cardboard (Zoo tshaj los siv lub thawv uas koj twb muaj lawm). 3 resistors.

Ib qho ultrasonic sensor

Cov tsheb ciav hlau (nrog roj teeb twb tau sab hauv kom nws tuaj yeem khiav tau.)

Cov tsheb ciav hlau haum rau lub tsheb ciav hlau.

Kauj Ruam 1: Kauj Ruam 1: Circuit

Kauj ruam 1: Circuit Court
Kauj ruam 1: Circuit Court

Qhov no yog qhov kev hloov pauv ntawm qhov Circuit Court. Ob peb yam yuav tsum nco ntsoov.

Lub ntsuas hluav taws xob ultrasonic uas kuv siv tau muaj plaub lub chaw nres nkoj. Trig thiab Echo tau sib cais. Yog li nco ntsoov tso Trig hauv tus pin analog (D6) thiab Echo hauv lwm tus pin (D7) yog tias koj lub tshuab ntsuas ultrasonic yog tib yam qauv.

Kauj Ruam 2: Kauj Ruam 2: Qhov program

Nov yog txoj haujlwm. Muaj qhov tseeb feem ntau ntawm cov cai uas tsis tau siv los ntawm thaum kuv muaj lwm lub tswv yim rau lub cuab yeej. Kuv yuav muab tswv yim rau koj txog yam tseem ceeb hauv cov lus.

create.arduino.cc/editor/Nori456/f7b935dd-e481-4a60-9002-8522b78aedc1/preview

Kauj Ruam 3: Kauj Ruam 3: Kho Kom Zoo Nkauj

Kauj ruam 3: Kho kom zoo nkauj
Kauj ruam 3: Kho kom zoo nkauj
Kauj ruam 3: Kho kom zoo nkauj
Kauj ruam 3: Kho kom zoo nkauj
Kauj ruam 3: Kho kom zoo nkauj
Kauj ruam 3: Kho kom zoo nkauj

SImply encase Circuit Court, khoos phis tawj, thiab tshuab ua ib yam uas tiv thaiv thiab npog cov khoom siv hluav taws xob zoo. Lub thawv ntawv yuav ua.

Nco ntsoov tawm qhov qhib rau lub teeb, lub ntsuas cua, thiab xaim rau Arduino board nws tus kheej.

Kho kom zoo nkauj yog nyob ntawm yeem. Txiav txim siab ntxiv txhua yam koj xav tau rau lub cuab yeej!

Tsis tas li, nco ntsoov tias txhua yam hauv Circuit Court ua haujlwm. Tag nrho peb lub teeb ua haujlwm ntawm no raws li qhia hauv cov duab.

Kauj Ruam 4: Kauj Ruam 4: Muab Nws Ua Haujlwm

Qhov ntawd yog nws! Vam tias, lub cuab yeej ua haujlwm ntawm nws tus kheej. Yog tias muaj teeb meem, txiav txim siab kuaj lub Circuit, xov hlau, lossis hluav taws xob kom pom tias muaj teeb meem nrog ib qho ntawm cov no. Txaus siab rau.

Nov yog qhov txuas rau daim vis dis aus uas qhia pom lub cuab yeej ua haujlwm. Siv nws ua piv txwv:

Pom zoo: