Have a cat that won't stay off your counters? I do. I finally got fed up with it enough to do something about it: scare the crap out of him with a motion-detecting blender (while recording the results for my own amusement, of course).

Confused at what you're looking at? This is a repeating shot of security camera footage of my cat jumping on the counter - in search of a plant to munch on - and initiating my Blender Defender. Take a look at the following comic (Courtesy of Sarah) to get a better understanding :)

Videos

Sorry, but you're going to have to pretend you can hear an extremely loud blender while you watch these clips

The following recordings are the result of the Blender Defender being needed once again in January of 2011.. This time, however, we needed to keep one of the cats off of our bed. Why? Well, lets just say that she liked to go up there and... make... messes...

Instead of using the blender for this, we decided it would be better to use the vacuum cleaner, since it's louder and doesn't have to be close to the cats to get the message accross.

If you want to keep updated on when new videos of my cat are posted, make sure to subscribe to the RSS feed. All new videos that are added to this page will also put in the RSS feed.

Details

If you were to walk in my house, you may see something you dont normally see in a kitchen. On the wall, to the left of my sink is a webcam (network camera). It is plugged into the network jack and screwed into the wall plate cover, supporting itself. It doesnt get it the way, nor do we ever have to think about it. The camera is being monitored for motion by my computer upstairs in our office.

The camera itself is one of the cheapest network cameras out there, the DCS-900. It can be picked up for about $120 or so. There are a couple network cameras that are a little cheaper, but the D-Link one is pretty rugged and makes it easy to get into the raw feeds, something that cant be said for many other cameras.

As you can see from the videos above, the blender and the strobe light are both controlled by an X10 unit. The unit is sent an on or off command from the computer running upstairs by means of an X10 Firecracker. The Firecracker is just a wireless X10 transmitter that plugs into your serial port. I wont get into explaining it much here, but one thing to note is that is happily co-exists with my CM11A unit.

The computer upstairs is running the 'motion' library for linux. As soon as it detects something moving on camera, it starts recording frames. While it is saving frames, it also initiates another Perl script I wrote that sends an X10 command to turn on the blender and strobe, wait 3 seconds, then turn them off. After the script is done detecting motion, it then splices all the JPG frames together using ffmpeg and saves the resulting movie as a SWF file, which you can see above. Finally, after it saves the movie, I have it set up to email me a link to the movie so I can see the results from where ever I'm at (remotely by using my phone).

Is this cruel?

Of course not! To teach a cat not to do something, it has to get the idea that what it is doing is a bad thing. One way to do so is to sternly tell your cat 'NO' when it does something. The cat may learn that it is bad, but more often than not, the cat learns that it's not supposed to it when your around. This is not what you want. The best way to teach the cat not to get on a counter is to take yourself out of the picture. If the cat jumps up on the counter and is greeted with a scare, it will learn that the counter is not a very nice place to be. The cat is never harmed, but it's instincts tell is that this may be something to be feared. Just like a vaccuum. The cat doesn't like it at all, so it stays away.

Some will say that the cat is trying to eat the plant because he needs it for his digestion. In this case, it's just not true. Our cat doesn't simply eat our plants. He sees them as a toy. He plays with the stalks, digs them out, etc. We find leaves in the other rooms half the time. And, yes, he does get grass every once in a while.

Project Cost

The table below shows how much money would normally go into a project like this. This isn't to say that I've spent this much, as I already had everything lying around the place, but if somebody else were to start this project, this may be what they should expect to pay.

Item Notes Price
Strobe Light Bought from Spencer's 20.00
Blender Housewarming present, woot. 50.00
X10 Firecracker Check Ebay and Amazon if you're looking for one 12.00
X10 Appliance Module You wouldnt want a Lamp Module for this. 12.00
Network Camera D-Link DSC-900 120.00
$214.00

 

Comments

plasma2002
@plam4o: I never got that far... The way we handled it was to just turn the system on (arm it) when we would leave. This worked, since the cats only jumped on the counters when we were gone.

Im still looking for an elegant way to detect the different animals, though
How do you get your system to discriminate between your cats and you in the kitchen?
Nabsico
A bit harsh if you ask me. Intense fright and terror is too much and very stressful.While removing yourself from the experience is key, this is sadistic. Double sided tape or citrus cent should suffice. Would you like it if someone put a rattle snake or loaded gun in your face every time you made a bad decision?
Brandon
Thanks for the input Plasma, I'm not very Linux-literate so I did some hunting and found a way to get it to work on Windows. I used iSpy in tandem with a little CM17A controller program I found online. It's a bit slower to respond than I had hoped, but it works!
Thanks Plasma! We got it working last night.

A few notes for others who are interested in setting this up:

