Cov txheej txheem:

Teeb Tawm: 6 Kauj Ruam
Teeb Tawm: 6 Kauj Ruam

Video: Teeb Tawm: 6 Kauj Ruam

Video: Teeb Tawm: 6 Kauj Ruam
Video: # 11 HGT S 2 - R 3 / Tij Lim Lauj - Hu Nkauj " Xav Ua Koj Niam Vauv " (Cover) 2024, Kaum ib hlis
Anonim
Image
Image
Circuit Court
Circuit Court

Koj puas muaj teeb meem qhov twg koj ib txwm tsis hnov qab tua lub teeb thaum koj tawm hauv chav? Txoj cai tsis saib xyuas no nkim lub zog ntau, yog li hauv txoj haujlwm no, koj yuav kawm tsim lub tshuab uas tuaj yeem tua lub teeb rau koj thaum koj tsis siv nws, txuag lub zog ntau. Lub tshuab no yooj yim rau kev khiav lag luam, koj yuav tsis tas yuav ua dab tsi rau nws kom nws ua haujlwm. Yog li thaum lub tshuab pom koj ib puag ncig, nws yuav qhib, thiab thaum koj tawm mus thiab tsis hnov qab tig lub teeb tawm, nws yuav suav nrog. Tom qab suav suav, nws yuav qhib lub teeb rau koj. Tab sis yog tias koj rov qab los ua ntej suav rov qab ua tiav, lub tshuab yuav rov pib dua, txhais tau tias nws yuav tsis tua lub teeb thiab yuav tos txog thaum koj rov mus dua.

Cov kab hluav taws xob rau txoj haujlwm no luv thiab yooj yim, tsuas yog ua raws cov theem hauv qab no los tsim lub tshuab. Yog tias koj tsis nkag siab cov kauj ruam, xav tias dawb los saib cov kab hluav taws xob hauv qab no.

Khoom siv

  • Arduino Leonardo
  • Cov qhob cij
  • Duab los qhia
  • "Tes"
  • HC-SR04 ultrasonic sensor
  • Servo tsav
  • Hlau

Kauj ruam 1: Circuit Court

Circuit Court
Circuit Court

Daim duab no yog lub voj voog ntawm lub tshuab no. Saib nws yog tias koj tsis nkag siab cov theem hauv qab no.

Kauj ruam 2: Arduino Board + Breadboard

Arduino Board + Breadboard
Arduino Board + Breadboard

Txuas qhov zoo ntawm Breadboard rau Arduino Board's 5V thiab sab tsis zoo rau Arduino Board's GND.

Kauj Ruam 3: Servo Motor

Servo Tsav
Servo Tsav
Servo Tsav
Servo Tsav
Servo Tsav
Servo Tsav

Txuas Cov Kab Hluav Taws Xob (Liab) kom zoo rau ntawm Breadboard, Hauv av kab (Dub) rau qhov tsis zoo rau Breadboard, thiab Kab Teeb (Dawb) rau D Pin10 ntawm Arduino board.

Txuas tes rau ntawm Servo Motor uas yuav tig thiab tua lub teeb. Kuv siv Legos ua tes vim nws yooj yim rau kuv kom tau. Muab tes tso rau ntawm Servo Motor thiab tso nws ntawm qhov hloov pauv kom nws tuaj yeem tua lub teeb thaum nws tig.

Muab lub Servo Motor tso rau qhov hloov pauv, yog li thaum nws tig, nws tuaj yeem tua lub teeb.

Kauj Ruam 4: HC-SR04 Ultrasonic Sensor

HC-SR04 Ultrasonic Sensor
HC-SR04 Ultrasonic Sensor

Kawg yog HC-SR04 Ultrasonic Sensor. Txuas Vcc mus rau qhov zoo ntawm Breadboard, GND rau qhov tsis zoo ntawm Breadboard. Txuas TRIG kab rau D Pin 6 thiab ECHO kab rau D Pin 7.

Tam sim no koj tau ua tiav nrog cov circuits!

Kauj ruam 5: Lub thawv

Lub thawv
Lub thawv

Tam sim no tias txhua yam yuav luag tiav, muab txhua yam tso rau hauv ib lub thawv kom nws zoo nkaus li zoo dua qub. Nws tuaj yeem yog ib lub thawv, tsuav nws haum txhua yam.

Yog tias koj xav tsis thoob txog yuav siv lub tshuab no li cas, Kuv siv kuv lub khoos phis tawj, txuas xov tooj mus rau Arduino Board rau kuv lub khoos phis tawj.

Tsis quav ntsej lub qhov nyob hauv kuv lub npov, Kuv siv lub thawv rov siv dua uas kuv pom. Tab sis koj tseem tuaj yeem txiav lub qhov rau lub ntsuas cua lossis lwm cov xov hlau.

Kauj ruam 6: Coding

Cov ntaub ntawv thiab qhov txuas yog cov lej rau lub tshuab ua haujlwm. Lawv ob leeg suav nrog cov lej uas kuv tus phooj ywg Aaronhung1128 tau tsim, nco ntsoov txheeb xyuas nws cov phiaj xwm ib yam. Rub cov lej rau hauv koj Arduino. Xav tias dawb los hloov cov lej.

Nyem kuv rau cov lej

Qhov no yog qhov kawg ntawm txoj haujlwm, vam tias koj tau lom zem ua lub tshuab no thiab muaj kev lom zem siv nws. Ntsib koj zaum tom ntej.

Pom zoo: