
Sensor
kaihchang/Adept_BLE_3-pin
Took open source Adept BLE design and altered PCB & casing for 3-pin micro switches.

This is alpha version of Ploopy Adept BLE modification.
Sensor is an open-source printed circuit board by taichan1113, from the taichan1113/AdeptBLE repository on GitHub, published under the CERN-OHL-P-2.0 licence. It is a 2-layer board of 62 × 64 mm with 23 parts on 24 nets, routed with 215 tracks and 35 vias.
It is built around the D2LS-21. Its parts include 9 capacitors, 6 switches, 4 connectors, 2 ICs and 1 resistor. It belongs with the sensors and measurement boards of this library.
This is alpha version of Ploopy Adept BLE modification.
All necessary files are here but they are still messy.
Document may not reach your satisfaction.
Designed by KiCAD and produted by JLCPCB
Basically you need XIAO nRF52840 board, PMW3610 optical sensor, omron D2LS-21 mouse switch, 6-pin slide switch and battery.
Other parts are set as below.

Here includes uf2 file built by zmk.
You can find the code here.
I designed like you only need bottom modified housing additionally.
Note that put the battery wire not to interfere both top and bottom housings.
And you need to cut battery switch so as not to interfere the desk surface.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | D2LS-21 | D2LS_21_20M:SW_D2LS-11_2_OMR | SW1, SW2, SW3, SW4, SW5, SW6 |
| 2 | 100n | Capacitor_SMD:C_0603_1608Metric | C2, C7 |
| 2 | Conn_01x06 | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J2, J3 |
| 1 | 100n (X7R) | Capacitor_SMD:C_0603_1608Metric | C6 |
| 1 | 10n (X7R) | Capacitor_SMD:C_0603_1608Metric | C9 |
| 1 | 10u (X7R) | Capacitor_SMD:C_0603_1608Metric | C8 |
| 1 | 0.1u | Capacitor_SMD:C_0603_1608Metric | C4 |
| 1 | 10n | Capacitor_SMD:C_0603_1608Metric | C1 |
| 1 | 1u | Capacitor_SMD:C_0603_1608Metric | C5 |
| 1 | 2M | Resistor_SMD:R_0603_1608Metric | R1 |
| 1 | 3.3u/16V | Capacitor_SMD:C_0603_1608Metric | C3 |
| 1 | Conn_01x01 | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | J4 |
| 1 | Conn_01x02 | kbd_Parts:Battery_2pin | J1 |
| 1 | PMW3610 | mylib:PMW3610 | U2 |
| 1 | SW_SPDT | kbd_Parts:TGSW_MSK-12D19 | PSW1 |
| 1 | TCR2EF19 | Package_TO_SOT_SMD:SOT-23-5 | U1 |

kaihchang/Adept_BLE_3-pin
Took open source Adept BLE design and altered PCB & casing for 3-pin micro switches.

ufan/sensor_bed
A PCB with various kinds of sensors like optical mouse sensor, joystick, encoder, capacitive sliders etc.


google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards




It measures 62 × 64 mm and has 2 copper layers, 1.29 mm thick.
23 parts, built around the D2LS-21. 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 taichan1113/AdeptBLE repository on GitHub, at the commit this page was made from: the board is electronics/sensor.kicad_pcb and its schematic electronics/sensor.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the CERN-OHL-P-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).