Automatic Fish Feeder Mechanism with Timer by using Arduino || Fish Feeder DIY

Sdílet
Vložit
  • čas přidán 25. 08. 2024
  • 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 CZcams 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);}
    }

Komentáře • 80

  • @TheStonedweedsmoker
    @TheStonedweedsmoker Před 3 lety +1

    With your project as inspiration i created a second version with a continious servo.
    Thanks alot. Ill upload the project soon

  • @dadavillorente694
    @dadavillorente694 Před 4 lety +4

    Thank you we will try this for our thesis capstone

  • @OHMSdev
    @OHMSdev Před 3 lety +2

    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?

  • @nicotulali288
    @nicotulali288 Před 4 lety +5

    Thank you for this ideas bro!

  • @akbartaufiqurrahman6148
    @akbartaufiqurrahman6148 Před 4 lety +5

    Thanks a lot for the idea bro...

  • @MrRoehre
    @MrRoehre Před 4 lety +4

    Nice project. Next get your Betta a proper tank

    • @RoboticaDIY
      @RoboticaDIY  Před 4 lety +4

      Its just for a video. I have 10 gallon tank for my Betta.

    • @MrRoehre
      @MrRoehre Před 4 lety +1

      @@RoboticaDIY oh cool then I thought it might be just for the video but you never know.

  • @dannielkentlacanaria5641
    @dannielkentlacanaria5641 Před 9 měsíci +1

    why does it say that the library for the rtc is invalid

  • @therealtrevor
    @therealtrevor Před 2 lety

    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.

    • @faaiquealimehmood
      @faaiquealimehmood Před 2 lety

      he says to change the seconds to change the no of receprocations but it is not the case

  • @aidazulaikhamy5997
    @aidazulaikhamy5997 Před 3 lety

    Hi there! This helps me a lot. Thank you 🤗

  • @roshands1604
    @roshands1604 Před 4 lety +2

    Good idea...may all ur hard work see success....all the best for ur channel...

    • @RoboticaDIY
      @RoboticaDIY  Před 4 lety +1

      Thank you so much Roshan for your kind comment.

  • @medhavanaikoo2027
    @medhavanaikoo2027 Před 3 lety

    thanks a lot bro! you are the best

  • @AGaureshParhad
    @AGaureshParhad Před 3 lety +1

    bro what is arduino??

  • @technomad9071
    @technomad9071 Před 6 měsíci

    biger tank!

  • @pradheesh16s87
    @pradheesh16s87 Před 3 lety

    Great work 👌

  • @jenntek.101
    @jenntek.101 Před rokem

    very very cool

  • @sudhantiwarigamingandvlogi5319

    Wtf so small tank and no filter

    • @abbddullah
      @abbddullah Před 2 lety +1

      dear its only for the video.

  • @junaldabasolo1067
    @junaldabasolo1067 Před rokem

    can we use ESP32?

  • @yebreorton1939
    @yebreorton1939 Před 2 lety

    thanks for speak english, nice video

  • @faaiquealimehmood
    @faaiquealimehmood Před 2 lety

    bro i cannot get more than two strokes why is that?

  • @aksharaammu109
    @aksharaammu109 Před 4 lety +1

    Sir can i use ds3231 instead of ds1302

  • @vaibhavsinha3199
    @vaibhavsinha3199 Před rokem

    I have not made the circuit yet but the ok button to schedule time is not working

  • @arifaiman9036
    @arifaiman9036 Před 4 lety

    After you set the timer
    So you do not need to control it anymore right

    • @abbddullah
      @abbddullah Před 2 lety

      yes, this is the main objective of this video.

  • @_Debjeet_
    @_Debjeet_ Před 2 lety

    can we use arduino nano

  • @jayateerthupadhye4302
    @jayateerthupadhye4302 Před 3 lety +1

    What changes should be done when using RTC DS3231?

    • @abbddullah
      @abbddullah Před 2 lety +1

      Only library will change. You will use the functions of DS3231 as it is.

    • @rattakarnboonmasueb60
      @rattakarnboonmasueb60 Před 2 lety

      @@abbddullah can u find code or make it for us please ?

    • @abbddullah
      @abbddullah Před 2 lety +1

      @@rattakarnboonmasueb60 yes dear, please email me the detail you want for your project.
      Thanks.

    • @erikgonzalezmichel
      @erikgonzalezmichel Před 8 měsíci +1

      ​@@abbddullahcual es tu email? Me interesa ese también por favor
      Saludos y excelente trabajo

  • @hilman574
    @hilman574 Před 2 lety

    Hello sir sorry !!! Can you help me on how to set 10 times reciprocate

  • @adamjohan3905
    @adamjohan3905 Před 4 lety

    i have question

  • @faisalm2088
    @faisalm2088 Před 4 lety +1

    Good idea. Thanks

  • @naufaldian6029
    @naufaldian6029 Před 4 lety

    can i use spyder to write down the code? or should i use some specific IDE apps to run it?

    • @RoboticaDIY
      @RoboticaDIY  Před 4 lety

      No, you have to use Arduino IDE, you can use alternative to arduino IDE, but i would recommend Arduino IDE, its easy and simple.

  • @henryong1264
    @henryong1264 Před 4 lety +1

    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

    • @Toby-tp4sd
      @Toby-tp4sd Před 4 lety

      the code is not written correctly

    • @abbddullah
      @abbddullah Před 2 lety

      Might be some issue with the code. you can share your code if you want to.

  • @syedansarmohamedkalik7623

    Are your code is writen right

  • @humzamunawar7527
    @humzamunawar7527 Před 4 lety

    hi can we use RTC-DS1307 instead of DS1302???

    • @RoboticaDIY
      @RoboticaDIY  Před 4 lety +1

      yes you can use, but you have to use ds1307 library & do some changes in code accordingly.

  • @hilman574
    @hilman574 Před 2 lety

    its said that ds1302 no such file or directory in arduino ide

  • @gamingtechgiant9902
    @gamingtechgiant9902 Před 3 lety

    How to power the uno board with ?

  • @gebanarojanc.3373
    @gebanarojanc.3373 Před 2 lety

    guys there's a wire connecting to each other, how did you know where to connect the wire?

  • @Toby-tp4sd
    @Toby-tp4sd Před 4 lety

    The code is filled with incorrect lines...

  • @tiagokotryk2139
    @tiagokotryk2139 Před 4 lety

    the code doesn't work properly

  • @henryong1264
    @henryong1264 Před 4 lety

    The rtc time is just only copy or need to change to my upload time?

    • @RoboticaDIY
      @RoboticaDIY  Před 4 lety +1

      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

    • @henryong1264
      @henryong1264 Před 4 lety

      @@RoboticaDIY okay thank

    • @henryong1264
      @henryong1264 Před 4 lety

      it need after one day only can function?

    • @henryong1264
      @henryong1264 Před 4 lety

      @@RoboticaDIY it need after one day of upload coding only can function?

  • @dipdas5192
    @dipdas5192 Před 3 lety

    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🙏🙏

  • @ADayToLife
    @ADayToLife Před 3 lety

    Can you make it for me one set i will pay for you bro

  • @Cozyyy2
    @Cozyyy2 Před 3 lety

    I try compile but error exist 1

    • @abbddullah
      @abbddullah Před 2 lety

      can you please show the error here?

  • @arifaiman9036
    @arifaiman9036 Před 4 lety

    Please answer

  • @ajaquatics
    @ajaquatics Před 4 lety +1

    There is a worm in there not safe

  • @nandakumar5842
    @nandakumar5842 Před 4 lety

    some error are found wt to do

    • @Toby-tp4sd
      @Toby-tp4sd Před 4 lety +1

      use a different persons code

    • @abbddullah
      @abbddullah Před 2 lety

      what errors are you facing? can you show here?

  • @Shyamkumar-di5fu
    @Shyamkumar-di5fu Před 3 lety

    Can i use DS3231???

    • @abbddullah
      @abbddullah Před 2 lety

      yes dear you can

    • @xilly_s4428
      @xilly_s4428 Před 2 lety

      @@abbddullah sir tell me how to fix Time t; does not type name please.

    • @abbddullah
      @abbddullah Před 2 lety

      @@xilly_s4428 dear, please email me your project details and error.

  • @arifaiman9036
    @arifaiman9036 Před 4 lety

    Hello

  • @joaquinserrano-armas666

    thats not a big anough tank

  • @4ohm531
    @4ohm531 Před rokem

    man please take the fish out of the bowl and put it in a real tank

  • @Toby-tp4sd
    @Toby-tp4sd Před 4 lety

    this is bs