Cov txheej txheem:

Arduino Uno Fish Feeder hauv 6 Cov Nqis Yooj Yim thiab Yooj Yim!: 6 Cov Kauj Ruam
Arduino Uno Fish Feeder hauv 6 Cov Nqis Yooj Yim thiab Yooj Yim!: 6 Cov Kauj Ruam

Video: Arduino Uno Fish Feeder hauv 6 Cov Nqis Yooj Yim thiab Yooj Yim!: 6 Cov Kauj Ruam

Video: Arduino Uno Fish Feeder hauv 6 Cov Nqis Yooj Yim thiab Yooj Yim!: 6 Cov Kauj Ruam
Video: Automatic Fish Feeder Mechanism with Timer by using Arduino || Fish Feeder DIY 2024, Kaum ib hlis
Anonim
Arduino Uno Fish Feeder hauv 6 Cov Nqis Yooj Yim thiab Yooj Yim!
Arduino Uno Fish Feeder hauv 6 Cov Nqis Yooj Yim thiab Yooj Yim!

Yog li me ntsis keeb kwm yav dhau yuav xav tau rau txoj haujlwm no. Cov neeg nrog ntses ntses tej zaum tau nthuav tawm cov teeb meem tib yam li kuv: so haujlwm thiab tsis nco qab. Kuv tsis nco qab tas li pub kuv cov ntses thiab ib txwm scrambled kom ua li ntawd ua ntej nws mus pw. Cov hnub so yog qhov teeb meem sib txawv, yuav tsum tau yuav cov "feeder" pyramids uas tsis tau ua tiav tiag tiag ua haujlwm. Yog li qhov no yog qhov uas kuv pib xav txog qhov kuv tuaj yeem ua tau, thiab kuv paub tias kuv tuaj yeem ua tus pub ntses tsis siv neeg!

THOV THOV THOV NCO NTSOOV pov npav rau qhov no hauv Arduino Contest, Kuv xav tias nws muaj peev xwm los yeej yam tsawg me me nqi zog

Qhov nyuaj: 2/5

Nqi: 1/5

Khoom siv

Arduino Uno / Generic version

Servo motor (Micro Servo SG90 9g yuav tsum ua haujlwm zoo kawg nkaus)

-Thiab ob sab dav dav servo caj npab uas los nrog nws

Lub hwj chim cable (dc lossis usb)

Jumper xov hlau (txiv neej rau txiv neej)

Mus ncig me me/tsev so tsuaj zawv plaub hau lub raj mis

Lub thawv yas

Ntses ntses (txhua yam ua haujlwm, cov pellets ua haujlwm zoo dua rau kuv)

Fais laum

Kub kua nplaum phom

Kauj Ruam 1: Vaj Tsev

Vaj tse
Vaj tse
Vaj tse
Vaj tse

Kaw lub hau rau ntawm lub ntim thiab laum lub qhov loj kom txaus (nyob hauv nruab nrab ntawm lub hau) rau cov xov hlau kom haum los ntawm nws. Thaum kawg, txiav me me nrov plig plawg ntawm ib sab ntawm lub ntim loj txaus kom haum koj lub zog txuas.

Kauj Ruam 2: Ntses Zaub Mov

Ntses Khoom Noj
Ntses Khoom Noj
Ntses Khoom Noj
Ntses Khoom Noj

Laum ib lub qhov los ntawm SEALED lub raj mis tsuaj zawv plaub hau kom nws muaj ob lub qhov nyob ntawm ob sab uas sib luag ua ke ib yam li cov duab saum toj no. Muab cov zaub mov ntses tso rau li ntawm 1/4 ntawm txoj kev mus rau 1/3. Tom qab ntawd, tau txais koj cov kua nplaum kub thiab lo lub hauv paus ntawm lub raj mis mus rau sab caj npab servo.

Kauj Ruam 3: Txoj Cai

Nov nws yog nrog qee cov lus piav qhia: tsuas yog ceeb toom tias nws tig rau sab xis thaum koj ntsaws nws thiab txhua 24 teev nws tshwm sim. Lub sijhawm koj ntsaws nws yog lub sijhawm nws yuav khiav mus txog thaum koj ntsaws nws.

#suav nrog;

Servo tswj; // tsim servo ua yam khoom

int pos = 0; // integer kuj sib txawv los khaws Servo txoj haujlwm

FISHFEEDER ntev = 86400000; // Teem sijhawm rau txhua 24 teev (86400000 milliseconds)

