The solenoid door lock will remain open until the hall effect sensor output is high.
Solenoid door lock circuit.
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.
Only 4 left in stock order soon.
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.
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.
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.
Get it as soon as thu sep 3.