Solenoid rapid on / off circuit for arcade game gun recoil

Bernard

Joined Aug 7, 2008
5,784
Looks like Vcc has already been cut before end of cycle. To speed up discharge a resistor can be put in series
with D4, or from long ago, 1950s, it was suggested to use a resistor of 2 X coil resistance in series with a .1 uF.
as snubber.
Re # 21, if hit hard enough, inertia should complete the cycle.
 
Last edited:

Thread Starter

Goemon

Joined Nov 6, 2018
7
Is the supply AC? I had been assuming DC supply, but I don't see any indication either way in the previous posts.

Also, shouldn't there be a flyback (or freewheeling) diode across L1?
I'm not sure it matters on AC vs DC. It's more important to match the PSU to what the chosen solenoid is rated for. The battery used to power the solenoid in the video was a 12v DC 3amp. Higher amps or voltage increases the force it activates with.

On most of the solenoids I have used, the rating is nominal (within reason). A 12v solenoid run on 12v 3a activates with more force than a 24v solenoid run on 12v 3a. But it usually isn't an issue to lower the volts and raise the amps to compensate.

So, I'll use the right power supply for solenoid I end up using.

For this purpose, assume I will be using the 12v solenoid in the video or one with similar ratings. Most arcade gun solenoids are a similar size anyway.
 

Bernard

Joined Aug 7, 2008
5,784
Could an oscillating relay serve the same function as a solenoid?
For me the right V would be 2 X solenoid rating.
 
Last edited:

Thread Starter

Goemon

Joined Nov 6, 2018
7
It looks like the circuit is designed such that switching always happens at zero volts or zero current so there shouldn't be any transient across the MOSFET, maybe? I'm not at all confident that I understand the circuit - I'm just going by the simulation results.

Regardless, I don't see how D4 is a flyback diode, only a rectifier it seems. I'm totally with you on that one.

I suppose the question that remains is, if you design a circuit that should never generate an inductive transient, do you still need the flyback diode for edge cases, like the whole circuit losing power while the coil is active?
I am not necessarily looking to replicate the design in the video. I know very little about electronics compared to you guys. I am sure what I did is not the best way to make a solenoid rapidly turn on an off.... I only posted the video to show that it is possible for a solenoid to operate at the desired speed.

I am a complete beginner with this type of project. I have heard of and even used some of the components mentioned here but I don't know what they do. I also don't know what any of the symbols mean in other people circuit diagrams.

But.., I can follow instructions that say things like "buy these 6 components" and "solder this wire to pin 6 on this component" etc.

That is the reason why my "circuit" (a very generous description) has no components other than the solenoid, a few wires, a piece of copper and a micro-switch. One of the solenoid wires goes to a copper contact on the end of the cylinder. That contact touches a piece of copper plate that is wired to the PSU in it's resting position. When the solenoid is activated (with a micro switch), it immediately breaks the circuit as the cylinder pulls away from the copper plate and it then connects again when it is returned. The cycle repeats until the trigger micro switch is released.
 

Thread Starter

Goemon

Joined Nov 6, 2018
7
A simpler arrangement will be to have the solenoid operate a switch when it approaches full stroke, and then have that switch drive the circuit to release the solenoid. That way it will only try to move as fast as it can, and the cycles will thend to slow a bit as the solenoid heats up. The function is very similar to an electromechanical buzzer. I built one of these back in 1956, and it worked very well.
I thought about that initially but it won't work. If the circuit is broken at the other end by the solenoid pressing a normally open button, it will re-activate as soon as that button is released. The amount travel of the solenoid cylinder would be tiny and wouldn't produce the desired effect.

If I added a stronger spring, I could replace the copper contacts with a normally closed button that the solenoid presses in it's resting position and releases on activation but I was hoping for a more reliable design where the rapid on and off power is provided electronically instead of mechanically....

A strobe light, for example, doesn't rely on switches to turn power to the light on and off. I just don't know how it does work...
 

Danko

Joined Nov 22, 2017
2,261
Maximal amplitude of solenoid plunger will be in self-oscillation (resonant) mode.
Period T [seconds] is equal:
T = 6.28*square root of (m/k), where
m - mass of plunger [kilograms],
k - spring rate [newton/meter].
Then oscillation frequency f [Hz] is equal:
f = 1/T = 0.159*square root of (k/m)
This is flow diagram of device:
solenoid-1.png
Spring of solenoid is fixed to plunger in point A and to solenoid body in point B.
In free state the end of plunger is located in position N.
Plunger oscillates between positions MIN and MAX.
When button of switch SW1 is pressed, then LED D1 fires, voltage on phototransistor Q1 changes, monostable multivibrator A1 generates pulse, FET M1 for short time (for example 10 ms) switches solenoid to ON.
While button of SW1 is pressed, A1 generate pulses every time, when illumination intensity on Q1 changes from low to high.
solenoid-2.png
 
