Це відео не доступне.
Перепрошуємо.
Automatic Fish Feeder Mechanism with Timer by using Arduino || Fish Feeder DIY
Вставка
- Опубліковано 27 сер 2019
- Automatic Fish Feeder Mechanism with Timer by using Arduino || Automatic Fish Feeder DIY
Scroll down for code.....
Please like & Subscribe for more videos
Real Time Clock (DS1302) library
www.rinkydinkel...
If you want to support my video please buy any product through my amazon affiliate link. I will receive a commission, at no extra cost to you.
LIST OF COMPONENT (affiliate links)
amzn.to/2fvSRJq (Arduino)
amzn.to/2weYm4R (servo motor)
amzn.to/2gRFSiv (RTC DS1302)
amzn.to/2vJ3lvo (Jumper wire)
Plastic bottle,
Cardboard,
Pen.
#include (DS1302.h) //instead of parenthesis () put angle bracket as UA-cam description does not allow angle bracket
#include (Servo.h)
Time t;
Servo myservo;
int Hour;
int Min;
int Sec;
// Init the DS1302
DS1302 rtc(2, 3, 4);
void setup()
{
myservo.attach(9);
myservo.write(45);
// Set the clock to run-mode, and disable the write protection
rtc.halt(false);
rtc.writeProtect(false);
Serial.begin(9200);
// The following lines can be commented out to use the values already stored in the DS1302
rtc.setDOW(SUNDAY); // Set Day-of-Week to SUNDAY
rtc.setTime(8, 59, 50); // Set the time to 12:00:00 (24hr format)
rtc.setDate(8, 25, 2019); // Set the date to August 25th, 2019
}
void loop()
{
t = rtc.getTime();
Hour = t.hour;
Min = t.min;
Sec = t.sec;
// Serial.print(Hour);
// Serial.print(":");
// Serial.print(Min);
// Serial.print(":");
// Serial.println(Sec);
//set the time for fish feeding
if ((Hour== 10 && Min== 0 && Sec== 2)||(Hour== 21 && Min== 0 && Sec== 2)) {
myservo.write(0);
delay (300);
myservo.write(45);
delay (300);}
}
With your project as inspiration i created a second version with a continious servo.
Thanks alot. Ill upload the project soon
Thank you we will try this for our thesis capstone
Thank you for this ideas bro!
Thanks a lot for the idea bro...
my friend says there are some issues with fish flake food and also issues with other fish stealing food from other fish in the tank. any suggestions?
maybe an air burst to scare the other fish away?
Hi there! This helps me a lot. Thank you 🤗
Good idea...may all ur hard work see success....all the best for ur channel...
Thank you so much Roshan for your kind comment.
why does it say that the library for the rtc is invalid
Nice project. Next get your Betta a proper tank
Its just for a video. I have 10 gallon tank for my Betta.
@@RoboticaDIY oh cool then I thought it might be just for the video but you never know.
thanks a lot bro! you are the best
Great work 👌
Good idea. Thanks
bro what is arduino??
very very cool
You said it wasn't reciprocating as many times as you thought. But the 2 seconds in your if statement is for the time it happens, not for how long, right? At 10:00:02 and 21:00:02 it turns the servo. You just need to repeat the servo code section a couple more times.
he says to change the seconds to change the no of receprocations but it is not the case
biger tank!
can we use ESP32?
Wtf so small tank and no filter
dear its only for the video.
thanks for speak english, nice video
Sir can i use ds3231 instead of ds1302
yes you can use.
What changes should be done when using RTC DS3231?
Only library will change. You will use the functions of DS3231 as it is.
@@abbddullah can u find code or make it for us please ?
@@rattakarnboonmasueb60 yes dear, please email me the detail you want for your project.
Thanks.
@@abbddullahcual es tu email? Me interesa ese también por favor
Saludos y excelente trabajo
After you set the timer
So you do not need to control it anymore right
yes, this is the main objective of this video.
can we use arduino nano
bro i cannot get more than two strokes why is that?
I have not made the circuit yet but the ok button to schedule time is not working
Please answer
i have question
can i use spyder to write down the code? or should i use some specific IDE apps to run it?
No, you have to use Arduino IDE, you can use alternative to arduino IDE, but i would recommend Arduino IDE, its easy and simple.
Hello sir sorry !!! Can you help me on how to set 10 times reciprocate
hi can we use RTC-DS1307 instead of DS1302???
yes you can use, but you have to use ds1307 library & do some changes in code accordingly.
How to power the uno board with ?
using its Power Cable
Hi, why my servo motor cannot function when the time is reach, I make sure the servo motor is no broken and all the code and wire is correct, why mine cannot fuction, Thank you
the code is not written correctly
Might be some issue with the code. you can share your code if you want to.
Are your code is writen right
its said that ds1302 no such file or directory in arduino ide
can you help me please?
The rtc time is just only copy or need to change to my upload time?
first set time
rtc.setDOW(FRIDAY);
rtc.setTime(8, 59, 50);
rtc.setDate(4, 17, 2020);
then upload the code.
comment out these lines and again upload the code. If you don't comment out these lines, everytime you plug the power, the time will start from where you have set. it will not show current time. To show current time whenever we power the board, we need to comment out these lines, as a result DS1302's mini battery will take care of current time.
//rtc.setDOW(FRIDAY); // Set Day-of-Week to SUNDAY
//rtc.setTime(8, 59, 50); // Set the time to 12:00:00 (24hr format)
//rtc.setDate(4, 17, 2020); // Set the date to August 25th, 2019
@@RoboticaDIY okay thank
it need after one day only can function?
@@RoboticaDIY it need after one day of upload coding only can function?
guys there's a wire connecting to each other, how did you know where to connect the wire?
please answer my question
Can i use DS3231???
yes dear you can
@@abbddullah sir tell me how to fix Time t; does not type name please.
@@xilly_s4428 dear, please email me your project details and error.
some error are found wt to do
use a different persons code
what errors are you facing? can you show here?
The code is filled with incorrect lines...
I have used only one display separately, but after a while the power motor in Arduino is turned off and so is the RTC module, but Arduino has power and the display does not count the time by showing the character, what is causing this problem ??
PLZ help me🙏🙏
the code doesn't work properly
There is a worm in there not safe
worms are betta's food bro
I try compile but error exist 1
can you please show the error here?
Please answer
Can you make it for me one set i will pay for you bro
Hello
man please take the fish out of the bowl and put it in a real tank
thats not a big anough tank
Its just for the video dear.
@@abbddullah can you send to me the correct codes
this is bs