100%
pixart-sensor-adapter wiimote-ir-sensor-inline view
Description

Imported from GitHub: eatnooM/pixart-sensor-adapter · commit fb2dee0 · license CC-BY-SA-4.0

Description

Board to allow interfacing with a Wiimote camera over I2C for light guns

README

pixart-sensor-adapter

Picture of an assembled board

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.

Inline board

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.

Shell

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.

Ordering

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.

BOM

ReferenceValueLink
C10.1uFLCSC - YAGEO CC0603KRX7R9BB104 / Mouser - KYOCERA 06035C104KAT4A
C2, C31uFLCSC - YAGEO CC0603JRX7R7BB105 / Mouser - KYOCERA 06035C105KAT2A
R1, R22.7KΩLCSC - YAGEO RC0603FR-072K7L / Mouser - Panasonic ERJ-3GEYJ272V
R333KΩLCSC - YAGEO RC0603FR-0733KL / Mouser - Panasonic ERJ-3GEYJ333V
U1Wiimote camera module – salvaged from official wiimoteSalvaged
U2AP2112-3.3VLCSC / Mouser
X124-25MHz SMD3225 active crystal oscillatorLCSC - YXC OT2EL4C4JI-111OLP-24M / Mouser - KYOCERA KC3225K24.0000C1GE00

When using with OpenFIRE, the following amendments can be made:

  • As VCC is already 3.3V, U2, C2, and C3 can be omitted (and JP1 should be bridged to connect VCC straight to the camera)
  • OpenFIRE supports generating the 24MHz clock signal from the RP2040 directly, meaning you can wire this to the CLK and omit X1 and C1.

Credits

JayBee - creator of Gun4IR - sharing the schematic

Gzus348 - creating the camera jig

RetroMidget - creator of the lovely shell for the inline boards

Comments
Sign in to comment

No comments yet. Be the first to ask about this board.