IoT Live Mouse Trap

If you want to get rid of pests in your house without killing the animal, live animal traps are a good option.

The issue we have is that the trap needs to be constantly monitored. If you don’t remember to check back frequently (typically a few times each day), you run the chance of the animal passing away in the cage from shock or fear. As a result, you wind up treating the animal more cruelly than you would have if you had simply put it out of its suffering in the first place!

The mice will be caught in this trap without suffering any harm, allowing you to release them outside. The servo motor will close the door if the proximity sensor senses the mouse. You will be notified that you have successfully captured a mouse via an instant message and/or email. You can release the mouse wherever you are when you are not at home or too far away.

Hardware Required

  • ESP8266 Thing – Dev Boar
  • IR based reflective object/proximity sensor
  • Servos (Tower Pro MG996R)

Step 1: The Design in 3D and the 2D File

The Design in 3D and the 2D File
The Design in 3D and the 2D File
The Design in 3D and the 2D File

Visualise this idea using Google Sketchup 8 as usual. Qcad and Inkscape are other applications I use.

Step 2: Electronic and Software

Electronic and Software

I’m using the ESP8266 Development Board, an IR proximity sensor, and a tiny servo motor in my project.You can download the Cayenne library here to utilise it with Arduino.

https://mydevices.com/cayenne/docs/getting-started/#getting-started-arduino-arduino-setup-using-cayenne-arduino-library

Step 3: 3-wire Reflective LR Sensor.

3-wire Reflective LR Sensor.

The LR modules come in many versions. I chose this one since you can easily access the trimmer to change the distance while it is mounted. I’ve so far discovered 3 different models online. On this job, all three of them performed flawlessly.

 However, im using the first Model. Model 02 is identical to Model 01 but has a unique pinout. Model 03 Simple to locate, but you must attach the IR diodes to the PCB’s other side in order to access the rotary potentiometer.

Step 4: The Enclosure

The Enclosure
The Enclosure
The Enclosure

The wooden mousetrap was made by using a laser cutter. You can see how the housing is put together in this image. Use the acrylic portion of a CD box as the windows.

Step 5: ​Cayenne Dashboard

​Cayenne Dashboard
​Cayenne Dashboard

The majority of the trap is managed https://mydevices.com/.

The trigger still has a few bugs, but it still functions and sends me an SMS when the trap captures a mouse. You can check the status, open or close the door. Turn on or off the motion detection. Even when not enabled, it will always show when there is a motion to check if a mouse is moving inside.

Step 6: Conclusion

  • Include a timer that will release the mouse if the internet connection is lost after a specific amount of time.

Warning:

  • Any other WiFi module or this ESP8266 WiFi module can be used.
  • In order for the LR proximity sensor to function, avoid direct sunlight.
  • Throughout these testing, no animals were harmed.

I hope all of you had understand about this Simple DIY Live Mouse Trap Project. We MATHA ELECTRONICS will be back soon with more informative blogs soon.

Leave a Reply