If you home has never been subject to a rodent invasion then you are fortunate. Our world is full of rats and mice, and despite the best efforts of humanity to keep them at bay it is inevitable that a few will find their way through. For [Marius Taciuc] this became a problem, as his traps needed constant checking to avoid the prospect of a festering rat carcass. His solution? A humane trap equipped with an ESP8266, that notifies him when the rodent is incarcerated.
The tech behind it is about as simple as it’s possible to get, the trap’s door activates a switch, that powers on an ESP8266 module. The ESP’s code simply wakes it up, connects to a wireless network, and sends a query to IFTTT with a call to a service that sends him an email alert. There’s no need to monitor any GPIO lines or have any code running to keep an eye on the trap, it’s all purely a function of the power switch.
The trap itself is interesting, in that it’s a home-made one constructed from soldered copper wire. Sadly there are few details of its construction, but you can see more of it including a live rat inside it, in the video below the break. And if making a trap catches your interest, we can help you there.