Cov txheej txheem:

Tus Kws Qhia Tus dev: 5 Kauj Ruam
Tus Kws Qhia Tus dev: 5 Kauj Ruam

Video: Tus Kws Qhia Tus dev: 5 Kauj Ruam

Video: Tus Kws Qhia Tus dev: 5 Kauj Ruam
Video: ntshiabsi Hawj, kuv tus txiv yog khws kho mob 5/21/23 [ MV OFFICIAL] 2024, Kaum ib hlis
Anonim
Image
Image
Tau Cardboard Nrog Lub Thawv
Tau Cardboard Nrog Lub Thawv

Raws li AKC, (https://www.akc.org/expert-advice/nutrition/how-many-times-a-day-should-a-dog-eat/) cov zaub mov me me rau kev pub noj yog qhov tseem ceeb rau dev, thiab qhov loj me ntawm lub npov kuj tseem txwv tus naj npawb ntawm kev pub dev noj ib hnub, "Tus kws kho tsiaj pom zoo pub zaub mov rau tus dev tsawg kawg ob zaug hauv ib hnub," los ntawm kev teeb tsa zaub mov ntau npaum cas thiab tswj lub sijhawm lawv noj ib hnub, nws tau txais txiaj ntsig tus dev, thiab lub tshuab no yog yam koj yuav tsum muab rau koj tus dev! Koj tuaj yeem tswj lub sijhawm rau lub tshuab thaum twg koj xav tau!

Khoom siv

cev x8

kab x 1

ntawv ntawv x 1

cardboard x 1

Arduino Leonardo x 1

Pawg Mov ci x 1

tx x nyob ntawm koj

servomotor x 1

Kauj Ruam 1: Tau Cardboard Nrog Lub Thawv

Tau Cardboard Nrog Lub Thawv
Tau Cardboard Nrog Lub Thawv
Tau Cardboard Nrog Lub Thawv
Tau Cardboard Nrog Lub Thawv

Ua ntej tshaj, txiav ib daim duab los ntawv thiab lo rau ntawm lub thawv. Yog tias lub npog tsis ntev txaus, txiav ib daim ntawv ntxiv, thiab lo rau ntawm ntug ntawm lub npov (zoo li daim duab qhia).

Kauj ruam 2:

Duab
Duab
Duab
Duab

Txuas lub tshuab servo raws li daim duab qhia, txuas cov xaim rau d pin 10, thiab txuas cov xaim liab kom zoo, thiab xaim hauv qhov zoo txuas rau 5V, thiab xaim dub txuas rau GND.

(koj tuaj yeem hloov pauv qhov zoo rau qhov dawb ntawm servo motor, nyob ntawm seb qhov txiaj ntsig koj xav tau)

Kauj ruam 3:

test 2 Watch on
test 2 Watch on

Plug lub servomotor rau hauv daim ntawv los xij, thiab kho nws nrog daim kab xev ntawv (nco ntsoov tias lub cav servo tig, nws kov lub hau, yog li lub hau tuaj yeem nqa lub hau, yog li lub thawv tuaj yeem qhib tau zoo).

Txiav ib daim cardboard thiab muab tso rau hauv qab lub thawv uas haum rau tus neeg siv khoom, thiab lo rau ntawm lub npov.

Peb ntawm cov vis dis aus yog yuav ua li cas kuv tsim cov ntawv los ib sab ntawm lub thawv ntawv, txhawm rau ua kom tus neeg siv khoom tuaj yeem tig tau thiab ua rau lub tshuab muaj zog dua.

Kauj ruam 4: Code

#suav nrog

Kev pabcuam servo_pin_10; // tsim cov khoom siv servo los tswj lub servo

tsis muaj teeb tsa teeb tsa () {// muab koj cov cai teeb tsa ntawm no, kom khiav ib zaug: servo_pin_10.attach (10); // txuas cov servo ntawm tus pin rau cov khoom siv servo}

lub voj void () {// muab koj cov cai tseem ceeb ntawm no, kom rov ua dua: servo_pin_10.write (180); // servo motor yuav nce mus txog 180 degree (nyob rau hauv uas lub npog yuav raug tsa) ncua (300000); // tos 300000 milliseconds *hloov lub sijhawm nyob ntawm koj servo_pin_10.write (0); // servo motor yuav rov qab mus rau qib zer (nyob hauv lub thawv yuav luag kaw) ncua (1800000); // tos 1800000 milliseconds *hloov lub sijhawm nyob ntawm koj}

Txoj Cai nyob ntawm no

Pom zoo: