diy petfeeder
diy petfeeder
  • 3
  • 29 256
DIY Automatic Pet Feeder using Raspberry Pi (Spreadsheet Trigger Feeding)
For those who are unable to access the feeder website from outside their home network due to their Internet Service Providers (ISP) blocking all incoming ports (making port forwarding unusable), setting up an external Google Sheets document to trigger a feeding is one potential workaround. After following this tutorial, one will be able to trigger a feeding by checking a box on the spreadsheet. When the feeder sees the box is checked on the spreadsheet the feeder will trigger a feeding, uncheck the box, and update the latest feed times. In addition, the feeder will also be updating the latest feed times on the spreadsheet every 5 minutes so you will always have the most up to date information.
Written directions:
docs.google.com/document/d/12b4Bzq5u67sQ7vvfZI9Wh92H_r2RVhh2vrMzNrYyuPc/edit#bookmark=id.7sdh42dd5fg
Original full setup tutorial video:
th-cam.com/video/bvon9nxhqHk/w-d-xo.html
มุมมอง: 1 789

วีดีโอ

DIY Automatic Pet Feeder using Raspberry Pi (Upgrade to Python 3)
มุมมอง 2K5 ปีที่แล้ว
This video is an addendum to the original tutorial (th-cam.com/video/bvon9nxhqHk/w-d-xo.html) and shows how to install/upgrade feeder software running Python 3 . It is meant to replace the Section 1 Step 4 ("Configure Feeder Software") which in the original video starts at 14 minutes 34 seconds and ends at 23 minutes 01 second. Once you finished this video you can continue on with the rest of t...
DIY Automatic Pet Feeder using Raspberry Pi (Detailed How-To)
มุมมอง 25K5 ปีที่แล้ว
Written Instructions: drive.google.com/open?id=12b4Bzq5u67sQ7vvfZI9Wh92H_r2RVhh2vrMzNrYyuPc This video details the steps (and code) needed to build an automatic pet feeder powered by a Raspberry Pi. The device can trigger a feeding 4 different ways: 1) Using the built in website hosted on the Pi, feedings can be triggered while at home or away. 2) Scheduling a one time or reoccurring daily feed...

