Because of this we will need to use an external power source and relay to operate the lock.
Solenoid door lock raspberry pi.
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.
Connect the vcc and gnd of the relay module to 5v and gnd of raspberry pi.
Prepare dual voltage 5v 12v power supply to power raspberry pi and electronic door strike simultaneously.
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.
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.
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.