MOSS: a small, mostly 3D-printed litter-picking rover. Cleaner streets, one maker at a time.
Python
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>MOSS Core — V1B audit and V1C corrections</title>
<style>
:root{--ink:#192a34;--muted:#52656f;--line:#d7e0e4;--teal:#086d70;--paper:#fff;--bg:#e9eef1}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:10.2pt/1.42 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.page{width:210mm;min-height:297mm;margin:8mm auto;background:var(--paper);padding:16mm 17mm 14mm;position:relative;box-shadow:0 2px 16px #243b4d12;break-after:page}.page:last-child{break-after:auto}
.kicker{font-size:8.3pt;font-weight:750;letter-spacing:.11em;color:var(--teal);text-transform:uppercase;margin-bottom:4mm}.topline{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:3mm;margin-bottom:6mm;font-size:8.1pt;color:var(--muted)}
h1{font-size:27pt;line-height:1.09;letter-spacing:-.035em;margin:0 0 5mm}h2{font-size:18pt;line-height:1.15;letter-spacing:-.02em;margin:0 0 5mm}h3{font-size:11.5pt;line-height:1.25;margin:5mm 0 1.5mm}p{margin:0 0 3mm}.lead{font-size:12pt;line-height:1.45}.muted{color:var(--muted)}.small{font-size:8.8pt;line-height:1.4}.source{font-size:8pt;color:var(--muted);margin-top:1mm}a{color:#006a80;text-decoration:none;border-bottom:1px solid #a4c5cd}a:hover{text-decoration:underline}
.box{border-left:3px solid var(--teal);background:#eff7f7;padding:3.5mm 4mm;margin:4mm 0}.correction{border-left-color:#ac5a25;background:#fcf4eb}.grid{display:grid;grid-template-columns:1fr 1fr;gap:4mm}.panel{border:1px solid var(--line);border-radius:2mm;padding:3.5mm}.panel h3{margin-top:0}.tag{display:inline-block;border:1px solid;border-radius:1mm;padding:.6mm 1.6mm;font-size:7.4pt;font-weight:700;letter-spacing:.01em;white-space:nowrap;margin-right:1.3mm}.circuit{color:#075c52;background:#edf7f3;border-color:#bdddd1}.route{color:#615020;background:#fff8e7;border-color:#dfd2a7}.bench{color:#85432f;background:#fdf0e9;border-color:#e4c7b8}.software{color:#4d4c8b;background:#f1f0fc;border-color:#cfcced}.legend{display:flex;flex-wrap:wrap;gap:1.5mm;margin:4mm 0}.legend .tag{margin:0}
table{border-collapse:collapse;width:100%;font-size:9pt;margin:3mm 0}th{text-align:left;color:var(--muted);font-size:8pt;letter-spacing:.04em;text-transform:uppercase;border-bottom:1.5px solid #b9cbd3;padding:2mm 1.5mm}td{padding:2.2mm 1.5mm;vertical-align:top;border-bottom:1px solid var(--line)}td:first-child{font-weight:650;width:20%}ul,ol{padding-left:5mm;margin:2mm 0 4mm}li{margin:1.5mm 0}.foot{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:2.5mm;margin-top:7mm;font-size:8pt;color:var(--muted)}.two{columns:2;column-gap:6mm}.two p{break-inside:avoid}.metric{font-size:19pt;line-height:1.2;font-weight:750;color:var(--teal)}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:4mm;margin:4mm 0}.metricbox{border-top:2px solid #b9d9db;padding-top:2mm}.metricbox span{font-size:8.2pt;color:var(--muted);display:block}.block{break-inside:avoid}.subtle{background:#f5f7f9;padding:3mm 4mm;border-radius:1.5mm}.diagram{display:grid;grid-template-columns:72mm 1fr;gap:6mm;align-items:center;margin:3mm 0}svg{display:block;width:100%;height:auto}.printnote{font-size:8pt;text-align:center;margin:5mm;color:var(--muted)}
@page{size:A4;margin:0}@media print{body{background:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}.page{margin:0;box-shadow:none;min-height:297mm}.printnote{display:none}a{border-bottom:none}h3{break-after:avoid}}
</style></head><body>
<p class="printnote">Standalone document · A4 printing · evidence and manufacturer links</p>
<section class="page">
<div class="topline"><b>MOSS / Core electronics</b><span>15 October 2026 audit · V1B → V1C</span></div>
<div class="kicker">Design review and corrections</div>
<h1>Design the board first.<br>Adapt the support.</h1>
<p class="lead">V1B met its connectivity rules, but several integration choices were insufficient. V1C revises the mechanical interface, power system, sensitive signals and software contract.</p>
<div class="box correction"><b>Correction to the previous delivery.</b> A clean ERC/DRC did not establish that the board was ready to manufacture. Claimed alignment with the old pillars was unproven: placement of the enlarged box shifted the holes by <b>10 mm</b> in rover coordinates. The envelope check had tested neither fasteners nor mated plugs.</div>
<h3>What actually changes</h3>
<table><thead><tr><th>Area</th><th>Delivered V1B</th><th>V1C revision</th></tr></thead><tbody>
<tr><td>Mechanics</td><td>50 × 54 mm; inherited BFF holes, little clamping clearance.</td><td>60 × 65 mm; four M2.5 corner mounts; Ø8 reserves; support to follow the board.</td></tr>
<tr><td>Power</td><td>LDO, PPTC and slew-controlled switch; external loads always powered.</td><td>Buck, defined USB current limit, supervisor and switched encoder power.</td></tr>
<tr><td>Control</td><td>Latch states invisible to MCU; host could automatically rearm.</td><td>Two hardware feedback signals; latched-fault contract and explicit acknowledgement.</td></tr>
<tr><td>Audio / USB</td><td>Two CDCs; local sounds only, without replacing the existing audio sink.</td><td>One multiplexed CDC + UAC playback; host broker for two pseudo-TTYs still to develop.</td></tr>
<tr><td>Layout</td><td>Independent USB routes, distant decoupling returns, very small passives.</td><td>USB pair pre-routed on F.Cu, two GND planes, functional groups and service access.</td></tr>
</tbody></table>
<h3>Distinguish design correction from validation</h3>
<div class="legend"><span class="tag circuit">Circuit / layout corrected</span><span class="tag route">Statically checked</span><span class="tag bench">Hardware test required</span><span class="tag software">Software port required</span></div>
<p class="small">“Corrected” means an identifiable change exists in the reviewed files. It does not mean a prototype has worked. Final routing passed DRC with no unconnected items or schematic/PCB mismatch. Read the reports together with the design files and their checksums.</p>
<p class="small muted">Scope: delivered V1B KiCad files, combined V1C circuit, routed PCB, local MOSS code and R79 mechanical cache. No physical tests, PCB order or rover flashing. This audit is limited to accessible evidence; it does not claim to have found every possible defect.</p>
<div class="foot"><span>Established findings, risks and unknowns kept separate</span><span>01 / 04</span></div>
</section>
<section class="page">
<div class="topline"><b>MOSS Core · V1B → V1C audit</b><span>Electrical design and fault states</span></div>
<h2>Electrical corrections<br>beyond DRC</h2>
<div class="block"><h3>1. Control USB current and external rails</h3><p><span class="tag circuit">Circuit corrected</span><span class="tag bench">Hardware test</span>A “0.5 A hold” PPTC was not a 500 mA cutoff. TPS2553 with 60.4 kohm now defines a calculated <b>387–491 mA</b> range. Encoders and all four pull-ups switch together: switching only their supply would leave signal back-power paths. The watchdog pull-up changes from 1 kohm to 47 kohm, drawing about 70 uA when held low.</p><p class="source">TI datasheets: <a href="https://www.ti.com/lit/ds/symlink/tps2553.pdf">TPS2553 current setting</a> · <a href="https://www.ti.com/lit/ds/symlink/tps22918.pdf">TPS22918 encoder rail</a> · <a href="https://www.ti.com/lit/ds/symlink/tps3431.pdf">TPS3431</a>.</p></div>
<div class="block"><h3>2. Efficiency and restart margin</h3><p><span class="tag circuit">Circuit corrected</span><span class="tag bench">Hardware test</span>TLV62569 replaces the LDO to reduce losses. The logic-rail design budget is <b>200 mA typical target / 350 mA continuous</b>, radio off; the buck's 2 A rating is not available from USB. A 464 kohm / 100 kohm, 0.1% divider targets 3.384 V. TLV803E supervises RESET and the disarm chain. Static release margin increased from about 10 to <b>122 mV</b>, excluding ripple and transients.</p><p class="source"><a href="https://www.ti.com/lit/ds/symlink/tlv62569.pdf">TLV62569</a> · <a href="https://www.ti.com/lit/ds/symlink/tlv803e.pdf">TLV803E</a>. Fast dips and pre-enumeration/suspend current still need measurement; the limiter does not replace USB power policy.</p></div>
<div class="block"><h3>3. Servo: follow the known interface, remove extra circuitry</h3><p><span class="tag circuit">Circuit corrected</span>The 5 V servo stage used a quad buffer and a transistor inverter for one output. U14 becomes a <b>3.3 V SN74LVC1G126</b>, matching the DATA stage of the Waveshare (A) adapter in the rover BOM. Its active-high enable connects directly to hardware permission; three resistors and the transistor are removed. The earlier isolation claim based only on LV4T125 Ioff was too broad.</p><p class="source"><a href="https://files.waveshare.com/wiki/Bus-Servo-Adapter-(A)/Bus%20Servo%20Adapter%20(A)-Sch.pdf">Official Waveshare schematic</a> · <a href="https://www.ti.com/lit/ds/symlink/sn74lvc1g126.pdf">LVC1G126 levels and Ioff</a>. Feetech turnaround timing and the actual harness remain to test.</p></div>
<div class="block"><h3>4. Audio: remove unintended supply paths</h3><p><span class="tag circuit">Circuit corrected</span>The AMP_5V→GPIO divider was removed: it applied voltage to the MCU while Core was off. All three I2S inputs now have a defined low idle state. The SD_MODE resistor changes from 47 ohm to <b>2.2 kohm</b> to limit injection during amplifier power ramps; unlike BCLK/LRCLK/DIN, this input is limited by amplifier supply voltage.</p><p class="source"><a href="https://www.analog.com/media/en/technical-documentation/data-sheets/MAX98357A-MAX98357B.pdf">MAX98357A limits and SD_MODE</a>.</p></div>
<div class="block"><h3>5. Read the permissions actually held by the latches</h3><p><span class="tag circuit">Circuit corrected</span><span class="tag software">Software port required</span>GPIO44 and GPIO1 now read both U9 outputs, allowing firmware to distinguish a transient fault from a software request. Two HCS21 Schmitt gates combine conditions and NC diagnostics; an LVC receiver preserves external fault-input tolerance. The latches remain.</p><p class="source"><a href="https://www.ti.com/lit/ds/symlink/sn74hcs21.pdf">HCS21</a> · <a href="https://www.ti.com/lit/ds/symlink/sn74lvc74a.pdf">LVC74</a>. None of these gates alone disconnects arm power.</p></div>
<div class="foot"><span>A design correction is not a functional test</span><span>02 / 04</span></div>
</section>
<section class="page">
<div class="topline"><b>MOSS Core · V1B → V1C audit</b><span>PCB and mechanical interface</span></div>
<h2>A layout designed<br>for wiring and mounting</h2>
<div class="diagram"><svg viewBox="0 0 300 315" role="img" aria-label="60 by 65 mm board, four corner holes with diameter 8 mm reserves"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M10 0H0V10" fill="none" stroke="#dbe8e6" stroke-width=".5"/></pattern></defs><rect x="30" y="18" width="240" height="260" rx="8" fill="#edf7f3" stroke="#176c64" stroke-width="2"/><rect x="30" y="18" width="240" height="260" rx="8" fill="url(#grid)"/><g fill="#fff" stroke="#176c64"><circle cx="46" cy="34" r="16"/><circle cx="254" cy="34" r="16"/><circle cx="46" cy="262" r="16"/><circle cx="254" cy="262" r="16"/></g><g fill="#176c64"><circle cx="46" cy="34" r="5.4"/><circle cx="254" cy="34" r="5.4"/><circle cx="46" cy="262" r="5.4"/><circle cx="254" cy="262" r="5.4"/></g><g font-family="Arial,sans-serif" text-anchor="middle" fill="#254652"><text x="150" y="135" font-size="23" font-weight="bold">60 × 65 mm</text><text x="150" y="159" font-size="13">4 × Ø2.7 · M2.5 screws</text><text x="150" y="181" font-size="13">Mounting pitch 52 × 57</text><text x="150" y="302" font-size="12">Interface sketch · not to scale</text></g></svg><div><span class="tag circuit">Layout corrected</span><h3>Corner mounts</h3><p>Centres 4 mm from the edges; <b>Ø8 mm</b> reserves for copper, components, support bearing surfaces and tool access.</p><p class="small">These reserves match the selected interface. Check them against the actual screws, washers and screwdriver.</p><p class="small muted">The STEP/STL carrier is for bench use. Four spacers under the platform are proposed for the rover; attachments remain to design.</p></div></div>
<div class="block"><h3>USB is a routing constraint, not two arbitrary connections</h3><p><span class="tag circuit">Routing corrected</span><span class="tag route">Statically checked</span>D+ and D− now remain on <b>F.Cu without signal vias</b>. Total copper length is 16.292 / 16.119 mm including reversible-connector branches; this is not propagation delay per plug orientation. After the 22 ohm resistors, both paths measure 1.84 mm. Both internal layers are <b>GND planes without signal traces</b>. The masked 2D model estimates <b>88–90 ohm</b> for the nominal 0.15 / 0.15 mm section; the manufacturer must confirm stackup, etching and impedance.</p><p class="source"><a href="https://docs.espressif.com/projects/esp-hardware-design-guidelines/en/latest/esp32s3/pcb-layout-design.html">ESP32-S3 guide</a> · <a href="https://jlcpcb.com/impedance">JLCPCB stackup and mask data</a> · reproducible calculation: <code>USB_IMPEDANCE_REVIEW.txt</code>. This does not replace a coupon or USB test.</p></div>
<div class="block"><h3>Decoupling, buck loop and Kelvin measurement</h3><p><span class="tag circuit">Routing corrected</span><span class="tag route">Statically checked</span>V1B decoupling GND returns reached 6.6–7.1 mm near the ESP. The maximum recorded pad-to-local-via return is now <b>1.1 mm</b>. INA filters and the buck are grouped; both planes are filled. All four screws have Ø8 reserves. These geometric checks do not demonstrate analogue or EMC performance.</p><p class="source"><a href="https://www.ti.com/lit/ds/symlink/tlv62569.pdf">TLV62569 layout</a> · <a href="https://www.ti.com/lit/ds/symlink/ina226.pdf">INA226 input filtering and Kelvin sensing</a>.</p></div>
<div class="grid"><div class="panel"><h3>Assembly and service</h3><p class="small">162 footprints, including 150 assembled components, all on top. Ordinary passives use 0603 and PCB service access is provided. Access within the rover remains to verify. GH connectors carry signals only, not motor or servo power.</p><p class="source"><a href="https://www.jst-mfg.com/product/index.php?lang=2&series=105">JST GH dimensions and ratings</a>.</p></div><div class="panel"><h3>Integration not validated</h3><p class="small">At (45,−80,74), nine plug volumes and their upward corridors pass mesh screening with an extra 0.5 mm margin. Battery overhang: 16 mm; nominal clearance: 5.5 mm. Platform attachments and real cables remain to validate. The lower carrier is excluded.</p></div></div>
<div class="foot"><span>This audit did not modify the hull</span><span>03 / 04</span></div>
</section>
<section class="page">
<div class="topline"><b>MOSS Core · V1B → V1C audit</b><span>Evidence, software and remaining validation</span></div>
<h2>What was checked.<br>What remains to prove.</h2>
<h3>Why “ERC = 0 / DRC = 0” was not enough</h3>
<p>The V1B results were real. They checked project-defined rules and connection consistency. They did not check screw volumes, pillar alignment, USB impedance, power return paths, endpoint budgets or MOSS software behavior.</p>
<div class="metrics"><div class="metricbox"><div class="metric">486</div><span>V1C assignments compared with native XML: 472 connected + 14 NC.</span></div><div class="metricbox"><div class="metric">16,384</div><span>Logic combinations following exported physical nets and pins.</span></div><div class="metricbox"><div class="metric">4 + 1</div><span>Fault/recovery sequences and sensitivity test with a modified logic-gate pin.</span></div></div>
<p class="small muted">These models assume stable power and valid logic levels. They simulate neither ramps, metastability nor firmware. The combined schematic passed ERC. <b>Final DRC: 0 violations, 0 unconnected items, 0 parity issues.</b> JSON reports identify ignored checks and the reviewed files. These results do not validate installation in the rover.</p>
<h3>Software port required to retain rover functions</h3>
<p><span class="tag software">Software port required</span>The existing motor client automatically rearms once after <code>ERR not_armed</code>. Hardware faults therefore need a distinct state and code, with explicit acknowledgement. QT Py firmware does not control the new permissions and its INA219 driver does not suit INA226.</p>
<p>To retain system audio and TTS, the selected profile is <b>one CDC ACM + UAC playback with feedback</b>: five endpoints excluding EP0, within the S3 limit. A broker will expose two pseudo-TTYs for motors and servos. Two standard CDCs plus UAC would exceed the budget. This electronics package alone supplies no operational broker or firmware.</p>
<p class="source"><a href="https://docs.espressif.com/projects/esp-usb/en/latest/esp32s3/usb_device.html">Espressif USB stack and limits</a> · <a href="https://github.com/espressif/esp-idf/issues/13005">Espressif CDC budget</a> · local code: <code>moss_adapter.py::_drive</code>, <code>sounds.py</code> and QT Py firmware.</p>
<h3>Tests and decisions still required</h3>
<ol>
<li><b>Manufacturing:</b> static routing checks passed. Confirm stackup, impedance and assembly with the manufacturer; repeat checks after changes. No production cost has been validated.</li>
<li><b>Power and USB:</b> pre-enumeration, suspend/resume, hot/cold starts, rail collapse, current and closed-hull temperature. Supervision does not guarantee reset before 3.0 V for every fast collapse.</li>
<li><b>Actual control:</b> stalled watchdog, reset, NC, external fault, return to healthy conditions without automatic restart, continuous audio and loaded Feetech bus. Audio/servo traffic must never refresh the motor timeout.</li>
<li><b>Power wiring and mechanics:</b> Kelvin shunt and sense-wire protection, external cutoff, arm behavior without commands, mated plugs, cover and integrated printed support.</li>
</ol>
<div class="subtle small"><b>Keep this limit explicit:</b> blocking servo TX does not stop a trajectory already received. J9 remains a logic permission, not a power switch. Removing modules does not establish a cost saving either: PCB, assembly, connectors, harnesses and external cutoff must be included in the quotation.</div>
<div class="foot"><span>Bounded audit · prototype for review and testing</span><span>04 / 04</span></div>
</section>
</body></html>