MouseTrap
Old-fashioned mouse traps aren't working anymore and easily get jammed or aren't detecting the weight of the mouse. We must create a mouse trap that uses a motion sensor. The main goal is to design a mouse trap that catches rodents without harming them. By using motion sensors, the trap should be able to detect mice as soon as they appear and catch them safely. The result should be a mouse trap that's both kind and effective, useful for homes and businesses.
Supplies
- CPX
- computer
- USB C
- Wires
- mouse trap body
- mousetrap door
Wiring & Assembly
To wire our CPX and motor we connected the red wire to VOUT, the yellow wire to A1, and the black to GND. We attached the motor to our trap door which is what allows it to open and close. Using a code, the CPX is programmed to signal the motor to rotate 45 degrees when connected correctly. The arm is connected to the motor and is used to lift the mousetrap door to catch the mouse.
3D Printing Body
Once you have to STL files downloaded to your computer it’s time to print. Go to: Ahttps://cloudprint.makerbot.com/workspace/5cee2705-8865-47a3-bf28-f6dd6a4507af/printers
and click print in the top left corner
3D Printing Body
Make sure you’re in “Sketch”
3D Printing Body
Click print preview to ensure there are no errors and then you are ready to print by uploading this to the flash drive compatible with you're computer and 3D printer
3D Printing Tubes
Follow the same steps as for the mousetrap body
1. Once you have to STL files downloaded to your computer it’s time to print. Go to: Ahttps://cloudprint.makerbot.com/workspace/5cee2705-8865-47a3-bf28-f6dd6a4507af/printers
and click print in the top left corner
2.Make sure you’re in “Sketch”
4.Click print preview to ensure there are no errors and then you are ready to print by uploading this to the flash drive compatible with you're computer and 3D printer
What You Will Print
We have provided files that have the box and the lid and the tubes for the wires.
New Look
In order to advance our mousetrap from last time, we decided the wiring needed to be covered. Weave the wires through the tubes.
Python Code
This is different from the regular code because it is required to have lights, motion, and sound. Although we were unable to make them work together, but individually they work.