← Choose language | Выберите язык
Light gun modification from NES (Famicom and others) for PC NES emulators (FCEUX).
- Light Gun for the NES.
- 4.7k Ohm resistor.
- Board Digispark (suitable for both large and small).
The light gun has 4 pins (contacts): power supply 5 volts (+), ground (-), digital button pin, digital pin depending on the value of the photoresistor.
To determine the pins, need to disassemble the gun, then need to find the ground (-), one of the contacts of the button (trigger) goes to the ground, the second contact of the button is the digital pin of the button value. As a rule, the power supply (+) is red, and it is most likely located on the opposite side of the ground (-). The remaining pin is responsible for the photoresistor.
- The photoresistor is soldered to pin 2.
- The button is soldered to pin 0.
- Power supply (+) is soldered to 5v and minus (-) to GND.
- Also need to solder a 4.7k Ohm resistor from pin 2 to 5v.
For Zapper will also need the following.
- Download Arduino IDE and unpack it.
- Install the latest drivers Digispark ("Digistump.Drivers.zip").
- Launch the Arduino IDE, go to settings, and add
https://raw.githubusercontent.com/digistump/arduino-boards-index/master/package_digistump_index.json
in the "Additional links for the board manager" field and click "OK". - Go to "Tools" -> "Board" -> "Board Manager", enter in the search
Digistump AVR boards
and install it. - Copy firmware contents, insert it into the Arduino IDE and click the "Upload" button.
- Connect the Digispark board after pressing the firmware button. Digispark is flashed immediately after connection (you need to re-plug it to flash it).
- Download FCEUX and unpack it ("FCEUX 2.3.0 win32 Binary").
- Launch and go to "Config" -> "Input".
- Configure the first gamepad or disable it (it is not necessary for a light gun), and in the second gamepad, select "LCD Zapper (Advance)".
- In the same window, in the second gamepad panel, click "Configure".
- In the "LCD Zapper (Advance)" window, press the Trigger button and press the light gun button 2 times. Next, click on the "Light Sensor" button and shine something 2 times into the barrel of the gun or can quickly repaint the black background to white in the "Paint" program by clicking the right and left mouse buttons, and pointing the gun at the drawing area.
- After the start of the game, shoot in the menu so that the delay of the light gun is determined by the patched rom (game).
If you are using a monitor with a minimum brightness and the gun don't work, then try to increase the brightness slightly during the game.
Thanks to the project NESLCDMod now us can play original NES games on modern monitors and televisions.
On the site can download patches for games and apply them to the original roms, using the program Lunar IPS.
- Find the original game file "Duck Hunt (World).nes" (MD5:
D802E9D7B8BFD586F878E0922F62BF46
). - Download latest patch for it.
- Run Lunar IPS and open the patch.
- Next, select the original rom and the patched game is ready.
- For project NESLCDMod which allowed us to play NES games on modern monitors and TVs.
- FCEUX emulator developers for a good emulator of NES games.
- For developer Jason W. Thompson for adding support for light guns to the FCEUX emulator.
- To the developer and radioamateur Alexey Cluster for the wiring scheme of the light guns.
r57zone[at]gmail.com