Introduction: Automatic Fish Feeder With Light
As a student I wanted something to flourish up my room. A small fish tank seemed perfect. But since I'm always away for the weekend or even longer periods during summer holidays, I wouldn't be able to feed the fish, and they probably won't like that so much. So I had to come up with a solution. When I had some spare time, I started brainstorming about some way to automate the feeding and keep it as compact as possible.
On the Internet, there are many ways to make an automatic feeder, but all I found were messy solutions with mostly servo motors. These feeders are big and it's hard to set the right quantity of food.
I designed a screw that's 3d-printable in Inventor. With this screw (driven by a stepper) I "extrude" the food through a tube from the reservoir to the drop zone. I can set the feed duration in seconds, which gives me an exact same food quantity every single time.
IMPORTANT NOTE: I tried it with several types of food. Flakes tend to jam the screw. The fish granulate works best.
An RTC module keeps track of time and a stepper driver gets his commands from an on-board Arduino Nano. I also added two small led panels (white and blue), brightness can be set with two separate potentiometers. Here is how I made it.
Step 1: What Do You Need?
Arduino nano: Easy to upload code with a simple usb cable. Arduino pro mini would do just fine.
DC female plug: Required to plug in the 12v wall adapter.
Wall adapter: I use a 12V 2A which is more than enough.
DS1307: Keeps the time once set. Also has a 3V backup battery on board, so it's able to keep time even when power is not connected or there is a short power failure.
Potentiometer: Used as analog input on the arduino to set the brightness of the led panel.
Led panel: Works on 12V. Brightness is set through PWM from Arduino.
TIP122: NPN power transistor, needed to regulate the 12V for led brightness. (any power transistor would work, as long as specs are respected)
Stepper and stepper driver: Used to control the stepper. Stepper rotates the screw. The screw pushes food further down the tube.
Small piece of perfboard: Makes it easier to connect the components to arduino.
Step 2: Tools
Laser cutter: used to make the enclosure that fits above my fish tank. The wood I used is 2,5mm thick MDF.
Tube: outside diameter 16mm, inner diameter 13mm. I found these tubes very cheap at a local hardware shop.
3D printer access: Needed to print the screw.
Step 3: The MDF Enclosure
As mentioned above, I used 2.5 mm thick MDF. At school I had the opportunity to use a laser cutter, which was nice, quick and very precise.
It's probably not very useful to upload my files here, because it fits my fish tank. If you make this small automatic feeder, you will have to design the MDF enclosure according to your own fish tank dimensions.
(If you want them anyway, contact me)
Step 4: The Tube Construction
The tube where the screw comes in has to be 120mm long. This way it will fit the wooden enclosure correctly. As you can see on the previous pictures, the front and middle MDF plates are double. They hold the tube in place.
The small tube on the right holds is the food reservoir. This can be made longer, for it to hold more food. The tube on the left will hang above the water and will guide the food (pushed by the screw) to the hungry fish.
Step 5: The Screw
The screw is also designed in Inventor and 3D-printed later at the school's fablab. The screw fits right on the stepper motor axis. There is no reduction needed, and the printed plastic is strong enough to withstand the torque needed to push the food.
While the screw rotates, it will exert a force on the food. But the food will exert an equal and opposite force on the screw. So the screw will be pushed back direction stepper motor. This means the screw doesn't has to be glued or pressed on the axis. The food does this job for us and holds the screw on the stepper axis.
The STL file is added for those who want to print it. Be sure to adjust the scale x10.
Step 6: RTC Module: DS1307
Keeps time once set. Mine has to be reset every few months because the clock isn't that precise. I would recommend the DS3231 which is much more accurate.
The module communicates with Arduino via SDA (A4) and SCL (A5) lines. It also needs a 5V and GND line from the arduino.
The library to set up this module can be found here:
Step 7: The Code
I've had some help from a friend to get this small Chinese stepper going. I have added the code in the step. The comments are in dutch, but shouldn't be to hard to understand :-) or else, use Google Translate ;) .
Step 8: The Future
- Design a PCB;
- Led that indicates if the reservoir is nearly empty;
- Larger reservoir (mine is empty in about one week);
- Automate LEDs;
- Add 2-channel relay to switch between air pump and filter pump;
- Design a lid for the enclosure and add two turn knobs (potentiometers) to adjust LED brightness in the lid;
- Add bluetooth (HC-05) and display water temperature, water level, outside temperature and reservoir fill percentage on computer;
- Switch to turn the feeder off;
- Possibilities are endless!
Step 9: PCB Has Been Designed!!
I have designed a PCB for my fish feeder. It fits an arduino nano and some other components like resistors, a transistor and push button. All connections can be made much neater now!
- D0: TX
- D1: RX
- D2: not connected
- D3: via resistor 1K to base of transistor
- D4: relay1
- D5: LED for food monitoring
- D6: relay2
- D7: not connected
- D8: IN1
- D9: IN2
- D10: IN3
- D11: IN4
- D12: motor button_push to feed
- D13: not connected
- A0: Input potpin1
- A1: Input potpin2
- A2: not connected
- A3: status LED
- A4: SDA
- A5: SCL
- A6: status LED
- A7: not connected
If you want a PCB for your project, please contact me on email@example.com or via Instructable message. Price is 5 euro + shipping cost (guess about 2 euro).
We have a be nice policy.
Please be positive and constructive.