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.

docs/v2-validation.md

# V2 hardware validation — updated 12 November 2026

The current local revision uses the compact 91 × 90 mm layout described in
[V2 compact layout](v2-compact-layout.md). Historical results below apply only
to their recorded artifacts; the initialization results do not qualify V2.

## Hardware changes

| Function | V2 implementation |
| --- | --- |
| Motor control | MCF8329A1IREER / C22399784; sensorless FOC; existing external MOSFET bridge |
| Display | ER-OLED013A1-1W / ER-CON30HT-1; 128 × 64 SSD1306; 3.0 V logic / 3.872 V charge-pump supply; UI I²C bus |
| Navigation | Four active-low UP/DOWN/OK/BACK buttons with pullups and RC filtering |
| Temperature | TMP102AIDRLR / C99269 next to the MOSFETs; board temperature |
| Sound | HNB09A03 / C96102; transistor drive and flyback diode |
| POWER | JS202011JAQN / C221664; side actuator faces the left enclosure wall; printed slider/retainer and hardware ARM clamp retained |
| Reservoir | Four EEUFR1H151 / C542038, 150 µF / 50 V; 600 µF nominal, 480 µF minimum |
| Mechanical | 91 × 90 mm; four corner mounting holes; dial/POWER at left edge; horizontal navigation row below OLED; all parts on top; no dial cover |

The current display uses a 30-pin SMT top-contact connector and a removable lid-mounted holder. The old four-pin header and four module mounting holes are removed. Factory sourcing of the connector and physical ribbon fit still require confirmation. See [plug-in OLED revision](plug-in-oled.md) for its supply design, assembly process and current checks.

The capacitor bank's 12.5 mm nominal body height is lower than the original
20 mm part. Its added capacitance changes startup charge and stored energy;
confirm U11 current-limited startup and regen transients on the prototype.
Capacitors are not a continuous braking load.

## Upward-facing POWER switch — 11 November 2026

Restored JS202011JCQN / C221665, the original upward-actuated switch, at the
V2 control-area location (-59.5, 37 mm). Its 270° footprint rotation retains
OFF toward +Y and ON toward -Y. The BOM, CAD model and hardware checks use
this exact part. The right-angle variant's two locating holes are removed;
the vertical J-bend drawing has no locating pegs.

All 587 SMT lands, 33 plated holes, 1,431 traces and 663 vias are identical to
the previous V2 build, as are the board outline and pin/net definitions. The
retained copper was replayed and checked on the replacement footprint before
rebinding the saved plan to its fresh routing input. The stale-routing guard
still rejects geometry, net and rule changes. Native DRC, physical continuity,
courtyard/screw clearance, switch pinout/label direction and full build pass.
The four Panasonic capacitors are unchanged. Publication status is recorded separately in the registry verification.

## Firmware interface

- UI I²C0: GP16 SDA / GP17 SCL. OLED address 0x3C (0x3D alternate); TMP102 0x48.
- Motor bus: GP0/1, software I²C. PD bus remains hardware I²C1 on GP22/23.
- UP/DOWN/OK/BACK: GP11/12/13/14. Buzzer: GP15. Temperature ALERT: GP19.
- ARM remains a separate physical action. BOOT and RESET remain service buttons.
- Proposed screen pages: commanded speed, measured motor status/faults, bus
  voltage/current and PCB temperature. Change motor configuration while disarmed.

The old MCT8329A firmware/profile is retained as reference and is incompatible
with MCF register configuration. FOC commissioning, OLED/menu firmware and
thermal shutdown thresholds still require implementation/bench validation.

## Current validation

All 202 components retain top-side assembly. UP/DOWN/OK/BACK labels are on top;
duplicate SW5–SW8 references are hidden, and RV1/SW3 references are repositioned
on top. The four corner holes, dial placement and horizontal navigation row
are included in the hardware regression checks.

