Simple Fish feeder for fishtank (Aquarium)

Published on April 28, 2026 at 10:07 PM

I had an idea to make an automatic feeder as I am working everyday I was always worried about my little babies. I have made this device very easily. I will update it as I have more and more ideas about this project but if you want to make such a device, follow the steps. what do you need?

1. Arduino pro micro Atmega32U4
2. Stepmotor 28BYJ-48
3. 3D printer!

First download and print the models from Cults3d/Thingiverse. You will have 4 parts at the end:
1. Base
2. Motor Gear
3. Food distributor Gear
4. Pin for holding the food distributor gear

Now you need to connect the pins from the stepmotor to corresponding ones on arduino. For this step connect the pins as :
Stepmotor Driver board                                                     Arduino Pins
IN1                                                                                          PIN 2
IN2                                                                                          PIN 3
IN3                                                                                          PIN 4
IN4                                                                                          PIN 5
VCC                                                                                         5V
GND                                                                                         GND

Now you need to upload the code to the arduino, for this purpose you need the Arduino IDE software to compile and upload the code, Download and install it. Then copy and paste the following code into Arduino IDE, connect the Arduino to the PC and for one second connect the RST+GND pins on the Arduino board to reset it and put it in listen mode. now upload the code:

#include <Stepper.h>

// 2048 is the standard step count for one full revolution of the 28BYJ-48
const int stepsPerRevolution = 2048;

// Initialize the library on pins 2 through 5
// Note the sequence 1-3-2-4 is often needed for this specific motor driver
Stepper myStepper(stepsPerRevolution, 2, 4, 3, 5);

void setup() {
// Set the speed (RPM)
myStepper.setSpeed(10);

delay(14500000);

myStepper.step(115);
}

void loop() {
// Leave empty so it only runs once after power-on
}

In this code I set it to turn each almost 4 hours to feed babies. you can change it by changing the value of delay(14500000) and keep it in mind that this value is in ms (mili seconds).
enjoy it!

Add comment

Comments

There are no comments yet.

Create Your Own Website With Webador