Prepare dual voltage 5v 12v power supply to power raspberry pi and electronic door strike simultaneously.
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.
The gpio pins of the raspberry pi can give an output of 3 3v but the solenoid lock requires 7 12v to operate.
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.
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 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.
Connect the vcc and gnd of the relay module to 5v and gnd of raspberry pi.
Because of this we will need to use an external power source and relay to operate the lock.
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.