
Wiimote ir sensor inline
eatnooM/pixart-sensor-adapter
Board to allow interfacing with a Wiimote camera over I2C for light guns

Board to allow interfacing with a Wiimote camera over I2C for light guns
Wiimote ir sensor inline panel-2-vert is an open-source printed circuit board by eatnooM, from the eatnooM/pixart-sensor-adapter repository on GitHub, published under the CC-BY-SA-4.0 licence. It is a 2-layer board of 13 × 45 mm with 92 parts on 22 nets, routed with 118 tracks and 32 vias.
Its parts include 6 capacitors, 6 resistors, 4 ICs, 2 connectors and 2 crystals. It belongs with the sensors and measurement boards of this library.
License: CC BY-SA 4.0
Allows interfacing with a Wiimote camera over I2C for GUN4IR.
Variants are present to allow use of the module either socketed as you'd find it on the Wiimote, or unsocketed for more compact installs.
I've only clocked a few hours actually using these, so run this off at your own risk.
The inline board should be ordered in 0.8mm thickness, otherwise you won't be able to solder to the pads on the camera! If ordering from OSHPark, I'd recommend the panelised version as they tend to put panel tabs on the edge connectors which can make for annoying cleanup before the boards are usable.
It's a pain to solder the camera module directly to the board, so I'd strongly recommend using the jig from RetroMidget's shell (see below) to aid with this, or running off the standalone camera module jig graciously provided by Gzus348.
If you're using the inline board, I would strongly recommend you check out RetroMidget's camera enclosure. This 3D-printable enclosure is currently verified to fit the v1.0 board (but also fit the v1.2 board as long as you omit the rear cover) and enables you to install directly (such as in a GunCon 1) by simply tightening the nuts to hold it in place in the shell, or using prints such as JayBee's Gun4IR GunCon mounts (GunCon 1, GunCon 2) to secure the camera and a fish-eye lens for use closer to your display.
I have a project to make a shell for the newer versions of this board that make use of the slimmer profile to fit in some tighter places (such as the barrel of a Blaze Scorpion 2, which is slightly too narrow for the DFRobot Gravity camera), but sit tight for news on this.
To prevent the camera from picking up visible-light sources as well as the infrared from your emitters, it is recommended to add an IR pass filter in front of the camera. This cuts down on camera erroneously detecting bright lights instead of your IR points.
If salvaging from whole Wii remotes including the shell, you'll already have the IR pass filter - this is the black-coloured plastic in the front of the shell. If you got hold of a job lot of bare boards, however, you will need to purchase some filter. I've been using the filter found in this eBay listing - it's nice and thin, making it easier to cut down to size and fit in a build, and 100mm x 100mm will serve for a lot of builds if you're efficient at cutting them out. If this listing isn't available for you, there are similar listings on Aliexpress. The most important aspect of the filter is that it passes 940nm wavelength your emitters (presumably) use, and ideally blocks as much of everything else as possible.
To cut the filter, I'd recommend a rotary tool. If you have particularly sharp flush cutters, these can do the job if you're careful but I've had these split the plastic in inconvenient places so it's not my first choice. You can repeatedly score the plastic with a sharp knife to get a square of roughly the right size and then file into the desired shape, but this may take a while. You'll then need to attach this in front of the camera:
If using a wide angle or fish eye lens, there are some other convenient places to stick the filter:
Either download the gerbers from the current release or run off directly from OSHPark (Inline / Socketed. See below for the Bill of Materials - these can be purchased from your preferred electronic component distributor but I've provided LCSC and Mouser links for convenience.
| Reference | Value | Link |
|---|---|---|
| C1 | 0.1uF | LCSC - YAGEO CC0603KRX7R9BB104 / Mouser - KYOCERA 06035C104KAT4A |
| C2, C3 | 1uF | LCSC - YAGEO CC0603JRX7R7BB105 / Mouser - KYOCERA 06035C105KAT2A |
| R1, R2 | 2.7KΩ | LCSC - YAGEO RC0603FR-072K7L / Mouser - Panasonic ERJ-3GEYJ272V |
| R3 | 33KΩ | LCSC - VISHAY CRCW060333K0FKEA / Mouser - Panasonic ERJ-3GEYJ333V |
| U1 | Wiimote camera module – salvaged from official wiimote | Salvaged |
| U2 | AP2112-3.3V | LCSC / Mouser |
| X1 | 24-25MHz SMD3225 active crystal oscillator | LCSC - YXC OT2EL4C4JI-111OLP-24M / Mouser - KYOCERA KC3225K24.0000C1GE00 |
When using with OpenFIRE, the following amendments can be made:
JayBee - creator of Gun4IR - sharing the schematic
Gzus348 - creating the camera jig
RetroMidget - creator of the lovely shell for the inline boards
| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | NPTH | NPTH | KiKit_MB_1_1, KiKit_MB_1_2, KiKit_MB_1_3, KiKit_MB_2_1, KiKit_MB_2_2, KiKit_MB_2_3 |
| 4 | 1uF | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C2, C2, C3, C3 |
| 4 | 2.7K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R1, R1, R2, R2 |
| 2 | 0.1uF | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C1, C1 |
| 2 | 33K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R3, R3 |
| 2 | AP2112-3.3V | Package_TO_SOT_SMD:SOT-23-5 | U2, U2 |
| 2 | Conn_01x05_Pin | wiimote-ir-sensor:5Wires-staggered | J1, J1 |
| 2 | SG3225CAN 24.0000M-TJGA3 | Oscillator:Oscillator_SMD_SeikoEpson_SG8002CE-4Pin_3.2x2.5mm | X1, X1 |
| 2 | SolderJumper_2_Open | Jumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mm | JP1, JP1 |
| 2 | ~ | wiimote-ir-sensor:wiimote-pixart-camera-inline_slim | U1, U1 |
The 28 most common of 92 parts.

eatnooM/pixart-sensor-adapter
Board to allow interfacing with a Wiimote camera over I2C for light guns

eatnooM/pixart-sensor-adapter
Board to allow interfacing with a Wiimote camera over I2C for light guns

cardonabits/haxo-hw
Haxophone, an electronic musical instrument that resembles a saxophone

Allen-Synthesis/EuroPi
EuroPi: A reprogrammable Eurorack module based on the Raspberry Pi Pico

mmccoyd/hillside
Family of split ergonomic keyboards with three rows of six or five keys and a generous thumb arc

ChrisChrisLoLo/keezyboost40
4x10 ortholinear with an LCD in the middle. Uses the Raspberry Pi Pico, as well as Rust firmware

nodestark/mdb-esp32-cashless
ESP32-based MDB cashless device for vending machines, supporting EVA DTS DEX/DDCMP telemetry and payments over the MDB protocol via Bluetooth and MQTT



cnlohr/cnhardware
My dumping grounds for all my kicad projects and random hardware bringup.
It measures 13 × 45 mm and has 2 copper layers, 1.6 mm thick.
92 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the eatnooM/pixart-sensor-adapter repository on GitHub, at the commit this page was made from: the board is inline/wiimote-ir-sensor-inline-panel-2-vert.kicad_pcb and its schematic inline/wiimote-ir-sensor-inline.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the CC-BY-SA-4.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).