ntev kawg; // Cov kev hloov pauv ntev tsim 32 khoom khaws cia, uas yog ncua sijhawm ntxiv

ntev tam sim no; // Tib yam ntawm no raws li saud

void tig () {

rau (pos = 0; pos <180; pos += 1) // Cov cai hauv qab no yuav ua rau Servo tig, pub ntses.

{

myservo.write (pos);

ncua (15);

}

rau (pos = 180; pos> = 1; pos- = 1)

{

myservo.write (pos);

ncua (15);

}

}

tsis muaj teeb tsa teeb tsa () // Teeb tsa teeb tsa ua rau cov cai khiav ib zaug thiab tsuas yog ib zaug

{

myservo.attach (9); // Qhov no yuav qhia rau Arduino tias Servo nyob ntawm tus pin 9

myservo.write (0); // Sau xa cov ntaub ntawv binary mus rau qhov chaw nres nkoj txuas.

// Hauv qhov no, 0 txhais tau tias nws yuav tsum xa cov ntaub ntawv mus rau tus lej pin 0. (RX)

ncua (15); // Qhov no qeeb 15 milliseconds ua ntej lub voj hauv qab pib ua haujlwm.

tig (); // Ua haujlwm peb txoj haujlwm uas tig lub servo

}

void loop () {// Qhov no yuav ua haujlwm ntawm Arduino ntau dhau yog tias nws muaj hwj chim.

tam sim no = millis (); // Tam sim no yog lub sijhawm tam sim no hauv milliseconds

sijhawm kawg = tam sim no + FISHFEEDER;

thaum (tam sim no <sijhawm kawg) {

myservo.write (0);

ncua (20000);

tam sim no = millis ();

}

tig ();

}

Kauj Ruam 4: Teeb Kho Vajtse

Teeb Kho Vajtse
Teeb Kho Vajtse
Teeb Kho Vajtse
Teeb Kho Vajtse

Muab koj cov arduino tso rau hauv lub thawv yas thiab tso lub hwj chim cable hla lub nrov plig plawg thiab txuas nws. Txoj hlua yog yooj yim zoo nkauj, raws li qhia hauv daim duab saum toj no. Tsuas yog txuas qhov zoo rau 5v, hauv av rau hauv av, thiab cov ntaub ntawv txuas rau tus pin 9, raws li qhia hauv Tinkercad Circuits daim duab saum toj no. * wink** wink* YUAV TSUM NYEEM NTAWV FEED WIRES los ntawm lub qhov rooj ntawm lub TOP Ntawm Cov Thawv Los Ntawm ARDUINO mus rau SERVO.

Kauj Ruam 5: Ntsaws rau Tank/thoob dej yug ntses

Mounting rau Tank/thoob dej yug ntses
Mounting rau Tank/thoob dej yug ntses

Muab cov yas yas tso nrog cov arduino ntawm ib sab ntawm lub tank ntses, thiab muab koj cov servo ntawm daim di ncauj rau saum ntug ntawm lub tank. Tom qab ntawd, koj tuaj yeem txuas nws siv daim kab xev kom koj tuaj yeem tshem nws tom qab. Tsuas yog nco ntsoov sim yog tias nws yog qhov nruj uas tuaj yeem tuav tau. Thaum kawg, tau txais koj txhais tes servo txuas rau lub raj mis thiab teeb nws mus rau servo kom lub qhov nyob ntawm ob sab es tsis nyob saum/hauv qab. Nws yuav tsum yuav luag raws li nws zoo li hauv daim duab.

Kauj Ruam 6: Zoo Siab

Tam sim no koj ua tiav! Kev pub koj cov ntses yuav yog cua, tsuas yog yuav tsum tau ntim cov ntim tau yooj yim dua txhua zaus. Yog tias koj mus so ntev, koj tuaj yeem sau nws ntxiv me ntsis kom ntseeg tau tias koj cov ntses tau txais txhua yam zaub mov uas nws xav tau. Vim tias qhov kev pabcuam raug kaw, ntxuav lub tank yuav tsis muaj teeb meem li koj tuaj yeem tshem daim kab xev yooj yim heev thiab rov ua dua. Kuv vam tias qhov nrawm, pheej yig, thiab txoj haujlwm yooj yim arduino pab koj!

Ib zaug ntxiv, thov pov npav rau kuv ntawm Arduino Contest! Kuv ntseeg tias txoj haujlwm no tsim nyog tsawg kawg yog khoom plig me me!

Pom zoo: