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

PMW3389 breakout board with the LM19-LSI lens fitted
new

BOARDS · PMW3389

PMW3389 Breakout Board

Flagship optical sensor board, up to 16,000 CPI and 400 IPS. 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 PMW3389, PixArt’s flagship gaming sensor, 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. Pick it when you want the most headroom: faster swipes (400 IPS) and finer resolution steps (16,000 CPI in steps of 50) than the PMW3360, for high-end trackballs and custom mice. Same board as the PMW3360 breakout: an onboard 1.8V regulator and a jumper on the back (JP1) to pick 3.3V or 1.8V logic. 5V logic needs a level shifter. The PMW3389 needs its own driver and SROM firmware, so PMW3360 code won’t work on it; in QMK use the pmw3389 driver. Ships with the LM19-LSI lens and a printed setup card. Each board is hand-tested before it ships from Arizona.

SensorPixArt PMW3389DM-T3QU
LensPixArt LM19-LSI, included
Resolution50–16,000 CPI, steps of 50
Tracking400 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
21 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 pmw3389 sensor driver. The PMW3389 needs its own driver and SROM firmware, so PMW3360 code won’t work on it.

  6. Read the product ID

    Read register 0x00 over SPI. A working PMW3389 answers 0x47.

    Expected
    PRODUCT_ID (0x00) = 0x47
    INVERSE_PRODUCT_ID (0x3F) = 0xB9
    

In the box

  • PMW3389 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 PMW3389: PMW3360 firmware will not run on it.
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.