Skip to the content
2 layers172 × 152.9 mmTrackpad, the printed circuit board in 3D

A big QMK powered trackpad

Size
172 × 152.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
102
Nets
132
Pads
606
Tracks, vias
1,557, 598
Pours
386
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
15 Dec 2023
Updated
3 Feb 2025

Overview

Trackpad is an open-source printed circuit board by george-norton, from the george-norton/peacock repository on GitHub, published under the CERN-OHL-S-2.0 licence. It is a 2-layer board of 172 × 152.9 mm with 102 parts on 132 nets, routed with 1,557 tracks and 598 vias.

It is built around the RP2040, W25Q16JVUXIQ and MIC5504-3.3YM5, with the SN74LVC1T45DRL, USBLC6-2P6 and SK6812MINI-EA among its other parts. Its parts include 39 capacitors, 15 resistors, 11 connectors, 7 ICs and 7 diodes. It belongs with the keyboards and input boards and the RP2040 boards of this library.

Main components

6

README

README.md

Peacock

Peacock is an RP2040 powered trackpad running QMK. It features an integrated Microchip MaxTouch sensor IC which is connected to a 7" capacitive sensor. I also designed some little trackpads which you can integrate into your own keyboards, see Procyon.

Peacock PCB

The Ploopy trackpad is like a more polished Peacock, with a higher resolution sensor. It runs code build from the same QMK/ZMK branches, and is easier to buy.

Features

  • Fully PCBA, this other than switches and encoders, this board is designed to be fully factory assembled.
  • Integrated RP2040 controller, no need to a separate controller.
  • 7 inch 16:9 capacitive sensor.
  • 5 Choc/MX switches and 2 EC11/EC12 encoders.
  • A VIK connection between the controller and sensor board.

But how does it work?

The capacitive sensing IC is wired to a grid of diamond shaped electrodes. The diamonds are connected to form rows and columns. The IC scans the matrix by applying a small voltage to the rows in turn, and then measuring voltage on the columns. Any conductive objects nearby (like your finger) will distrupt the electrical field and can be detected.

Peacock PCB

Sensor capabilities

The mXT336UD-MAU002 sensor IC used in this design is in fact a touchscreen controller rather than a trackpad controller. I have chosen to use a touchscreen controller as they tend to be designed for much larger sensor areas than touchpad controller. This sensor can:

  • Detect 10 concurrent touch events.
  • Can support both mutual capacitance and self capacitance measurements.
  • Has integrated signal processing capabilities to reduce noise, reject large touches (grip or palms) etc..
  • Can be configured as a digitizer, or an array of up to 16 buttons.
  • The sensor also supports a passive stylus, although the electrodes in Peacock are larger than the recommended size, so this may not perform well.

Software support

Currently there are experimental QMK and ZMK branches with Peacock support.

The QMK multitouch_experiment branch exteneds the QMK digitizer feature to implement real trackpad support. On this branch, the MaxTouch driver reports 5 separate finger positions to the host and it detects gestures. You should get all the same gesture support you would expect from a modern trackpad. This branch is a large changeset which will likely take some time to get merged into QMK. There are some pre-built QMK firmware images in my userspace.

The ZMK Maxtouch module builds against Petes feat/pointers-move-scroll-ptp ZMK branch. It is currently missing LED support, and fallback to mouse emulation (so no MacOS support).

Sensor tuning

The sensor sensitivity may require tuning depending on the type of surface you use on your build. This can be done by adjusting the touch threshold, and if required the transmit gain. If your sensor is not detecting touches well, reduce the touch threshold. If your sensor is jittery, or is detecting spurious touches increase the touch threshold, or if there is any ungrounded metal by the sensor, move it. Increasing the transmit gain will require a larger touch threshold, but it should enable you to use thicker overlays and it will give you more room to adjust the touch threshold.

The mouse emulation gestures are implemented in software, they rely on various parameters that can be tuned by defining macros.

If you flash the QMK debug firmware, you can use the Maxtouch debug tool to adjust the sensor tuning in real time and see how it works.

BOM

To build a Peacock you will need:

  • Factory assembled PCBs (from, for example JLCPCB).
  • 5 Choc v1 or MX switches.
  • 5 keycaps.
  • 2 Encoders (ec11/ec12).
  • 2 Encoder knobs.
  • 1 Type-A 12P 0.5 mm pitch FFC cable (ideally around 5cm long) aliexpress.
  • A 3D printed case and its mounting fixtures.
  • Some sort of nice feeling insulating surface to put over the sensor, for example sticky vinyl wrap or acrylic. Ideally this should not have any air gaps, so FDM printed surfaces should be printed with 100% infill. If the surface is too thin the trackpad will not perform well, multiple layers of vinyl may be required.
  • 4 rubber bumpons.

PCB ordering guide

