(I think my previous post was consumed by the moderation queue - I have waited until today to repost)
I am making a simulation training device out of an Airsoft Rifle. I have a microcontroller and switches attached to the rifle that senses when things happen and tells this to a computer over USB. A switch is on the M203 Grenade Launcher breach, the M203 leaf sight, and the M203 trigger. In the previous version of the device that worked as intended, the rifle trigger switch was made by hijacking the trigger switch circuit. The 9.6 volt 1600mAh was removed from the high-torque motor that generates the air pressure for the pellet launch, and replaced with the 5 volts coming from the Arduino Mini Microcontroller. When the trigger was pressed, the 5v and 40mA was returned to a microcontroller pin.
So now we want to add the satisfying report to the rifle back by replacing the 9.6v battery and motor, and then sensing when this switch circuit has been activated. (The M203 circuit components will not be affected) So here is the problem - I cannot get access to the trigger switch to make a double pole, double throw circuit to isolate both circuits. This means I need to a) sense when the trigger has been depressed and the 9.6v/1600mAh is flowing to the motor, b) provide a constant 5v/40mA back to the pin on the microcontroller when this happens, and c) do this while providing voltage spike protection normally associated with a motor circuit. What is the best circuit diagram to do this with the two separate voltages, one being a battery?
Please note that I am not an electronics experts, please break it down Big Purple Crayon Style.
I am making a simulation training device out of an Airsoft Rifle. I have a microcontroller and switches attached to the rifle that senses when things happen and tells this to a computer over USB. A switch is on the M203 Grenade Launcher breach, the M203 leaf sight, and the M203 trigger. In the previous version of the device that worked as intended, the rifle trigger switch was made by hijacking the trigger switch circuit. The 9.6 volt 1600mAh was removed from the high-torque motor that generates the air pressure for the pellet launch, and replaced with the 5 volts coming from the Arduino Mini Microcontroller. When the trigger was pressed, the 5v and 40mA was returned to a microcontroller pin.
So now we want to add the satisfying report to the rifle back by replacing the 9.6v battery and motor, and then sensing when this switch circuit has been activated. (The M203 circuit components will not be affected) So here is the problem - I cannot get access to the trigger switch to make a double pole, double throw circuit to isolate both circuits. This means I need to a) sense when the trigger has been depressed and the 9.6v/1600mAh is flowing to the motor, b) provide a constant 5v/40mA back to the pin on the microcontroller when this happens, and c) do this while providing voltage spike protection normally associated with a motor circuit. What is the best circuit diagram to do this with the two separate voltages, one being a battery?
Please note that I am not an electronics experts, please break it down Big Purple Crayon Style.
Attachments
-
109.7 KB Views: 85