1
Open Panzer Help / Re: Airsoft ESC control
« on: June 01, 2018, 05:31:36 AM »
I got this working last night!
So after some testing, it seems that I couldn't get the MERF to detect the Airsoft output from the TCB as a signal to fire, no matter how I connected it. The relay worked to start the firing process, but the response was too slow to control a single shot.
Having looked at the options for the GPIOs as you suggested, I realised that the full functionality of the default Airsoft set up can be emulated there, so I decided to give that a try.
GPIO "A" is set up as an input. This is connected to the switch located at the "selector nub" as I call it. The switch is closed when the firing cycle completes.
GPIO "B" is set to output. This is a single wire connection to the MERF, which detects a high logic signal and initiates the firing cycle at this point.
In the Functions section I've set GPIO B to be turned on by Aux 1 from my radio, and to be turned off by GPIO A detected as being "high".
My idea with the relay did work, but I think the delay in firing the relay caused 2-3 shots to be fired rather than a single shot. Now, using the GPIO directly into the MERF, I get a single shot, every time, working exactly as intended.
So after some testing, it seems that I couldn't get the MERF to detect the Airsoft output from the TCB as a signal to fire, no matter how I connected it. The relay worked to start the firing process, but the response was too slow to control a single shot.
Having looked at the options for the GPIOs as you suggested, I realised that the full functionality of the default Airsoft set up can be emulated there, so I decided to give that a try.
GPIO "A" is set up as an input. This is connected to the switch located at the "selector nub" as I call it. The switch is closed when the firing cycle completes.
GPIO "B" is set to output. This is a single wire connection to the MERF, which detects a high logic signal and initiates the firing cycle at this point.
In the Functions section I've set GPIO B to be turned on by Aux 1 from my radio, and to be turned off by GPIO A detected as being "high".
My idea with the relay did work, but I think the delay in firing the relay caused 2-3 shots to be fired rather than a single shot. Now, using the GPIO directly into the MERF, I get a single shot, every time, working exactly as intended.