Automatic Cat Feeder

Published on 8 min read

Introduction

This is a draft

There are a bunch of adorable kitties living in the bushes at NKU.

For much of the semester, a smattering of students and staff have been taking care of the cats. They serve daily meals, and have created small houses for the cats to live in.

However, feeding the kitties on a regular basis requires a signficant time commitment. Additionally, we knew that nobody would be on campus over winter break to feed the kitties.

So, my friends and I built an automatic cat feeder, robust enough to survive abuse by the wildlife and even the most severe snow storms.

Context

Here are the cats we are taking care of:

Black Cat
Black Cat
Boots
Boots
Fluffy Cat
Fluffy Cat
The Kittens
The Kittens
Orange Cat
Orange Cat
Tortoiseshell
Tortoiseshell
Opossum
Opossum
Skunk
Skunk
Raccoon
Raccoon

You might notice that some of the cats aren’t actually cats. We’ll get to that later.

Here is the area we were working with. The cats love to hang out in the bushes, and they wander around the courtyard area throughout the day.

Note that there’s only one outlet in the area, so we’re limited on where we can put the cat feeder.

In the end, we made a cat feeder:

A cat feeder made with a yellow bucket, a silver bucket, and an umbrella

And we made a camera to record it:

A cat feeder made with a yellow bucket, a silver bucket, and an umbrella

Initial Development

Grace’s Design

Grace had been feeding the cats by hand for several weeks at this point.

When we talked about creating an automatic cat feeder, she created an amazing artistic representation of our goals:

Grace's diagram of a cat feeder

This illustrates the core functionality:

  • Lots of food goes in the top
  • A bit of food goes into food bowls at regular intervals

Originally, we wanted to have multiple food bowls, so that the cats don’t get in each others’ way, but we ended up only having one bowl for simplicity. We also never got around to building the housing for the cats, partially due to cost reasons.

Research

Initially, I wanted to do this project using only the tools available in the club room.

Given that we were going through renovations, my focus was largely limited to what I could build using solely 3d-printed components, and some motors intended for educational use.

We started out by doing some research on cat feeders.

For one, we took a look on Amazon, and found that it’s possible to buy an indoor automatic cat feeder, and it’s possible to buy outdoor feeding stations for cats, but we did not find many good options for true outdoor cat feeders.

We started looking into blog posts about this. We found this great Russian blog post and GitHub repo about building a cat feeder, which released the feeder screw for free.

In their project, they only 3d-printed the screw and used PVC pipe as the outer housing.

In our case, we have a lot of free filament, so we decided to 3d print the pipe as well to save costs.

First Auger

This led us to our first design:

Initial Auger Design

In this case, we started with this prototype just to make sure food would come out:

A circuit as defined below

This was some of the first 3d-modelling I’ve ever done. I was using TinkerCad, as it was recommended for beginners. I found it to be quite approachable, although it certainly was not as powerful as something like OnShape (which also runs in the browser and is free for students!).

Through this initial prototype, I learned:

  1. The auger is effective at distributing dry cat food!
  2. It’s important to leave good tolerances. (The auger was too close to the pipe.)

We had a circuit that cut power to the 28BYJ48 motor and ULN2003AN driver board when it is not in use, to minimize overheating.

A photo of the auger on the motor
Photo Credit: Patrick Hirsch
A circuit as defined below

This uses a IRFZ44N N-Channel mosfet:

  • Gate: Pin 2 on esp32
  • Drain: Goes to the negative line on the ULN2003AN
  • Source: Goes to the negative line for the 9V power supply
  • Note: make sure to include a ~10KΩ resistor between the gate and the source.

Toby found this interesting article which detailed how to modify the stepper motor for more torque.

But, this all ended up being in vain, as the force from our little motor was nowhere near enough to overpower the cat food when little pellets get stuck between the auger and pipe.

Rotisserie Chicken Motor

Enter: A rotisserie chicken motor!

It’s been sitting in my basement for years.

ValueProperty
3Revolutions Per Minute
11.5Newton-metres
120Volts (AC)

This motor is going to be strong enough!

The motor is too strong!

In some of the first tests, it immediately snapped the 3d printed design!

No worries!

Instead of using a tiny peg, we can modify the model to use a full rectangle’s worth of plastic. Plus, that means we can swap out the peg later, in case it snaps again! (foreshadowing)

