IoT Live Trap with an ESP8266

An IoT friendly Mouse Trap.

This is a trap to capture the mice without hurting them, so you can release them outside. If the proximity sensor detects the mouse, the Servo motor will close the door. You will receive an instant message and/or an Email, to inform you that you captured a mouse. When you are not at home or to far away, you can release the mouse, wherever you are.

Better than words, the video

Cayenne Dashboard
Most of the trap is controlled over the Web side of There are still a few issues with the trigger, but it works and I receive an SMS when the trap catches a mouse.

You can:

open/close the door and see the status.
activate/deactivate the motion detection. It will always display when there is a motion, even when not activated, to see if a mouse moves inside.

Things to do
Add an emergency timer, to release the mouse after a certain time when the connectivity to the internet is lost.
Last points to know
You can use this ESP8266 Wifi module or any other Wifi module.
Avoid direct sunlight, or the LR proximity sensor will not work.
No animals were hurt during these tests.
I know that there are more simple solutions, like a cat or an empty bottle, but this is a fun project with potential.


Now that’s a creative use for Cayenne! If you haven’t already you should definitely submit to the contest.

Already done :slight_smile: Thanks

1 Like

“No mice were hurt in the making of this video” :stuck_out_tongue: :mouse:

1 Like