# How to control a solenoid?

Hi,
I have a tiny solenoid from an automatic air freshener that I want to control manually.
The solenoid acts as a valve that opens when fed 5v, and closed when no voltage is present.
On the factory board, there's a timer that triggers the solenoid every few minutes for a fraction of a second (opens and closes so fast it just sounds like a click).

What is the simplest way (No Arduino, Raspberry, etc.) to make a 5 volt pulse to make it go "click" on the push of a button?  Further more, how would I control the length of the 5v pulse?  I want to be able to control the amount of gas it passes (Pun intended) when activated.

Any information would be helpful, and a circuit diagram would be greatly appreciated (I can read diagrams but can't design a circuit).
Thanks!!!

8 months ago
Try this one
Morgantao (author)  iceng8 months ago
Perfect.
Thanks for the help guys!
steveastrouk8 months ago
Look for circuits like this
Morgantao (author)  steveastrouk8 months ago
Perfect!
You're amazing dude. :)
Morgantao (author)  steveastrouk8 months ago
That is ALMOST what I need....
Alas, the circuit in the link has adjustable frequency AND adjustable pulse width. I need just a variable pulse width with no frequency at all (One pulse per push of a button).

I'm sure it's a simple conversion from the linked circuit to what I need, but I wouldn't know where to start :(

I'll google some more, see if I can find something along these lines.
8 months ago
In that case this is all you need. A 555 "one-shot" or "monostable"
http://www.technologystudent.com/elec1/5554.htm
Morgantao (author)  steveastrouk8 months ago
Ah, that's more like it :)
Just a couple of questions:
1) What happens if the activation button is held for longer than the timer cycle? In the linked example, the buzzer sounds for 8 seconds, but in my application we're talking about fractions of a second. Will the circuit "rapid fire" like a machine gun, or will it act like a pistol (One pull of the trigger equals one shot, no matter how long you keep the trigger pulled)?
2) On the last sentence of the last paragraph they talk about VR1. I don't see it in the diagram. Do they mean I replace R1 with a VR?