Posted by Reg on January 20, 2002 at 16:06:40:
In Reply to: Re: My NES Zapper Lightgun interface for a PC posted by Tom61 on January 20, 2002 at 13:49:34:
Hi,
Not in Mame yet.
What I have done, is I have use PaintShop pro to make a small white dot (big as a dime) with a black screen.
Then, I have used a S-video cable to connect my
PC output to a 27 inch color TV.
Basically the gun sense all the time light much
specifically, the gun have a high response on white target.
I have used an Oscilloscope to understand the gun and then to boost, filter an trig switch 4 of joystick A. To ensure that the Pc see this button, I have run a joystick test program that
show me that the switch is trigged only when the gun see a white target.
Note: because the TV have a refresh rate of 60hz, the gun trig the switch at 60 hz...
Now I have to make a base for the gun and use
two 100 KiloOhm pots (one to sense when the gun is moved left, right and another one to sense
when the gun is moved up and down).
And the big step is to modify Mame driver to recognize switch 4 of joystick A and to modify the emulated light gun to recognize a real one.
thanks
Reg
: Have you tried making a test program for this yet?
: : Hi,
: : Here is the prototype that I have used to interface
: : a NES Zapper Lightgun to my PC.
: : The goal of this electronic circuit is to boost
: : the signal of the gun (2 PNP transistor 2N3906),
: : filter the signal (CMOS 4093 ) and
: : trigger Switch 4 of the Joystick A port (CMOS 4066).
: : The gun trigger switch is connected to the Switch 1 of
: : Joystick A.
: : I have not tried to make a base to hold the gun.
: : Ideally the gun can be attached to a base and to
: : detect if the gun is moved from left to right or moved
: : up or down, you must use 100 kiloOhm pots.
: : Note: Mame simulate a video card that have a 60hz
: : refresh rate, so to increase the gun precision,
: : the monitor must also have a refresh rate of 60hz.
: : For those having a TV in their cabinet, the TV already
: : have a refresh rate of 60hz.
: : The next step is to make a base for the gun and to modify Mame
: : drivers to accept Joystick Switch 4 and to modify the emulated light
: : gun to accept the NES Zapper one.
: : I think that this circuit can be easily modified to interface most
: : lightgun to a PC. (usually a light gun need power , have a trigger and have an output).
: : Switch 4 is trigged when the gun see a white spot
: : (as small a a dime at four feet) on the TV / monitor.
: : Switch 1 is already implemented in Mame.
: : Here is the URL:
: : http://server36.hypermart.net/regisma/NES_Zapper_Lightgun_PC_Interface.GIF
: : Do not hesitate to contact me for more info...
: : thanks
: : Reg
: : regismalt@netscape.net