The redesigned PCB is routed locally. The saved-routing guard checks the
current board outline, pads, nets and routing rules before loading copper.
The original project's 213 copied source files and its package metadata remain
unchanged. Registry publication is tracked separately from these local checks.

Final evidence is in `.tscircuit/corner-layout-20261112` and applies to the fresh
`dist/index/circuit.json`, not to the archived initialization build below.

Validated circuit SHA-256:
`b8b2ee5d59cfd5e5416d20ba96bfe2709867a389ff15d9294ca188d33173791c`.
The final build contains **1,433 traces and 684 vias**. Native DRC reports
**0 errors and 77 nonfatal warnings**, including 67 trace-style warnings.
Embedded build metadata also includes reference-prefix and sheet-style advisories.


| Check | Result |
| --- | --- |
| TypeScript and full PCB build | Pass |
| Native netlist | 0 errors, 0 warnings |
| Native PCB placement | 0 placement DRC errors/warnings; eight inherited orientation heuristics, explained below |
| Native DRC rerun on compiled copper | 0 errors |
| MCF / UI / switch pin and BOM checks | 94 pin expectations pass |
| Physical copper connectivity | 0 disconnected nets; 0 floating copper groups |
| Power path widths | 104 / 104 pass; parallel power-via checks pass |
| Power-layer and mechanical checks | Wide main power routes on outer layers; 202 courtyards checked; no screw-head intrusions |
| Current-sense Kelvin paths | Pass; no unintended taps on sense routes |
| USB routing | Top-only pair; no signal vias; L2 ground reference preserved |
| Cleanup | No unused single-layer vias or undersized local supply segments |
| Schematic wires | No wires crossing IC/connector symbol interiors |
| Fabrication geometry preflight | No findings under the encoded copper/drill/edge rules; no missing purchased-part numbers |

These are design checks, not a measured motor-current rating, FOC performance
result or JLCPCB order approval. The power-budget calculation passes its stated
provisional assumptions; OLED, buzzer and MCU load still need measurement.
The two 0.9 mm OFF/ON silkscreen labels are reported as small text by the
preflight; review legibility in the factory preview.

### Remaining nonfatal tool advisories

- `tsci check placement` exits 1 for eight pre-routing orientation suggestions:
  R152, R153, C153–C157 and R140. The same eight occur on the preceding V2
  artifact. Their routed connections and pad/copper/courtyard spacing pass the
  independent checks; no part was rotated just to silence the heuristic.

- The three motor sockets retain their y+ mating direction at the top edge.
  J12 no longer produces the previous edge-direction advisory after the sockets
  moved left to clear the upper-right corner mounting screw.
- Native trace-angle suggestions remain for non-45-degree segments. Their
  connectivity, copper/drill spacing and required widths are checked separately.
- Generic imported switch, transistor, crystal and inductor symbols produce
  reference-prefix or supply-pin metadata advisories. BZ1 also lacks detailed
  electrical pin attributes; its polarity and transistor-drive nets are explicit.
- Schematic layout suggestions cover symbol whitespace, rail orientation and
  support-element grouping. The UI decouplers deliberately remain beside their
  respective OLED, temperature-sensor and buzzer circuits. The reviewed pages
  have no wires crossing chip/connector interiors.
- `bun run check` is intentionally stricter than the CLI schematic command: it
  treats every schematic layout suggestion as a failure. It is not reported as
  passing, and its thresholds have not been relaxed.
- The CLI cannot serialize its optional autorouting replay paths for some
  branched routes. The project's separate saved plan loads and its stale-input
  rejection tests pass; the full PCB build succeeds.

### Work before hardware commissioning

Implement the MCF8329A register profile and UI firmware; validate ARM/OFF behavior,
motor startup, current measurements, faults and thermal limits on the prototype.
Confirm the OLED header/standoff combination and assembly handling in the
actual supplier order. Generate and review new V2 fabrication exports; the V1
enclosure and assembly files remain retained and unlinked.


