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-mouse

In 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.

Files

README.md

# Clear Mouse — Vertical

A sculpted, right-handed Bluetooth mouse prototype built entirely with tscircuit and native assembly. The finger surface is tilted 60° from the desk, with upper/lower click paddles, a scroll wheel, a concave thumb grip, a broad thumb shelf and a raised palm support. The transparent shell exposes the electronics, with small blue tscircuit branding on the angled bezel.

The same Clear Mouse project now contains two routed PCBs: a 50 × 90mm flat tracking/power PCB and a 44 × 58mm control PCB. Both are two-layer, 1.6mm FR4. The device envelope is approximately 78 × 112 × 73mm. The sculpted grip is a design hypothesis: hand comfort, button force and fit need testing on a physical prototype.

## Hardware and controls

- Raytac MDBT42V-512KV2 (nRF52832), 6.4 × 8.4 × 1.75mm, with chip antenna.
- PMW3610DM-SUDU and a purchased LM18-LSI lens remain flat above the desk.
- Omron D2FC-F-7N(20M) switches and Alps EC10E1220505 encoder are on the angled control PCB. The upper paddle is left click and the lower paddle is right click. Middle click and DPI use the two small keys behind the wheel; the wheel itself does not depress.
- A seven-wire, straight-through JST-PH harness joins the passive control PCB to the main PCB. All signal pull-ups are grouped beside J_CONTROL on the main PCB. See `PIN-MAP.md` for the exact wiring.
- Protected Adafruit 1570 100mAh LiPo, 11.5 × 31 × 3.8mm, in a small internal tray. USB-C is charging/power only.
- Red charging LED, software-controlled green status LED, underside MSK12C02 low-profile on/off slide switch and pairing control.
- PZ127-1-06-Z six-pin 1.27mm programming header, with imported footprint and CAD. The USB TVS uses the SOCAY SMF5.0A (C305704) SOD-123FL footprint and CAD.

BLE HID mouse firmware is still required. Battery life and RF performance have not been measured. No separate mobile app is required for standard BLE HID operation.

## Run and inspect

```sh
bun install
bun run typecheck
bun run build
bun run check
bun run dev
```

Open `index.circuit.tsx` for the flat main PCB, `controls.circuit.tsx` for the angled control PCB, `assembly.circuit.tsx` for the device, `exploded.circuit.tsx` to lift the transparent cover, and `system-overview.circuit.tsx` for the functional diagrams. Build outputs are in `dist/`. All six schematic sheets are exported individually as `dist/index/schematic-*.svg`; `schematic-all.svg` contains the complete set. `BOM.csv` and `PIN-MAP.md` describe the hardware. Builds retain DRC errors and return a nonzero exit code when validation fails.

## Power

USB-C has two 5.1kΩ CC pull-downs and a 500mA resettable fuse. BQ24074 provides the USB/battery power path, so system load is separated from charge termination. EN1/EN2 select a 500mA input limit. The 17.8kΩ ISET resistor sets about 50mA charging, below the battery supplier's 100mA maximum; default timer and 10% termination use the datasheet-approved unconnected TMR and ITERM pins. Charge current can reduce when the system consumes the available USB current.

Attach a Semitec 103AT-2 10kΩ NTC to the cell and connect it to J_NTC. The protected two-wire battery does not include that external temperature sensor. An absent NTC inhibits charging; do not substitute a short circuit. Check battery-plug polarity against J_BAT before connecting it.

TPS7A0230PDBVR supplies nominal 3.0V without an external inductor. Its input and output each have a 10µF capacitor facing the corresponding IC pin, with short top-layer supply connections. The 1.9V LDO and sensor bypass capacitors are similarly placed beside their supply pins. The rail follows the battery downward once the LDO enters dropout near the end of discharge; firmware should stop operation before the protected cell disconnects. TLV70019 supplies the tracking sensor's 1.9V core. Sensor I/O uses the logic rail. The slide switch controls regulator enable; charging remains available with the mouse off. The ADC divider senses the switched system supply: on battery it approximates cell voltage; with USB present it reads the charger system rail, not the battery. It goes to ground when switched off to avoid feeding an unpowered MCU through its ADC pin.

The nRF52832 uses its internal low-frequency RC clock and LDO mode (DCC is unconnected); configure and calibrate the RC clock in firmware. DEC4 has a 1µF capacitor. Configure P0.21 as nRESET. The module factory test firmware expects an external low-frequency crystal, so load the correct mouse firmware through the 3.0V SWD header. The USB-C connector has no data connection.

## Optics, antenna and assembly

The sensor footprint preserves the manufacturer's lead pattern and 16.96 × 8.60mm opening. The CP/CN/VCP routes remain short and 0.55mm wide. The PMW3610 is a no-wash wave-solder part; confirm the assembly process before ordering.

