Re: My NES Zapper Lightgun interface for a PC


[ Follow Ups ] [ Post Followup ] [ Build Your Own Arcade Controls message board ] [ FAQ ]

Posted by Tom61 on January 21, 2002 at 12:21:27:

In Reply to: Re: My NES Zapper Lightgun interface for a PC posted by Reg on January 20, 2002 at 16:06:40:

A possible problem I see is that the white is displayed fot only a split second, and I'm not sure the gameport interface is fast enough to send the signal in time for Mame to realise which target you were pointing at. A test program would show this one way or the other.

A test program would need to flash up white and then immediately clear it off (one vertical blanking interval), and while its white check for the button press. If it works you could show it to the Mame people, and then they might help putting it to use in mame.

: 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





Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link address (start with http://):
Link Title:
Optional Image address (start with http://):


[ Follow Ups ] [ Post Followup ] [ Build Your Own Arcade Controls message board ] [ FAQ ]