Hi all, I am working on a game/simulator using an Airsoft gun. My goal is to use an Arduino to detect and control the signal from the trigger to the gate of the MOSFET in the gun. I need the ability to count shots fired, and cut the signal to MOSFET to simulate an empty magazine. The Arduino will use a separate power supply either USB or a small battery, and I would like the gun and Arduino to isolated from each other. I also would like the gun to function as normal when the Arduino is off, so I can use it as a normal AEG. My idea is to use an optocoupler to detect the trigger presses, and a form B SSR (Normally closed so i can turn off the arduino and use as normal) to cut off the signal to the guns MOSFET gate. I do not have a lot experience with circuit design so I was wondering if you could take a look at the circuit i have come up with and let me know if it will work, or offer any suggestions for a better solution. Thanks in advance for any help.

Attachments
-
6.8 KB Views: 0