MustafaMulla29/rp2040-bldc-motor-controller

Hardware assembly metadata and PCB geometry for a controller board with a snap-off rotary-encoder section, plus four parallel 150 µF/50 V bulk electrolytic capacitors filtering the motor supply.

Version
2.0.40
License
unset
Stars
0

Use with the tscircuit CLI

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

tsci clone MustafaMulla29/rp2040-bldc-motor-controller  # download the package files into ./rp2040-bldc-motor-controller
tsci add MustafaMulla29/rp2040-bldc-motor-controller    # add it to your project as @tsci/MustafaMulla29.rp2040-bldc-motor-controller

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.

assets/enclosure/UV-PRINTING.md

# UV lettering for the off-white lid

Send `panel-uv-print.svg` to the printer operator. It contains 20 labels in dark charcoal (#181b1e), with every letter converted to a vector outline, plus a power icon, the SERVICE grouping bracket and an encoder-port direction arrow. The revised layout uses DIN Alternate Bold with controlled letter spacing, button labels centered on their controls, and PWR / DATA port names. OFF, the power icon and ON share a visible-ink centerline, with equal clear gaps around the icon. ENCODER and its arrow align with the right-side J20 connector and enclosure opening at board y=34.4 mm. There is no background, cutting line, embedded font, or white-ink layer. It is a direct-print design for the top of the lid, not a mirrored transfer.

`panel-uv-reference.png` and `panel-uv-reference.svg` show alignment only. Their background, holes and outlines must not be printed on the enclosure. The off-white preview color is illustrative; the actual color comes from the printed plastic.

`panel-uv-preview.png` and `panel-uv-preview.svg` show the revised lettering with illustrative installed controls and sample screen content. They are presentation files, not print ink.

## Set up the artwork

1. Import `panel-uv-print.svg` into the printing software. xTool Studio supports SVG vector import; see its [vector import instructions](https://support.xtool.com/article/2520?from=learning-center).
2. Preserve the original scale and orientation. The full SVG page is **104.4 × 103.4 mm**, matching the lid's bounding rectangle. Its origin is the top-left of that rectangle, viewed from outside, with the motor cable edge at the top.
3. Some importers trim empty page margins. The visible ink bounds are **101.1247 × 84.2814 mm**, positioned **1.7753 mm right and 1.9186 mm down** from the lid origin. If the software crops to the ink, use these dimensions and offsets. Do not enlarge the visible lettering group to 104.4 × 103.4 mm.
4. Check a paper print at actual size against the real lid, especially the screen opening, seven buttons and service rims. The reference sheet is useful for positioning, but is not the print-ink file.

## Print on the lid

- Print the bare lid before installing buttons, knob, display or electronics. Support it level in a locating fixture so the underside bosses do not tilt it; locate against the lid edges consistently.
- Use the printer's direct UV printing workflow and height measurement. The RESET/BOOT protective rims stand **1.1 mm above** the main lettering surface; account for the highest feature when setting head clearance. See the [O1 manual](https://support.xtool.com/article/3084).
- Test the dark ink on a spare piece of the same plastic and surface finish. Confirm small-letter readability, adhesion and rub resistance before printing the finished lid. Select preparation/primer from the printer manufacturer's guidance for the actual material; see [xTool's primer guidance](https://support.xtool.com/article/3704).
- The artwork supplies the color shapes; the operator still chooses the printer's ink/white-underbase/varnish settings from that material test. No white underbase or varnish is defined by this SVG.

## Verification and regeneration

All 20 outlined labels and three graphics are inside the nominal lid rectangle and clear the modeled top openings, service rims and installed knob in a conservative bounding-box check. The smallest calculated clearance is **0.8825 mm**, between ARM lettering and the LED opening. The artwork bounding boxes also do not overlap one another. The exporter checks visible-ink centering of OFF/icon/ON, balanced vertical gaps, and ENCODER alignment to J20 and its opening. This is a nominal artwork check; the paper alignment and material print sample establish practical registration and print quality.

The UV label names, tracking, coordinates and vector icons come from `enclosure/uv-artwork.ts`; the geometry comes from `enclosure/dimensions.ts`. Run `bun run enclosure:uv` from the project root to regenerate the print SVG, reference/preview SVGs and PNGs, and `panel-uv-report.json` in both `assets/enclosure` and `dist/assets/enclosure`. The exporter uses the installed DIN Alternate Bold font, then converts it to paths. On a different machine, set `UV_LABEL_FONT` to a licensed DIN Alternate Bold TTF file. The finished SVG requires no font installation.

The earlier sticker files remain available as a separate fallback with their original typography and USB-PD / USB DATA wording. UV export does not regenerate the PCB, change the enclosure geometry, or add floating labels to the 3D view.