Main > Lightguns
Custom Light Gun Recoil - help needed
<< < (2/5) > >>
trevski:

Not sure if you noticed this thread for a version of the Aimtrak firmware with recoil pulse output? (http://forum.arcadecontrols.com/index.php?topic=109142.0)

Most of the hard work is done for you using that method and only requires a simple circuit with a mosfet and diode, as pointed out by Andy.

However, as you said you would like to cover all the bases, and you're going ahead with a more compex solution - Wouldn't it be sweet to allow an extra input into that circuit to trigger a pulse to the solenoid. I'm thinking you could use the output from an LEDwiz that is hooked into Mame.
GreatLamer:
shaking wont kill your aimtrak electronic?
ids:

--- Quote from: trevski on March 23, 2011, 06:01:50 pm ---Not sure if you noticed this thread ...
--- End quote ---

Thanks for the link - I recall hearing of a pulse option from Andy, maybe from that thread.  Just seemed like a pita to request a custom firmware and hack around with "pin 5" which is a tiny pad on the aimtrack board.  All it would change is that R1 and C1 become irrelevant.

The Mosfet option might eliminate most of the rest of the circuit above, but it's beyond me without a circuit diagram.  I don't know how well a 40ms pulse would trigger the solenoid - presumably Andy chose the timing to do a good job of it.  For those more confident in their abilities, it's probably a good option.  If someone works it out, please provide details.


--- Quote ---Wouldn't it be sweet to allow an extra input into that circuit to trigger a pulse to the solenoid. I'm thinking you could use the output from an LEDwiz that is hooked into Mame.
--- End quote ---

Good idea.  However, the LEDWiz signal is low/ground, and the above circuit is triggered by a high/+5.  To make the LEDWiz fire this thing, you'd need some kind of logic inverter, maybe one of these:
http://focus.ti.com/docs/prod/folders/print/cd4049ub.html
http://focus.ti.com/lit/ds/symlink/sn74ls14.pdf
Updated diagram above to show where you could connect the LEDWiz. Also added a 1K resistor inline with gun trigger to control capacitor charging current.

I've used the second one before, having built the pinball plunger circuit shown here: http://www.johnsretroarcade.com/hardware_pinball.asp
Otherwise, we are again beyond my abilities.


--- Quote from: GreatLamer on March 24, 2011, 06:07:19 am ---shaking wont kill your aimtrak electronic?

--- End quote ---

My assumption would be that, as the aimtrack is all solid state, no moving parts, a bit of shaking is easily tolerated.  But what do I know  :dunno

I test fit the solenoid - it's a tight squeeze.  The screws holding the case together will be put under a bit of stress unless I can shave a bit here and there (from case and/or solenoid).  More to follow as I progress.

Also, I've measured across the solenoid, usage of 350mA.  Therefore, I think I'll drop the fuse to 500mA (I'll update schematic later)updated.

Thanks.
Howard_Casto:
I just wanted to point out that unless you already have a ledwiz, it isn't necessary to hook up an output. 

In addition to the ledwiz and the other popular i/o controllers, mamehooker supports everything from directx force feedback to the parallel port.  The most popular route for hooking up outputs to 12v controls has been the parallel port so far.  Why?  Well if you are only dealing with a couple of outputs, the parallel port will do and aside from myabe 2 bucks for a db25 connector, the thing is free!

Using a 5-pin relay is the easiest route btw... they will have n/c and n/o pins so it doesn't matter if the signal is inverted. 
Howard_Casto:
Actually..... what do the aim track buttons show up as?  Are they configurable?

The reason I ask is I recently added Keypress events to mamehooker.  In other words, you can set it up to where something happens when a particular key is pressed. 

Right now it supports keyboard keys and mice buttons but not multi-mice.  This isn't a problem though if aim tracks buttons are configurable as we can just set player 2's trigger to mouse button 2. 

Long story short, we could eliminate the need for most of your circuit, especially the 555 timer.  You would keep mamehooker running in the background at all times (as it's designed to be) and anytime you pressed the trigger we could send a pulse to fire the solenoid.  On those games in mame that support recoil, you are going to need mamehooker anyway and for those specific games we would override the key binding so that the gun would only respond to the in-game recoil. 


Now mamehooker won't support global bindings at the moment due to an oversight on my part, but a new version will be out within the next week or so and it will support such features.  If you are interested I would be glad to help with the mamehooker scripts and the circuit design.  Just PM me as I don't visit the main forum that often.
Navigation
Message Index
Next page
Previous page

Go to full version