Get it as soon as thu sep 3.
Solenoid door lock circuit.
The solenoid door lock will remain open until the hall effect sensor output is high.
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.
Fc mxbb dc 12v electric lock cabinet lock furniture locks for file cabinet door solenoid lock black 5 0 out of 5 stars 1.
Connect your diode between the two solenoid cables this will prevent current discharging back through the circuit when the solenoid coil discharges.
Connect your solenoid to separate lines on your breadboard one to the 5v power from step 2 the other needs to connect to the collector middle of the transistor.
Now when the door again reaches near to the hall sensor while closing hall effect sensor status will change to low due to the magnetic field generated by the magnet attached at the door and the lock will be closed again.
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.