You are on page 1of 11

This project is great for students who leave ealy and may not have time

to feed fish in the morning

arduino project, that uses just two electronic parts. The arduino sketch
is set up to feed the fish every 12 hours, but you can change it to
whatever number you like. After building, all you need to do, is to clip
!your device onto your aquarium and forget about it

https://youtu.be/R6wbNkvBbZk

Step 1:
SUPPLIES

1. Arduino *
2. Servo (any kind) *
3. Binder Clips *
4. An empty shampoo bottle *
5. Fish Food *
6. Jumper Wires *

7. Empty food takeout container (Clean or unused) *


TOOLS

1. Drill *
2. Hot Glue Gun *
3. Computer (to code) *

Step 2: Shampoo Bottle

Using a empty shampoo bottle and your drill, drill a small hole on both
sides of the shampoo bottle.

This is where the food will fall out, so you should test if food falls out by
filling it up, and rotating it while holding it horizontally
DONT DRILL TOO BIG OF A HOLE!

Your fish will end up fat!

Drill a hole small enough so only 1-5 pellets fall out, depending on the
size or number of fish you have
!Step 3: Wiring and Programing
Wire the ardunio according to the above picture.

Using jumper wires, follow this pattern

Connect Yellow or data to PIN 9

Connect Black to GND


Connect Red to +5V

Next use the code I have provided to upload to your arduino

// CONSTRUCTED'S Fish Feeder

// https://www.instructables.com/member/Constructed/

// Donate for more projects!

#include

Servo myservo; // create servo object to control a servo


// a maximum of eight servo objects can be created

int pos = 0; // variable to store the servo position

long FISHFEEDER = 43200000; // 12 hours between feeding

long endtime;

long now;

void setup()

myservo.attach(9); // attaches the servo on pin 9 to the servo object

myservo.write(0);

delay(15);

void loop()

now = millis();

endtime = now + FISHFEEDER;

while(now < endtime) {

myservo.write(0);

delay(20000);

now = millis();

}
for(pos = 0; pos < 180; pos += 1) // goes from 0 degrees to 180 degrees

{ // in steps of 1 degree

myservo.write(pos); // tell servo to go to position in variable 'pos'

delay(15); // waits 15ms for the servo to reach the position

for(pos = 180; pos>=1; pos-=1) // goes from 180 degrees to 0 degrees

myservo.write(pos); // tell servo to go to position in variable 'pos'

delay(15); // waits 15ms for the servo to reach the position

Step 4: Prepare Case

First Cut a square just big enough to squish your servo through, It
should be very tight!

next get your hot glue gun and glue both the binder clips to the back of
your case.

Try to line them up as best as you can, They will clip to the back of your
aquarium

Next take some hot glue and glue a servo horn to the bottom of your
shampoo bottle. Put the servo horn back onto the servo and go to the
next step
!Step 5: Your Done

Simply fit all the electronics into the case, and wedge the servo in last.
.!Now clip your automatic fish feeder to any aquarium and your done

You might also like