- We found the X10 to be rather unreliable, so we sent 5 on commands and 10 off commands... anything less and it didn't work 100% reliably.
- If your kitchen gets a burst of bright sunlight in the morning, you will have to tweak the settings or this will actually trigger the blender.
- It's easy to arm/disarm the system by using "pause" and "unpause". I set a web shortcut to the motion detection on my cell phone.
Plasma2002
@Leah: The actual video recording and motion detection is built into "motion", which is what I used. Install that and read through the configuration file of it and you'll see what to set up There's also a place in there to run a certain command when it detected motion, which I told it to run "perl scareCat.pl", and in that file was this:

print "Sleeping for a few seconds...
";
sleep (5);
print "Sending ON command to blender
";
`br --port=/dev/ttyS0 J8 on`;
print "Sleeping...
";
sleep (2);
print "Sending OFF command 4 times
";
print "1...
";
`br --port=/dev/ttyS0 J8 off`;
sleep (1);
print "2...
";
`br --port=/dev/ttyS0 J8 off`;
sleep (1);
print "3...
";
`br --port=/dev/ttyS0 J8 off`;
sleep (1);
print "4...
";
`br --port=/dev/ttyS0 J8 off`;
Plasma2002
@Theterminator93: Unfortunately, I havent tried getting heyu working on Fedora, so I'm not really sure what kind of problems would arise, nor how to fix them. A quick google search for "heyu fedora" shows that lots of other people are having problems as well. I'd check out the solutions they found for the various problems. Sorry I couldn't help more
Understand that the forums are now closed. We've just bought our X10 supplies, picking them up tonight, and we're grabbing our blender and strobe light in the next few days. Would you be able to share more detailed instructions, such as the Perl script that you used to record the video? We promise not to distribute - this is for personal use only, and your help getting us set up would be greatly appreciated. Thanks!
Theterminator93
Hi Plasma,
I posted on your forum before you closed it down, but it looks like it got lost in the spam.
I was wondering if you would be willing to provide any advice/tips/help to get me started on making this myself? I have the X10 hardware and heyu, but I can't get heyu to work on fedora. Any tips?
or you could, ya know, just not get cats. Dogs are a lot easier to train.
CyberWalker
LOL! Really nice work!!! Well done!
I had a friend tell me two sprinkle some Tabasco sauce on the counter and after walking threw it once are twice they quit getting on the counter.
Car Hire
thanks for posting this.
We need self-contained, battery-operated model to keep cats off of our car at night.
Plasma2002
@Jason: Theres a few ways of doing this. What we did was use our little X10 keychain remote to 'arm' and 'disarm' the system. (Admittedly I did this after I wrote this page, so theres not really any mention of it in here)

The keychain remote was the best scenario for my usage, but to answer your question, yes, you could use another camera or motion detector somewhere else to detect people. In my opinion, it would be a little wastefull of a camera, but whatever works

Another, easier, way of handing it would be to set everything up on a timer. Assuming you have a set schedule that you leave the house (work, school, etc), then you could just have the system automatically turn on and off.
I have been planning on setting up X10 in my new place and am interested in this project. Countertops are the only thing my 3 cats get yelled at for and it has been continual for years. I am wondering if it is possible to leave this set up but disable it when there is a human in the kitchen. For instance, could another camera determine there is a larger "animal" in the room and disable the process temporarily?
thanks for the inspiration, I implemented this with a DSC-920, FC12, and zoneminder. Only difference i used was a food processor, as a lot of newer blenders don't have mechanical on/off switches - they mostly use soft buttons. My 20 y/o cuisinart foodprocessor works great! it also ways like 10lbs, so there's no way it'll knock over.
Jenn, mother of Lucifer
I'm so impressed and ready to battle my infuriating feline child! I've tried yelling, slamming, nothing works until I get up and stomp over to the kitchen. He just looks at me with defiance as he licks the olive oil bottle. Look out my angel cat, I have a blender! Thanks for sharing and making me laugh my butt off. Lucifer is in for a surprise! Game on!
Plasma2002
There have officially been 1,000,000 hits to the Blender Defender! wow!
johnb_is_a_Nugget Hat
@johnb: You're the worst kind of grammar nazi - the kind that makes several grammatical errors when complaining about other people's grammar. If you're going to criticize somebody for making a mistake, it would behoove you to make doubly sure that you, yourself, don't make any. Jackass. I count at least eleven in your moronic comment.
Submit a Comment

Attention!

If you would like participate in a real discussion about this project, you may be interested in visiting the new Forums instead of just leaving a comment

Name
Email (We send a validation email. Also used to display your Gravatar)
Message
Hits
1173876
Oh, and hi Jean!