Electronics

DIY mouse trap sends photo alert when critter is caught

DIY mouse trap sends photo alert when critter is caught
The RaspiTrap sends a photo notification when the door is closed behind a trapped mouse, which can then be released a safe distance from the home
The RaspiTrap sends a photo notification when the door is closed behind a trapped mouse, which can then be released a safe distance from the home
View 7 Images
The RaspiTrap features a Pi camera module that's fronted by a wide-angle fish-eye lens
1/7
The RaspiTrap features a Pi camera module that's fronted by a wide-angle fish-eye lens
A RaspiTrap-eye view through the Pi camera's lens
2/7
A RaspiTrap-eye view through the Pi camera's lens
The frame of the RaspiTrap is made from 5 mm foam PVC sheets, cut to shape and slotted together
3/7
The frame of the RaspiTrap is made from 5 mm foam PVC sheets, cut to shape and slotted together
To the rear of the RaspiTrap is an enclosed section housing the Raspberry Pi, a custom PCB, a servo motor and a Pi camera module
4/7
To the rear of the RaspiTrap is an enclosed section housing the Raspberry Pi, a custom PCB, a servo motor and a Pi camera module
When the IR barrier is triggered, the servo pulls the pin holding the door open and the Pi camera snaps a photo of the new occupant
5/7
When the IR barrier is triggered, the servo pulls the pin holding the door open and the Pi camera snaps a photo of the new occupant
The RaspiTrap sends a photo notification when the door is closed behind a trapped mouse, which can then be released a safe distance from the home
6/7
The RaspiTrap sends a photo notification when the door is closed behind a trapped mouse, which can then be released a safe distance from the home
CAD design of the RaspiTrap version 1.0
7/7
CAD design of the RaspiTrap version 1.0
View gallery - 7 images

Humane mouse traps come in all shapes and sizes, but the aim of the game is the same – catch the pesky rodents that are munching through your breakfast cereal and evict them from the premises. For the most part, electronics don't feature. The RaspiTrap from tinkerer Alain Mauer is a little different. With the help of a slice of Raspberry Pi, a splash of IR sensor flavoring and some Wi-Fi magic, it sends a photo notification when the door closes behind a new prisoner.

The frame of the RaspiTrap is made from 5 mm foam PVC sheets, cut to shape according to some CAD designs created by Mauer. The box is divided into two sections, one for the electronics and the other to act as a temporary home for the captured mouse. Viewing windows cut into the sides of the housing have TEMIC K153P IR sensors installed behind 3 mm thick transparent acrylic plates.

In the enclosed rear section, there's a Raspberry Pi development board running Arch Linux, a custom PCB for the IR barrier, a servo motor and a Pi camera module. The latter is fronted by a wide-angle fish-eye lens. A thin metal bar runs from the servo to a thin PVC door. The electronics are mains powered through the Raspberry Pi, Python scripts dictate the actions of the trap and a Wi-Fi dongle connects it all to a wireless home network.

When the IR barrier is triggered, the servo pulls the pin holding the door open and the Pi camera snaps a photo of the new occupant
When the IR barrier is triggered, the servo pulls the pin holding the door open and the Pi camera snaps a photo of the new occupant

As you can see from the video below, when a mouse wanders into the RaspiTrap it breaks the IR beam. This causes the servo to pull the pin holding the door aloft and the only escape route is cut off. After a short while an LED illuminates inside the device and the Pi camera snaps a photo of the new arrival. This is then sent via email to a predetermined account, prompting the user to recover the trap and release the occupant a safe distance away from home.

Mauer says to place enough food and water in the trap to ensure a healthy animal gets safely released, and advises that all of the mice caught by the RaspiTrap so far are now enjoying the great outdoors.

He plans to further tweak the trap by adding live view to the setup and, though air can already get into the device, a few air holes are to be strategically placed on the cover. If you want to make your very own RaspiTrap, build plans for version 1.0 have been posted on Instructables.

Source: Alain Mauer

RaspiTrap V1.0 A better human Mouse trap full of hightech

View gallery - 7 images
2 comments
2 comments
Bob Flint
Why not just trap the whole family of mice? They usually hunt in groups and the pvc is no match for those teeth. I've had mice chew through a metal mesh oven fan filter. Ended up blocking that entrance with a stainless steel drain plug with holes for the air to exit but block the mice chewing to get in.

A package of good old fashioned wooden traps with the right bait reduce the rodent population and not pass it to someone else.
Jay Finke
Add a meat grinder, and you have a food source for lazy cat and dogs.