I have a very simple setup powered by a 9 V battery. The lock solenoid when connected directly to the battery works great.
I have built a test circuit using a push button and a transistor in an attempt to make it so that when I press the button down the lock solenoid will power up. This circuit works fine with an LED, but does nothing at all when I swap the LED for the lock solenoid. I have tested this with a DC motor and lock solenoid. Both the motor and solenoid are 4.5 V and work when directly connected to the battery, but not when replacing the LED in the circuit. I will attach some photos of the circuit.
I have been messing with this for days with no progress. My ultimate goal is to control this solenoid with an Arduino Nano, but I could not get that working so I am trying to get it working with the push button acting as the Nano IO signal before I move further with the microcontroller.
Any advice at all would be appreciated, I am still very new to all this.
Circuit photos attached below: