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/current-budget-review.json
{
"r142Ohms": 680,
"nominalMotorFeedLimitA": 3.626470588235294,
"illustrativeLimitMinimumA": 3.057612456747405,
"illustrativeLimitMaximumA": 4.218547418967588,
"hardwareLimitAboveContractA": 0.057612456747405005,
"resistorTotalToleranceUsed": 0.02,
"resistorNominalDissipationW": 0.0022357191176470594,
"profiles": [
{
"profileMv": 5000,
"logicInputAllowanceA": 0.7185338345864662,
"normalTotalInputA": 1.5185338345864663,
"softwareHeadroomA": 1.4814661654135335,
"motorFeedLeftByContractA": 2.2814661654135335
},
{
"profileMv": 9000,
"logicInputAllowanceA": 0.4981086519114688,
"normalTotalInputA": 2.8981086519114685,
"softwareHeadroomA": 0.10189134808853106,
"motorFeedLeftByContractA": 2.501891348088531
},
{
"profileMv": 15000,
"logicInputAllowanceA": 0.28965401785714284,
"normalTotalInputA": 2.889654017857143,
"softwareHeadroomA": 0.11034598214285696,
"motorFeedLeftByContractA": 2.710345982142857
},
{
"profileMv": 20000,
"logicInputAllowanceA": 0.21937728937728937,
"normalTotalInputA": 2.9193772893772896,
"softwareHeadroomA": 0.08062271062271043,
"motorFeedLeftByContractA": 2.7806227106227106
}
],
"fallbackLogicAllowanceA": 0.38357142857142856,
"fallbackOledAllowanceMa": 10,
"oledRequiresPdContract": true,
"failures": [],
"status": "PROVISIONAL_ENGINEERING_BUDGET_NOT_MEASURED_RATINGS",
"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."
],
"sha256": "3522ec9295e50f19f1ea410c7bc299094e88469e0fbec595c972a219ccee87f2",
"previous1200OhmComparison": {
"r142Ohms": 1200,
"nominalMotorFeedLimitA": 2.055,
"illustrativeLimitMinimumA": 1.7326470588235294,
"illustrativeLimitMaximumA": 2.390510204081633,
"hardwareLimitAboveContractA": -1.2673529411764706,
"resistorTotalToleranceUsed": 0.02,
"resistorNominalDissipationW": 0.0012669075000000002,
"profiles": [
{
"profileMv": 5000,
"logicInputAllowanceA": 0.7185338345864662,
"normalTotalInputA": 1.5185338345864663,
"softwareHeadroomA": 1.4814661654135335,
"motorFeedLeftByContractA": 2.2814661654135335
},
{
"profileMv": 9000,
"logicInputAllowanceA": 0.4981086519114688,
"normalTotalInputA": 2.8981086519114685,
"softwareHeadroomA": 0.10189134808853106,
"motorFeedLeftByContractA": 2.501891348088531
},
{
"profileMv": 15000,
"logicInputAllowanceA": 0.28965401785714284,
"normalTotalInputA": 2.889654017857143,
"softwareHeadroomA": 0.11034598214285696,
"motorFeedLeftByContractA": 2.710345982142857
},
{
"profileMv": 20000,
"logicInputAllowanceA": 0.21937728937728937,
"normalTotalInputA": 2.9193772893772896,
"softwareHeadroomA": 0.08062271062271043,
"motorFeedLeftByContractA": 2.7806227106227106
}
],
"fallbackLogicAllowanceA": 0.38357142857142856,
"fallbackOledAllowanceMa": 10,
"oledRequiresPdContract": true
}
}