The "all in One Box" Aquarium Feeder

by Brian from Belgium in Circuits > Arduino

50211 Views, 236 Favorites, 0 Comments

The "all in One Box" Aquarium Feeder

DSC_0994.jpg
diy fish feeder
diy aquarium feeder

Hi i am Brian

For several years now i owning a large 400 liter aquarium.i was always fasinated by fish in all colors and shapes.keeping fish happy wil require a bit effort.like keeping the thank nice and clean.trimming the plants.the once in a week water change. ect...

also fish like to eat :)

But i have a pretty bussy life.Sometimes i am away for the entire week.Water changes can wait.And the plants can survive a skipped trim job.But fishes do need food once a day.And there is no one to do that in the house so i purchased a automatic fish feeder.

But there are drawbacks to the feeder i bought

  • 1.it runs on battery power and will not last a week
  • 2.it wil drop the amount of food that is required all in one big pile (creating lots off pollution in the tank)
  • 3.the capacity of the feeder is to smal for a week supply of food.
  • 4.it cost over 50 euro!!

so i brainstormed a design with these specifications:

  • big storage capacity,
  • not battery powered ,
  • give the food slowly instead of all in one go.
  • reliability
  • non open top (to keep the food fresh longer)
  • relatively cheap
  • adaptable to different types of food (flakes,pallets)
  • have control over the amount of food per feed cycle
  • can be made wit parts everyone can easely find

So here is my version on the automatic fish feeder:)

Things You Will Need

DSC_0873.jpg
DSC_0874.jpg
DSC_0875.jpg
DSC_0879.jpg
DSC_0878.jpg
DSC_0877.jpg
DSC_0880.jpg
DSC_0882.jpg
DSC_0883.jpg

