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.
dist/oled-shutdown-release/assembly-report.json
{
"status": "V2 connected assembly with OLED supports, AS5047P encoder and five-wire harness. Rear-shaft mount is a fit study; not fabrication-approved.",
"pcbSourceSha256": "9504bda72bf457008229edd38ef1878ca89522d19c5dba67e180b4cbfcc813de",
"nativeCadModels": 46,
"nativeCables": 10,
"nativeMotorLeads": 3,
"nativeEncoderWires": 5,
"nativeUsbCables": 2,
"oledSupports": {
"part": "ER-OLED015-2W",
"connector": "5034802400",
"x": -19.5,
"activeY": 51.852,
"activeWidth": 35.052,
"activeHeight": 17.516,
"panelY": 50,
"panelWidth": 42.04,
"panelHeight": 27.22,
"panelBottom": 17.35,
"panelTop": 18.8,
"adhesiveX": 20,
"adhesiveWidth": 1,
"adhesiveLength": 16,
"adhesiveThickness": 0.2,
"tailWidth": 12.5,
"tailLength": 36,
"stiffenerLength": 4.5,
"tailThickness": 0.15,
"stiffenerThickness": 0.3,
"connectorX": -19.5,
"connectorY": 51.09761102,
"connectorRotation": 0,
"contactZ": 1.35,
"mouthY": 49.09761102,
"insertion": 1.58,
"bendRadius": 1.5,
"rootStraight": 2,
"holderBottom": 15.65,
"holderTop": 17.15,
"seatBottom": 19,
"bossTop": 19,
"insertBottom": 15.8,
"insertTop": 18.8,
"insertHoleBottom": 15.65,
"screwSeat": 14.15,
"screwLength": 4,
"screwHeadHeight": 1.3,
"holderScrews": [
[
-43.5,
61
],
[
4.5,
39
]
],
"pcbId": "pcb_component_0",
"tailPath": [
[
36.39,
17.35
],
[
34.39,
17.35
],
[
34.291895306154785,
17.346788384857906
],
[
34.194210711669925,
17.337167292060716
],
[
34.09736451697581,
17.321177920604846
],
[
34.00177143234622,
17.298888739433604
],
[
33.90784080204526,
17.27039519424266
],
[
33.81597485145237,
17.23581929876693
],
[
33.7265669646715,
17.195309112299036
],
[
33.64,
17.14903810567666
],
[
33.556644650470595,
17.09720441845382
],
[
33.47685785648692,
17.040030010436855
],
[
33.4009812773499,
16.977759711218468
],
[
33.32933982822018,
16.910660171779824
],
[
33.262240288781534,
16.839018722650106
],
[
33.19996998956315,
16.763142143513083
],
[
33.14279558154618,
16.683355349529403
],
[
33.09096189432334,
16.6
],
[
33.044690887700966,
16.513433035328504
],
[
33.00418070123307,
16.424025148547635
],
[
32.96960480575734,
16.332159197954745
],
[
32.9411112605664,
16.23822856765378
],
[
32.918822079395156,
16.142635483024193
],
[
32.90283270793928,
16.045789288330077
],
[
32.89321161514209,
15.948104693845217
],
[
32.89,
15.850000000000001
],
[
32.89,
2.85
],
[
32.89321161514209,
2.7518953061547853
],
[
32.90283270793928,
2.654210711669923
],
[
32.918822079395156,
2.5573645169758077
],
[
32.9411112605664,
2.461771432346219
],
[
32.96960480575734,
2.367840802045258
],
[
33.00418070123307,
2.275974851452365
],
[
33.044690887700966,
2.1865669646714982
],
[
33.09096189432334,
2.1
],
[
33.14279558154618,
2.016644650470597
],
[
33.19996998956315,
1.936857856486919
],
[
33.262240288781534,
1.8609812773498968
],
[
33.32933982822018,
1.789339828220179
],
[
33.4009812773499,
1.722240288781534
],
[
33.47685785648692,
1.6599699895631472
],
[
33.556644650470595,
1.6027955815461823
],
[
33.64,
1.550961894323342
],
[
33.7265669646715,
1.5046908877009675
],
[
33.81597485145237,
1.46418070123307
],
[
33.90784080204526,
1.4296048057573416
],
[
34.00177143234622,
1.4011112605663976
],
[
34.09736451697581,
1.3788220793951544
],
[
34.194210711669925,
1.3628327079392846
],
[
34.291895306154785,
1.353211615142095
],
[
34.39,
1.35
],
[
46.17761101961531,
1.35
],
[
50.67761101961531,
1.35
]
],
"mount": "Lid ledge and thin rear retainer; 0.20 mm installed compliant edge strips, underside screws into blind lid inserts",
"physicalFitValidated": false
},
"encoder": {
"part": "AS5047P-TS_EK_AB",
"magnetPart": "AS5000-MD6H-2",
"boardWidth": 22,
"boardHeight": 28,
"boardThickness": 1.6,
"boardCenterY": 6.5,
"holeX": 8.5,
"holeY": 5.5,
"holeDiameter": 2.6,
"boardTop": -13,
"sensorHeight": 1.1,
"gap": 1.5,
"magnetDiameter": 6,
"magnetHeight": 2.5,
"pose": {
"position": {
"x": 12,
"y": 127,
"z": 0
},
"rotation": {
"x": 0,
"y": 0,
"z": 0
}
},
"bracketWidth": 40,
"bracketDepth": 46,
"status": "FIT STUDY: rear shaft/coupler and undimensioned adapter-board offsets require measurement"
},
"encoderConnections": [
{
"pin": 1,
"net": "ENC_3V3",
"label": "3V3",
"x": -6.35,
"y": 16.74,
"color": "D23D39",
"start": {
"x": 34.665,
"y": 30.4,
"z": 4.0200000000000005
},
"end": {
"x": 18.35,
"y": 110.26,
"z": -4
},
"path": [
{
"x": 34.665,
"y": 30.4,
"z": 4.0200000000000005
},
{
"x": 49,
"y": 30.4,
"z": 4.0200000000000005
},
{
"x": 59,
"y": 62,
"z": 21
},
{
"x": 59,
"y": 102,
"z": 20
},
{
"x": 18.35,
"y": 100.26,
"z": 12
},
{
"x": 18.35,
"y": 110.26,
"z": 4
},
{
"x": 18.35,
"y": 110.26,
"z": -4
}
]
},
{
"pin": 2,
"net": "GND",
"label": "GND",
"x": 8.89,
"y": 16.74,
"color": "26282C",
"start": {
"x": 34.665,
"y": 32.4,
"z": 4.0200000000000005
},
"end": {
"x": 3.1099999999999994,
"y": 110.26,
"z": -4
},
"path": [
{
"x": 34.665,
"y": 32.4,
"z": 4.0200000000000005
},
{
"x": 50.1,
"y": 32.4,
"z": 4.0200000000000005
},
{
"x": 60.1,
"y": 62,
"z": 21.9
},
{
"x": 60.1,
"y": 102,
"z": 20.9
},
{
"x": 3.1099999999999994,
"y": 100.26,
"z": 12.9
},
{
"x": 3.1099999999999994,
"y": 110.26,
"z": 4.9
},
{
"x": 3.1099999999999994,
"y": 110.26,
"z": -4
}
]
},
{
"pin": 3,
"net": "ENC_A_EXT",
"label": "A",
"x": -6.35,
"y": 14.2,
"color": "E3B940",
"start": {
"x": 34.665,
"y": 34.4,
"z": 4.0200000000000005
},
"end": {
"x": 18.35,
"y": 112.8,
"z": -4
},
"path": [
{
"x": 34.665,
"y": 34.4,
"z": 4.0200000000000005
},
{
"x": 51.2,
"y": 34.4,
"z": 4.0200000000000005
},
{
"x": 61.2,
"y": 62,
"z": 22.8
},
{
"x": 61.2,
"y": 102,
"z": 21.8
},
{
"x": 18.35,
"y": 102.8,
"z": 13.8
},
{
"x": 18.35,
"y": 112.8,
"z": 5.8
},
{
"x": 18.35,
"y": 112.8,
"z": -4
}
]
},
{
"pin": 4,
"net": "ENC_B_EXT",
"label": "B",
"x": -8.89,
"y": 14.2,
"color": "41996A",
"start": {
"x": 34.665,
"y": 36.4,
"z": 4.0200000000000005
},
"end": {
"x": 20.89,
"y": 112.8,
"z": -4
},
"path": [
{
"x": 34.665,
"y": 36.4,
"z": 4.0200000000000005
},
{
"x": 52.3,
"y": 36.4,
"z": 4.0200000000000005
},
{
"x": 62.3,
"y": 62,
"z": 23.7
},
{
"x": 62.3,
"y": 102,
"z": 22.7
},
{
"x": 20.89,
"y": 102.8,
"z": 14.7
},
{
"x": 20.89,
"y": 112.8,
"z": 6.7
},
{
"x": 20.89,
"y": 112.8,
"z": -4
}
]
},
{
"pin": 5,
"net": "ENC_Z_EXT",
"label": "I/PWM",
"x": -3.81,
"y": 14.2,
"color": "4269BA",
"start": {
"x": 34.665,
"y": 38.4,
"z": 4.0200000000000005
},
"end": {
"x": 15.81,
"y": 112.8,
"z": -4
},
"path": [
{
"x": 34.665,
"y": 38.4,
"z": 4.0200000000000005
},
{
"x": 53.4,
"y": 38.4,
"z": 4.0200000000000005
},
{
"x": 63.4,
"y": 62,
"z": 24.6
},
{
"x": 63.4,
"y": 102,
"z": 23.6
},
{
"x": 15.81,
"y": 102.8,
"z": 15.6
},
{
"x": 15.81,
"y": 112.8,
"z": 7.6
},
{
"x": 15.81,
"y": 112.8,
"z": -4
}
]
}
],
"usbConnections": [
{
"ref": "J19",
"name": "USB_PD_CABLE",
"owner": "USB_PD_SUPPLY",
"displayName": "Configurable USB-PD supply, 9 V default · representative envelope",
"from": {
"position": {
"x": -52.465,
"y": 2.5,
"z": 2.4000000000000004
},
"direction": {
"x": -1,
"y": 0,
"z": 0
}
},
"to": {
"position": {
"x": -135,
"y": 28,
"z": 10
},
"direction": {
"x": 1,
"y": 0,
"z": 0
}
},
"enclosure": {
"x": -148.5,
"y": 28,
"z": 10
}
},
{
"ref": "J1",
"name": "USB_DATA_CABLE",
"owner": "USB_COMPUTER",
"displayName": "Computer USB-C port · representative envelope",
"from": {
"position": {
"x": -52.465,
"y": -10,
"z": 2.4000000000000004
},
"direction": {
"x": -1,
"y": 0,
"z": 0
}
},
"to": {
"position": {
"x": -135,
"y": -48,
"z": 10
},
"direction": {
"x": 1,
"y": 0,
"z": 0
}
},
"enclosure": {
"x": -148.5,
"y": -48,
"z": 10
}
}
],
"operatingMode": "J19 USB-PD power and J1 computer USB DATA connected. SW4 motor POWER, SW3 ARM and RV1 speed. Motor tuning firmware and hardware tests remain required.",
"rigidAdapters": 3,
"cableModels": [
"adaptercable_a(wire_end_d2.4mm)_b(bullet1_d3.5mm_gmale)",
"adaptercable_a(wire_end_d2.4mm)_b(bullet1_d3.5mm_gmale)",
"adaptercable_a(wire_end_d2.4mm)_b(bullet1_d3.5mm_gmale)",
"adaptercable_a(wire_end_d0.8mm)_b(wire_end_d0.8mm)_colorD23D39",
"adaptercable_a(wire_end_d0.8mm)_b(wire_end_d0.8mm)_color26282C",
"adaptercable_a(wire_end_d0.8mm)_b(wire_end_d0.8mm)_colorE3B940",
"adaptercable_a(wire_end_d0.8mm)_b(wire_end_d0.8mm)_color41996A",
"adaptercable_a(wire_end_d0.8mm)_b(wire_end_d0.8mm)_color4269BA",
"usb_c",
"usb_c"
],
"assemblyRuntime": "@tscircuit/core 0.0.2110-bldc.4; released 0.0.2110 base with custom-CAD mating, validated wire paths and fixed-wire ends; cableprinter 0.0.6-bldc.2 adds single-wire colours",
"attachments": [
{
"phase": "U",
"socket": "J10",
"pose": {
"position": {
"x": -3.097899100000188,
"y": 66.33507620000019,
"z": 8.30001
},
"rotation": {
"x": -90,
"y": 3.508354649267438e-15,
"z": 90
}
},
"motorSocket": {
"position": {
"x": -3.097899100000187,
"y": 84.33507620000019,
"z": 8.300010000000002
},
"direction": {
"x": 6.123233995736766e-17,
"y": 1,
"z": 6.123233995736766e-17
}
},
"boardPlugTip": {
"position": {
"x": -3.0978991000001885,
"y": 58.33507620000019,
"z": 8.30001
},
"direction": {
"x": -6.123233995736766e-17,
"y": -1,
"z": -6.123233995736766e-17
}
}
},
{
"phase": "V",
"socket": "J11",
"pose": {
"position": {
"x": 8.902100899999812,
"y": 66.33507620000019,
"z": 8.30001
},
"rotation": {
"x": -90,
"y": 3.508354649267438e-15,
"z": 90
}
},
"motorSocket": {
"position": {
"x": 8.902100899999814,
"y": 84.33507620000019,
"z": 8.300010000000002
},
"direction": {
"x": 6.123233995736766e-17,
"y": 1,
"z": 6.123233995736766e-17
}
},
"boardPlugTip": {
"position": {
"x": 8.902100899999812,
"y": 58.33507620000019,
"z": 8.30001
},
"direction": {
"x": -6.123233995736766e-17,
"y": -1,
"z": -6.123233995736766e-17
}
}
},
{
"phase": "W",
"socket": "J12",
"pose": {
"position": {
"x": 20.902100899999812,
"y": 66.33507620000019,
"z": 8.30001
},
"rotation": {
"x": -90,
"y": 3.508354649267438e-15,
"z": 90
}
},
"motorSocket": {
"position": {
"x": 20.902100899999812,
"y": 84.33507620000019,
"z": 8.300010000000002
},
"direction": {
"x": 6.123233995736766e-17,
"y": 1,
"z": 6.123233995736766e-17
}
},
"boardPlugTip": {
"position": {
"x": 20.902100899999812,
"y": 58.33507620000019,
"z": 8.30001
},
"direction": {
"x": -6.123233995736766e-17,
"y": -1,
"z": -6.123233995736766e-17
}
}
}
],
"sourceExtensions": [
"vendor/core-mating-points.patch",
"vendor/core-wire-path.patch",
"vendor/cableprinter-wire-end.patch",
"vendor/cableprinter-wire-colour.patch",
"vendor/jscad-electronics-wire-end.patch"
],
"nativeRenderErrors": 0,
"dimensions": {
"motor": {
"bodyDiameter": 28,
"drawingBodyDiameter": 27.8,
"bodyHeight": 24,
"overallWithoutCap": 38,
"shaftAboveBody": 14,
"shaftEnvelopeDiameter": 7.98,
"shaftThread": "M6",
"shaftAcrossFlats": 6.8,
"mountingHoleThread": "M3",
"mountingHoleCount": 4,
"opposedMountingHolePitches": [
16,
19
],
"plugDiameter": 3.5,
"source": "https://www.amazon.com/dp/B075DD16LK",
"drawing": "https://m.media-amazon.com/images/I/61prmpd-BOL._AC_SL1100_.jpg",
"status": "Published motor envelope dimensions; detailed surfaces, cap and lead geometry unresolved"
},
"illustrativeLeads": {
"wireDiameter": 2.4,
"heatShrinkDiameter": 4.5,
"heatShrinkLength": 9,
"status": "Display-only motor wire and heat-shrink dimensions; unverified"
},
"socket": {
"part": "AMASS 24.243.4",
"jlcpcb": "C7437324",
"nominalBore": 4,
"overallLength": 24,
"bodyHeight": 13,
"pinPitch": 15.7,
"source": "https://jlcpcb.com/partdetail/Changzhou_AmassElec-24_2434/C7437324",
"status": "PCB footprint, courtyard and OBJ imported from the exact supplier part"
},
"motorLead": {
"model": "adaptercable_a(wire_end_d2.4mm)_b(bullet1_d3.5mm_gmale)",
"genericMaleContactDepth": 7,
"genericMaleBodyDepth": 12.25,
"status": "Native motor cable with a fixed wire exit and a male bullet; generic contact dimensions"
},
"adapter": {
"part": "BDHI B117-5",
"femaleNominalDiameter": 3.5,
"maleNominalDiameter": 4,
"source": "https://www.amazon.com/dp/B07Z4FRQNX",
"illustrativeMaleLength": 12,
"illustrativeSleeveLength": 14,
"illustrativeSleeveDiameter": 6,
"illustrativeFemaleOuterDiameter": 5.2,
"genericFemaleContactDepth": 7,
"illustrativeBoardInsertion": 8,
"status": "Rigid shape; nominal end sizes verified, body and insertion dimensions unverified"
},
"layout": {
"motor": [
12,
127,
0
]
}
},
"geometryNotes": [
"Configurable-PD trial — 5/9/15/20 V, default 9 V: 91 x 90 mm, all fitted components on top, encoder interface and hardware re-arm, exact imported J10/J11/J12 socket geometry.",
"Three of the assembly.cable primitives are the motor's original leads. Each starts at a fixed wire exit on the motor and ends with a native 3.5 mm male bullet inside a rigid adapter.",
"Each rigid adapter is a custom native CAD model using upstream jscad male and female bullet meshes and a red insulating sleeve. There is no wire inside or between the adapter ends.",
"Adapter chain: motor male 3.5 mm -> adapter female 3.5 mm; adapter male 4 mm -> PCB female 4 mm. All six interfaces are seated in the model.",
"The exact BDHI listing supplies nominal diameters/genders, not a dimensioned body drawing. Its 12 mm pin, 14 mm sleeve, 6 mm sleeve OD and 5.2 mm female contact OD are illustrative, not supplier dimensions.",
"Modeled insertion is 7 mm at the motor side and 8 mm into the PCB. These depths are illustrative and do not prove physical fit or retention.",
"Motor envelope dimensions are published; motor wire diameter/length/exit position and heat-shrink dimensions remain unverified.",
"A documented local wire_end extension represents permanent motor attachment without inventing a plug at the motor. Named component-local ports resolve to the core mating-point boundary; the native cable path/mesh pipeline is retained.",
"No fabricated PCB connector, hidden cable-end mesh, modified DRC record or PCB geometry is used."
],
"cableCentrelineLengthsMm": [
{
"name": "MOTOR_LEAD_U",
"length": 29.61469632462996,
"supplierLengthMm": null
},
{
"name": "MOTOR_LEAD_V",
"length": 26.419450337235705,
"supplierLengthMm": null
},
{
"name": "MOTOR_LEAD_W",
"length": 27.03595967596814,
"supplierLengthMm": null
},
{
"name": "ENCODER_WIRE_1",
"length": 153.86084223566658,
"supplierLengthMm": null
},
{
"name": "ENCODER_WIRE_2",
"length": 170.72678568489357,
"supplierLengthMm": null
},
{
"name": "ENCODER_WIRE_3",
"length": 157.6004184113564,
"supplierLengthMm": null
},
{
"name": "ENCODER_WIRE_4",
"length": 157.14030431303934,
"supplierLengthMm": null
},
{
"name": "ENCODER_WIRE_5",
"length": 164.28900800391403,
"supplierLengthMm": null
},
{
"name": "USB_PD_CABLE",
"length": 46.668110510952374,
"supplierLengthMm": null
},
{
"name": "USB_DATA_CABLE",
"length": 56.86303102105671,
"supplierLengthMm": null
}
],
"pcbValidation": {
"sha256": "9504bda72bf457008229edd38ef1878ca89522d19c5dba67e180b4cbfcc813de",
"checkedAt": "2026-11-27T11:13:39.687Z",
"project": "rp2040-bldc-motor-controller-new",
"checks": [
{
"name": "native-drc",
"status": 0,
"seconds": 9.732
},
{
"name": "jlc-preflight",
"status": 0,
"seconds": 5.91
},
{
"name": "physical-widths",
"status": 0,
"seconds": 6.967
},
{
"name": "kelvin-sensing",
"status": 0,
"seconds": 2.783
},
{
"name": "route-cleanup",
"status": 0,
"seconds": 3.098
},
{
"name": "layout-constraints",
"status": 0,
"seconds": 0.539
},
{
"name": "pad-anchors",
"status": 0,
"seconds": 0.468
},
{
"name": "usb-reference",
"status": 0,
"seconds": 0.479
}
],
"nativeDrcErrors": 0,
"physicalDisconnectedNets": 0,
"floatingCopper": 0,
"manufacturingClearanceFindings": 0,
"requiredPathsPassed": 106,
"padAnchorsPassed": 844,
"boardSizeMm": [
91,
90
],
"copperLayers": 4,
"viaDiameterMm": {
"hole": 0.3,
"pad": 0.45
},
"note": "PCB checks only; adapter mating dimensions and operating current remain unverified."
},
"project": "rp2040-bldc-motor-controller",
"boardSizeMm": [
91,
90
],
"routingStatus": "Routed; saved-routing input guard retained; native and independent checks passed",
"missing": [
"Actual motor rear-shaft coupling and clearance; encoder board undimensioned offsets",
"Encoder 3.3 V jumper/strap configuration, supply margin and resolution programming",
"ER-OLED015-2W external 12.5 V rail and power sequencing, stock-flex bend/contact compatibility, compliant strips and printed holder retention",
"Exact BDHI rigid-adapter body dimensions and current rating",
"Original motor lead / heat-shrink / plug dimensions",
"USB cables and source/host enclosures use representative dimensions",
"Physical mating/retention check and motor-control firmware qualification"
]
}