I am working on something that needs a locking system. I was wondering if I could use a 5v small linear solenoid to achieve this. Now my question is if I can use this, is it possible to activate it using a switch. Weather it is a button or a sensor switch. Thanks in advance...GM
That will definitely work and it's easy to use. I have a small solenoid just like that that I'm using for a project. That solenoid will stay extended until you give it power and then it will retract as long as power is applied. You can turn it on with a switch or use it with a sensor and microcontroller. With a microcontroller (Arduino or similar) you would use a transistor to turn it on. I can make you a diagram if you like.
Here you go. This is the easiest way you can do this with a microcontroller. You can use several different transistors to do this- just make sure the transistor can handle the solenoid current requirement. The drawing shows two transistors but you could also use a TIP120 or a N-channel MOSFET like this one- www.adafruit.com/products/355
With a MOSFET you don't need the 1K Ohm resistor. You do need to pay attention to the duty cycle of the solenoid as they are not meant to always be powered on continuously.
Post by propmaster2000 on Apr 27, 2017 12:35:09 GMT
Hi Murdoch, The 5vdc solenoid you have is considered a push type, where the pin comes out during activation (even though the product page indicates it's a pull type). Here is a link to a video showing that particular solenoid in use.
As Honus mentioned, it is not for continuous duty (where the pin is locking your device during power up).
You may need a "pull type", where the pin is protruding, locking your device with no power needed.
Not sure of your usage, but a "pull type" may work the best to pull the pin to open your item. Then when power is removed and the pin returns to the locked position due to the shaft spring action.