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-controller

In 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/oled-power-margin-revision.md

# OLED power-margin revision — 30 November 2026

This revision implements the localized screen-power changes reviewed in the OLED margin trial and promoted to main at the user's request. It is an engineering prototype pending electrical measurements, not a production-qualified shutdown circuit. The current calculations are in `scripts/check-oled-power-budget.py`; the generated result is `.tscircuit/checks/oled-power-budget.json`.

## Circuit changes

| Reference | Previous | Revised choice | JLC identifier |
|---|---|---|---|
| U24 | TPS3808G30DBVR, fixed 2.79 V detector | TPS3808G01DBVR, adjustable 0.405 V reference | C19653 |
| R192, new | — | Yageo RT0603BRD0754K9L, 54.9 kΩ, 0.1%, 0603 | C728593 |
| R193, new | — | Yageo RT0603BRD0710KL, 10 kΩ, 0.1%, 0603 | C95204 |
| R181 | 4.02 kΩ / 0603 / 0.1 W | Yageo RT1206BRD071KL, 1 kΩ, 0.1%, 1206, 0.25 W | C706405 |
| R182 | 274 Ω / 0603 | Yageo RT0603BRD0768R1L, 68.1 Ω, 0.1%, 0603 | C861522 |
| R185 | 10 Ω, 5%, 2512, 1 W | TE CRGCQ2512F15R, 15 Ω, 1%, 2512, 1 W | C4174550 |
| C183 | 10 µF, 25 V, 1206 | Samsung CL31B475KAHNNNE, 4.7 µF, 25 V, X7R, 1206 | C1872 |

Five existing components change and two resistors are added: 254 populated components. C191 remains Honor GVL0J332M1213 / C52711639, 3300 µF, 6.3 V. U19 remains TLV70030DDCR. J21, the native I²C connection, control positions, inserts and enclosure dimensions are retained.

R192/R193 set a nominal falling threshold of 2.62845 V. The lower threshold gives startup more room, but also reduces the minimum stored voltage at shutdown. It is therefore paired with a faster discharge path: R181/R182 retain approximately the same 12.5 V regulation ratio while lowering discharge resistance by about four times. The larger R181 package is necessary because dissipation rises to about 0.147 W. This adds approximately 0.12 W of steady display-supply loading compared with the former divider; it needs a temperature check inside the case.

C183 is reduced to avoid depending on DC-bias loss to keep the directly connected output capacitance below the TLV61046A recommended 10 µF upper bound. C183/C187/C181 total 5.8 µF nominal, 7.337 µF with +10% tolerance and +15% temperature allowance. Minimum effective capacitance, ripple and loop stability must still be checked under bias. C182 is on VCOMH; its stored charge is additionally included in the conservative shutdown calculation.

R185 limits peak charging power to about 0.650 W instead of approximately 1 W. The reservoir takes somewhat longer to charge. U24 plus U20's reset delay prevents an early display enable; firmware continues to require fresh initialization after a fault.

## Calculated improvement

The earlier reported 17 mV / 77 ms figures used 2 mA startup load and 2.5 mA hold load, omitted resistor temperature drift and did not include the full regulator load-regulation allowance. They should not be compared as identical test conditions.

| Same conservative model, 4 mA held load | Previous circuit | Revised circuit |
|---|---:|---:|
| Startup DC headroom | −21 mV | +83 mV |
| Lumped VCC decay to 0.1 V | 415 ms | 68 ms |
| Logic hold time down to 1.8 V | 361 ms | 282 ms |
| Reserve after decay + 100 ms + 5 ms response allowance | −159 ms | +109 ms |
| R185 initial charging power | 1.017 W | 0.650 W |

The 4 mA ceiling is now itemized. It includes the panel's 0.3 mA logic maximum, TCA9517 A-side 1 mA maximum, both I²C pullups stuck low, the request transistor, supervisors, divider and capacitor leakage. Approximately 0.52 mA remains unallocated for additional hot leakage/backfeed. Some counted loads cannot persist together after reset; nevertheless, their sum is retained. The TCA9517's published operating table does not cover every point while VCCB collapses, so 4 mA is an acceptance requirement to measure, not a guaranteed bound.

The model retains a minimum C191 of 1663.2 µF: −20% initial tolerance, an extra assumed −10% reflow allowance and −30% endurance change. The extra reflow factor and full-temperature leakage are not supplier guarantees. The reservoir is not enlarged.

Precision-resistor corners include 0.1% tolerance and independent ±25 ppm/K drift across 100 K. The adjustable supervisor includes ±2% reference accuracy, maximum 3% hysteresis and ±25 nA SENSE bias. Charging-resistor corners include 1% and ±200 ppm/K. The logic regulator has a separate 15 mV load-regulation allowance; its minimum raw output of 2.925 V must be confirmed at actual input voltage, load and temperature. The stated regulator accuracy is characterized at VIN ≥3.3 V; board ripple/dropout is not silently treated as proven.

The model gives PWM VCC of 12.076–12.867 V. Light-load PFM, overshoot and ripple require measurement. The extra divider load raises maximum modeled panel-plus-divider current to about 56.6 mA. A 70%-efficiency screen gives about 514 mA peak switch current, below the published 680 mA minimum at its stated test conditions. This does not prove converter performance at our different input conditions.

## Validation completed in the reviewed trial

- Fresh PCB build, native clearance checks, independent copper connectivity, JLC identifier checks, 198 pin checks, power-path/Kelvin/USB checks and TypeScript checks passed.
- All 90 firmware tests and 13 assembly tests passed. No firmware behavior was changed for this hardware revision.
- Fresh enclosure geometry checks covered 254 components and 12,043 checks. The only failing check is the same existing OLED stiffener-to-connector CAD intersection as main; the changed components introduced no additional modeled collisions. This does not establish ribbon compatibility.
- Updated assembly and enclosure preview geometry are included. The existing connector qualification remains open. Publishing this engineering revision does not qualify it for production assembly.

## Required prototype measurements

1. Check both USB sources individually and together. At cold startup, slow ramp and rapid reconnect, verify the reservoir reaches the ready threshold and the display starts without reset chatter. Measure OLED_VDD_RAW, OLED_VDD, OLED_RESET_N and OLED_POWER_EN. Confirm raw output ≥2.925 V under the budgeted load.
2. Test last-source unplugging, slow brownout, loss of PD while data USB remains, and a current-limited short of upstream 3.3 V. Test with firmware halted and with either OLED I²C line held low. Verify automatic reset, request clearing and boost disable; recovery must require fresh firmware initialization.
3. Measure OLED_VCC at C183/J21.23, OLED_VDD at C191/J21.5, reset and boost enable simultaneously. Verify the actual display-supply removal sequence and at least the panel's required 100 ms logic-power interval. The modeled 0.1 V point is a test target, not a substitute for supplier interpretation of “VCC disabled/floating.” No active ground clamp was added.
4. Measure total held-rail current and effective C191 across intended temperatures and reflowed samples. Required model bounds: ≤4 mA total load and ≥1663.2 µF. Capture internal panel backfeed/VCOMH effects; an independent exponential RC curve is not proof of the real waveform.
5. At full-white maximum panel load and blank/light-load display, verify 12–13 V regulation, startup overshoot, ripple, minimum biased output capacitance and boost stability. Measure R181, R185, U18 and U19 temperatures with the enclosure closed. Resistor calculations include derating to +85°C ambient; the board is not qualified for operation there by calculation alone.

## Sources and part identity

- [TI TPS3808 datasheet](https://www.ti.com/lit/ds/symlink/tps3808.pdf), electrical characteristics and adjustable threshold equations; [JLC C19653](https://jlcpcb.com/partdetail/TexasInstruments-TPS3808G01DBVR/C19653).
- [TI TLV61046A datasheet](https://www.ti.com/lit/ds/symlink/tlv61046a.pdf), recommended output capacitance, reference, switch-limit and output-isolation specifications.
- [TI TLV700 datasheet](https://www.ti.com/lit/ds/symlink/tlv700.pdf), output accuracy, load regulation, input conditions and stability.
- [TI LM66100 datasheet](https://www.ti.com/lit/ds/symlink/lm66100.pdf), isolation and reverse threshold; [TCA9517 datasheet](https://www.ti.com/lit/ds/symlink/tca9517.pdf), page 6 current table; [TCA9538 datasheet](https://www.ti.com/lit/ds/symlink/tca9538.pdf).
- [EastRising ER-OLED015-2 series](https://www.buydisplay.com/download/manual/ER-OLED015-2_Series_Datasheet.pdf), supply/current limits and power-off sequence. C191's manufacturer datasheet remains in `docs/oled154-reference/jlc-replacement/C52711639.pdf`.
- [R181 / C706405](https://jlcpcb.com/partdetail/YAGEO-RT1206BRD071KL/C706405), [R182 / C861522](https://www.lcsc.com/product-detail/C861522.html), [R192 / C728593](https://jlcpcb.com/partdetail/YAGEO-RT0603BRD0754K9L/C728593), [R193 / C95204](https://www.lcsc.com/product-detail/C95204.html). Yageo RT 0603/1206 power derates above 70°C to zero at 155°C.
- [TE CRGCQ2512F15R](https://www.te.com/en/product-2176349-3.html), [JLC C4174550](https://jlcpcb.com/partdetail/TEConnectivity-CRGCQ2512F15R/C4174550), and TE CRGCQ datasheet 1773204-3, 03/2018.
- [Samsung C183 specifications](https://product.samsungsem.com/mlcc/CL31B475KAHNNN.do), [C1872 catalog](https://www.lcsc.com/product-detail/C1872.html).

Catalog identity checks do not reserve stock or prove assembly acceptance. Ribbon/socket tolerance qualification is separate and remains open.