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/part-substitutions.md

# Part substitutions for JLCPCB stock — 2 December 2026

A two-board assembly order on 2 December 2026 showed 13 lines short of stock at JLCPCB. All 13 are now replaced with parts JLCPCB holds in volume: eight by changing ordering data only, five (four part types) with a small change to the board. All parts stay on the top side. Nothing here has been built or tested.

Selection rule from review: use parts with more than 1,000 in stock at JLCPCB; avoid parts with only tens in stock.

## Replaced (ordering data only; no copper change)

Stock figures were read from JLCPCB's parts pages on 2 December 2026 and will change. For these eight the board's lands, placement and routing are unchanged: the board file differed only in their manufacturer and supplier numbers (and two schematic labels). The selections are in `circuit/assembly-parts.json` and are enforced by `scripts/check-jlc-sourcing.mjs`.

| Ref | Was | Now | JLCPCB stock | Basis |
| --- | --- | --- | ---: | --- |
| C187 | GRM31CR71H105KA61L, C162494 | Samsung CL31B105KBHNNNE, **C1848** (Basic) | 929,909 | Same 1 µF / 50 V / X7R / 1206 |
| D4 | SMBJ22A, C3720133 | BORN SMBJ22A, **C151920** | 6,181 | Same SMBJ22A type: 22 V stand-off, 35.5 V clamp, 600 W, unidirectional, SMB |
| R185 | CRGCQ2512F15R, C4174550 | UNI-ROYAL 25121WF150JT4E, **C20087** | 70,670 | Same 15 Ω / 1 W / 1 % / 2512 |
| R182 | RT0603BRD0768R1L (0.1 %), C861522 | Viking ARG03FTC68R1 (thin film, 1 %), **C218122** | 5,394 | No 0.1 % part in stock in volume. With R181 still 0.1 %, OLED_VCC = 0.795 V × (1 + 1000 / 68.1) is 12.36–12.59 V from this resistor's tolerance, inside the 12–13 V target in `oled-power-margin-revision.md`. Dissipation about 9 mW |
| L2 | Bourns SRN3015TA-100M, C2043063 | Sunlord SWPA3015S100MT, **C45403** | 29,847 | 10 µH, 3 × 3 × 1.5 mm. Its pads (1.0 × 3.0 mm at ±1.15 mm) lie wholly on the existing lands (1.5 × 3.32 mm at ±1.08 mm). DCR 325 mΩ against 220 mΩ; the boost's average input current is about 0.14 A |
| U15 | Nexperia 74LVC1G74DP,125, C458768 | Nexperia 74LVC1G74DP-Q100H, **C548409** | 20,035 | Same device and TSSOP8 package, automotive grade; identical lands |
| U23 | TI TCA9517DGKR, C544515 | TI TCA9517ADGKR, **C201698** | 15,935 | Same package and pinout; identical lands. TI states the only electrical difference is the B-side VILC (0.45 V typical against 0.4 V) |
| Q7 | Diodes DMT6009LFG-7, C439728 | Yangjie YJQ62G06A, **C2908529** | 14,183 | N-channel, 60 V, ±20 V gate, 10 mΩ at 4.5 V (listing). Source and gate pads overlap the existing lands by 96 %; all drain pads sit on the existing drain land |

Pad comparisons were made by importing each candidate's JLCPCB footprint and overlaying it on the footprint already on the board. They compare recommended lands, not measured packages.

## Replaced with a board change

Stock figures were read from JLCPCB's parts pages on 2 December 2026.

| Ref | Was | Now | JLCPCB stock | What changed on the board |
| --- | --- | --- | ---: | --- |
| Q1, Q2 | Vishay SI7111EDN-T1-GE3, C5690133 (3 in stock) | Vishay SI7625DN-T1-GE3, **C553985** | 5,654 | Same PowerPAK 1212-8 lands. R3 changed from 22 kΩ to 10 kΩ (C25804) so the gate gets more drive |
| U24 | TI TPS3808G01DBVR (SOT-23-6), C19653 | TI TPS3808G01DRVR (WSON-6, 2 × 2 mm), **C477447** | 2,923 | New footprint at the same centre, turned 180°. Thermal pad tied to GND. Tracks around it redrawn |
| J21 | Molex 5034802400, C122434 | HDGC 0.5K-HX-24PWB, **C2919499** | 3,320 | The two hold-down lands moved to 13.5 mm centres, 2.5 mm from the signal row, 0.4 × 0.8 mm. The 24 signal lands are unchanged |
| U3 | Diodes AP63203WU-7 (fixed 3.3 V), C780769 | Diodes AP63200WU-7 (adjustable), **C2071868** | 2,878 | Same TSOT-26 lands and pin order. Two 0402 feedback resistors added above it, both JLCPCB Basic parts: R194 47 kΩ (0402WGF4702TCE, **C25792**, 4,734,524) and R195 15 kΩ (0402WGF1502TCE, **C25756**, 1,624,265). C11 moved 1.3 mm in +X and 0.22 mm in -Y |
| L1 | Bourns SRN6045TA-4R7M, 4.7 µH | TDK VLS6045EX-6R8M, 6.8 µH, **C415364** | 10,889 | None: its supplier land pattern is the one already on the board |

### Q1, Q2 and R3

