How would I press the electrical switch on say an electronic paintball or airsoft gun? Let's say it is just a SPST switch.
|
To press a switch, you'll need some kind of expensive solenoid or servo, and mechanical linkages, and mounting hardware, and trigger pressure characterizations, and power-loss state characterization, and a 12V power supply, and driver circuitry, and it all adds up to a lot of work to push the physical trigger. If I were you, though, and had access to the hardware, I'd characterize the circuit the trigger switch is attached to (is it normally open or normally closed is really all you need to know), and attach a simple relay or MOSFET to an I/O pin on a microcontroller (I'd suggest the relay, because it's closer to the original circuit, avoids any voltage referencing issues, and has a mechanical spring to ensure that if your circuit goes dead, the trigger won't go off). Then, remove the switch from the gun, and attach your circuit. |
|||||||||||
|
|
I would go with the relay personally, quick and easy. Arduino to close the relay, NO connected to the switch. Easy as. Digital pin to run the relay. Sustained fire will work just keep the relay energised. Just make sure your relay can take the current from the switch it's replacing, which should be low anyway, and that the 5v from the arduino is enough to active the relay. |
|||
|
|
|
Here's a bit of a tutorial on relays and Arduino: http://tronixstuff.wordpress.com/2010/04/20/getting-started-with-arduino-chapter-three/ |
|||
|
|