DIY Arduino Powered IR Light Gun

About: Retro/Light Gun game enthusiast from NZ.

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 (Windows) and PCSX2 (Windows).


Quick calibration


Tilt correction


Adafruit ItsyBitsy M0 (or HID compatible board)

DF Robot IR positioning camera

x2 LED's

x2 100 ohm Resistors

Tall Switch (from Adafruit)

SAMCO PCB (optional)

Step 1: Schematic

This is the basic Schematic of the SAMCO Light Gun. Code will work with any HID compatible board but if you're using an Atmega 32u4 board you will have to change pins A4 & A5 to any other spare digital pins.

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

Step 4: Introduction & RetroPie Setup

Games Contest

This is an entry in the
Games Contest



    • DIY Summer Camp Contest

      DIY Summer Camp Contest
    • Barbecue Challenge

      Barbecue Challenge
    • Stone Concrete and Cement Contest

      Stone Concrete and Cement Contest