Pi-Powered Anti-Cat Trap Soaks Felines and Other Animals

Sprinkler Surprise

[Joshua] has a problem with cats. They like pooping in his garden. He decided to take action with this awesome automated and humane cat trap.

Now just to clarify, he did attempt a few other alternatives before going all out in cat defense – the easiest solution would be to get a cat of his own, but alas, he’s not a cat person.

The system uses a Raspberry Pi in a waterproofed housing with a PiCam. He’s written some rudimentary code to make use of the PiCam Python Library which also allows him to record pre-cat-trapping footage, much for our enjoyment. When motion is sensed, the Pi trips a 24VAC solenoid water valve, which turns on the sprinkler and quickly soaks the intruder.

Stick around after the break for quite a few videos catching the furry little buggers in the act!

As for the cat lover’s out there… we’ve also covered a dog version of this which uses an Arduino instead!

[Thanks Doug!]


  1. Alan says:

    I’d like to see something more… directional. There’s a lot of spray, for one cat, and most of it misses the target.
    For generic garden watering systems, splitting your garden into multiple “zones” is a good idea anyway. So there’s a genuine need for multiple activated sprinkler heads.

  2. fanuch says:

    It stares unblinkingly into my soul

  3. agatg says:

    I’d just use an airgun, it’s fun and quiet.

  4. gravatarnonsense says:

    You need a frikin’ laser.

  5. medix says:

    Nope. Blender defender was better. ;)

  6. vosnul says:

    What an unnecessarily complicated way to keep a crappy garden a little less crap free. There are many passive methods to keep cats out, some of which will even make your garden less ugly.

  7. Superb. A good laugh too. A cat operated irrigation system!

  8. ameyring says:

    Although there are other ways to deter cats, the beauty of this is that it waters the grass at the same time! Just make sure that outlet by the sprinkler is GFCI protected.

  9. Tom the Brat says:

    So, how did he detect the feline offender? Comparing frames from the camera?

  10. Gaal says:

    A simple and good hack.

    I need some more discriminate targeting though. I would not like to soak my children or my own cat. Nor the neighbours if they came on a visit. Or myself if I passed by and forgot about the whole thing becouse I was thinking on a MAGLEV based mini Death Star.

    An adaption of this system would be perfect. Just needs some more oomph on the water delivery system: http://pyvideo.org/video/674/militarizing-your-backyard-with-python-computer

  11. Ekranoplane says:

    To make it even more effective, he should mix the water with some citronella oil, which would not only repel the cat but also drive mosquitos and other insects away as well. Two for one repellant action!

    • Art Barnes says:

      Actually, plain water is probably best. Cats readily develop phobias and are easy to scare off. However, they have delicate kidneys compared to humans and could be poisoned licking off substances such as citronella.

  12. pcf11 says:

    Joshua has a problem with cats you say? I think I might have issue with Joshua!

  13. DainBramage1991 says:

    This is what I immediately thought of:

  14. vonskippy says:

    Don’t people own pellet guns any more?

    • furiousd says:

      Many places prohibit weaponized booby traps. Though this would be satisfying, he’d have to wait up for the cats as the difference in a cat getting sprayed vs. shot and a trespassing neighborhood child getting sprayed vs. shot are significantly different

  15. gunter says:

    very nice.
    I have the same problem with cats. The more passive solutions just don’t work. I’ve spent so much on animal repellents, and yet the joy of working the garden and getting cat poop all over your hands, shoes, knees, etc. and the smell. My very nice garden turned into cat toilet.

    and yes, there is at least one cat lady in the neighborhood.
    and no, I am not willing to off the cats, I just want them away.

  16. Hirudinea says:

    Well he didn’t use a bear trap, so +1 there. :)

  17. fred41 says:

    A tutorial would be awesome, I have the same “cat problem” and I just got a Raspberry for my birthday!!!

  18. Thinkerer says:

    One of the better solutions is to use costume hair dye (bright green or purple is good) – the negligent owners then have to bathe their little darlings (though the dye won’t hurt the animals) and are usually reluctant to let them wander as far.

    • Liam Jackson says:

      You don’t really get a choice where your cat goes, it’s either ‘in’ or ‘out’. If you have an enclosed garden with high fences and a small cat that can’t jump that high perhaps you could keep one in the garden, but they’d probably find a way out.

  19. Jerry says:

    Wouldn’t a dog be the traditional anti-cat animal, not another cat? Sure, you’d have dog-poop in your garden, but not cat poop.

  20. ERROR_user_unknown says:

    Random question but would flames from a fire trigger this if so this has some wide reaching applications in fire prone areas.

    I would also like to keep cats out of my yard but would not like to scare off the plentiful native wild life if this was more accurate and discriminating it would be a nice asset.

  21. BKC says:

    I can’t believe you used a pi for this! Could’ve EASILY been done with a 555, a crescent wrench and a pack of gum. SMH.

    Those videos are hilarious.

  22. electrogineer says:

    The simplest solution would probably have been putting out a box of nice soft dry sand that would be far more preferable for the cat compared to the wet soil. We all know how picky cats can be. For cleaning simply leave a mesh grid in the bottom of the box that can be lifted up to sieve out and dispose of the poop.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 97,808 other followers