Use the gerbers files in the releases, most options are not critical although a thicker PCB is probably best so it does not flex too much when you press against the sensor. I have tested with 1.6mm thickness, lead free HASL from JLCPCB.

The sensor IC is not available from LCSC, you will need to use JLCPCB's global parts sourcing service to order chips from Digikey, the digikey part number is 150-ATMXT336UD-MAU002-ND, expect a lead time of 1-2 weeks. You may also find the flash memory and LED parts go in and out of stock, so it might also be worth preordering those. The LEDs are optional, if the are not available you can always hand solder some at a later time.

You can see the correct part orientation here, when ordering ensure that all parts are correctly rotated:

Part orientation

The v1.0 release has been tested and it works, but there is an issue with the I2C pin allocation. As a result it requires two additional bodge wires, and the encoder switches will not work.

The v1.01 release has the issue fixed, you should order this version.

Assembly guide

Assembly is simple as the majority of the work is done by the manufacturer. You will need to:

  • Remove the edge rails by breaking them off with a pair of pliers, then cut or break the mousebites to separate the two PCBs.

Remove the edge rails

  • Test your PCB. Plug it in and hopefully you will see a new mass storage device. Drag and drop a firmware (uf2) file to flash it. If sucessfull, the LEDs should light up.
  • Solder 5 MX/Choc switches.
  • Solder 2 EC11/EC12 encoders.

Solder the switches

  • Connect both boards together using the FFC cable, the black parts of the connector can be opened to enable you to insert the cable.

Connect the VIK cable

  • Use a thread tapping tool to create threads in the case.
  • Place the boards into the case.
  • Screw it in with 8xM3 6mm screws and optionally 1xM2 6mm screw near the USB port.
  • Stick your surface to the sensor area. The surface is critical to the performance of the trackpad, without a surface you will likley get no movement at all. Depending on its thickness, a single piece of vinyl will likely be insufficient for the trackpad to track well, a two or three layers will work much better. I noticed that some battery powered USB hosts require additional surface thickness to track multiple fingers well.

The completed build

If you build a Peacock, please post a picture in the show and tell.

Firmware

Peacock support has not yet been merged back to QMK. You can find a branch with pointing device support here or the multitouch branch here Note, this branch currently does not work with MacOS.

VIK support

This trackpad is a VIK device, so you should be able to discard the controller portion of the build and wire the trackpad directly to a different VIK enabled controller (such as those sold by fingerpunch and splitkb). You could also replace the controller board with one of your own design.

VIK certification

Trackpad module

CategoryClassificationResponse
FPC connectorRequired:heavy_check_mark:
Breakout pinsRecommended:heavy_check_mark:
Uses: SPIOptional:x:
SPI used for SPI onlyStrongly recommendedN/A
Uses: I2COptional:heavy_check_mark:
I2C used for I2C onlyStrongly Recommended:heavy_check_mark:
I2C pull upsRequired3.3k
Uses: RGBOptional:x:
Uses: Extra GPIO 1Optional:heavy_check_mark:
Uses: Extra GPIO 2Optional:x:
Standard PCB Size/MountStrongly recommended:x:

Peacock controller

CategoryClassificationResponse
FPC connectorRequired:heavy_check_mark:
Breakout pinsRecommended:heavy_check_mark:
Supplies: SPIRequired:heavy_check_mark:
Supplies: I2CRequired:heavy_check_mark:
I2C on main PCBDiscouraged:x:
I2C pull upsInformativeN/A
Supplies: RGBRequired:heavy_check_mark:
Supplies: Extra GPIO 1RequiredAnalog/Digital
Supplies: Extra GPIO 2RequiredAnalog/Digital

Schematic

Macropad Sensor

Parts

