Designed and assembled in the United States · individually tested · no tariffs

PMW3360 breakout board with the LM19-LSI lens fitted
new

BOARDS · PMW3360

PMW3360 Breakout Board

Gaming-grade optical sensor board, up to 12,000 CPI. For custom mice, trackballs, and QMK/ZMK keyboards. Works with 1.8V or 3.3V logic.

$25.00

1

USPS Ground, $5.62 · free US shipping over $75

A ready-to-use breakout for the PixArt PMW3360, the high-performance sensor in many gaming mice, with the regulator, decoupling, and LED circuit already done. Solder on a 2.54mm header or wires, and connect it to your microcontroller over SPI. It is the go-to sensor for DIY trackballs: mature driver support in QMK, ZMK, and Arduino, and smooth tracking at any speed. Pick it when tracking quality matters more than battery life. Most breakouts only work with 3.3V logic, so this one adds an onboard 1.8V regulator and a jumper on the back (JP1) to pick your logic level. 5V logic needs a level shifter. Ships with the LM19-LSI lens and a printed setup card. Each board is hand-tested before it ships from Arizona.

SensorPixArt PMW3360DM-T2QU
LensPixArt LM19-LSI, included
Resolution100–12,000 CPI, steps of 100
Tracking250 IPS, 50 g
Lens to surface2.4mm (2.2–2.6mm)
Lift-off2mm or 3mm, set in firmware
Interface4-wire SPI + motion and reset
Logic1.8V or 3.3V, set by JP1
Supply3.3V, or 2.0–5.5V in 1.8V mode
Pins8 through-holes, 2.54mm pitch
Board23.5 × 33 mm, 1.6mm thick
Signals
3.3 V or 1.8 V
Interface
4-wire SPI, up to 2 MHz
Lens to surface
2.4 mm (2.2–2.6)
Sensor current
16–37 mA running
Pins
1×8, 2.54 mm
Board
23.5 × 33 mm

Sensor figures from PixArt datasheet.

01Setup

From the box to working

What’s in the box and the steps.

  1. Solder on a header or wires

    The header isn’t included. Pin 1 is GND, on the square pad. The rest run VIN, nCS, MISO, MOSI, SCLK, MOTION, nRESET.

  2. Set JP1 for your logic voltage

    For 3.3 V hosts (RP2040, nRF52840, ESP32 and most boards), bridge JP1 pads 1–2 and power VIN from 3.3 V (3.6 V max). For a 1.8 V host, bridge pads 2–3; VIN then feeds the onboard regulator and takes 2.0–5.5 V. Never bridge all three pads. 5 V logic, like an Arduino Uno or 5 V Pro Micro, needs a level shifter.

  3. Wire SPI

    nCS, MISO, MOSI and SCLK go to your SPI pins. Keep SCLK at 2 MHz or slower. MOTION goes to an interrupt pin and is active low. nRESET is optional.

  4. Mind the lens height

    The bottom of the lens should sit 2.4 mm from the tracking surface (2.2–2.6 mm works). For a trackball, measure to the ball, not the case.

  5. Flash firmware

    In QMK, use the pmw3360 sensor driver. ZMK and Arduino libraries for the PMW3360 work too.

  6. Read the product ID

    Read register 0x00 over SPI. A working PMW3360 answers 0x42.

    Expected
    PRODUCT_ID (0x00) = 0x42
    INVERSE_PRODUCT_ID (0x3F) = 0xBD
    

In the box

  • PMW3360 breakout board
  • PixArt LM19-LSI lens
  • Printed setup card

You’ll also need

  • A 3.3 V or 1.8 V microcontroller
  • A 1×8 2.54 mm pin header, or wires soldered straight on
  • A soldering iron

If something’s off

Product ID reads 0x00
MISO is stuck low or not connected. Check the MISO wire and that JP1 matches your host’s logic voltage.
Product ID reads 0xFF
MISO is stuck high. Check that nCS goes low during the read and that SCLK reaches the board.
Product ID is right but nothing moves
The SROM firmware didn’t load. Use a driver made for the PMW3360.
Tracks badly or not at all on the surface
Check the lens height. Outside 2.2–2.6 mm from the surface the sensor loses tracking.

Still stuck? Email trent@randware.us for help.

02Resources

Datasheets and sources

Each opens in a new tab.