rushabhcodes/desk-fidget-counter

A PLA desk fidget counter assembly houses an F1 PCB, 1.28-inch LCD with harness, rotary knob/bearing mechanism, button cap, and screw-secured base/display mount.

Version
6.0.16
License
MIT
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone rushabhcodes/desk-fidget-counter  # download the package files into ./desk-fidget-counter
tsci add rushabhcodes/desk-fidget-counter    # add it to your project as @tsci/rushabhcodes.desk-fidget-counter

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

# Desk fidget counter

The Desk fidget counter is a USB-powered scroll ring with a fixed 1.28-inch display. It counts full turns in FRAM and displays the computer’s clock, CPU, RAM, and battery data. A short button press switches between scrolling and count-only mode. Hold the button for three seconds to clear the count.

![Desk fidget counter with its round display and five-print enclosure](mechanical/assembled.png)

The device uses one two-layer RP2040 F1 PCB with 52 fitted components and five printed parts. The enclosure measures Ø89.4 Γ— 19.5 mm and opens from the bottom for board service.

- [Assembly, fit, and parts list](ASSEMBLY.md)
- [Engineering drawing](mechanical/classic-f1-service.svg) Β· [Five printable parts](mechanical/stl/) Β· [Assembled CAD](mechanical/assembled.glb) Β· [Exploded CAD](mechanical/exploded.glb)
- [PCB fabrication files](manufacturing/README.md) Β· [Display and programming wiring](manufacturing/WIRING.md)
- [Firmware](firmware/README.md) Β· [USB dashboard companion](companion/README.md)

## Build

```sh
bun install --frozen-lockfile
bun run build
bun run dev
```

`assembly.circuit.tsx` is the only preview build. It contains the F1 PCB, the enclosure and the native service drawing. In the local **3D** tab, right-click the model and choose **Advanced β†’ Exploded view…**. Play, step or scrub through the service stages. Zoom out to fit the full stack.

Open **System** to see how the ring, controller, display and laptop exchange signals and how USB powers them. Select a block to find its PCB components. Run `bun run build --system-svgs` to export `dist/assembly/system.svg`.

The **Schematic** tab has two sheets.

1. **controller** covers the USB-C interface, voltage rails, RP2040 supply and programming, flash and clock.
2. **peripherals** covers the optical encoder, application GPIO, mode button, display harness and FRAM.

Matching net labels identify connections across sections and sheets.

Run `bun run drawing` after the build to export `dist/assembly/drawings/classic-f1-service.svg`. The drawing uses the same stages as the 3D view. The checked-in SVG is also available in the package files while hosted drawing tools add support for exploded sheets.

For PCB fabrication or validation, run `bun run build:pcb` to export the bare board to `checks/pcb.circuit.json`. This local file is separate from the published preview.

```sh
bun run typecheck
bun run build:pcb
bun run check:netlist && bun run check:schematic && bun run check:placement
bun run check:design && bun run check:footprints && bun run check:shorts && bun run check:assembly
bun run test && bun run test:route-display
```

[Routing and design rules](routing/README.md) Β· [Licenses and model attribution](licenses/ATTRIBUTION.md)