Balázs Simon
Published © GPL3+

Hidden Door Lock for Smart Buildings

Unlock doors of your home by rotating a simple magnet!

BeginnerFull instructions provided4 hours3,837
Hidden Door Lock for Smart Buildings

Things used in this project

Hardware components

3D Magnetic Sensor 2Go
Infineon 3D Magnetic Sensor 2Go
×1
Solenoid Lock
×1
Darlington High Power Transistor
Darlington High Power Transistor
TIP120
×1
Resistor 4.75k ohm
Resistor 4.75k ohm
×1
6-12V power source
×1
5V power source
×1
Magnet
×1
Plastic bottlecap
×2

Software apps and online services

Arduino IDE
Arduino IDE
SEGGER J-Link

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Schematics

The circuit of the hidden lock

The image of the circuit contains an XMC2Go board, but you'll have to use a 3D Magnetic Sensor 2Go. They are very similar boards and they have the same pinout, however by default, XMC2Go doesn't have a 3D magnetic sensor.

Code

My code for the Hidden lock for smart houses project

This is the code that you need to upload to the board to replicate my project.

Library for the sensor

This library is required to use the magnetic sensor of the board. Follow the instructions of the repo to configure the Arduino IDE for the 3D Magnetic Sensor 2Go board

Home Manager

The door_lock folder contains the code for the ESP8266 if you want to use it

Credits

Balázs Simon

Balázs Simon

12 projects • 86 followers

Comments