Auger with Square Hole

And then, we made sure to print the square peg with 100% infill, so that it was as strong as possible.

Note that we were printing this out of PETG, solely because we have a lot of PETG.

Let’s build this thing!

With a working prototype, Grace, Patrick, and I began work on building the housing and containers for cat food.

Anything that can go wrong will go wrong.

— Murphy's law

We’re trying to keep our design as simple as possible, so that we minimize how many things can go wrong.

Dispensing cat food takes 4 steps:

  1. Cat food goes in the top bucket, which funnels into the auger.
  2. A control module turns on a motor.
  3. The motor turns the auger.
  4. Cat food flows out of the tube into the cat bowl.

Each step failed at some point during the month that it was running.

Step 1: Drill a hole in the top bucket

We built some supports to put under the bucket, so that we minimized the amount that the metal bends. We drilled through the bottom of the bucket, because the drills we had did not fit in the bucket.

Grace drilling a hole in the top bucket

We used a wooden hole saw, because it was what we had. But, it worked well, as long as we went slow, and used some oil.

Hole Saw
Photo after a hole was drilled in the metal bucket, showing support underneath

We used some construction plastic to create a funnel in the top bucket of the cat feeder, such that it would flow easily into the auger.

We followed the same procedure to drill a hole in the top of the bottom bucket.

Step 2: Join the top bucket to the bottom bucket

Grace and Zack measuring the cat feeder box
Photo Credit: Patrick Hirsch

Next, we drilled some holes between the top and the bottom buckets, and I think we used #10 metric nuts & bolts to connect them.

(Apologies for the hazy measurements)

Step 3: Make a funnel

We want the cat food to flow smoothly from the top bucket into the auger.

So, we use some construction plastic and HVAC tape to make a funnel.

This still leaves enough space in the top bucket to fill it with about 16 lbs of cat food.

Photo of the construction plastic funnel

Step 4: Make a bracket to attach the motor

Next, we figure out where the motor needs to be mounted, and we build a bracket to match.

Grace and Zack measuring the cat feeder box
Photo Credit: Patrick Hirsch
Patrick hammering the bracket in place

Originally, I was worried that this was not strong enough, because there was a little bit of flexibility under load.

However, I learned that:

If it doesn’t bend, it will break

In the end, it was good to have a bit of flex to the system, so that:

  1. it was easier to work with
  2. when the tube was blocked by solidified cat food, the bracket was able to provide enough flexibility that we avoided cascading failures (such as the auger tube or mountings)
Inside of bucket with new bracket and motor

TODO: Step 5: Print a new auger sheath

TODO: Cat Feeder Camera

TODO: Operations

TODO: Skunk damage & Repair

TODO: Winter storm


I think about these XKCD comics a lot:

Is it worth it?

So, this prompts the question: Was it actually worth it?

Let’s analyze the project, and see if it saved me time.

The rules are:

  1. The cat feeder saves me time when it dispenses food.
  2. The cat feeder wastes time when I have to go fix it.
\therefore Time Spent= time spent near cat feeder+ time working on design and construction\begin{align} \text{Time Spent} = & \text{ time spent near cat feeder} &\\ + & \text{ time working on design and construction} \end{align}

And, for every successful time that food is dispensed:

Time Saved={30 minuteswhen I’m in my dormdriving durationwhen I’m>1,000m away\text{Time Saved} = \begin{cases} 30 \text{ minutes} & \text{when I'm in my dorm}\\ \text{driving duration} & \text{when I'm} \gt \text{1,000m away} \end{cases}

The following calendar illustrates how many minutes each day this project took, and how much it saved.

December 2024
Loading calendar...

TODO: graph with time spent per day and time wasted per day, and then the sum of both as a sparkline

Time Spent
2371 minutes
40 hours
Time Saved
2392 minutes
40 hours

Credits

Thanks to everyone who helped make this a fun project!

NameLinksCredit
Grace WuDesign, Artwork, Feeder Construction
Patrick HirschInstagramPhotographer, Feeder Construction, Norse Code Radio representative
Tyler KobidaInstagramRaspberry Pi Configuration
Toby CarterInitial Prototyping

Fun facts that I’ve been told:

  • Tortishells and Calicos are female
  • Orange Tabby is usually male