102
QtyValueFootprintReferences
18100nCapacitor_SMD:C_0402_1005MetricC2, C3, C5, C6, C7, C10, C11, C29, C31, C32, C33, C34, C35, C36, C37, C38 +2
81µCapacitor_SMD:C_0402_1005MetricC1, C4, C14, C15, C18, C22, C28, C30
6SK6812-MINI-ETrackpad:LED_6028RLED1, LED2, LED3, LED4, LED5, LED6
522nCapacitor_SMD:C_0402_1005MetricC19, C21, C23, C25, C27
5SW_PushPCM_marbastlib-xp-choc:SW_choc_MxCombo_1uSW2, SW3, SW4, SW5, SW6
410kResistor_SMD:R_0402_1005MetricR1, R11, R12, R17
4MountingHoleMountingHole:MountingHole_3.2mm_M3_Pad_ViaH5, H7, H8, H9
4MountingHole_PadMountingHole:MountingHole_3.2mm_M3_Pad_ViaH1, H2, H3, H4
32.2µCapacitor_SMD:C_0402_1005MetricC20, C24, C26
210nFCapacitor_SMD:C_0402_1005MetricC16, C39
215pCapacitor_SMD:C_0402_1005MetricC12, C13
21kResistor_SMD:R_0402_1005MetricR2, R3
227Resistor_SMD:R_0402_1005MetricR8, R9
23.3kResistor_SMD:R_0402_1005MetricR13, R14
2330Resistor_SMD:R_0402_1005MetricR15, R18
25.1kResistor_SMD:R_0402_1005MetricR6, R7
2MIC5504-3.3YM5Package_TO_SOT_SMD:SOT-23-5U3, U5
2RotaryEncoder_SwitchTrackpad:ROT_Alps_EC11E-SwitchSW1, SW7
112kResistor_SMD:R_0402_1005MetricR10
12.2nFCapacitor_SMD:C_0603_1608MetricC17
1B5817Diode_SMD:D_SOD-323D1
1Conn_01x01_PinConnector_PinHeader_1.27mm:PinHeader_1x01_P1.27mm_VerticalJ10
1Conn_01x02_PinConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ9
1Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3
1Conn_01x04_PinConnector_PinSocket_1.00mm:PinSocket_1x04_P1.00mm_VerticalJ11
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ7
1Conn_01x05_PinConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ6
1Conn_01x07_PinConnector_PinHeader_1.27mm:PinHeader_1x07_P1.27mm_VerticalJ5
1Conn_01x08_PinConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ8
1Crystal_GND24Crystal:Crystal_SMD_2520-4Pin_2.5x2.0mmY1
1MountingHoleMountingHole:MountingHole_2.2mm_M2_Pad_ViaH6
1PolyfuseFuse:Fuse_0603_1608MetricF1
1RP2040Package_DFN_QFN:QFN-56-1EP_7x7mm_P0.4mm_EP3.2x3.2mmU1
1SN74LVC1T45DRLTrackpad:SN74LVC1T45DRLRU6
1SW_PushButton_Switch_SMD:SW_SPST_CK_KXT3SW_BOOT1
1SolderJumper_3_OpenJumper:SolderJumper-3_P1.3mm_Bridged2Bar12_RoundedPad1.0x1.5mmJP1
1USBLC6-2P6Package_TO_SOT_SMD:SOT-666U7
1USB_C_Receptacle_USB2.0Trackpad:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1
1W25Q16JVUXIQTrackpad:USON-8-1EP_3x2mm_P0.5mm_EP0.25x1.65mmU2
1mXT336UD-MAU002Trackpad:QFN-56_EP_6x6_Pitch0.35mmU4
1~Vik:vik-keyboard-connector-horizontalJ2
1~Vik:vik-module-connector-verticalJ4

The 99 most common of 102 parts.

Similar boards

  • 4 layers95.6 × 73.6 mmMathpad, the printed circuit board in 3D

    Mathpad

    Summa-Cogni/Mathpad

    A mathematical keypad for students and professionals

    93 parts243
  • 2 layers130 × 51 mmOSUMGP RP2040, the printed circuit board in 3D

    OSUMGP RP2040

    NickGuyver/OSUMGP-RP2040

    KiCanvas link so you don't have to download to just review the files is here

    92 parts18CC-BY-4.0
  • 2 layers40 × 18 mmFirestring, the printed circuit board in 3D

    Firestring

    thip/firestring

    FireString - RP2040-based NeoPixel fire simulation controller

    38 parts14
  • 2 layers303.3 × 119 mmSango, the printed circuit board in 3D

    Sango

    Aidan-OS/Sango

    A 65%ish percent ortholinear split keyboard

    325 partsApache-2.0
  • 2 layers41.4 × 41.9 mmEarring, the printed circuit board in 3D

    Earring

    sequoia-hope/ultraroute

    PCB autorouting experiments around copperroute: route jobs, leaderboards, board morphing

    105 parts1MIT
  • 6 layers49.3 × 39.3 mmVoronToolheadPCB, the printed circuit board in 3D

    VoronToolheadPCB

    shxshxshxshx/VoronToolheadPCB

    USB Toolhead Board for Voron Stealthburner

    99 parts2GPL-3.0
  • 2 layers60 × 60 mmArcboard stm32-mk2, the printed circuit board in 3D

    Arcboard stm32-mk2

    christrotter/arcboard-stm32-mk2

    Next iteration of the stm32f405 board; paradigm shift means new repo.

    94 partsMIT
  • 2 layers236.9 × 86.8 mmRaii020, the printed circuit board in 3D

    Raii020

    unspecworks/raii

    splay sweep with ferris

    233 parts17

Questions

How big is the Trackpad PCB?

It measures 172 × 152.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Trackpad use?

102 parts, built around the RP2040, W25Q16JVUXIQ, MIC5504-3.3YM5 and SN74LVC1T45DRL. 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.

Where can I download the Trackpad KiCad files?

From the george-norton/peacock repository on GitHub, at the commit this page was made from: the board is trackpad.kicad_pcb and its schematic macropad.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Trackpad design in my own project?

Its repository publishes it under the CERN-OHL-S-2.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).