Connect your diode between the two solenoid cables this will prevent current discharging back through the circuit when the solenoid coil discharges.
Solenoid door lock circuit.
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.
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.
Free shipping on your first order shipped by amazon.
The solenoid door lock will remain open until the hall effect sensor output is high.
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.
Get it as soon as thu sep 3.