top of page
Mousetrap Schematic
Mousetrap PCB


Mousetrap Project PowerPoint Presentation

Mousetrap Receiver Schematic

Mousetrap Receiver PCB



After the IR beam has been broken, the IR Receiver is tripped high which in turn activates the motor. After the motor has been activated to shut the door and stops, a short delay of 500ms is set prior to initializing the Transmission of the character “M” through the transmit data packet. This transmission is sent 10 times before leaving the for loop and activating the trigger stop point to ensure the motor no longer activates every time the IR beam is broken, and a serial transmission of “triggered” is sent; the transmission sequence can be seen in the serial monitor above.


The receiver code initializes the Serial communications, specifies the Blue LED to be off, and designates the RF receiver as in input. After the Arduino registers the data packet the RF receiver captures from the transmitter on the mousetrap, it verifies the size of the transmission, if it matches what is specifies then the Arduino decodes it and sends the character to a serial print command, after which it digitally writes the Blue LED to be high to work as the notification. Then it blocks the loop from going again by activating a trigger point until the Arduino is reset.
bottom of page