Ever wanted a simple but reliable way to know when someone opens your door? 🚪🔔 The DIY 3D-Printed Magnetic Door Alarm makes it possible! Using a magnetic switch, buzzer, and LED inside a compact 3D-printed case, this project gives you instant alerts whenever the door is opened.
The 3D Magnetic Door Alarm is a simple project for home security. When the door opens, the alarm sounds right away to alert anyone nearby. A 3D-printed case keeps it compact, neat, and easy to mount. Since it’s custom-made, the design can easily fit many door setups.
What You’ll Learn
By building this 3D Magnetic Door Alarm, you will:
- Understand how a magnetic switch trigger works.
- Learn how to connect buzzers and LEDs for alarms.
- See why current flow management improves efficiency.
- Gain hands-on experience in simple circuit assembly.
Why Build a 3D Magnetic Door Alarm?
Unlike store-bought alarms, this DIY Magnetic Door Alarm is customizable, affordable, and fun to build. Moreover, it works without a power outlet, making it reliable for different setups. For example, you can adjust the alert strength to create either a loud siren for security or a softer sound that won’t disturb your neighbors.
In addition, this project is perfect for beginners and hobbyists. With just a few components and basic wiring, you’ll quickly learn how electronics and mechanics work together. As a result, it also becomes a flexible project that you can upgrade later with smart add-ons
What You’ll Need

Electronic Components
- Magnetic Switch Door – detects when the door is opened/closed
- Wired Outdoor Siren – produces the loud alarm sound
- DC Motor Speed Controller – is mainly used to adjust the volume
- 5 mm LED – visual alert when alarm is triggered
- 12 Battery 8 x AA
- AA Batteries
- Female Plug Terminal
Tools & Accessories
Circuit Diagram:

How it Works ?
Magnetic Switch Trigger
- A magnetic switch is mounted on the door and frame.
- When the door is closed, the switch stays engaged (circuit is open).
- Opening the door separates the magnets, closing the circuit and activating the alarm system.
Alarm Activation
- Once triggered, the circuit powers up the 12V siren, producing a loud sound to alert nearby people.
- The buzzer provides an additional sharp tone, ensuring the alarm can be heard even in noisy environments.
Visual Alert
- A 5mm LED lights up when the alarm is triggered, serving as a clear visual indicator that the system has been activated.
Power & Control
- A DC Motor Speed Controller manages the current flow, ensuring the siren and buzzer run at the proper intensity without overloading the circuit.
- This allows smooth operation and prolongs the life of the components.
Failsafe & Efficiency
- The system runs on a 12V supply, giving enough power to the siren, LED, and buzzer.
- Simple wiring and minimal components make it reliable, energy-efficient, and easy to maintain.
📹 Watch the Full Demo Video
Here’s the full demo video of our DIY 3D-Printed Magnetic Door Alarm in action. Watch how the magnetic switch, LED, and buzzer work together to create an instant security alert system.