I am trying to create an electronic trigger system with an airsoft gun.
Requirements:
- Fire once (rotate motor for one revolution even while trigger held).
- Fire multiple (rotate motor for as long as trigger is pressed).
- Safety switch to stop motor if closed.
I am Struggling with req 1 as need to detect a full revolution and then disable motor until trigger released and then repressed.
So far I have one switch for the safety (simple flip switch) which will be put in between power and rest of circuit. I have another normally open button for the trigger which will be placed between motor and safety switch mentioned above. I then have a gear (turned by the motor) which has a part extruding which will press another button.
I’m then wondering how I can implement functionality to stop the motor if the above switch is pressed.
My idea is to add a electronic switch of some kind which is opened by the above switch cutting the power to the motor for as long as the trigger button is pressed and then closed when the trigger is fully released.
I will also need to add a method to choose between req 1 and req 2.
Thanks hope that explains better.