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/plug-in-oled.md

> Current revision — 27 November 2026: the main project now uses ER-OLED015-2W (1.54-inch SSD1309, native I²C), ER-CON24HB-1, a sequenced 12.5 V display supply, shallow lid mount and diagonal underside retainer screws. See [current design and qualification limits](oled154-design.md). The older display and manufacturing details below are historical; they do not qualify this revision.

# 1.3-inch plug-in OLED — 24 November 2026

Selected display: **BuyDisplay ER-OLED013A1-1W**, white 1.3-inch, 128 × 64 SSD1306. The rigid glass panel mounts beneath the enclosure lid; only its ribbon is flexible. The existing **ER-CON30HT-1** 30-pin, 0.5 mm top-contact connector (J21) stays on the PCB. The panel is installed after reflow by plugging in and latching its ribbon. There is no screen header or user soldering.

## Electrical reference and remaining qualification

Use the manufacturer's **ER-OLED013-1 Interfacing** document, internal-DC/DC I2C circuit, and its I2C example code. Those references explicitly show VBAT feeding the internal charge pump, two 1 µF flying capacitors, 2.2 µF VCOMH bypass, 4.7 µF VCC bypass and 390 kΩ IREF. This matches our existing C180–C183/R180 and pin assignment; J21 and the routed PCB do not change electrically. BS1 is high; BS0, BS2, CS, SA0, R/W and RD are low. D0 is SCL; D1 and D2 share SDA. The 7-bit address is **0x3C**.

The supplier documents are inconsistent: the September 19, 2026 panel datasheet gives a 12 V **external-VCC** operating/current table, while the interface guide and demo use the **internal charge pump** (VBAT 3.6 V in their example). The datasheet pin table also calls pin 6 VDDB, while the drawing/guide label it VBAT. Do not apply 12 V to pin 6. Obtain supplier confirmation for the ordered panel revision and qualify the internal-charge-pump configuration on the first sample. We do not transfer the old 0.96-inch panel's 32 mA VBAT limit to this panel.

U19 retains 3.0 V logic and UI-bus pull-ups. U18 retains the nominal 3.872 V charge-pump input: 220 kΩ / 100 kΩ feedback, calculated 3.709–4.039 V using reference limits and 1% resistors, before ripple/transients. These rails are within the SSD1306 controller's internal-charge-pump operating ranges; the exact purchased panel still needs the confirmation above. U20 supervises 3.3 V with an open-drain reset pulled up to 3.0 V. Wait 350 ms before display initialization. Keep the shared I2C bus open-drain and disable RP2040 internal 3.3 V pull-ups.

### Power allowance and diagnostic

The new panel's external-VCC full-white table lists 31.1 mA maximum at 12 V. That is **not** a VBAT or 3.3 V input-current specification. For this prototype, reserve **200 mA at 3.3 V** in addition to the previous board/encoder allocations: 12 V × 31.1 mA / (3.3 V × 70%) is approximately 162 mA, with the remainder for logic and margin. This is an explicit power estimate, not a guaranteed internal-mode maximum. Confirm actual full-white, startup, conversion loss and ripple before release.

An illuminated panel with that allocation would exceed the existing **500 mA fallback** budget. The panel and charge pump therefore stay OFF without a verified 3 A PD contract. The fallback budget allows 10 mA display standby and totals approximately **384 mA**; a negotiated 5 V/2 A profile allows approximately **619 mA** for logic with the display lit. The 9 V overload illustration retains about 85 mA of contract headroom. All allocations and efficiencies remain provisional measurements to verify.

`firmware/oled_bringup.py` is a separate display-only diagnostic for the provisioned **9 V / 3 A** startup profile. It holds motor-permission outputs low, checks the PD profile/status and measured VBUS before lighting the panel, then checks every 100 ms and sends display-OFF/charge-pump-OFF on contract loss or a PD read error. The SSD1306 sequence uses the manufacturer's 1.3-inch demo contrast **0x8F**. The diagnostic is not installed automatically as `main.py`; the complete motor/menu firmware is unfinished.

This is **software supervision**, not a hardware supply interlock. A firmware hang, I2C failure, reset with the OLED still powered or brief PD-loss transient is not qualified by these tests. Verify shutdown/recovery and standby current on hardware before enabling the screen in production firmware. Do not run this diagnostic alongside the knob or PD console applications.

## Mechanical arrangement

The glass is **34.5 × 23 × 1.45 mm**, with a 29.42 × 14.70 mm active area. Its lower surface is at Z=7.5 mm and face at Z=8.95 mm. The window expands from **31.8 × 17 mm** near the screen to **34 × 23 mm** at the existing flat roof. The holder fits between the dial recess and motor sockets; the flat body remains **104.4 × 103.4 × 28.6 mm**.

The PCB remains **91 × 90 mm**. The previous 0.96-inch display was already off-board, so this replacement removes no PCB component footprint. Current footprint envelopes are only about 0.35–0.45 mm inside the four edges (dial/switch, MOSFETs, lower resistors and motor sockets), and the corner holes remain 3.5 mm from the edges. Further shrinking requires relocating/rerouting those parts and moving the mounts, not simply changing the screen size.

The free flex projects **12 ±0.3 mm** beyond the glass. Its final **4.5 ±0.5 mm** stiffener stays straight, with the exposed contacts facing the connector's upper contacts. The nominal model has two 1 mm-radius bends and 3.6 mm connector insertion; the bent path length remains 12 mm. Raising the panel 1.5 mm inside the unchanged enclosure accommodates its larger glass without moving J21. No ribbon extension or screen carrier PCB is used. The ribbon model is a nominal fit study: confirm the real insertion datum, minimum bend radius and tail/stiffener tolerances on a sample. Never stretch it to close the case.

The display now rests on a **1.5 mm rear retainer**, adapted from the trial to this existing panel. A locating ledge is built into the lid. Four nonconductive compliant **1 × 12 mm** strips, modeled at **0.25 mm installed thickness**, contact only its inactive left/right front and rear edges. Two local retainer bosses contain M2 × 3 inserts; **M2 × 12 screws from above the lid** fasten to them. The plastic bosses act as stops so tightening does not load the glass directly. Install inserts before fitting glass and qualify pad material, compression, retention and print shrinkage on the first assembly. Retain rear pads to the frame. Front pads must be bonded to the lid ledge on one face only, so the lid releases from the glass during service.

Panel position, original 12 mm ribbon and J21 remain unchanged. The screen remains **10.65 mm recessed** below the flat roof; no longer ribbon or SPI bridge is included in this holder-only revision.
With both USB cables unplugged, support the panel/holder and insert the ribbon while the lid is off. Close the connector latch, lower the lid around the supported holder and fasten the holder from above. To open the case, first remove the two holder screws and leave the carrier supported over the PCB; lift the empty lid, then unlatch and withdraw the ribbon straight. The stock tail cannot accommodate lifting the lid while it remains attached. Confirm this service sequence on the first print.

The current D-shaft SPEED dial, side-facing POWER switch, four bulk capacitors, four corner PCB mounts and horizontal UP/DOWN/OK/BACK row are retained.

## Purchasing and assembly scope

Source the exact **ER-OLED013A1-1W** panel separately from BuyDisplay. The manufacturer lists **ER-CON30HT-1** as its matching connector; the board already uses that model. J21 must be factory soldered before the panel is plugged in. Exact JLCPCB sourcing/consignment acceptance is still unconfirmed; the screen must not go through PCB reflow. No order or supplier communication has been sent.

## Holder-only validation — 26 November 2026

The current retainer/lid pass **10,033 modeled checks** across **232 component envelopes**, with no failures. These include padded front/rear edge contact, original ribbon clearances, screw engagement and top driver access, screen sightlines, closed window walls, motor-socket clearance and lid removal. All five printable designs are watertight, consistently wound single solids; independent-kernel bounds agree within 0.000004 mm. Thirteen assembly tests pass (251 assertions).

The eight PCB audit groups pass: zero native DRC errors, disconnected nets, floating copper groups or manufacturing-clearance findings; 106 width paths and 778 pad anchors pass. The board-only circuit retains SHA-256 `cc78e1015a321ae2a9c358ff99e65ca79c8bfe6055ee02dafc2ec833bb62256c`. Circuit sources, routing and firmware are unchanged. Netlist and type checks pass. Strict schematic placement still reports the eight existing style suggestions described below; PCB placement reports no errors and retains its internal-J21 orientation warning. These warnings were not suppressed.

This changes the enclosure mounting only. Pad compression, print tolerances, handling and physical display operation still require a first assembly. The experimental SPI panel, connector and SC18IS606PWJ bridge remain exclusively in the separate trial copy.

## Earlier electrical/display validation

The board build passes. Comparing its 35 PCB/source record types with the previous board finds only the source-filesystem metadata hash changed: all PCB geometry and electrical source records are identical. The eight PCB audit groups pass, with zero native DRC errors, disconnected nets, floating copper or manufacturing-clearance findings; all 106 specified width paths and 776 pad anchors pass. The final board SHA-256 is `112e9d36d08183bcbadef5030062359afc75147d48266b5394a35dffed71a10f`.

The display/firmware host suite passes 62 tests, assembly passes 13 tests, and current-budget/order-review logic passes eight tests. The new holder/window passes 11,018 modeled mechanical checks, including both adhesive-to-frame contact areas, the viewing opening and upper screw-boss clearance. All six printable meshes are watertight single solids. These are software and geometry results, not physical fit, retention or electrical qualification.

All 15 schematic sheets were regenerated, and the two changed OLED sheets were visually reviewed. The wire-interior check passes for 25 IC/connector boxes. Strict schematic placement still reports eight reviewed style suggestions: four parallel Zener/resistor branch alignment suggestions, three shared-return gate pull-down flips, and grouping the three OLED supply decouplers. C186, C188 and C189 deliberately stay beside the boost regulator, logic regulator and reset supervisor respectively. The PCB placement analyzer retains the eight previously documented passive-orientation heuristics (R152/R153, C153–C157, R140), with zero placement DRC errors. J21 also produces an edge-access orientation warning: it intentionally receives the internal lid ribbon from Y+, with the lid removed, rather than an external cable through a board edge. Its real insertion direction has not been falsified to silence that warning. The routed copper and mechanical-access checks remain intact; aggregate checks are not warning-free.

The combined package build and integration check also pass: one native PCB, unchanged copper/schematic/connectivity, all 12 printed-part instances and the updated connected assembly. The six current STL designs are exported to `assets/enclosure`; their provenance matches the checked PCB. The current-budget review has no failures under the explicit provisional assumptions above. The existing nonfatal automatic route-cache export warning and style/metadata warnings remain visible; no checker or routing guard was relaxed.

Evidence is in `enclosure/dist/mechanical-verification.json`, `enclosure/dist/mesh-verification.json`, `assembly/dist/results/pcb-validation.json`, `dist/current-budget-review.json` and `dist/index/integration-check.json`. Earlier November 23 display results refer to the smaller panel and do not qualify this geometry. The revision has not been published.

## Manufacturer references

- [Selected 1.3-inch panel](https://www.buydisplay.com/white-1-3-inch-oled-i2c-arduino-ssd1306-display-module-connector-fpc)
- [ER-OLED013-1 panel datasheet](https://www.buydisplay.com/download/manual/ER-OLED013-1_Series_Datasheet.pdf), September 19, 2026; mechanical drawing page 7, external-supply operating table page 11.
- [Internal/external interface circuits](https://www.buydisplay.com/download/interfacing/ER-OLED013-1_Interfacing.pdf)
- [Manufacturer I2C initialization example](https://www.buydisplay.com/download/democode/ER-OLED013-1_I2C_DemoCode.txt)
- ER-CON30HT-1 land drawing, Rev 1.0, July 26, 2012; download through the product's connector option.
- [SSD1306 controller supply ranges](https://www.solomon-systech.com/zh-hans/product/ssd1306)
- [Microchip MCP1640 supply](https://ww1.microchip.com/downloads/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP1640-Family-Data-Sheet-DS20002234E.pdf), [TI TLV700 logic regulator](https://www.ti.com/lit/ds/symlink/tlv700.pdf), [TI TLV803 reset supervisor](https://www.ti.com/lit/ds/symlink/tlv803.pdf).