Doors- and Windows Locked/Unlocked Sensors

by poulanker in Circuits > Sensors

1592 Views, 9 Favorites, 0 Comments

Doors- and Windows Locked/Unlocked Sensors

sensor adskilt.jpg
skydedør magnet.jpg
vindue magnet.jpg

I have added various sensors throughout our house. I wanted to be able to detect that windows and doors are not just closed but also locked.

For this purpose I designed and 3d-printed a couple of magnet holders that attaches to the handles on the windows and sliding doors.

The supplied STL files are for inspiration only, They fit the handles we have in our house, yours might be different.

Due to limited space between magnet and sensor, I chose to use a smaller neodynium magnet than the one supplied with the sensor.

Magnet: 10x5x3 mm

Sensor: Aqara, but other brands can be used as long as the sensor fits between the frame, magnet and handle.

The front and back door solution required some soldering and repositioning of the sensor's reed switch.

Supplies

Window

vindue ulåst.jpg
  1. Set the handle in the "unlocked" position.
  2. Remove the supports from the "arms" on the 3d-printed holder.
  3. Slide the holder onto the handle as shown.
  4. Squeze the ring and push the magnet into the holder.
  5. Slide the holder all the way until it stops at the base of the handle.

Attaching Holder and Sensor

vindue låst.jpg

Close the handle and observe that "locked" is only detected when the window is completely shut and the handle is in the locked position.

Sliding Door

F5KZBG7L19AMRRS.jpeg

Insert the magnet in the Sliding door magnet holder.

Placing the Sensor

skydedør ulåst.jpg
skydedør låst.jpg
  1. Slide the magnet holder onto the handle (magnet invisible).
  2. Place the sensor such that it will only detect "closed" when the door is completely shut and the handle is in the locked position.

Front Door

låsepal magnet.jpg

Place a magnet on the tip of the Locking Pawl.

Prepare Door Frame

montering i dørblik.jpg

Drill a 5 mm hole in the door frame aligned such that the reed switch is positioned in the bottom of the hole for the locking pawl. Make sure that there is adequate room for the magnet on the tip of the locking pawl when the door is locked.

Modifying the Sensor

F0ET3RBL19AMRRQ.jpeg
  1. Disasemble the sensor unit (note how the reset pin is situated) and carefully unsolder the reed switch from the 2 soldering pads on the pcb. (sorry no pictures of these steps).
  2. Solder a thin wire to each of these pads and bend the wires such that they stand perpendicular to the pcb on the opposite side.
  3. Remount the pcb and make sure that the reset pin can trigger the switch.
  4. Drill a hole in the pcb cover and remount the cover with the wires protruding the hole.
  5. Measure the depth of the hole and cut the wires to a length such that the reed switch is correctly placed when the sensor is mounted on the door frame.
  6. Solder the wires to the pins on the reed switch that were previously unsoldered.

Sensor Placement

dørblik.jpg

Slide the reed switch into the hole and mount the sensor unit on the door frame.