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.
docs/usb-footprint-review.md
# USB-C connector drawing check
J1 (DATA) and J19 (PWR 9V) use the **HRO TYPE-C-31-M-12**, LCSC **C165948**. USB-C describes the mating interface; PCB mounting footprints differ between connector models. Do not substitute another receptacle without comparing its drawing.
J1 and J19 are declared directly as native `<connector standard="usb_c" manufacturerPartNumber="TYPE-C-31-M-12">` elements. Their symbols use tscircuit's default USB-C pin arrangement and automatic dimensions. `circuit/usb-c-footprint.tsx` holds the manufacturer-checked land pattern, physical pin aliases and CAD model. The original JLCPCB import wrapper and the manual schematic pin-arrangement overrides have been removed. Numeric pad IDs remain mapped to the manufacturer's physical contacts below.
Checked against the [HRO drawing, dated 2020-12-08](https://datasheet.lcsc.com/datasheet/pdf/9e56b777c022540fcce7c7f67825f55e.pdf?productCode=C165948), component-side recommended PCB layout:
| Feature | Authored geometry |
|---|---|
| Eight signal lands | 0.30 mm wide, 0.50 mm pitch |
| Four combined VBUS/GND lands | 0.60 mm wide, at x = ±2.40 / ±3.20 mm |
| Land length | 1.14 mm: drawing's 1.64 mm minus 0.50 mm datum offsets |
| Land row | Lower edge aligned with the rear shell-slot centre line |
| Shell slots | 0.60 mm drill width; 0.90 mm copper width |
| Rear shell slots | 1.70 mm drill length; 2.00 mm copper length |
| Front shell slots | 1.40 mm drill length; 1.70 mm copper length |
| Shell centres | 8.65 mm horizontal pitch, 4.18 mm row spacing |
| Plastic locating pegs | Two 0.60 mm NPTH, 5.78 mm pitch |
| Board edge | 5.79 mm in front of the rear shell-slot centre line |
The previous library footprint had wider mounting slots and an offset, longer signal-pad row. Those dimensions were corrected; both sockets were repositioned to put the drawing's PCB-edge datum on the left edge of the board. The connector housing deliberately projects beyond that edge.
| Source pad ID | HRO contact | Function |
|---|---|---|
| 1–4 | Shell retention tabs | Shield, connected to GND |
| 5 | B8 | SBU2, unused |
| 6 | A5 | CC1 |
| 7 | B7 | D−, orientation 2 |
| 8 | A6 | D+, orientation 1 |
| 9 | A7 | D−, orientation 1 |
| 10 | B6 | D+, orientation 2 |
| 11 | A8 | SBU1, unused |
| 12 | B5 | CC2 |
| 13 | A1/B12 | GND |
| 14 | B1/A12 | GND |
| 15 | B4/A9 | VBUS |
| 16 | A4/B9 | VBUS |
On J1, the two D+ contacts share USB_DP, and the two D− contacts share USB_DM. CC1 and CC2 each have their own 5.1 kΩ pull-down. On J19, CC1/CC2 go to the STUSB4500; data contacts are unused. The two VBUS domains remain separate.
This is a drawing and CAD comparison. Physical fit, soldering and USB operation still require inspection of the first assembly.
## CAD registration — 23 October 2026
The shared C165948 model origin is now `(0, -2.21, 0)` mm. The previous
`y=-2.7500289` origin placed both receptacles about 0.54 mm too far outboard.
This corrects the CAD model against the native copper-bounds anchor; the PCB
land pattern, drill positions and routing are unchanged.
The supplier OBJ's four shell tabs and two locating pegs were projected onto
the native drill geometry for each socket. All eight tabs and four pegs now
fit their openings. Nominal model-to-hole clearance is at least 0.145 mm for
the tabs and 0.045 mm for the pegs; these are CAD measurements, not a tolerance
or production-fit guarantee. The attached USB cable models now follow the
registered receptacle front face so they remain seated after the adjustment.