Because of this we will need to use an external power source and relay to operate the lock.
Solenoid door lock 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.
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.
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.
This project aims to implement door lock system on raspberry pi zero w.
The project uses rfid reader and fingerprint sensor for dual access modes.
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.
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.