how to make a door switch

How to Make a Door Switch

By Amanda King
AD

Creating a door switch, also known as a door reed switch, is a straightforward DIY project that adds security and convenience to your home or office. This simple device can automatically turn lights on or off, trigger alarms, or activate other appliances when a door is opened or closed. Today, we'll guide you through the process, from gathering materials to setting up your handy new door switch.

Before diving in, remember that safety is paramount when dealing with electrical components. Always ensure you're working in safe conditions and follow electrical safety guidelines.

Understanding Door Reed Switches

A door reed switch consists of a magnet, a reed switch, and wiring. When the magnet moves close to or away from the reed switch, it activates or deactivates the switch, completing or breaking the electrical circuit. This basic principle enables us to create a simple and reliable door switch.

AD
How to Switch a Door From Right Opening to Left Opening: 10 Steps
How to Switch a Door From Right Opening to Left Opening: 10 Steps
fnaf
fnaf
FNAF 1 Door buttons for decorating sticker on a light switch (CHECK DES FOR MORE DETAILS)
FNAF 1 Door buttons for decorating sticker on a light switch (CHECK DES FOR MORE DETAILS)

Here's what you'll need to make your door reed switch:

  • A reed switch
  • A magnet (ensure it's strong enough to activate the switch from a suitable distance)
  • Electrical wire (appropriate gauge for your purpose)
  • Insulated connectors or wire nuts
  • Soldering iron and solder (optional, but recommended for a clean, reliable connection)
  • Screws, a screwdriver, and a drill (for mounting the switch and magnet)

Choosing the Right Reed Switch

Reed switches come in various types, with varying operating voltages, switching capacities, and electrical specifications. Choose a switch with an operating voltage suitable for your application (usually 24V DC or 120V AC for common DIY projects). Also, consider the switch's switching capacity to ensure it can handle the current required for your device.

How to Use a Magnetic Door Switch / Sensor With Arduino
How to Use a Magnetic Door Switch / Sensor With Arduino
A cool ass DOOR activated light switch #door #electrical #switch @leviton
A cool ass DOOR activated light switch #door #electrical #switch @leviton
Door Alarm
Door Alarm

For a door switch, you'll typically want a normally open (NO) switch. Upon closing the door, the magnet moves close to the switch, causing it to close the circuit. As the door opens, the circuit is broken again.

Selecting the Magnet

The magnet's strength and size depend on your specific use case and the distance between the magnet and the switch when the door is open and closed. A strong magnet, like a neodymium magnet, is typically sufficient for door switches.

AD

Mounting magnets are commonly available in various shapes and sizes. Consider the magnet's size when choosing a suitable location for mounting it on the door frame. Additionally, ensure the magnet's pole alignment allows it to pull the reed switch plunger in and out when the door opens and closes.

an electrical device is attached to a wooden door handle with a battery plugged into it
an electrical device is attached to a wooden door handle with a battery plugged into it
How to make a simple switch
How to make a simple switch
a small pink object sitting on top of a wooden table next to a black wire
a small pink object sitting on top of a wooden table next to a black wire
Touch DoorBell DIY - How to Make Touch Switch Door Bell (Breadboard Tutorial)
Touch DoorBell DIY - How to Make Touch Switch Door Bell (Breadboard Tutorial)
DIY Hacks & How To's: Secret Candlestick Switch
DIY Hacks & How To's: Secret Candlestick Switch
Monitor Your Door Using Magnetic Reed Switch and Arduino | Random Nerd Tutorials
Monitor Your Door Using Magnetic Reed Switch and Arduino | Random Nerd Tutorials

Building and Installing the Door Switch

Now that we have our components, let's assemble and install the door switch. For this example, we'll connect the reed switch to a set of lights, turning them on when the door opens and off when it closes.

Wiring the Reed Switch

First, strip the insulation from the ends of your electrical wire, exposing about 1/2 inch of copper. Twist the exposed copper strands tightly using wire strippers or needle-nose pliers to prevent fraying. If you prefer, you can also use insulated connectors or wire nuts to connect the wires.

AD

Next, solder the wire to the reed switch terminals. Ensure you connect the wires to the correct terminals, typically labeled NO (normally open) and COM (common) or one marked with a dot (for the switch's NO terminal). If you're unsure, consult the manufacturer's guidelines.

How to wire door switch
How to wire door switch

Mounting the Reed Switch and Magnet

Drill holes into the door frame and door, ensuring they align when the door is closed. Use appropriate screws to mount the reed switch on one side and the magnet on the other, positioning them to attract and repel each other when the door opens and closes. Make sure there's enough clearance between the magnet and the switch to allow for door movement without obstruction.

Run the connected electrical wire through the drilled holes and along the door frame or wall, connecting it to your lighting circuit or desired device. Secure the wire using cable clips or electrical tape to prevent wear and tear and ensure safety.

AD

Testing and Improving Your Door Switch

Before using your door switch, test it to ensure everything works as expected. Slowly open and close the door, observing the switch's behavior. If the lights turn on when the door opens and off when it closes, your door switch is working perfectly!

If the switch isn't functioning as expected, double-check your wiring and mounting. Ensure the magnet is correctly positioned and that there's no obstruction preventing it from activating the switch. You may also need to adapt the magnet's strength or position based on your specific use case.

Expanding Your Door Switch Setup

Once you're satisfied with your basic door switch, consider expanding its functionality. You can connect additional electrical devices, such as motion sensors or timers, to create a complete automation system. Alternatively, you could add multiple reed switches and magnets to operate various devices throughout your home.

Another enhancement is to use an Arduino or other microcontroller to add more sophisticated functionality, like setting custom delays or integrating the switch with a smart home system.

Congratulations! You've just created a practical, custom door switch that adds convenience and security to your living or working space. As with any DIY project, there's always room to grow and improve. Keep exploring and expanding your newfound electrical skills to enhance your home and life.

AD