OpenTrap Smart Animal Trap

OpenTrap is intended as a tool to aid those working to help animals while controlling the stray/feral animal population.

Similar projects worth following
OpenTrap is a system to give the user control of their live animal trap. A while ago I was trapping a litter of kittens using a trap that was rigged to close when I pulled on a string...As I spent hours sitting near the string, watching the trap and feeling like Wile E Coyote waiting for those kittens to come, the idea for OpenTrap popped into my head.

OpenTrap is an addition to a live animal trap that enables the user to control the trap remotely. A small Remote communicates with the Trap Box via a 2-way wireless link. If the Trap Box detects an animal inside the trap, an audible alarm on the Remote can alert the user. From there, the user can verify what animal is in the trap and, if desired, can actuate the trap door to keep the animal inside. I believe that this system will be a significant help to people who are working to help the stray/feral animal population. According to the ASPCA website, it's estimated that there are tens of millions of 'community cats' living on US streets. There are thousands of people working on behalf of these cats, and I want OpenTrap to make their lives a bit easier.

There are three applications where I believe this trap can really make a difference:

- The T.N.R. (Trap Neuter Release) community. T.N.R. is not only a more humane approach to controlling the feral cat population, but it's the only effective method of controlling the feral cat population. OpenTrap can aide in trapping only a specific animal to have it fixed, while not trapping an already-fixed animal that enters the trap looking for food. There's an auxiliary output on the Trap Box that can be activated by the Remote; this can be used to generate some sort of signal to scare an unwanted animal out of the trap (or actuate the shutter release on a camera).

- Capturing an entire litter of kittens. Capturing a litter of feral kittens to socialize them is a very rewarding experience and it's a lot of fun, but it's also A LOT OF WORK and it can be expensive to get them healthy enough to adopt out. There are a number of websites out there that detail the process and detail the pros/cons of undertaking it...Please don't do this until you understand what you're getting into. If you've got any doubt, leave them with the mamma cat, make sure they've all got food and water and contact a local cat rescue group!

- The OpenTrap electronics may also be used on a trap that's configured for manual operation, alerting the user when an animal is trapped inside. This may be useful at night when the trap isn't visible, or on an exceptionally hot or cold day when you don't want an animal sitting outside and unprotected any longer than necessary.

My goals in making this system include making something affordable. Often people working in the T.N.R. community are stretching their resources very thin, so it's important that this not cost several hundred dollars.

I also wanted it to be install-able/removable to most live animal traps with little to no modification and a minimum of tools required...An animal inside this trap is already having a crappy day; a person spending 5 minutes with a screwdriver to remove the trap components is just further scaring them unnecessarily.

This will be completely open-source and I hope that the result of opening it up is a constantly-improving, reliable and AWESOME system to help forgotten animals!

Technical details are in documents in the 'files' section below...This details section was getting too cluttered. I'd love any feedback on the docs


An Excel sheet with the same data as is in the text file of the same name below.

sheet - 1.12 MB - 04/21/2017 at 19:32



I left the trap running all night with food inside to try to capture data about the possums living under my deck. It looks like the baby possum (a bit bigger than a hamster right now) was in there several times...I'm hoping to catch him and the Momma

plain - 1.07 MB - 04/21/2017 at 19:22


TrapBox Overview.docx

An early document that I plan to expand to cover things in more detail.

document - 17.47 kB - 04/19/2017 at 15:13


Files for the Box, remote and servo mount. The servo mount requires 2 x 1/4" diameter magnets inserted into the 'magnet end' to hold itself to the trap. Hopefully this will be replaced by the solenoid drive in very short order.

Zip Archive - 233.63 kB - 04/16/2017 at 16:01



A pdf of the current version of schematic for the Remote. Eagle files are attached here as well

Adobe Portable Document Format - 33.33 kB - 04/15/2017 at 13:18


View all 11 files

  • 1 × PTX PCB The PTX PCB is the controller on the Trap Box...This would get too long if I were to print out the whole BOM, but it's in the attached Eagle files
  • 1 × PRX PCB The PRX PCB is the controller on the Remote
  • 2 × Long-Range NRF24L01+ modules I've had really bad luck leading to wasted time while using the cheap modules. It's definitely worthwhile to spring for the slightly more expensive (~$10 for a pair) modules
  • 1 × HS-322 Servo Current iteration uses a servo, I'm hoping that the solenoid version will be ready soon.
  • 1 × 7.2V NiCad battery This battery will power the PTX