ความคิดเห็น

  • @yamikirito3877
    @yamikirito3877 หลายเดือนก่อน

    I can’t use 127.0.0.1 why? Pls explain about that

    • @risiaklol1299
      @risiaklol1299 25 วันที่ผ่านมา

      same issue here did u find any solutions may i ask ?

  • @yamikirito3877
    @yamikirito3877 2 หลายเดือนก่อน

    BTW, what kind of motor did u used

    • @diypetfeeder1205
      @diypetfeeder1205 2 หลายเดือนก่อน

      List of products used in written directions. Link in description

    • @risiaklol1299
      @risiaklol1299 5 วันที่ผ่านมา

      @@diypetfeeder1205same issues here when i try to find the motor in amazon link it says its not available anymore could you give us some kind of motor specifications or serial number so i can trace which specific motor are you using ?

    • @diypetfeeder1205
      @diypetfeeder1205 4 วันที่ผ่านมา

      @risiaklol1299 a.co/d/clsHKIV DC 12V 10 or 15 rpm 37mm

    • @risiaklol1299
      @risiaklol1299 4 วันที่ผ่านมา

      @ thank you so much

  • @yamikirito3877
    @yamikirito3877 2 หลายเดือนก่อน

    Great tutorial I have ever seen. 🎉

  • @JackLyons-l8l
    @JackLyons-l8l 2 หลายเดือนก่อน

    Hello we are trying to create a similar project, but we are also implementing a weight sensor ( Load cell HX711 weight sensor), would this be suitable for this type of design ?

    • @diypetfeeder1205
      @diypetfeeder1205 2 หลายเดือนก่อน

      @@JackLyons-l8l Yes there should be enough extra gpio pins to work

  • @eesaasattar6849
    @eesaasattar6849 3 หลายเดือนก่อน

    Hi this is an amazing video! Do you have a link for the potentiometer?

    • @diypetfeeder1205
      @diypetfeeder1205 3 หลายเดือนก่อน

      @@eesaasattar6849 It came with the LCD screen. Parts list in manual instructions

  • @keenerthanewe
    @keenerthanewe 5 หลายเดือนก่อน

    Sudo chown -R pi:www-data /var/www/feeder/ Giving invalid user???

  • @curiouscreator-fn9pn
    @curiouscreator-fn9pn 8 หลายเดือนก่อน

    This is really awesome. Thing is that I'm using an orange pi and not a Raspberry pi. So it basically uses an entirely different library (wiringpi). I think most of the other devices i have are the same. Any advice in this situation? What do i have to do differently if I'm following your steps.

  • @Kouroum
    @Kouroum 9 หลายเดือนก่อน

    Hello, first of all, thank you for this clear, super helpful video! i am trying to recreate the feeder to feed my dogs... could you tell me what are the changes that need to be made to each step to be able to control 2 motors and have the exact same features? thank you much

    • @diypetfeeder1205
      @diypetfeeder1205 9 หลายเดือนก่อน

      I am not sure I fully understand what your are asking for. You want 2 motors to control one feed container? Send me an email found in the channel description about what looking to do and we can discuss options.

  • @dillondudley7168
    @dillondudley7168 10 หลายเดือนก่อน

    Thank you so much for such great instructions and updates. I was sad when i saw python 2 in the original video and decided to go to the instructions and noticed the link to the updated video.... Anyways i wanted to say your videos are amazing and great job!

  • @subinbista9781
    @subinbista9781 10 หลายเดือนก่อน

    Hi, we have been working on the group project and we are taking your project as a basis for development .Whenever we run our code to run motor, it just does opposite of the code. Runs infinitely and stops for 2 seconds. Is it caused by wiring issues or it is problem in code. Thanks. Please reply.

    • @diypetfeeder1205
      @diypetfeeder1205 10 หลายเดือนก่อน

      Sounds like wiring issue. Cant see how code would do that

  • @isaacattard1933
    @isaacattard1933 11 หลายเดือนก่อน

    Would this project still work with a different OS?

  • @bigfootloverwashere
    @bigfootloverwashere 11 หลายเดือนก่อน

    When I run the "sudo logrotate --force /etc/logrotate.d" to test there is no second log file in the folder

    • @bigfootloverwashere
      @bigfootloverwashere 11 หลายเดือนก่อน

      Also if i skip past that the site does not load either. I haven't noticed any error messages in any of the previous steps

  • @isaacattard1933
    @isaacattard1933 ปีที่แล้ว

    where is the phyton code in the video?

    • @diypetfeeder1205
      @diypetfeeder1205 ปีที่แล้ว

      All code is in the repo for you to download. Directions in link

  • @isaacattard1933
    @isaacattard1933 ปีที่แล้ว

    Did you include the python code in this tutorial?

  • @BusinessMind-zx8ov
    @BusinessMind-zx8ov ปีที่แล้ว

    Hello is this beginner friendly who is absolute newbie?

  • @majortom8357
    @majortom8357 ปีที่แล้ว

    Great tutorial, but I have a question, can you edit the website itself? I want to move some of the buttons to other areas and I want to add more images on the site so that it would not feel very empty.

    • @diypetfeeder1205
      @diypetfeeder1205 ปีที่แล้ว

      Yes can modify however you like. All code open

  • @bagoll3315
    @bagoll3315 ปีที่แล้ว

    hi, but can you do the coding in thonny please? thank you

  • @Cookie-nc2tf
    @Cookie-nc2tf ปีที่แล้ว

    Is there a simplified way of doing things with a mobile app instead???

    • @diypetfeeder1205
      @diypetfeeder1205 ปีที่แล้ว

      Yes you could use the same web calls in an app

  • @leongminyi7430
    @leongminyi7430 ปีที่แล้ว

    can i have your network diagram?

  • @FireInfernoStudio
    @FireInfernoStudio 2 ปีที่แล้ว

    shot in the dark, but I continue to get apache errors when following along with the provided written instructions, could anyone assist?

    • @diypetfeeder1205
      @diypetfeeder1205 2 ปีที่แล้ว

      What errors getting exactly in the log? Can reach out to email in channel if want to send them to me and troubleshoot further

  • @jiahuang9821
    @jiahuang9821 2 ปีที่แล้ว

    Hello! I'm making this website for my an assignment in my class. I want to add a passive buzzer into this project and show how many bowls of food the cat has eaten today, and also change the background into a gif. Do you have any guidance on how to do add these into the code of the website? I've tried for the past 2 days and I still can't figure it out.

    • @diypetfeeder1205
      @diypetfeeder1205 2 ปีที่แล้ว

      There are a few extra gpio spots on the board. The buzzer could use that depending on how many pins it has

  • @neo-lt7md
    @neo-lt7md 2 ปีที่แล้ว

    This is Great! But do the commands written in the terminal depend on the model or os version downloaded? would be a big help Thanks!

  • @petrulamasanu6466
    @petrulamasanu6466 2 ปีที่แล้ว

    Hi! I've encountered a problem with the website. I've sent you an email. Can you help me please?

  • @drjbgrand
    @drjbgrand 2 ปีที่แล้ว

    Can this run on pi zero w? I'm having trouble installing mod_wsgi. The message is: Could not find a version that satisfies the requirement mod_wsgi. Then No matching distribution for mod_wsgi

    • @diypetfeeder1205
      @diypetfeeder1205 2 ปีที่แล้ว

      The pi zero w is not powerful enough unfortunately

  • @TheRatReview
    @TheRatReview 2 ปีที่แล้ว

    I appreciate the detailed tutorial. My rat binge eats and has become very fat. I am building one of these to automate his new diet 🐀❤‍🔥

  • @Tom-rt1ke
    @Tom-rt1ke 2 ปีที่แล้ว

    will this work on Raspberry Pi 4?

  • @jaixaler1104
    @jaixaler1104 2 ปีที่แล้ว

    Hi, may i ask something? Did i need to configure the router setup, if i connect pi through hotspot on my android devices? What should i do? Thank you so much

  • @ejanesten
    @ejanesten 2 ปีที่แล้ว

    This video could really do good with some timestamps in the video description! Good video and instructions!

  • @ch1zhan9
    @ch1zhan9 2 ปีที่แล้ว

    Thanks for sharing. This is awesome! One question: The duckdns approach does not have encryption so anyone with the link could feed the pet and change the scheduled feeding. Is there any safety concern or can we add some protection like password to access the website?

  • @big_guy9604
    @big_guy9604 2 ปีที่แล้ว

    awesome! Could you use a particle photon instead of Pi?

    • @diypetfeeder1205
      @diypetfeeder1205 2 ปีที่แล้ว

      Those would not be powerful enough to run the project as is.

  • @jimwelrapanut9921
    @jimwelrapanut9921 2 ปีที่แล้ว

    everytime a put my url that i created in duckdns it will not show up the website? can you help me?

    • @diypetfeeder1205
      @diypetfeeder1205 2 ปีที่แล้ว

      Are you able to get to the site using local IP address?

    • @jimwelrapanut9921
      @jimwelrapanut9921 2 ปีที่แล้ว

      @@diypetfeeder1205 yes sir i can get the site using the local IP address but the URL I created in duckdns did not appear

    • @diypetfeeder1205
      @diypetfeeder1205 2 ปีที่แล้ว

      @@jimwelrapanut9921 Send the error logs to the email found in the channel description and we can try and troubleshoot further

  • @ericstrong1731
    @ericstrong1731 3 ปีที่แล้ว

    can I just say this is an excellent project. the effort you went to document is excellent!

  • @matthewgomez4916
    @matthewgomez4916 3 ปีที่แล้ว

    Thanks so much for doing this! Had one question so far. For step 14-25 on the document am I supposed to copy and paste LoadModule wsgi_module "/usr/lib/apache2/modules/mod_wsgi-py37.cpython-37m-arm-linux-gnueabihf.so" or just the part in the quotation marks? "/usr/lib/apache2/modules/mod_wsgi-py37.cpython-37m-arm-linux-gnueabihf.so"

    • @matthewgomez4916
      @matthewgomez4916 3 ปีที่แล้ว

      also whenever I run sudo logrotate --force /etc/logrotate.d I don't get the updated logs

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      Whole line. Exact line value could change based on previous steps so just be aware

    • @matthewgomez4916
      @matthewgomez4916 3 ปีที่แล้ว

      @@diypetfeeder1205 got it! Yea I finally got the updated logs, but the website doesn’t load locally, I keep getting a 500 internal server error. Any thoughts on why that may be?

  • @chrisadams862
    @chrisadams862 3 ปีที่แล้ว

    Unfortunately, pip3 install RPi.GPIO fails for me, so cannot progress

  • @ch1zhan9
    @ch1zhan9 3 ปีที่แล้ว

    do we still need this line pip install gspread gspread-formatting oauth2client before we do git clone? This line is in the documentation but not the video

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      Follow the written directions, they are always most up to date

  • @GravityPilla
    @GravityPilla 3 ปีที่แล้ว

    how to know the quantity of food left in the storage tank?

  • @lukefixari4720
    @lukefixari4720 3 ปีที่แล้ว

    I don’t use the same router company as you! How do I configure my router so I can put the IP address in it so I can move to the next step? Because when I put my router’s IP address in the URL it takes me to the feeder website

    • @lukefixari4720
      @lukefixari4720 3 ปีที่แล้ว

      I also have no idea how to log into my router

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      If you never logged in before often times the default user name password is on the back. If not would read manual which will tell you what the login is. Would change after to something more secure. After logging in should be able to find the correct settings by looking around in settings. Without knowing your exact router it is impossible to tell you where, but shouldn't be hard to find

  • @mariomaric730
    @mariomaric730 3 ปีที่แล้ว

    Nice project! Is it possible to modify project and make app which has button to rotate servo(spin hooper function) and button for live stream( turn on live stream when button is pressed) . I am new in all of this and your help would mean a lot. Sorry for grammatical mistakes 😁

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      Yes it would be possible. You could use the api command (same URL as video in section about using a smart device) to integrate with an android app. For the video to work outside home network you would need DNS set up but that is possible as well. The code is on gitlab as well. Feel free to modify and add an features you like to an app.

  • @antedoko6880
    @antedoko6880 3 ปีที่แล้ว

    Hello! Can I use an usb camera instead pi camera? How much changes I have to do?

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      I believe it is possible to get a USB camera working. You might have to change a few configs in motion set up. Can refer to their website for that. motion-project.github.io/. The site is currently to be plug and play with pi camera

  • @takethemoneyandrunAP
    @takethemoneyandrunAP 3 ปีที่แล้ว

    wonder how big of an hopper this could be modified to use, also how it could be modified to be used in an outdoors environment (ducks/chickens/horses etc)

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      If you use a hopper any bigger then this I would recommend a bigger motor with more torque. The food weight will make it struggle to turn

  • @antedoko
    @antedoko 3 ปีที่แล้ว

    Hi! Very helpful project. I follow all steps and app works. I change part of the code in commonTask but it won't run the servo? Do You know what is the problem?(Servo TowerPro MG995)

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      I am not familiar with that servo. You would have to look at the data specs to see how it runs. Most servos are not strong enough to spin the feeder when it is full of food. I would suggest the high torque motor used in the video. I would not use a pi zero either they are not powerful enough to run everything efficiently.

  • @narendrashiva9360
    @narendrashiva9360 3 ปีที่แล้ว

    Sir ,I loved your idea and making . But i wanna make it as a robot, which means adding wheels to the pet feeder. Can you help me to write the code for motor wheels for moving the pet feeder for surveilling the dog whenever we r free outside.

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      Great idea. There are already lots of great tutorials online to get started.

  • @ralphgodwinhernaez5383
    @ralphgodwinhernaez5383 3 ปีที่แล้ว

    Do you have the flowchart of this project?

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      Not sure I understand what you mean by flowchart. Could please explain?

  • @theothertom1603
    @theothertom1603 3 ปีที่แล้ว

    I absolutely love your documentation and video! I wonder if you would be able to work with me on dispensing a variable weight? Would be an amazing enhancement. Perhaps a 4th video :)

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      Not exactly sure what mean by dispense variable weight. If you want the configure the motor to spin longer and dispense more food can already do that in the config file. The config value is called Hopper_Spin_Time and the default is 0.6 seconds. The link below jumps to part of video showing how to access and modify the value in the file. After modifying it is best to restart both feeder services (through the admin page or terminal) to have the value change take effect. th-cam.com/video/bvon9nxhqHk/w-d-xo.html

    • @theothertom1603
      @theothertom1603 3 ปีที่แล้ว

      ​@@diypetfeeder1205 Thank you for this advice and response. What i meant was you can choose the weight you would like to dispense. 15g, 30g, 31g, etc. I think I have a lot to learn still but this is the idea I have for my project. Best!

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      @@theothertom1603 I see. I don't think the hopper is precise enough to handle exact measurements like that, but you could certainly modified the equipment or code to better suit your needs.

  • @brittanypalla9260
    @brittanypalla9260 3 ปีที่แล้ว

    I disconnected and took my project to my university to see if it worked from there, now I am home and cannot access the website

    • @brittanypalla9260
      @brittanypalla9260 3 ปีที่แล้ว

      The button feature works, but website does not

    • @brittanypalla9260
      @brittanypalla9260 3 ปีที่แล้ว

      And my VNC is not connecting with my Pi

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      Most likely your local IP address changed. Go onto router and look for what new address is and see if can connect with that. If that is the case make sure save that address in you router to the pi so it always gets same address upon reboot

  • @ironwolf3699
    @ironwolf3699 3 ปีที่แล้ว

    Can u use Rufus instead of etcher?

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      I have never used Rufus so not 100% sure, but any flash writer should work. If not stick with etcher

    • @ironwolf3699
      @ironwolf3699 3 ปีที่แล้ว

      @@diypetfeeder1205 ok thank you.

  • @jessewest5335
    @jessewest5335 3 ปีที่แล้ว

    Thank you for doing this. I have a couple questions. Would I be able to set this up for two dispensers? I have two dogs, so I'd like to activate at the same time to two different bowls. Do you think the dispenser/motor would be able to handle larger dog food, especially if added to a larger hopper?

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      I think the motor would be able handle larger dog food. Will have to adjust the shoot and opening in the front obviously depending on the size. There will be a limit as to how much bigger the hopper can be before it is too heavy for the motor to spin. Not exactly sure what that limit would be though. I have seen others design a two shoots going down either side instead of one going down the middle. That could be an option as well.

  • @rogerolson2252
    @rogerolson2252 3 ปีที่แล้ว

    Another question. Am I doing something wrong or is this a bug? When I add a daily feed to my schedule for example 12:00 PM and it is 6:00 PM, it runs a feed cycle. Can I only enter new daily schedules after midnight and before the time I want it to cycle?

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      The daily feeding schedule looks for an past due feedings for a day. Since your first scheduled is in the past for the for the first day it is triggered. The next day it should run as expected. If your initial schedule set is later then the actual time this shouldn't happen.

  • @mr2nut123
    @mr2nut123 3 ปีที่แล้ว

    Would it be possible to trigger this from a Twitch stream using an emote or keyword? If so, would you consider selling one of these kits ready to go? I'm trying to support a local farm really struggling in these times.

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      Assuming the emote or keyword could trigger an endpoint call is possible. Is there documentation on twitch site about how to use? Can investigate

    • @mr2nut123
      @mr2nut123 3 ปีที่แล้ว

      @@diypetfeeder1205 I'm not sure, but if you look for a channel called DashDucks you'll see the idea in action.

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      @@mr2nut123 Ok will take a look and get back to you

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      Ok I see what you mean. Looking at the twitch API that should be possible. Can email me if want to go over details. Email is in channel description.

  • @rogerolson2252
    @rogerolson2252 3 ปีที่แล้ว

    Have my feeder up and running and it is working well. Thanks again for all your hard work. Have a couple of questions. 1. Running this on a pi zero w. Looking at top on the rpi, it is running feederBut+ at 95 to 99 % cpu. Is that something you are seeing on yours as well? Feeder Button service jumps up to 97% CPU as soon as it is restarted from the admin page. Any way to make it less of a CPU hog? 2. If I set the schedule to feed at 12:00 PM, it usually runs 2 -3 minutes after 12:00. Is this the expected behavior?

    • @diypetfeeder1205
      @diypetfeeder1205 3 ปีที่แล้ว

      1) I'm running on pi 3B and usually takes around 15-25% cpu. The pi zero w has less power. I have never used a pi zero w yet but looking at the specs those numbers don't surprise me. If can spring for a pi4 or bigger version id recommend that. 2) Yes that is expected. The scheduler only checks ever 5 minutes for every past due feedings so that seems right. You can lower the check value but then your cpu will probably go up even more which I doubt you want.