---

## Archived initialization baseline (before feature changes)

# V2 initialization and compatibility review — 10 November 2026

Created with `tsci init -y rp2040-bldc-motor-controller-new-v2`, then copied the
main project sources and assets without its dependencies, caches or generated
`dist` directories. The original project was not edited.

- Package: `@tsci/MustafaMulla29.rp2040-bldc-motor-controller-new-v2`
- Default entrypoint: `index.tsx`, exporting `index.circuit.tsx`
- Published JavaScript entrypoint: `dist/index.js`; the circuit source remains
  `index.tsx` through `tscircuit.config.json`.
- Default build discovery: only `index.tsx`
- Enclosure and connected-system sources/assets remain locally, disconnected
  from the default entrypoint. The inherited publish exclusions remain in place.

## Installed toolchain

| Package | Version |
| --- | --- |
| tscircuit | 0.0.3133 |
| @tscircuit/cli | 0.1.2447 |
| @tscircuit/core | 0.0.2320 |
| @tscircuit/checks | 0.0.270 |
| @tscircuit/eval | 0.0.1725 |
| TypeScript | 5.9.3 |

The original baseline uses tscircuit 0.0.2993. No dependency patches, overrides,
ignored DRC errors or altered checker thresholds were used.

## Compatibility changes

The new core anchors explicit CAD models to `footprint_origin` instead of the
computed bounds centre. Adjusted the CAD offsets for J1/J19 and RV1, and removed
Q7's obsolete bounds compensation. All 157 model placements/transforms now match
a fresh original-version build to within 1e-9 mm, using the same model URLs.

Updated the USB footprint audit to read numeric `footprint_origin`; the new
`display_offset_x/y` fields contain unit strings. It retains the older numeric
offset fallback and the original dimension/placement tolerances.

Board outline, pads, vias, holes, paste, rectangular courtyards, electrical
connections, routed copper and footprint placement/rotation/layer are unchanged.
New metadata includes a slightly different computed Q7 bounding box and updated
inside-copper-pour annotations. Neither changes pad or trace geometry.

## Checks

- TypeScript: pass.
- Package transpilation: pass; ESM, CommonJS and type declarations generated.
  Both JavaScript bundles import successfully and export the PCB component.
- Native netlist: 0 errors, 0 warnings.
- Native PCB placement: 0 errors, 0 warnings.
- Full routed build: pass; 1,560 traces and 477 vias.
- Fresh native DRC plus existing board-specific audits: pass, 0 errors.
- Gerber-mode short detection: no shorts detected.
- Saved-routing guard: pass; altered geometry/connections/rules are rejected.
- Schematic placement: 12 inherited suggestions, down from the documented 13;
  the applicable dispositions remain in `validation.md`.
- Embedded build warnings: 62, down from 63. These are 49 routing-angle style
  warnings, 5 reference-prefix warnings, 7 supply/ground metadata warnings and
  1 sheet-size warning. This is not a warning-free build.
- Trace-length analysis for U7.VREG completes; its direct C80 bypass path is
  reported at 1.54 mm against the authored 1.60 mm requirement.
- The optional pre-routing congestion estimator did not finish after more than
  five minutes at full CPU and was stopped. It is not recorded as passing;
  the actual routed build, DRC and short detection completed separately.

The CLI also reports that it cannot serialize an optional replay-path artifact
for branched routes. This was reproduced unchanged in an isolated build with
the original tscircuit version. The project's own guarded `route-plan.json`
loads successfully and remains unchanged.

Validated circuit JSON SHA-256:
`33bca8c1b9b1703e69c7c810813a6694e33269caa5d7e0a900df54a7826e64fc`.

Local evidence is retained in `work/bldc-v2-20261110` in the parent workspace.
These checks cover this copied design and toolchain migration, not a new
electrical revision or a new hardware qualification.