View all 6 components

  • Electronics seem happy, logo is here!

    roger_archibald07/09/2017 at 14:17 0 comments

    All the testing seems to be going well right now: my issues with the boost converter have been resolved with the latest board, I just need to respin the remote with a few minor changes to avoid having to cut traces and install jumpers.

    I wanted some sort of logo for this, and after I found Anna Ellenberger's design site I worked through her for a very reasonable price to get a logo that I'm really happy with, and I can't wait to see what the boards look like with this on them.

  • New layout seems happy

    roger_archibald06/27/2017 at 19:56 0 comments

    I got the latest Trap boards and initial testing of the updated solenoid drive is looking promising...No more smoke being let out!

  • Issues with Solenoid Drive

    roger_archibald06/04/2017 at 14:47 0 comments

    I got the latest Trap Box Boards back from OSHPARK and found I had a layout issue that was causing problems with the boost converter for the solenoid drive. I'm hoping that I resolved it with the new layout, I just submitted the order and hope to be testing again in a couple of weeks!

  • New Remote with integrated USB

    roger_archibald05/07/2017 at 23:14 0 comments

    The new Remote boards arrived and I found an error or two but overall they're doing what I wanted...Now the on-board USB is both battery-charging and FTDI-compatible, so trap data can be logged directly from the remote without an external FDTI module.

    The external boost converter for driving the solenoid is working and I hope to find time this week to re-spin the Trap Box Board with the boost converter built-in

  • Another Possum evening

    roger_archibald04/30/2017 at 04:38 0 comments

    While waiting on the next spin of boost converter PCB's before I can go too much further with this project (OSHPark shipped the boards earlier than promised but they've since been lost in the mail) I decided to play with the Pi camera box and redesign my Pi enclosure so it would allow me to take downward-looking pictures. I learned that there are at least two baby possums rather than the one I was aware of. Despite what my wife says, I think they're kind of cute.

  • Raspberry Pi Python Possum Pictures

    roger_archibald04/29/2017 at 04:09 0 comments

    While the initial intent of this project was, and still is, helping to control the population of feral and stray cats, the possums under my deck have proven helpful in testing the system. I've been hoping to trap the Mom and Baby possum together so I can relocate them without separating them. Looking at trap data logs from when I left the trap out acquiring data all night, I always got the impression that only one or the other was in there, never both.

    I rigged a Raspberry Pi with a camera and set the trap's Aux Out to automatically trigger the Pi's camera if anything greater than 1" tall was detected inside the trap. The script on the Pi limits pics to 1/minute. With this system I got many pics of the baby possum, but only one of Mom when she walked by the outside of the trap and I happened to manually trigger the shutter release from the remote. The Baby is still pretty tiny (that's a 6" diameter plate, to put it in perspective) and I don't feel good about trapping it and relocating it without its Mom...I think I'll just live with them under the deck for a while and stay out of their affairs until the little one gets a bit bigger. I don't want the little one to become dependent on plates of cat food every night anyway.

    Anyway, this log is as much about sharing baby animal pictures as it is about the technology, but the tech is definitely coming along and I hope that the Pi camera setup is going to prove fruitful. I might try to rig a Pi NOIR camera to the trap so I can leave it without lights in the yard and see what I see.

  • New boards en route

    roger_archibald04/25/2017 at 14:33 0 comments

    Any day now I should be getting the latest iteration of the Big Dumb Boost (BDB) converter back from OSHPark. If it works well then I'll re-spin the main Trap Box Board to include that circuit and also to generally clean up a few things, relocate the power LED and swap out individual gate drivers in favor of some dual gate drivers that will use less board real estate and consume less current when not in use. Once I get those boards stuffed and tested, I think that's the stage at which I'll start trying to get this into the hands of non-technical cat rescue people.

    Last night I sent in the OSHPark order of what I hope to be the last iteration of the Remote Box Board. It's basically the same as what's posted here but I included an FTDI module on the board. In small quantities you can get FTDI chips for ~$2, it makes sense to just include it on the board and not mess around with external FTDI modules and extra wires....I'm using the micro USB connector to charge the battery anyway, might as well use it for data as well. I'll post the schematics here once I stuff the boards and verify they're happy.

  • A night's worth of opossum activity

    roger_archibald04/21/2017 at 19:32 0 comments

    I recently learned that there's a family of possums living under my deck. Unfortunately the neighbor's dog got out and decimated 3 of the 4 joeys, and Momma Possum and Baby Possum are living under my deck at the moment. I'm hoping to catch the two of them together using the trap so I can relocate them to a place that's not my deck.

    They didn't come to the trap before I went to bed, so I left the trap logging all night in order to get a feel for their feeding times. It looks like the Baby Possum came and went several times; based on the distance data I think it was that little hamster-sized critter.

    I was pleased to see that the NiCad powering the Trap Box held up EXTREMELY well over the course of the night. It was cool to see the remote battery dripping down to the point where the MCP7831 kicked in and brought it back to 4.2V. All in all I’m really pleased with how this is coming along. Attached in the files are a text file of the output as well as an Excel spreadsheet with the data imported and a few curves plotted.

  • Solenoid testing is going well

    roger_archibald04/16/2017 at 16:49 0 comments

    Initial testing of putting a solenoid drive as opposed to the servo drive is looking good! The plan is to use a simple boost converter to step up my battery voltage enough to fire the solenoid. In the interest of testing this thing as quick, cheap and easily as possible, I made a small daughter board that will plug into the servo connector on the TrapBox board.

    I'm making use of the 3-pin header that used to drive the servo in order to drive the BDB board. I removed the servo circuitry, which consisted of a few transistors to power up the servo (and allow it to be powered down when not in use to minimize overall power consumption) and a big filter cap for bypassing servo power. I kluged on a gate driver to drive a ~130kHz, 40% switcher for the Boost drive. I found that when the boost output is unloaded it will get up to ~40VDC! What I'm currently doing in software is waiting for a few cycles after turning on the switcher, then turning on the low-side gate driver on the solenoid...This lets the voltage get up to ~16V before hitting the solenoid, I'm hoping that extra 'umph' is going to help.

    So the 3-pin header gives me GND, Boost Switch Drive and Solenoid low-side FET drive. I used a wire to bring in VIN to feed the Boost. I'll tweak this design and try to get reliable operation using components small enough to squeeze onto the Trap Box board, then re-spin that board to have everything incorporated onto it.

    Here's a video of this in action...Audio quality is horrible, my phone's microphone is picking up the 40kHz drive for the ultrasonic transducer...Better quality to come!

  • Source Code on GitHub

    roger_archibald04/15/2017 at 21:48 0 comments

    Source code for both the PTX and PRX is on Github here:

View all 12 project logs

Enjoy this project?



Alain Mauer wrote 04/14/2017 at 12:55 point

Cool, Check out mine My Idea was, that the trap can inform when a mouse is in the trap

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates