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-counterIn 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.
assembly-drawing.tsx
// SPDX-License-Identifier: MIT
import { assembly } from "tscircuit"
import dimensions from "./mechanical/parameters.json"
const finalStage = "separate-base"
export const ServiceExplosion = () => (
<>
<assembly.explosion.stage name="remove-display-screws">
<assembly.explosion.move targetRef="display-screws" offZ={85} />
</assembly.explosion.stage>
<assembly.explosion.stage name="lift-display-mount">
<assembly.explosion.move targetRef="display-mount" offZ={70} />
</assembly.explosion.stage>
<assembly.explosion.stage name="unplug-j6-toward-board-center">
<assembly.explosion.move targetRef="harness" offX={3.5} />
</assembly.explosion.stage>
<assembly.explosion.stage name="lift-display-and-harness">
<assembly.explosion.move targetRefs={["lcd-module", "harness"]} offZ={45} />
</assembly.explosion.stage>
<assembly.explosion.stage name="remove-underside-screws">
<assembly.explosion.move targetRef="underside-screws" offZ={-39} />
</assembly.explosion.stage>
<assembly.explosion.stage name="lift-rotor">
<assembly.explosion.move targetRefs={["knob", "bearing", "rotor-carrier"]} offZ={25} />
</assembly.explosion.stage>
<assembly.explosion.stage name="lift-button-cap">
<assembly.explosion.move targetRef="button-cap" offZ={18} />
</assembly.explosion.stage>
{/* Core holds the populated PCB stationary. Separate the base from it. */}
<assembly.explosion.stage name={finalStage}>
<assembly.explosion.move targetRef="base" offZ={-21} />
</assembly.explosion.stage>
</>
)
export const AssemblyDrawing = () => (
<>
<assembly.drawing.stage name="assembled" partRefs={[".DESK_KNOB_ASSEMBLY"]} boardRefs={[".DESK_KNOB_REVF1"]} />
<assembly.drawing.page name="classic-f1-service" size="iso_a3">
<assembly.drawing.titleblock
title="Desk fidget counter — Classic F1"
identificationNumber="F1-ASM"
revisionIndex="F1"
legalOwner="rushabhcodes"
sheetNumber={1}
numberOfSheets={1}
/>
<assembly.drawing.partview stageRef=".assembled" name="top" displayName="ASSEMBLED TOP" direction="z+"
width={140} height={122} centerX={-115} centerY={65} />
<assembly.drawing.partview stageRef=".assembled" name="front" displayName="ASSEMBLED FRONT" direction="y-"
width={122} height={64} centerX={-115} centerY={-44} />
<assembly.drawing.explosionview stageRef={finalStage} name="service" displayName="EXPLODED FOR SERVICE"
direction="isometric" width={218} height={224} centerX={80} centerY={17} showTrails>
<assembly.drawing.partlabel partRefs={[".display-mount"]} text="Display mount"
anchor={{ x: -16, y: 16, z: 15.7 }} xOffsetFromViewCenter={47} yOffsetFromViewCenter={56} />
<assembly.drawing.partlabel partRefs={[".lcd-module"]} text="LCD and H1 harness"
anchor={{ x: 12, y: -12, z: 7.8 }} xOffsetFromViewCenter={-43} yOffsetFromViewCenter={23} />
<assembly.drawing.partlabel partRefs={[".knob"]} text="Grip, bearing and carrier"
anchor={{ x: -31, y: 31, z: 12 }} xOffsetFromViewCenter={56} yOffsetFromViewCenter={7} />
<assembly.drawing.partlabel boardRefs={[".DESK_KNOB_REVF1"]} text="F1 PCB"
anchor={{ x: -25, y: 25, z: 0.8 }} xOffsetFromViewCenter={54} yOffsetFromViewCenter={-22} />
<assembly.drawing.partlabel partRefs={[".base"]} text="Base"
anchor={{ x: -31, y: 31, z: 5 }} xOffsetFromViewCenter={54} yOffsetFromViewCenter={-45} />
</assembly.drawing.explosionview>
<assembly.drawing.note text={`Nominal envelope: Ø${dimensions.base_diameter} × ${dimensions.display.bezel_top_z} mm`}
paperX={-187} paperY={-87} />
<assembly.drawing.note text="Support the display. Pull the H1 plug toward the board center to unplug J6."
paperX={-187} paperY={-98} />
<assembly.drawing.note text="The grip, bearing and rotor carrier lift together."
paperX={-187} paperY={-109} />
<assembly.drawing.note text="Support the loose button cap when separating the base and PCB."
paperX={-187} paperY={-120} />
</assembly.drawing.page>
</>
)