the images show you what you need.

  • you will also need (but is not shown in picture
  • soldering iron
  • shrink tubes
  • lighter
  • 5 volt power supply
  • usb cable (to program you're arduino)


info on the foamed pvc sheet

This is a material that is very easy to cut whit the stanly knife.i found it at the local hardware store.its 6 mm thick and is 50 cm on 100cm in dimension.if you can't find this you can also use 6mm thick plywood.however you need to apply a layer of varnish to protect it against water

info on the motor

the 28byj-48 stepper motor is used because it have build in gearbox and have (relatively to its size) a high torque
it is found on ebay (or other site's) for around 3 euro's. most of the time the ULN2003 Driver Board is included when you're buying it.

info on the arduino

basically you can use any 5 volt arduino,i used a nano because otherwise it will not fit inside the box

Making the Motor Coupling

DSC_0891.jpg
DSC_0890.jpg
DSC_0889.jpg
DSC_0888.jpg
DSC_0893.jpg
DSC_0894.jpg

Take you're silicone cap and cut off a small piece on the narrowest side

press the cap onto the motor axis

make sure it is a snug fit

its better to cut of a small amount of plastic at a time and check if the axis will fit

then put the dribit into the other side of the cap

Preparing the Box

DSC_0901.jpg
DSC_0897.jpg
DSC_0898.jpg

glue the plastic sheets off 5x7 cm together

take you're sheets of 7x7 cm and place them in a V shaped way inside the box

NOTE THAT THE LENGHT OF THIS SHEETS DEPENDS ON YOUR DRILLS LENGHT

(SEE PICTURE FOR DETAIL)

then glue the plastic sheets to the box as shown into the picture

How to Glue the Peaces in Place

DSC_0904.jpg
DSC_0905.jpg
DSC_0910.jpg
DSC_0906.jpg
DSC_0907.jpg
DSC_0911.jpg
DSC_0915.jpg

this step shows you ho to glue the plastic sheets into the box

this is (i think) pretty self explaining

make sure you seal all the seems with glue




if i only had a 3d printer this would make this much more professional looking :)

Inserting the Drill

DSC_0916.jpg
DSC_0917.jpg
DSC_0918.jpg
DSC_0920.jpg
DSC_0921.jpg

drill a hole just above V shape with the drill bit that will be embedded into the box

also go trough the two plastic sheets KEEPING THE DRILBIT STRAIGHT

after the drill is in place make sure you can spin in free whit your hands

if not make the holes a tiny bit bigger

Assemble the Drill Bit Assembly

DSC_0925.jpg
DSC_0927.jpg
DSC_0928.jpg
DSC_0926.jpg
DSC_0931.jpg
DSC_0929.jpg
DSC_0930.jpg

put on you're gloves and start to knead the glue stick (i used a halve portion)

drop a little ball into the large end of the cap and put the drill inside

press firmly

next put the rest of the glue around the drill and the cap

keep the drill and the cap perfectly aligned

cut of the glue while it is still soft to make a flat edge

Attaching the Motor to the Box

DSC_0923.jpg
DSC_0933.jpg
DSC_0934.jpg
DSC_0932.jpg
DSC_0933.jpg

make a large hole into the backside of the box.

make sure the cap can fit trough the hole you just made

putt the drill bit assembly trough the holes

press the motor axis onto the drillasembly

drill two holes for the motor bolts

fasten in with the m4 nuts and bolts

The Motor Driver

DSC_0955.jpg
DSC_0956.jpg
DSC_0960.jpg
DSC_0961.jpg
DSC_0957.jpg
DSC_0959.jpg
DSC_0958.jpg
DSC_0962.jpg
DSC_0963.jpg

now it is time to wire the arduino

on the driver board you will find 4 pins called

  • in1---> connect to digital pin d2 on you're arduino
  • in2---> connect to digital pin d3 on you're arduino
  • in3---> connect to digital pin d4 on you're arduino
  • in4---> connect to digital pin d5 on you're arduino

you will also find 4 other pins called

  • - solder a black wire to this pin
  • + solder a red wire to this pin
  • blank -->connect to other blank pin
  • blank -->connect to other blank pin

the blank pins are the ones right oft the + and - pin

there was a jumper over these pins but i lost mine.so i soldered them together

More Wires

DSC_0972.jpg
DSC_0975.jpg
DSC_0971.jpg
DSC_0970.jpg
DSC_0966.jpg
DSC_0974.jpg

plug the motor into you're shield an presto!! you're motor driver is now finished

now take another (new piece) red and black wire (not the one coming from the motor driver)

  • red--->solder to 5v pin on you're arduino
  • black-->solder to gnd (ground) pin on you're arduino

now take the red wire from you're arduino and the red wire from the motor driver and twist them together

do the same with the black wire

the brains are done now

Install the Software

now plug in you're arduino

install the accelstepper library found here

more info to drive the motor found here

http://42bots.com/tutorials/28byj-48-stepper-motor...


this code is used to test the feeder

#include

#define HALFSTEP 8

// Motor pin definitions

#define motorPin1 3 // IN1 on the ULN2003 driver 1

#define motorPin2 4 // IN2 on the ULN2003 driver 1

#define motorPin3 5 // IN3 on the ULN2003 driver 1

#define motorPin4 6 // IN4 on the ULN2003 driver 1

// Initialize with pin sequence IN1-IN3-IN2-IN4 for using the AccelStepper with 28BYJ-48 AccelStepper stepper1(HALFSTEP, motorPin1, motorPin3, motorPin2, motorPin4);

void setup() {

stepper1.setMaxSpeed(1200.0); //1200 is maximum speed otherwise the motor will stall stepper1.setAcceleration(200.0); //this i find the best acceleration speed stepper1.setSpeed(200); stepper1.moveTo(100000);//the more step the longer the drill spins

//if the drill spins in the wrong way add a -

//example: stepper1.moveTo(-100000);

}//--(end setup )---

void loop() {

stepper1.run(); }

The Last Step

DSC_0945.jpg
DSC_0947.jpg
DSC_0976.jpg
DSC_0977.jpg
DSC_0980.jpg
DSC_0978.jpg
DSC_0981.jpg

Make a "bridge" over the axis of the motor using leftovers of the foamed pvc sheet

now you have 2 places left and right of your axis.

  • in one place you putt the motor driver
  • in the other you place the arduino

glue a cover onto everything to shield the wires

make sure the red and black wire is sticking out off the box

DONNE

every time you putt 5 volt on the wires the arduino will start speeding up the motor an deliver food to your beloved

fishes

play around with the settings inside the program to fit your needs .small or large foods,pellets flakes it will all take different settings

The Result

diy aquarium feeder
DSC_0984.jpg

Adding a timer to the project will add the functionality to automaticly feed your fish in 30 minutes intervals

the arduino program will run once every time the power is put on

watch the video's to see it all in action

thank you

and sorry for my bad english :)