Next up we need to prepare our power supply to provide power both to the raspberry pi which requires 5v and to the door lock which requires 12v and is triggered using the relay switch.
Solenoid door lock raspberry pi.
Because of this we will need to use an external power source and relay to operate the lock.
Here a solenoid lock and a pi camera will be used with raspberry pi to build this face recognition based door lock system using raspberry pi 3.
The circuit diagram for raspberry pi solenoid door lock is very simple as you only need to connect the solenoid door lock to raspberry pi.
We previously used solenoid lock with raspberry pi and also built few projects with pi camera like web controlled raspberry pi surveillance robot iot based smart wi fi doorbell smart cctv.
Solenoid lock needs 9v 12v to operate and raspberry pi gpio pins can supply only 3 3v so a 12v external power source is used to trigger the lock with the help of a relay.
When the user tries to access the system the data is fetched from a mysql database on the raspberry pi zero then unlocks the solenoid lock if it identifies the rfid id or the fingerprint.
This project aims to implement door lock system on raspberry pi zero w.
The gpio pins of the raspberry pi can give an output of 3 3v but the solenoid lock requires 7 12v to operate.