|
arduino IDEArduino
|
|
|
EagleAutodesk
|
Automatic Fish Feeder Using Arduino Nano
In this article I will make an automatic feeding device for fish in an aquarium. This tool uses arduino nano as the main controller to drive the servo in the feeding process. I will use this tool in an aquarium that I just bought a few days ago. I worry if I forget to feed the fish when I go out for activities. so I hope with this tool the fish can eat regularly.
Component and Material
- 1*Arduino Nano
- 1*RTC DS 3017
- 1*Step down DC to DC LM2596
- 1*470u/10V
- 1*DC Jack
- 3*Tacth Switch
- 1*Buzzer
- 1*5V Relay
- 4*3mm LED
- 1*2P T-Block
- 1*3P T-Block
- 1*Switch
- 1*Diode 4007
- 1*Diode 4148
- Male Header
- Female Header
- 2*C 22u
- 4*C 100n
- 2*T BC847
- 2*R 100R
- 2*R 1K
- 10*R 10K
- 1*R 220R
- 1*IC 1117 3v3
Module Schematic and Layout
above I have provided a schematic drawing and layout of this automatic fish feed PCB.
Insert Components Into PCB
insert the components one by one into the PCB according to the diagram on the schematic. To make the process easier, install the SMD components first. after that just install the THT components starting from the shortest. Finally, attach the Arduino, RTC and DC to DC modules to the PCB.
Modif Servo
servo motor needs to be modified so that it can rotate more than 360 degrees.
Here's how to modify it:
- Set the servo motor to the 90 degree position.
- Disassemble the servo
- then cut the servo motor position sensor axle
- reassemble the servo motor case
Modification result:
- If the servo is set < 90 degrees, the servo will rotate to the right.
- If the servo is set = 90 degrees, the servo will be silent because the position sensor is always at 90 degrees.
- If the servo is set >90 degrees, the servo will rotate to the left.
- When turning right or left, servo rotation can be more than 360 degrees
Attach the Servo Motor to the Fish Feed Mechanic
This fish feed mechanic was made by Susilo Harjo. You can download the 3D file here: https://www.thingiverse.com/thing:2921447
Fish feed mechanics consist of two parts. Part of the feed container and gear for removing feed.
Here's how to install it:
- Attach the servo to the housing through the hole in the front of the housing
- Attach the gear to the servo using glue
- because the feed outlet hole is too big, I partially closed the hole
Programming
There are two stages of programming that must be done:
- Set the RTC time according to the current time
- Programming Arduino with automatic fish feed program
Programm the RTC time according to the current time:
- see the function in the setup section, in this section you can set the time on the rtc starting from the day, date, and time:
rtc.setDOW(THURSDAY); // Set Day-of-Week to .. rtc.setTime(19, 59, 00); // Set the time to .. rtc.setDate(4, 14, 2022); // Set the date to ..
- Upload program to Arduino
- check the serial monitor to make sure the time has been set successfully
Programming Arduino with automatic fish feed program:
- Still using the same program, but the function to set the time is made a comment so that it is not read by the program.
//rtc.setDOW(THURSDAY); // Set Day-of-Week to .. //rtc.setTime(19, 59, 00); // Set the time to .. //rtc.setDate(4, 14, 2022); // Set the date to ..
- Set the feeding time by changing the following variables:
//morning feed time int JamPakanPagi = 6; int MenitPakanPagi = 0; int DetikPakanPagi = 0; //afternoon feed time<br> int JamPakanSiang = 12; int MenitPakanSiang = 0; int DetikPakanSiang = 0; //evening feeding time int JamPakanSore = 19; int MenitPakanSore = 0; int DetikPakanSore = 0;
- Adjust the amount of feed given. Amount of fish feed given = servo ignition time
void Beri_pakan() { buzz(); delay(500); buzz(); delay(700); buzz(); myservo.write(80); //delay to adjust the amount of feed given delay(400); myservo.write(90); buzz(); delay(500); buzz(); }
- Upload program to arduinio
Assembly
After all the materials are ready, it is time for the assembly process. Here's the assembly process:
- Attach the fish feed mechanic to the edge of the aquarium, I used a wedge so that it can be firmly attached
- Fill fish feed as needed
- Connect the servo motor to the Arduino module in the following order: Brown = ground, red = 5V, Yellow = data (see picture)
- connect arduino with power supply
with this automatic fish feed is complete.
Results
Automatic Fish Feeder Using Arduino Nano
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(1)
- Likes(0)
- 1 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
-
8design
-
6usability
-
7creativity
-
6content
More by Mr. Sottong
- Pop Noise Remover For TPA116D2 Amplifier So on my YouTube channel, I reviewed the TPA3116d2 V1 amplifier. I think the amplifier has a pretty ...
- Pocket RGB Light | Arduino & WS2812B In this article "How to Controls WS2812B Using ESP-01 Arduino (ESP8266)". I made a custom module for...
- DC Power Meter / Logger Using ESP8266 In this article I will make a DC power meter / logger using the ESP8266. This tool can be used to me...
- Automatic Fish Feeder Using Arduino Nano In this article I will make an automatic feeding device for fish in an aquarium. This tool uses ardu...
- Bluetooth Audio Receiver + Pop Noise Remover for Amplifier TPA3116D2 2.1 In this article I will make a special audio receiver bluetooth module for the TPA3116d2 2.1 Amplifie...
- RGB LED Light for Mini Photo Studio RGB LED Light for Mini Photo Studio This project is about RGB LED Light which is used for Mini Photo...
-
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
111 0 0 -
DIY Laser Power Meter with Arduino
162 0 2 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
155 0 2 -
-
A DIY Soldering Station Perfect for Learning (Floppy Soldering Station 3.0)
555 0 2