Cov txheej txheem:

Hlawv Cov Khaub Ncaws Zoo Nkauj: 8 Kauj Ruam
Hlawv Cov Khaub Ncaws Zoo Nkauj: 8 Kauj Ruam

Video: Hlawv Cov Khaub Ncaws Zoo Nkauj: 8 Kauj Ruam

Video: Hlawv Cov Khaub Ncaws Zoo Nkauj: 8 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim
Hlawv Zoo Nkauj Nplaum Lo
Hlawv Zoo Nkauj Nplaum Lo

nyob zoo!, Lub sijhawm no kuv yuav qhia qhia kev hlawv cov kua nplaum zoo nkauj uas siv arduino, kua nplaum, duab los qhia, kab xev, thiab cov yeeb nkab acrylic.

Kauj Ruam 1: 1. Paub Paub Arduino

Koj yuav xav tsis thoob, Arduino yog dab tsi? Arduino yog lub tshuab hluav taws xob raws li qhib qhov chaw uas tso cai rau cov neeg siv hloov pauv txoj cai programming.

Kauj Ruam 2: 2. Qhov Koj Xav Tau

Hauv lub rooj sib tham no, peb xav tau:

1 x Arduino

1x LED (pom zoo kom siv LEDs liab)

1 x a to b USB

1 x kua kua nplaum (pom zoo kom siv kua nplaum nrog hom "UHU")

1 x acrylic tub

Rau daim thooj ntawv:

2x thawv loj 6 x 5 cm

2x thawv loj 2x6 cm

1x thawv loj ntawm 5x2 cm

Kauj Ruam 3: 3. Ua Tus Case

lo tag nrho cov thawv uas koj muaj kom txog thaum nws dhau los ua ib lub thawv nrog ib kawg qhib.

Kauj ruam 4: 4.scematic

4.scematic
4.scematic

teeb tsa cov khoom siv hluav taws xob (arduino thiab coj) zoo li daim duab muab (cov nyom coj yog anode).

Kauj Ruam 5: 5.code (siv Arduino IDE)

5.code (siv Arduino IDE)
5.code (siv Arduino IDE)

Upload cov cai rau Arduino raws li hauv qab no:

const int PIN_LED = 5; // PWM pin

void teeb tsa () {

tus pinMode (PIN_LED, OUTPUT); }

void voj () {

int tus nqi Random = random (176);

analogWrite (PIN_LED, 60+ Cov txiaj ntsig Random);

ncua (200);

}

Kauj Ruam 6: 6.make Pipe Rod

tshooj yeeb nkab no yog ib yam tseem ceeb, ua raws cov lus qhia hauv qab no!

1. Kaw cov yeeb nkab uas siv kua nplaum (zoo li daim duab thaum pib)

2. lo cov coj hauv qab ntawm cov yeeb nkab

Kauj Ruam 7: 7. Tidying Circuit

ua ib lub qhov rau hauv daim duab los qhia (qhov loj me ntawm cov yeeb nkab qhov) tom qab ntawd muab qhov kawg ntawm cov yeeb nkab uas muaj coj thiab lo rau. Kuj ntxig rau arduino rau hauv lub thawv ntawv thawv.

Kauj Ruam 8: 8. Ua tiav

Txuas lub USB cable rau hauv Arduino USB qhov thiab ntsaws lwm sab rau hauv USB lub computer qhov.

Pom zoo: