How to keep hungry tigers busy in the early morning

Preface: feeding your pets is an important bonding ritual. You should avoid employing machines as a full substitute for feeding. But my tigers and I have reached a stalemate RE: Breakfast time

 Tigers sleep all day long.

Of course they have no problem waking us up whenever they desire breakfast.

 Automated feeders are expensive and lack flexibility.

I got sticker shock when looking in to options for buying automated feeders.

 This is a post about how to build a hackable cat feeder for $20.

The basic goal is to spread small bits of cat food randomly across the kitchen floor during early time windows of the morning. This of course dominates tigers’ attention thus letting you sleep in.

 The design

20161228_075706.jpg

The most basic form is an upside-down bottle with a servo which controls the opening at the bottom. We control the speed and frequency of the openings with code.

20161228_075052.jpg
I hang the bottle up high on the wall to discourage tampering. Dropping/scattering the food may be messy but it engages the tigers to forage which is more natural/entertaining for them than eating out of a dish.

 The parts

 Demo

Just for the record that is peanuts. Not tiger food.

 The electric bits

Connect the servo to the board
sweep_bb.png
The code:

#include <Servo.h>

Servo theServo;  
int pos = 0;    

//attach servo to pin 9
void setup() {
  theServo.attach(9);  
}

void loop() {
  // Sweep to the left
  for (pos = 0; pos <= 90; pos += 1) { 
    theServo.write(pos);              
    delay(1);                       
  }
  // Guess a number every second. Dont continue until it matches 0
  while(random(180) != 0){
    delay(1000);
  }
  // Sweep to the right
  for (pos = 90; pos >= 0; pos -= 1) { 
    theServo.write(pos);              
    delay(1);                       
  }
  // Delay for a few ms to let food out
  delay(85);
}

 The mechanical bits

 Finishing touches

The arduino has no sense of time. We only want this to run at certain time windows of the day. This unit will control the time window where tigers are restless and we are still sleeping.
20161228_081005.jpg

 Your tiger thanks you in advance. Sleep well.

Happy-tiger-cub-300x213.jpg

 
292
Kudos
 
292
Kudos

Now read this

Getting windows to play nicely with phonegap

Recommend before you start download an environment variable editor such as rapidEE. Install NodeJS Install Winant Install android SDK for windows Make sure the following is in your PATH env var: android bin. Eg: C:\Tools\... Continue →