Last edited:

MisterBill2

Joined Jan 23, 2018
28,676
But doesn't that usually generate less than a full stroke from the solenoid?
In the assembly that I made it did not matter, because all of the noise and vibration came from the one end of the stroke. Imilar to the big kick from a powder using gun. I have no idea as to the kick from a ray gun.
 

crutschow

Joined Mar 14, 2008
38,956
If yo
When button of switch SW1 is pressed, then LED D1 fires, voltage on phototransistor Q1 changes, monostable multivibrator A1 generates pulse, ....
Assuming that the LED light is blocked when the plunger is in its resting position at left, then, to get it started, the switch needs to directly initiate the first one-shot pulse.
After that, the one-shot can be triggered every time the phototransistor LED light is interrupted as the plunger returns to the left.

A 555 one-shot can be configured to do this if it is powered directly by SW1.
 

Danko

Joined Nov 22, 2017
2,261
Assuming that the LED light is blocked when the plunger is in its resting position at left, then, to get it started, the switch needs to directly initiate the first one-shot pulse.
In free state spring always returns plunger to neutral position N because spring is working for compression and for stretching.
 

Danko

Joined Nov 22, 2017
2,261
Okay.
But I don't think that's typical of the solenoids the OP has.
May be.
But OP knows better.
EDIT:
My recommendation in post #27:
Spring of solenoid is fixed to plunger in point A and to solenoid body in point B.
In this case plunger will accomplish right harmonic oscillations and pulses will be in phase with oscillations.
 
Last edited:

crutschow

Joined Mar 14, 2008
38,956
Following Danko's suggestion, you could use a similar circuit with a solenoid whose off position is fully extended (to the left in Danko's diagram) with the proviso I mentioned in post #29.
You would then just have to adjust the one-shot (monostable) pulse-width to give an optimum stroke length and rep rate.
 

crutschow

Joined Mar 14, 2008
38,956
Below is the 555 circuit schematic and the LTspice simulation for a solenoid with off position at full extension:
The photo interrupter signal (yellow trance) is low when the solenoid is fully extended (interrupter signal blocked).
Pot U3 adjusts the 555 one-shot period.

upload_2018-11-9_21-29-8.png
 

MisterBill2

Joined Jan 23, 2018
28,676
Good thinking to use a zener to protect the FET, since a regular diode would slow the solenoid release time quite a bit, totally defeating the intent completely.
Still, the original circuit was even used in an industrial "chute shaker" in a sugar mill many years ago. It had a larger solenoid bolted to a chute that suffered from occasional jam ups. The banging of the solenoid was a replacement for a man with a hammer beating on the chute to break the jam. And it only used an enclosed switch of some kind, which I could not see. The thing ran on 440 volts and drew about ten amps, since it was a serious solenoid. Very loud, so it was not the final fix, but it did work. It also failed to meet several safety rules.
 

Danko

Joined Nov 22, 2017
2,261
Zeners, used for dissipating energy, stored in solenoid coils, are not cheap.
Price of zener NTE5203, Pmax=10W, is $16.10.
For example, power, dissipated by zener in circuit post #36, is around 4W.
Circuit below shows method of dissipating energy, stored in coil, using cheap components.
Total cost of D1, D2, D3 is $0.65 for power dissipation up to 75W (using FET BUZ11).
Prices are from https://www.newark.com.
method.PNG
 
Last edited:

MisterBill2

Joined Jan 23, 2018
28,676
To dissipate the energy why not just use a reversed diode and a suitable sized resistor?Make the resistor about ten times the coils resistance and select a higher voltage diode for the anticipated current. Much cheaper than a good zener diode. Yes, they take up more space, but is that a problem?
 

crutschow

Joined Mar 14, 2008
38,956
Yes, they take up more space, but is that a problem?
Likely not.
But the important difference is that the Zener generates a constant voltage during the inductive transient so the inductor current decays linearly, while the resistor voltage drops as the inductor current drops so the decay is exponential.
Thus for a given peak voltage, the Zener circuit will give a faster inductive current decay than the resistor.
That's a factor if you want the solenoid to operate as fast as possible.

Below is the LTspice simulation showing the difference in current decay for the same peak transient voltage:

upload_2018-11-16_20-27-51.png
 
Top