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/current-budget.json
{
"status": "PROVISIONAL_ENGINEERING_BUDGET_NOT_MEASURED_RATINGS",
"contractMa": 3000,
"fallbackMa": 500,
"r142Ohms": 680,
"resistorInitialTolerance": 0.01,
"resistorTemperatureAllowance": 0.01,
"switchKcl": 2000,
"switchVcl": 1.233,
"logicOutputV": 3.3,
"logicOutputAllocationMa": {
"5000": 250,
"9000": 400,
"15000": 400,
"20000": 400
},
"minimumAssumedConverterEfficiency": 0.7,
"assumedLogicDiodeDropV": 0.7,
"directInputAllowanceMa": 30,
"provisionalMotorFeedCeilingMa": {
"5000": 800,
"9000": 2400,
"15000": 2600,
"20000": 2700
},
"minimumBoardVbusMv": {
"5000": 4500,
"9000": 7800,
"15000": 13500,
"20000": 18250
},
"motorPhaseCurrentRatingA": null,
"limitations": [
"Logic allocations, converter efficiency and diode drop are design allowances to measure, not guaranteed component maxima.",
"TPS1H100 external-limit accuracy requires its datasheet voltage/load/overload conditions. Do not apply the 9-20 V arithmetic as a guaranteed 5 V limit or fast transient cap.",
"R13 measures the motor-feed branch; the VBUS_RAW-to-D2 logic branch bypasses it.",
"The knob runtime uses motor_permitted with calibrated readings, but the physical MCF board adapter also locks motor drive disabled. No commissioned motor settings exist.",
"No motor phase-current rating is assigned until the MCF FOC configuration, shunt/gain calibration, waveforms and thermal limits are verified.",
"5 V motor operation remains unqualified; cable loss, startup, ADC error and 4.5 V driver headroom require physical testing.",
"V2 adds OLED, temperature sensing and buzzer load. Existing 250/400 mA logic allocations are provisional envelopes, not measured V2 consumption; verify worst-case full-brightness display plus buzzer and MCU activity.",
"Encoder connector adds a separate provisional 20 mA auxiliary allocation and 5 mA feedback/interlock logic allowance. Fuse voltage drop and actual full-system consumption still need measurement.",
"3 A request (Nov 2026): needs a source advertising >=3 A at the selected voltage and a 3 A-rated USB-C cable; a 2 A-only source will not satisfy the explicit PDO2 contract.",
"U11 guard with R142 = 680 Ohm: 3.63 A nominal, 3.06-4.22 A with TI's +/-14% accuracy (>=1.6 A, stated for overloads above 1.5x the setting) and a 2% resistor allowance. All of that is above the 3 A contract, so U11 is an inrush and short-circuit guard and no longer caps the motor; the firmware ceilings and the MCF8329A ILIMIT setting limit the motor. Hardware therefore no longer holds an overload inside the contract: the firmware stop, the source's own protection, U11's thermal protection and F1 act instead. History: 2 kOhm stopped a propeller test at 1.15-1.21 A (1.233 A nominal); 1.2 kOhm limited at 2.055 A nominal (1.73-2.39 A).",
"Motor-feed ceilings of 2.4 A (9 V), 2.6 A (15 V) and 2.7 A (20 V) are the 3 A contract minus the logic allowance above, set on 2 December 2026. They are software values in firmware/power_policy.py, not measured or thermally qualified loads. 5 V stays at 0.8 A.",
"J19 (TYPE-C-31-M-12) VBUS current rating must be confirmed >=3 A from its datasheet before relying on the 3 A contract.",
"ER-OLED015-2W: 280 mA provisional allocation on 3.3 V, from 12.5 V * 44.5 mA / (3.0 V * 70%) plus margin. TCA9536 holds VCC disabled by default. Startup, full-white ripple and brownout sequencing need hardware qualification."
],
"references": {
"switch": "https://www.ti.com/lit/ds/symlink/tps1h100-q1.pdf",
"resistor": "https://jlcpcb.com/partdetail/C23228",
"regulator": "https://www.diodes.com/datasheet/download/AP63200-AP63201-AP63203-AP63205.pdf"
},
"encoderAuxiliaryAllocationMa": 20,
"feedbackLogicAllocationMa": 5,
"oledAuxiliaryAllocationMa": 280,
"oledStandbyAllocationMa": 10,
"oledRequiresPdContract": true
}