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-controllerIn 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.
manufacturing/assembly-instructions.md
> Current OLED assembly: use BuyDisplay ER-OLED013A1-1W with factory-soldered ER-CON30HT-1 at J21. Install the glass after reflow in the removable lid holder and plug its flex into J21, contacts upward; no screen header or manual soldering. Follow [current mounting and service instructions](../docs/plug-in-oled.md). Exact connector sourcing and panel electrical/physical qualification remain pending. Historical population/stencil notes below are not final approval for the current board.
# Factory review instructions
Design: rp2040-bldc-motor-controller-new, 73 × 72 mm, four layers.
Status: 23 October 2026 package refresh; engineering review only. Hold fabrication/assembly pending factory process approval and the remaining release findings in `order-readiness.md`. Production approval has not been obtained.
Requested quantity: **five PCBs total, two fully assembled and three bare**. Fit the BOM only on the two assembled units. No firmware/NVM programming is requested. Read `factory-review-request.md` and the current parts-availability report before quoting.
## PCB fabrication
Use JLC04161H-3313, nominal 1.6 mm thickness, 1 oz outer copper and 0.5 oz inner copper. The construction and USB requirements are in `stackup.json`. Preserve the finished 73 × 72 mm outline. Add panel rails, tooling and panel fiducials externally as needed for assembly; do not place them over the circuit. Every via is 0.30 mm drill / 0.45 mm pad. Do not change copper weight or substitute a thicker L1–L2 dielectric without another USB calculation and clearance review.
The L1 USB data routes reference the L2 GND plane. Target 90 Ω differential, ±15%. Main traces are 0.15 mm wide; the two short connector reversal links are 0.125 mm. Spacing varies through the connector, ESD array and resistor fanouts. Please calculate using the actual supplied geometry and identify any required width changes before fabrication. Do not assume a uniform coupled pair or certify the complete channel from a coupon alone.
## Assembly scope and placement
Fit **all 157 BOM components**, all mounted on the top side; verify the newly generated assembly-scope.csv. Use `bom.csv`, `cpl-reviewed.csv` and `assembly-scope.csv` from `dist/assembly-review`. The latter identifies the mounting process and side for each part. The separate native CLI export may contain an unreviewed fallback CPL; do not use that file instead.
The reviewed CPL uses millimeters in the same board coordinate system as the Gerbers. The board is centered at (-3.5, 9.5) mm, with X bounds -40 to 33 mm and Y bounds -26.5 to 45.5 mm; negative coordinates are intentional. Rotation is the numbered supplier footprint's orientation, all placed from the top side. Confirm the factory library's convention in its placement preview before production.
J1 and J19 are HRO TYPE-C-31-M-12, C165948. Their corrected land patterns have asymmetric copper bounds, so the CPL coordinates use the supplier datum registered to the four shell-slot centers. Check their shell slots and plastic pegs together in the preview; do not recenter on the copper bounds. Both mouths face the left board edge. J1 is DATA; J19 is USB PD.
LED1 is TOGIALED TJ-S1615SW6TGLCCSRGB-A5 (C273611), common cathode: pin 1 green, 2 blue, 3 red, 4 cathode. Check its four numbered pads against the manufacturer drawing and factory library preview. Its lands follow the manufacturer recommended 2.6 × 1.6 mm envelope (four 0.85 × 0.55 mm pads), rather than the larger catalog lands. R47/R48/R49 are each 1 kΩ. Do not substitute a common-anode LED.
Factory solder all **five through-hole components**:
| Side | Components |
| --- | --- |
| Top | C93, J10, J11, J12, RV1 |
Also solder the retention tabs of J1 and J19. Use the suitable selective/manual soldering process and fixtures for top-inserted THT parts; these parts must not be left for the customer to solder. Confirm the mixed assembly process and fixture requirements in the quote.
J10/J11/J12: AMASS 24.243.4 (C7437324), top-mounted, opening toward the top board edge; U/V/W respectively. Both solder legs of each socket are the same phase. Three purchased BDHI B117-5 rigid adapters are offboard accessories; no custom motor wire harness is specified. Check IC pin 1, diode/LED cathodes and C93 positive lead against the numbered pad review and assembly drawing. C93 is top-side and 20 mm tall. SW1–SW4 and RV1 are operated directly onboard. TP1–TP16 are unpopulated copper pads: no assembly parts and no paste. Allow space below for through-hole solder tails and mounting hardware; there are no bottom component bodies.
SW4 is C&K JS202011JCQN (C221665), top-actuated SMT DPDT, with six 1.00 × 1.60 mm J-bend lands at 2.50 mm pitch. At its 270° board rotation, OFF is toward +Y and ON toward −Y. The lid slider engages its upward-facing lever. Confirm both contact poles against the OFF/ON markings before release. U11 is TPS1H100AQPWPRQ1 (C478465); its pin-15 ground pad is 2.60 × 2.59 mm per TI PWP0014K. D6 cathode faces the reverse-isolated PD_LOAD net, and D7 cathode is the POWER_ON_LEVEL clamp.
## Production stencil
Use the U7 exposed-pad instruction in `stencil-u7.svg` and `stencil-u7.json`: six rounded rectangular apertures, 1.05 × 1.15 mm, R0.05, centers X = −1.20/0/+1.20 mm and Y = −0.65/+0.65 mm relative to pad 37. This yields approximately 74.8% coverage on the authored 3.650 × 2.650 mm pad. Start from a 0.125 mm stencil, following TI's REE0036A example, and confirm release/coverage with the stencil engineer.
**The native F_Paste export now has six 1.05 × 1.15 mm rectangular U7 exposed-pad windows (74.90% area), with the original central paste opening suppressed. Their positions and sizes are checked against the drawing. Native `<solderpaste>` does not support rounded corners yet: the R0.05 rounding in the factory instruction (~74.77% area) remains a stencil-engineering request, not exported geometry.** Please provide the production stencil drawing for approval. Review other QFN exposed pads and small-component apertures under the same process. Omit paste from ordinary THT pads; solder those in the separate THT process. The native B_Paste file contains 8 USB shell-slot flashes and must not be treated as a request for bottom SMT assembly or THT paste. Do not introduce pin-in-paste processing without review.
U11: follow TI PWP0014K drawing 4229706/B. The authored exposed copper pad is 2.60 × 2.59 mm in component axes (2.59 × 2.60 mm in board axes). **The native paste opening is now 2.590 × 2.600 mm in board axes, matching TI's 2.60 × 2.59 mm example for a 0.125 mm stencil.** The source footprint uses `solderPasteMargin={0}` and the export is checked by `check-native-stencil.mjs`. Approve solder release and final coverage with the stencil engineer. The eight nearby thermal vias are outside this solder land. If stencil thickness changes, review TI’s corresponding opening dimensions rather than scaling all apertures blindly. U1 and U5 exposed pads also export as single rectangles at approximately 49% area and require process review. Paste area is not itself a final solder-coverage measurement.
JLCPCB prepares the production stencil from its verified SMT assembly data and accepts custom stencil requirements in the order remarks. These files supply that requirement; they do not claim it has already been implemented or approved by the factory. See [JLCPCB's stencil preparation process](https://jlcpcb.com/help/article/smt-stencil-data-prepared-for-smt-orders) and [TI's REE0036A stencil example](https://www.ti.com/lit/ds/symlink/mct8329a.pdf#page=163).
## Before approving production
The 23 October follow-up stencil screen found 116 small peripheral openings
below the general area-ratio guideline at 0.125 mm: U1 (24), U5 (56), U7 (36).
These are present in the native Gerber, not just inferred from TSX. Review
`stencil-process-screen.json` and resolve aperture dimensions/thickness with
the assembler. Geometry checks for the exposed-pad windows do not establish
paste release for the perimeter pins. No production-stencil approval is claimed.
Resolve the layout/release hold in `order-readiness.md` first. Confirm part stock and any substitutions against the exact BOM, inspect the factory top-side placement preview and THT tail clearance, approve the U7/U11 stencil drawings and USB geometry calculation, and verify that the quote includes all THT soldering. This is an unprogrammed prototype: STUSB4500 default-9 V provisioning, runtime 5/9/15/20 V verification and motor firmware are separate from PCB assembly.
The USB power/data cables and purchased motor adapters are offboard accessories, specified in `docs/offboard-parts.csv`. There is no battery or temperature-probe wiring. Speed, ARM and POWER controls are onboard.
Process references: [JLCPCB mixed/THT assembly capability](https://jlcpcb.com/capabilities/pcb-assembly-capabilities), [fixtures for assembly, including THT on both faces](https://jlcpcb.com/help/article/pcb-assembly-fixtures), [layer constructions](https://jlcpcb.com/impedance).
RV1 is Alps RK09K1130A8G / C470294. Its corrected mounting pattern follows Alps Drawing 2, including 8.8 mm tab spacing and 1.8 × 2.1 mm mounting slots. Do not substitute the supplier library's original 10 mm tab spacing. Review the registered model and mounting-tab datum. SW1–SW3 use TS-1187A-B-A-B / C318884.
Configurable-PD replacements applied to main: R142 is 680 Ω (0603WAF6800T5E, C23228), which puts U11's limit at about 3.63 A nominal, above the 3 A contract, so it guards against inrush and short circuits and does not cap the motor; F1 is the 4 A 0452004.MRL (C99551); the PD request is 3 A. See current-budget.json for provisional allocations; these are not qualified motor-current ratings. F1 and U12/Q7 are the fused, reverse-isolated motor feed. Q1/Q2 are SI7111EDN-T1-GE3 (C5690133), U12 is LM74700QDBVTQ1 (C2653623), Q7 is DMT6009LFG-7 (C439728), D1 is BZT52C8V2, D4 is Bourns SMBJ22A (C3720133), bridge MOSFETs are AOD2610E, and C93 is Panasonic EEUFR1H471 (12.5 x 20 mm). C71 is TDK C3225X7R1H106KT000E (C432929). Check exact part references against the regenerated BOM. These replacements were applied to main with user approval on 23 October 2026.
## Q1/Q2 PowerPAK 1212-8 stencil (applied replacement)
Q1/Q2 now use the Vishay PowerPAK 1212-8 land pattern. Source pins are 1–3, gate is 4, and drain is 5–8 plus the exposed pad. The native footprint ties the exposed pad to drain pin 5; the supplier library numbers that same conductor as pad 9. Do not substitute the old SO-8 package. Four 1.00 × 0.73 mm exposed-drain windows and four 0.305 × 0.41 mm drain-finger apertures replace automatic drain paste. Four source/gate openings remain automatic. All apertures are on copper and separate from one another in the exported Gerber. At 0.125 mm stencil thickness the smallest aperture has area ratio about 0.700. Confirm transfer, stencil thickness and solder coverage with the factory; this authored pattern is not a manufacturer-approved production stencil.
## Q7 PowerDI3333 stencil (factory approval pending)
Q7 retains the continuous catalog drain-copper polygon. Eight native rectangular paste apertures replace its automatic polygon opening: four 1.05 × 0.70 mm windows over the exposed pad and four 0.35 × 0.49 mm drain-finger apertures. Copper is unchanged. The Gerber checker verifies all eight native flashes. Approve stencil thickness, release, corner rounding and voiding with the factory; this is an authored trial pattern, not a manufacturer-approved stencil. At 0.125 mm thickness the drain-finger area ratio is about 0.817; the smaller automatic source/gate openings have a minimum ratio of about 0.735.
The Q7 CPL uses the exact C439728 supplier numbered-pad datum rather than its asymmetric copper-bounds center. DMT6009LFG-7 imports successfully and the public footprint preview is visible. The imported copper lands match the authored lands exactly; independent manufacturer-pinout and CPL checks pass. Confirm the actual order-specific factory placement preview. AOD2610E uses the reviewed larger TO-252 lands; each contains the corresponding catalog land at the authored body datum. The tab is electrical drain pin 2 (catalog labels it 4). Check the supplier's actual library placement preview.