Files
ps4-lego-bridge/docs/wiring-leds-separate.svg
jessikitty e1c5d00972 Add separate-ground LED wiring diagram
Four wires, no shared return junction, so the series-LED failure mode
cannot occur.
2026-09-25 01:28:22 +10:00

57 lines
4.1 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 460" width="700" height="460" role="img" aria-labelledby="t2 d2">
<title id="t2">LED wiring with separate ground pins - recommended</title>
<desc id="d2">Board B GPIO25 goes through a 220 ohm resistor to the red LED pair and returns to its own GND pin. Board B GPIO26 goes through a 100 ohm resistor to the green LED pair and returns to a different GND pin. Four wires total and the two circuits never touch each other, so neither can end up in series with the other.</desc>
<style>
.bg{fill:#fbfaf8}
.box{fill:#fff;stroke-width:1.2}
.t{stroke:#2E8B8B;fill:#eef7f7}
.r{stroke:#D85A30;fill:#fdf1ec}
.g{stroke:#3D9A50;fill:#eef8f0}
.n{stroke:#888780;fill:#f4f4f2}
text{font-family:ui-sans-serif,system-ui,'Segoe UI',Helvetica,Arial,sans-serif;fill:#20201d}
.h{font-size:15px;font-weight:600}
.s{font-size:12px}
.xs{font-size:11px;fill:#5a5a54}
.w{stroke-width:2;fill:none}
</style>
<rect class="bg" x="0" y="0" width="700" height="460"/>
<defs><marker id="ar2" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><path d="M2 1L8 5L2 9" fill="none" stroke="context-stroke" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></marker></defs>
<rect class="box t" x="24" y="30" width="118" height="300" rx="10"/>
<text class="h" x="83" y="59" text-anchor="middle">BOARD B</text>
<text class="xs" x="83" y="76" text-anchor="middle">receiver.ino</text>
<rect class="box r" x="36" y="100" width="94" height="26" rx="4"/><text class="s" x="83" y="118" text-anchor="middle">GPIO 25</text>
<rect class="box n" x="36" y="150" width="94" height="26" rx="4"/><text class="s" x="83" y="168" text-anchor="middle">GND (a)</text>
<rect class="box g" x="36" y="216" width="94" height="26" rx="4"/><text class="s" x="83" y="234" text-anchor="middle">GPIO 26</text>
<rect class="box n" x="36" y="266" width="94" height="26" rx="4"/><text class="s" x="83" y="284" text-anchor="middle">GND (b)</text>
<line class="w" x1="132" y1="113" x2="180" y2="113" stroke="#D85A30"/>
<rect class="box r" x="182" y="100" width="86" height="26" rx="4"/><text class="s" x="225" y="118" text-anchor="middle">220&#937;</text>
<line class="w" x1="270" y1="113" x2="318" y2="113" stroke="#D85A30"/>
<rect class="box r" x="320" y="94" width="168" height="38" rx="6"/>
<text class="s" x="404" y="111" text-anchor="middle">RED pair</text>
<text class="xs" x="404" y="126" text-anchor="middle">long leg faces this side</text>
<line class="w" x1="490" y1="113" x2="556" y2="113" stroke="#D85A30"/>
<line class="w" x1="558" y1="113" x2="558" y2="163" stroke="#888780"/>
<line class="w" x1="556" y1="163" x2="134" y2="163" stroke="#888780" marker-end="url(#ar2)"/>
<line class="w" x1="132" y1="229" x2="180" y2="229" stroke="#3D9A50"/>
<rect class="box g" x="182" y="216" width="86" height="26" rx="4"/><text class="s" x="225" y="234" text-anchor="middle">100&#937;</text>
<line class="w" x1="270" y1="229" x2="318" y2="229" stroke="#3D9A50"/>
<rect class="box g" x="320" y="210" width="168" height="38" rx="6"/>
<text class="s" x="404" y="227" text-anchor="middle">GREEN pair</text>
<text class="xs" x="404" y="242" text-anchor="middle">long leg faces this side</text>
<line class="w" x1="490" y1="229" x2="620" y2="229" stroke="#3D9A50"/>
<line class="w" x1="622" y1="229" x2="622" y2="279" stroke="#888780"/>
<line class="w" x1="620" y1="279" x2="134" y2="279" stroke="#888780" marker-end="url(#ar2)"/>
<text class="s" x="404" y="318" text-anchor="middle">Four wires. The two loops never touch each other anywhere.</text>
<rect class="box g" x="24" y="346" width="652" height="92" rx="8"/>
<text class="h" x="42" y="373">Why this version cannot fail the same way</text>
<text class="s" x="42" y="395">There is no shared junction to get wrong. Each LED has one path out and one path back, so</text>
<text class="s" x="42" y="413">neither can end up in series with the other. GND (a) and GND (b) are different physical pins</text>
<text class="s" x="42" y="431">but the same net inside the board - that is fine, and it is what makes this safe to do.</text>
</svg>