Hamster Feeder/ Small Pet Feeder

by stefi.radu31 in Living > Pets

366 Views, 0 Favorites, 0 Comments

Hamster Feeder/ Small Pet Feeder

ff5.JPG
ff6.JPG
hamster circuit.JPG

You always forget when it's time to feed your pet? Well that's why I am here to help. For this project you just have to 3d print the file i attached here (but only after you check if the measuring it's right for you) and then you need to recreate the circuit from my photo with only an Arduino UNO R3 and a servo motor. After that you have to put these two parts together and start modifying the code. I chose the hours 4 p.m. and 4 a.m. for food time but you can change them as you wish. Also, you can modify how much food falls from the green container, by changing the maximum value of "i" in "for" 's header.

Printing the Needed Components

ff6.JPG
ff3.JPG
ff5.JPG

You can download the file attached and then modify it in Tinkercad with the right measurements for you. After that, you have to glue the yellow pieces and the red one, to the green component as you see in the pictures.

Downloads

The Code

hamster circuit.JPG
hamster cod.JPG

There is one more important step for you to have your automatic feeder, and that is recreating the circuit that you see above. You will need:

  1. Arduino UNO R3
  2. Servo Motor
  3. Wires

When you are ready, you can start the coding part which tells our "invention" when to feed our pets and how much food to give to them. If you don't want your pet's food hours to be 4 a.m. and 4 p.m. , I recommend to you to open Tinkercad or Arduino and modify your code.I used these hours because I want my pet to eat 2 times a day, after 12 hours. I made that by transforming 12 hours in miliseconds and when the function milis() returns a number which is divisible with 43200000, the Arduino knows that it's "lunch time" for our pet. If your animal needs to eat 3 times a day, no problem! Just change the number of miliseconds from "if" 's condition after you made your calculations. Also, I chose to move the Servo motor degree by degree so you can change how much it moves ( if you replace "45" from your code with "60", for example, the motor's "propeller" will move with 60 degrees and then come back to his initial position)

Getting Your Project Done!

ff4.JPG
ff1.JPG
ff2.JPG

If you completed the previous steps, now, all you have to do, is to combine what you did earlier. As you see in the pictures, you have to fix the motor on the yellow pieces with 2 screws and, lastly, the orange component has to be fixed on the motor's "propeller". Before you start the feeding operation, make sure the motor has his "propeller" at 0 degrees.

And.... That's It! Now You Don't Have to Worry About Your Pet's Food Schedule:)