PCB top is 0.8mm in assembly coordinates. The desk plane remains −6.6mm, maintaining the specified 7.4mm sensor reference height. The lens reference plane is −4.2mm, 2.4mm above the desk. `LM18_LSI_ENVELOPE` is a clearance envelope for a purchased optical lens, not manufacturable optical CAD. The tray includes two hold-down bosses and 0.5mm compliant pads over the sensor casing. Validate their preload, the real lens retention and optical alignment on a physical prototype before fabrication; the model does not establish the force or fit tolerances.

The control PCB's local frame rotates +60° around Y and then translates to (5, 15, 36)mm. Switch caps, wheel, encoder bearing, bezel and mounting carrier use that same transform. Its GLB is generated from `controls.circuit.tsx`, normalized from the exported Y-up coordinates, and imported as an assembly part. The native circuit source remains separately runnable. The flat PCB is not tilted.

The nRF antenna faces the rear. Its 3mm antenna end and rear margin have an all-layer copper keepout beginning 0.14mm beyond the ground-pad edge. The battery and control harness stay in front of this zone; keep metal hardware and wiring out of it. Final enclosure RF testing is required.

The shell has a nominal 1.6mm wall with local clearance pockets around the bezel spacers, with a clear sculpted palm cover and a removable angled bezel. The base has a USB-C cable recess, access to the underside switch/pairing key, and PTFE skates. The printed carrier supports the control PCB at four points. The small battery tray leaves room for wires and pouch expansion, with drilled mounting clearances and a removable elastomer retaining band. The carrier, tray arms and M2×12 screw heads meet at their seating faces; the base has 1.7mm pilot holes for prototype thread fitting. J_SWD is outside the tray footprint for service access. J_BAT faces the cell lead exit, and J_NTC sits nearby; the cable models include both thermistor conductors. Battery plug polarity is marked on the board. Clear polycarbonate is the intended shell material; a clear printed prototype needs a suitable process and finishing.

The revised exterior uses a neutral clear shell, graphite base, broad low-profile pearl paddles, a textured elastomer scroll tire, recessed M2×16 panel screws and small blue tscircuit branding. The separate USB-C surround has an 11.8 × 7mm opening; check the intended cable overmold before printing. Panel screw heads seat at local Z=11.5mm and remain below the finger surface.

The paddle flexures and plungers are prototype geometry. Check their travel, return force, wheel shaft fit, threaded pilot holes, cable strain relief, shell retention, and hand fit before making production parts. Assembly wire paths are illustrative; they do not replace the harness pin map or establish electrical connectivity in circuit JSON.

## Bring-up measurements

DRC and netlist checks cannot establish sensor startup timing. Measure V3V0 and V1V9 with an oscilloscope: PixArt specifies no more than 100µs separation when applying its two supplies and a supply rise time of at least 1ms. The two-LDO power path has not been measured against those requirements. If it fails, revise the power sequencing before using this as a finished mouse. Keep reset asserted until both rails are stable and implement the datasheet initialization sequence in firmware.

## Design references

- [PixArt PMW3610 datasheet, figures 5 and 6](https://trackballs.eu/media/Nakabayashi/Digio2/PMW3610DM-SUDU.pdf)
- [Raytac MDBT42V datasheet and antenna guidance](https://datasheet.octopart.com/MDBT42V-512KV2-Raytac-Corporation-datasheet-138897516.pdf)
- [BQ24074 datasheet](https://www.ti.com/lit/ds/symlink/bq24074.pdf)
- [TPS7A02 regulator datasheet](https://www.ti.com/lit/ds/symlink/tps7a02.pdf)
- [Alps EC10E encoder](https://tech.alpsalpine.com/e/products/detail/EC10E1220505/)
- [Omron D2FC](https://media.digikey.com/pdf/Data%20Sheets/Omron%20PDFs/D2FC_Datasheet_EN.pdf)
- [Adafruit protected battery](https://www.adafruit.com/product/1570)

Parts were discovered through tscircuit search and imported through `tsci import`. The existing MustafaMulla29/wireless-mouse-pcb registry project helped locate the sensor's supplier C-number; the board and enclosure here were created independently. No other EDA tool is used.

Encoder display geometry uses the [official Alps EC10E1220505 STEP](https://tech.alpsalpine.com/cms.media/product_3dcad_ec10e1220505_en_dbea767f86.zip), aligned to the mounting plane and signal-pin row. The shaft axis remains 7mm above the control PCB top. The finger panel has an underside clearance pocket above the encoder and wheel bearing. The component footprint and electrical routing are unchanged.