The SI7625DN is a −30 V, ±20 V-gate P-channel part: 7 mΩ maximum at 10 V gate, 11 mΩ at 4.5 V, threshold −1 to −2.5 V, 100 nA gate leakage (Vishay datasheet). It has no 2.5 V rating, which the SI7111EDN had. With R3 at 10 kΩ against R4 at 100 kΩ, `scripts/check-pd-config.mjs` computes at least 3.5 V of gate drive on the 5 V profile and at least 4.5 V at 9 V and above. On-resistance at 5 V input is therefore above the 11 mΩ figure and is not guaranteed by the datasheet; `scripts/review-pd-electrical.py` assumes 32 mΩ for the pair. Its status, `5V_LOAD_NOT_GUARANTEED`, is the same as before this change.

### U24

Same device, different package. The pin numbers differ between the two packages (TI SBVS050 rev. K, page 4): WSON pin 1 VDD, 2 SENSE, 3 CT, 4 MR, 5 GND, 6 RESET. The connections are unchanged: CT open, MR to VDD. `scripts/check-v2-hardware.mjs` holds the new pin table.

### J21

HDGC's datasheet gives 24 contacts at 0.5 mm, 1.0 mm height, front insertion with a back-flip latch, contacts on both faces, for a 0.30 ± 0.03 mm thick, 12.50 ± 0.05 mm wide ribbon. Its recommended signal land is 0.30 × 0.80 mm; the board's is 0.30 × 0.70 mm on the same centres. The supplier footprint has the signal row and the hold-downs on the same sides as the board's footprint at rotation 0, with its origin midway between them; the placement file's centre is 0.025 mm from that. The supplier numbers the contacts in the opposite direction, which changes labels only.

The 3D model and the enclosure's fit study still use the Molex connector's shape. Both connectors are 1.0 mm high and the part is at the same position.

### U3, R194, R195, L1

The AP63200 has a 0.8 V feedback reference: VOUT = 0.8 V × (1 + R194 / R195) = 3.31 V with 47 kΩ and 15 kΩ. It switches at 500 kHz against the AP63203's 1.1 MHz; the datasheet's table gives 6.8 µH for a 3.3 V output, hence L1. The feed-forward capacitor in that table is optional and is not fitted. The JLCPCB listing gives the TDK part 3.6 A and 4.7 A current ratings and 36 mΩ.

The first version of this change (published as 2.0.37 and 2.0.38) used 0201 resistors of 75 kΩ and 24 kΩ. JLCPCB's order page marked both "Standard Only": it places 0201 parts only on its Standard assembly service, not the Economic one. They were replaced the same day by the 0402 parts above, which JLCPCB lists as Basic and "Economic and Standard".

Layout, all on the top side:

- D2's cathode runs straight down to C10 (0.6 mm track). It used to loop around U3's FB pin as a 0.3 mm track.
- That freed the strip above U3. R195 lies above the FB pin; R194 lies above C11, under R9. Both are 0402 and no courtyard overlaps.
- R194 takes 3.3 V from R9's pad, 1.3 mm away. The old 3.3 V sense track on the bottom layer, and its top-layer stub, are removed.
- R195's ground end goes to the via beside U3. That via used to carry the 3.3 V sense; it is now a GND via. In the published board the inner ground plane had a clearance hole around it; in this build the hole is gone and the via sits in the plane.
- C11 (boot capacitor) sits 1.3 mm towards L1 and 0.22 mm lower than at first; its SW end lands on L1's pad.

No via was added, moved or removed. Against the 2.0.38 files, the drill data and inner layer 2 are unchanged; the top layer, the bottom ground fill and the inner ground plane differ only around U3 (X -24.9 to -15.7, Y -5.0 to 0.6 mm).

## Checks after these changes

Run on 2 December 2026 against the rebuilt board:

- `bun run build:pcb`, `build:package`, `build:fabrication`: 0 errors on the controller, the package and the joined controller-plus-encoder board.
- Pass: typecheck, saved routing, netlist, routing (`check-routed`), sourcing (256 parts), `check-pd-config`, `check-review-hardware`, `check-v2-hardware`, schematic wires, current budget, OLED power budget, `evaluate-u11`, integration, drawings, joined-board check.
- `tsci check schematic-placement` and `tsci check placement` already reported issues before these changes (10 and 12). They report the same ones now, and none for the new or moved parts.
- The netlist differs from the previous board only at U3 pin 1 (now LOGIC_FB) and the four pins of R194 and R195.
- Compared with the factory files from before the substitutions, copper, mask, paste and drill data differ only inside two windows: X −30.3 to −12.2, Y 47.4 to 62.4 mm (U24 and J21) and X −24.9 to −15.7, Y −8.2 to 0.6 mm (U3).

Not run, because their inputs are not in this copy of the project: `export:factory-review` and `check-native-stencil` (need `assembly/`), and the enclosure's `verify.py` (needs `assembly/` and `reference-models/`). `scripts/check-rgb-status.mjs` fails on a board-size assertion (73 × 72 mm) that predates the current 91 × 90 mm board.

`assets/connected-system.provenance.json` had its two board hashes updated by hand, with a note, because the assembly model could not be regenerated here.

## Not verified

- Behaviour on hardware: none of this has been built.
- The fabricator's placement rotation for every new part number. The export cannot verify rotation for any part. Check J21, U24, U3, R194, R195, Q1, Q2, Q7, U15, U23 and L2 in the placement preview.
- The 3.3 V regulator's ripple, start-up and load response with the new parts, and its noise on the FB node (the FB copper is about 0.5 mm from C11's boot-node pad).
- Q1 and Q2 voltage drop on a 5 V source.
- The ribbon's fit and latch feel in the HDGC connector, with a real display.
- L2 saturation current under the boost's peak current limit (the calculated peak is about 0.26 A).

Order files for this state are outside the package: a parts list, a placement file and the Gerber archive exported from `dist/pcb/circuit.json`.