Devesh36/clear-mouse
A transparent, right-handed wireless mouse assembly with a 44×58 mm control PCB, LiPo battery, optical sensor, click buttons, scroll encoder, DPI/middle buttons, USB‑C charging, and 3D‑printed housing/mechanical hardware.
- Version
- 0.1.5
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone Devesh36/clear-mouse # download the package files into ./clear-mouse
tsci add Devesh36/clear-mouse # add it to your project as @tsci/Devesh36.clear-mouseIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
PIN-MAP.md
# Clear Mouse pin map
| nRF52832 GPIO / module pin | Net | Function |
|---|---|---|
| P0.04 / 17 | SYS_ADC | AIN2; switched system supply through 220k/100k divider |
| P0.20 / 5 | SDIO | PMW3610 bidirectional data |
| P0.15 / 7 | SENSOR_CS | Active-low sensor select; 10k pull-up |
| P0.16 / 6 | SENSOR_CLK | Sensor clock |
| P0.14 / 8 | MOTION | Sensor motion interrupt |
| P0.12 / 9 | LEFT | Left click, active low |
| P0.08 / 12 | RIGHT | Right click, active low |
| P0.06 / 14 | ENC_A | Encoder phase A |
| P0.30 / 19 | ENC_B | Encoder phase B |
| P0.29 / 23 | PAIR | Pairing button, active low |
| P0.28 / 24 | MIDDLE | Separate middle button |
| P0.25 / 25 | DPI | DPI button |
| P0.02 / 26 | STATUS | Green LED through 1k resistor |
| SWDCLK / 2, SWDIO / 4 | SWD_CLK, SWD_IO | Programming/debug at 3.0V |
| P0.21 / 3 | RESET | Configure nRESET in firmware; also sensor hardware reset |
| VDD / 20 | V3V0 | 3.0V supply |
| DEC4 / 21 | MCU_DEC4 | 1µF decoupling, not an external power rail |
| DCC / 22 | NC | LDO mode; do not enable the internal DC/DC converter |
| GND / 1,10,18,29 | GND | Ground |
P0.00/P0.01 have no external low-frequency crystal. Select and calibrate the internal LFRC oscillator in firmware. P0.03, P0.09, P0.10 and P0.11 are unused. Firmware must account for the sensor's orientation and encoder phase order. Do not drive SDIO push-pull while the sensor transmits. BLE HID mouse firmware is required.
| Connector | Pin order |
|---|---|
| J_BAT | 1 VBAT positive, 2 GND; pins 3/4 mechanical supports |
| J_NTC | 1 cell thermistor, 2 GND; external 10k NTC attached to cell |
| J_SWD | 1 GND, 2 3.0V reference, 3 SWD_IO, 4 SWD_CLK, 5 RESET, 6 PAIR |
| J_USB | 5V input and ground; CC1/CC2 each 5.1kΩ to GND; data/SBU unused |
J_SWD is a PZ127-1-06-Z single-row 1.27mm header, at the rear-left service area outside the battery tray.
Use J_SWD pin2 as a voltage reference, not a second supply. Power the board from its battery or USB charger and turn the power switch on before flashing. The MSK12C02 on/off slide uses pin 2 as common (EN_REG), pin 1 as VSYS, pin 3 as GND, and pin 4 as grounded case tabs. It controls regulator enable; charging remains available while the mouse is off. With USB connected SYS_ADC measures the charger system rail, not the battery directly.
## Vertical control PCB harness
The flat main PCB and the angled control PCB are separate circuits. Assembly
wire paths illustrate the harness; they are not PCB traces or automatic net
connections between the two boards. Use a straight-through cable:
| Main J_CONTROL | Control J_BASE | Signal |
|---|---|---|
| 1 | 1 | GND |
| 2 | 2 | LEFT |
| 3 | 3 | RIGHT |
| 4 | 4 | ENC_A |
| 5 | 5 | ENC_B |
| 6 | 6 | MIDDLE |
| 7 | 7 | DPI |
Both connectors are JST S7B-PH-SM4-TB(LF)(SN), 2mm pitch. Pads 8/9 are mechanical
hold-downs. All six signal pull-ups remain on the main PCB. The control PCB is
passive and has no power rail. Pin 1 is defined by the imported footprint; check
pin numbers when making the cable rather than assuming wire colours or
left-to-right order. Leave a service loop, restrain the harness to the carrier,
and keep it clear of the wheel and the rear BLE antenna.