Introduction: DIY Arduino Powered IR Light Gun
The SAMCO is a Namco GunCon with the insides replaced with an Arduino micro controller and DF Robot IR positioning camera and works as HID mouse on LCD (flat screen) TV/monitors.
Gun currently works with Mame in RetroPie (for Raspberry Pi), PSX Beetle (PC/Windows), Saturn Beetle (PC/Windows) and PCSX2 (PC/Windows).
Features:
Quick calibration
Pause/recalibration
Tilt correction
Supplies
Adafruit ItsyBitsy 32u4 (3V), Adafruit ItsyBitsy 32u4 (5V), Adafruit ItsyBitsy M0, Adafruit ItsyBitsy M4 or HID compatible board (Note: Only Adafruit boards are compatible with the PCB's)
DF Robot IR positioning camera
x2 100 ohm Resistors
Tall Switch (from Adafruit)
NEW PCB's AVAILABLE (Including GunCon 2) (optional)
Step 1: Schematic
This is the basic Schematic of the SAMCO Light Gun. Code will work with any HID compatible board.
Step 2: SAMCO PCB Soldering Guide
This a basic soldering guide if you're using a SAMCO PCB board.
Step 3: Code
Link to the libraries & code https://github.com/samuelballantyne
Step 4: Test Your Gun Setup/Troubleshooting
Step 5: Introduction & RetroPie Setup
Step 6: PlayStation 1 + SEGA Saturn (RetroArch) Setup
Step 7: PlayStation 2 (PCSX2) Setup Guide
Step 8: Demo
Step 9: Future Development
Adding a 4 LED sketch to reduce working distance.
Step 10: Future Development (cont.)
Updated to include saved calibration & increased accuracy.
Step 11: New Range of PCBs
Step 12: GunCon2 Build Guide

Participated in the
Games Contest
5 Comments
5 months ago
Hi, I've a problem with upload Sketch to my ipsybitsy board. Please send all needed libraries on this email: pawelantoszewski@gmail.com. Always comes new issue. Thanks for help.
Question 1 year ago on Introduction
This is a really cool project. Have you given it a go with Ubuntu (and PCSX2 there) thanks!
Question 2 years ago
Hi mate
Great project! I was wondering how bad the latency really is when you are using it as a mouse and or in games? I have seen the videos but you do not really notice it?
Also I have ordered all the parts included the PCB, will that PCB work for a Adafruit Itsy Bitsy 32u4 - 5V 16MHz which is what is listed on this page. But will the pin layout be right for the PCB as you mentioned you had to swap two pins?
Look forward to hearing back
3 years ago on Step 7
is it work on FPS gaming like call of duty? since game like FPS cursor position is always in the center of display,cmiiw
4 years ago
Great!