Cov txheej txheem:

Tshuaj Txhuam Hniav: 8 Kauj Ruam
Tshuaj Txhuam Hniav: 8 Kauj Ruam

Video: Tshuaj Txhuam Hniav: 8 Kauj Ruam

Video: Tshuaj Txhuam Hniav: 8 Kauj Ruam
Video: Nkauj hmoob zoo nkauj txhua xeem : Hwm lauj (nkuaj tawm tshiab ) 2021-20222 2024, Kaum ib hlis
Anonim
Tshuaj Yej
Tshuaj Yej

Nov yog lub tshuab uas kuv siv los ceeb toom kuv tus kheej txog kuv cov tshuaj yej, vim tias kuv feem ntau tsis nco qab nws ntev ntev tom qab kuv tso lub hnab tshuaj yej.

Khoom siv

2 fais khawm

1 LED (5 hli)

1 servo motor (S03T/STD)

1 daim npav daim npav (1x1m) yuav muaj cov khoom seem

Cov xov hlau (npaj rau 30 kom muaj qhov seem txuas ntxiv yog tias tsim nyog)

2 10k ohm resistors (rau cov nyees khawm)

1 100 ohm resistor (rau LED)

Arduino board (Leonardo)

5V Cov khoom siv hluav taws xob thiab xaim

Txhua hom nplaum (kab xev nplaum thiab lwm yam), Ntxiv: Tus hais lus (8O1W, 20x4mm, nrog Dupont xov hlau)

Kauj ruam 1: Txiav daim Cardboard

Txiav koj daim npav pawg raws li qhov ntev hauv qab no:

20cm x 5cm (2 daim)

13cm x 5cm (2 daim)

20 cm x 13 cm (1 daim)

7cm x 2.5cm (1 daim)

7cm x 6 cm (1 daim)

Kauj Ruam 2: Sib sau Cov Ntawv Ntsuas

Sib sau cov Cardboards
Sib sau cov Cardboards

Ua raws daim ntawv ua ke thiab tsim ib lub thawv raws li cov duab saum toj no.

Ua raws daim ntawv 20x5cm ntawm sab ntev ntawm 20x13cm daim duab los qhia

Ua raws li daim ntawv 13x5cm ntawm sab luv ntawm daim duab 20x13

Ua raws 7x2.5cm kab rov tav (2.5cm txuas nrog lub thawv)

Ua raws 7cm x 6 cm kab rov tav (6cm txuas nrog lub thawv)

Daim npav daim npav 7x2.5 thiab 7x6cm yog qhov uas koj yuav tso lub teabag thiab koj lub cav servo, yog li koj tuaj yeem hloov kho me ntsis ntawm koj tus kheej lossis koj tuaj yeem ua raws li qhov kuv ua. (vim tias koj lub teabag yuav txawv ntawm kuv li)

Kauj Ruam 3: Kev thaiv kab hlau

Thaiv
Thaiv

Txuas cov xov hlau raws li daim duab saum toj no Kuv xav qhia koj kom siv cov xov hluav taws xob luv rau thaiv cov nyees khawm thiab teeb ci LED, txwv tsis pub teeb tsa cov xov hlau yuav nyuaj heev.

Kauj ruam 4: Code

create.arduino.cc/editor/simon9761/e6c152fd-57db-43c9-aaee-7094af3d6d64/preview

Luam thiab paste cov cai los ntawm qhov txuas saum toj no thiab xa nws mus rau koj li Arduino board.

Kauj ruam 5: Xeem

Image
Image

Tom qab koj xa cov cai thiab ua tiav kev thaiv, lub tshuab yuav tsum ua haujlwm zoo li no:

Kauj Ruam 6: Kauj Ruam Ntxiv: Hais Lus

Txuas lub Thawv thiab Cov Hluav Taws Xob Ua Ke
Txuas lub Thawv thiab Cov Hluav Taws Xob Ua Ke

Cov kauj ruam no yog xaiv tau tag nrho tab sis kuv xav kom koj ua qhov no. Vim tias koj yuav tsis pom lub teeb ci LED ci.

Kauj Ruam 7: Txuas Lub Thawv thiab Cov Hluav Taws Xob Ua Ke

Txuas lub Thawv thiab Cov Hluav Taws Xob Ua Ke
Txuas lub Thawv thiab Cov Hluav Taws Xob Ua Ke
Txuas lub Thawv thiab Cov Hluav Taws Xob Ua Ke
Txuas lub Thawv thiab Cov Hluav Taws Xob Ua Ke

Khaws lub popsicle lo rau ntawm lub cav, zoo li hauv daim duab saum toj no.

Muab koj lub rooj tsav xwm Arduino tso rau nruab nrab ntawm lub thawv zoo li hauv daim duab saum toj no.

Kaw cov nyees khawm, LED thiab lub cev muaj zog raws li daim duab. (Tus lej pin 2 khawm yuav tsum yog sab xis thiab tus lej pin 3 khawm yuav tsum tau muab tso rau sab laug.)

Thaum koj nias lub pob kom raug, lub tshuab yuav qhib, cia popsicle lo txhawm rau tsoo lub hnab tshuaj yej rau hauv koj lub hnab. Thaum koj lub sijhawm teem ua ntej (hauv txoj cai) tawm mus, LED yuav pib ci ntsa iab, tom qab ntawd koj nias lub khawm sab laug ib pliag kom rov pib dua lub tshuab.

Cias muab tus neeg hais lus tso rau hauv lub thawv yog tias koj ntxiv nws.

Kauj Ruam 8: Koj Ua Tiav: Tso Nws Nyob Qhov Twg Koj Xav Tau

Tsuas yog qhov xav tau ntawm lub tshuab no yog tias koj lub tshuab yuav tsum siab dua koj lub khob, yog li tso nws nyob qhov twg haum qhov xwm txheej ntawd.

Pom zoo: