Initial commit.
This commit is contained in:
226
docs/wiring.svg
Normal file
226
docs/wiring.svg
Normal file
@@ -0,0 +1,226 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1500 1010" width="1500" height="1010">
|
||||
<style>
|
||||
.bg { fill: #ffffff; }
|
||||
text { font-family: "Helvetica Neue", Arial, sans-serif; fill: #1b2733; }
|
||||
.mono { font-family: "SF Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace; }
|
||||
.title { font-size: 25px; font-weight: 700; }
|
||||
.sub { font-size: 13.5px; fill: #5a6b7d; }
|
||||
.bname { font-size: 19px; font-weight: 700; }
|
||||
.mname { font-size: 16px; font-weight: 700; }
|
||||
.spec { font-size: 12.5px; fill: #5a6b7d; }
|
||||
.pin { font-size: 13px; }
|
||||
.net { font-size: 12px; }
|
||||
.note { font-size: 12.5px; }
|
||||
.lgd { font-size: 13px; }
|
||||
|
||||
.board { fill: #e8eef6; stroke: #2f4f7f; stroke-width: 2; }
|
||||
.modu { fill: #faf3e6; stroke: #96703a; stroke-width: 2; }
|
||||
.panel { fill: #f4f6f8; stroke: #b6c1cc; stroke-width: 1.5; }
|
||||
|
||||
.w { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
|
||||
.w-v33 { stroke: #cc2b2b; }
|
||||
.w-gnd { stroke: #2b2f36; }
|
||||
.w-i2c { stroke: #1668c4; }
|
||||
.w-spi { stroke: #d98207; }
|
||||
.w-led { stroke: #1f9350; }
|
||||
.rail { fill: none; stroke: #cc2b2b; stroke-width: 3.4; stroke-linecap: round; }
|
||||
|
||||
.stub { stroke: #2f4f7f; stroke-width: 2; }
|
||||
.pad { fill: #96703a; }
|
||||
.jn { fill: #cc2b2b; }
|
||||
.part { fill: #ffffff; stroke: #2b2f36; stroke-width: 2; }
|
||||
.gsym { fill: none; stroke: #2b2f36; stroke-width: 2; stroke-linecap: round; }
|
||||
</style>
|
||||
|
||||
<rect class="bg" x="0" y="0" width="1500" height="1010"/>
|
||||
|
||||
<text class="title" x="750" y="38" text-anchor="middle">NUCLEO-F042K6 + 2 x GY-63 (MS5611) - wiring</text>
|
||||
<text class="sub" x="750" y="60" text-anchor="middle">Logical net diagram. Pins are grouped by function, not by physical header order - see UM1956 Table 10 for the real connector layout.</text>
|
||||
|
||||
<!-- ============================ POWER SOURCE ============================ -->
|
||||
<rect class="panel" x="90" y="90" width="300" height="86" rx="6"/>
|
||||
<text class="mname" x="106" y="114">POWER SOURCE</text>
|
||||
<text class="spec" x="106" y="136">USB Micro-B to CN1, 5 V from the host PC</text>
|
||||
<text class="spec" x="106" y="154">ST-LINK V2-1 + on-board 3.3 V LDO</text>
|
||||
<text class="spec" x="106" y="170">same cable carries the serial VCP</text>
|
||||
|
||||
<!-- USB feed into the board, hopping over the 3V3 rail -->
|
||||
<path class="w w-gnd" d="M 390,133 L 630,133 L 630,196 A 9,9 0 0,0 630,214 L 630,250"/>
|
||||
<text class="net mono" x="452" y="126">5 V + serial</text>
|
||||
|
||||
<!-- ============================ 3V3 RAIL ============================ -->
|
||||
<path class="rail" d="M 490,205 L 1350,205"/>
|
||||
<text class="pin mono" x="1362" y="210" fill="#cc2b2b">+3V3</text>
|
||||
<circle class="jn" cx="490" cy="205" r="4.5"/>
|
||||
<circle class="jn" cx="720" cy="205" r="4.5"/>
|
||||
<circle class="jn" cx="1050" cy="205" r="4.5"/>
|
||||
|
||||
<!-- ============================ NUCLEO BOARD ============================ -->
|
||||
<rect class="board" x="600" y="250" width="300" height="540" rx="10"/>
|
||||
<text class="bname" x="750" y="332" text-anchor="middle">NUCLEO-F042K6</text>
|
||||
<text class="spec" x="750" y="354" text-anchor="middle">STM32F042K6T6 - board MB1180</text>
|
||||
<text class="spec" x="750" y="372" text-anchor="middle">32 KB flash / 6 KB RAM</text>
|
||||
|
||||
<!-- top edge pins -->
|
||||
<line class="stub" x1="630" y1="250" x2="630" y2="240"/>
|
||||
<line class="stub" x1="720" y1="250" x2="720" y2="240"/>
|
||||
<line class="stub" x1="790" y1="250" x2="790" y2="240"/>
|
||||
<text class="pin mono" x="630" y="272" text-anchor="middle">CN1</text>
|
||||
<text class="pin mono" x="720" y="272" text-anchor="middle">3V3</text>
|
||||
<text class="pin mono" x="790" y="272" text-anchor="middle">GND</text>
|
||||
|
||||
<!-- left edge pins: I2C -->
|
||||
<line class="stub" x1="600" y1="440" x2="590" y2="440"/>
|
||||
<line class="stub" x1="600" y1="475" x2="590" y2="475"/>
|
||||
<text class="pin mono" x="616" y="444">PB6 / D5 <tspan class="spec">(pad A5)</tspan></text>
|
||||
<text class="pin mono" x="616" y="479">PB7 / D4 <tspan class="spec">(pad A4)</tspan></text>
|
||||
|
||||
<!-- right edge pins: SPI -->
|
||||
<line class="stub" x1="900" y1="440" x2="910" y2="440"/>
|
||||
<line class="stub" x1="900" y1="475" x2="910" y2="475"/>
|
||||
<line class="stub" x1="900" y1="510" x2="910" y2="510"/>
|
||||
<line class="stub" x1="900" y1="545" x2="910" y2="545"/>
|
||||
<text class="pin mono" x="884" y="444" text-anchor="end">PB3 / D13</text>
|
||||
<text class="pin mono" x="884" y="479" text-anchor="end">PB5 / D11</text>
|
||||
<text class="pin mono" x="884" y="514" text-anchor="end">PA11 / D10</text>
|
||||
<text class="pin mono" x="884" y="549" text-anchor="end">PB4 / D12</text>
|
||||
|
||||
<!-- bottom edge pins: LEDs -->
|
||||
<line class="stub" x1="660" y1="790" x2="660" y2="800"/>
|
||||
<line class="stub" x1="850" y1="790" x2="850" y2="800"/>
|
||||
<text class="pin mono" x="660" y="778" text-anchor="middle">PB0 / D3</text>
|
||||
<text class="pin mono" x="850" y="778" text-anchor="middle">PB1 / D6</text>
|
||||
|
||||
<text class="spec" x="750" y="702" text-anchor="middle">USART2 = PA2 / PA15 to ST-LINK VCP</text>
|
||||
<text class="spec" x="750" y="720" text-anchor="middle">115200 8N1 - no USB-serial adapter needed</text>
|
||||
|
||||
<!-- ============================ GY-63 #1 : I2C ============================ -->
|
||||
<rect class="modu" x="110" y="280" width="280" height="340" rx="8"/>
|
||||
<text class="mname" x="250" y="312" text-anchor="middle">GY-63 #1</text>
|
||||
<text class="spec" x="250" y="334" text-anchor="middle">MS5611-01BA03 - I2C mode</text>
|
||||
|
||||
<circle class="pad" cx="390" cy="370" r="4"/>
|
||||
<circle class="pad" cx="390" cy="405" r="4"/>
|
||||
<circle class="pad" cx="390" cy="440" r="4"/>
|
||||
<circle class="pad" cx="390" cy="475" r="4"/>
|
||||
<circle class="pad" cx="390" cy="510" r="4"/>
|
||||
<circle class="pad" cx="390" cy="545" r="4"/>
|
||||
<circle class="pad" cx="390" cy="580" r="4"/>
|
||||
<text class="pin mono" x="376" y="374" text-anchor="end">VCC</text>
|
||||
<text class="pin mono" x="376" y="409" text-anchor="end">GND</text>
|
||||
<text class="pin mono" x="376" y="444" text-anchor="end">SCL</text>
|
||||
<text class="pin mono" x="376" y="479" text-anchor="end">SDA</text>
|
||||
<text class="pin mono" x="376" y="514" text-anchor="end">CSB</text>
|
||||
<text class="pin mono" x="376" y="549" text-anchor="end">SDO</text>
|
||||
<text class="pin mono" x="376" y="584" text-anchor="end">PS</text>
|
||||
<text class="spec" x="284" y="549" text-anchor="end">not connected</text>
|
||||
|
||||
<!-- ============================ GY-63 #2 : SPI ============================ -->
|
||||
<rect class="modu" x="1110" y="280" width="280" height="340" rx="8"/>
|
||||
<text class="mname" x="1250" y="312" text-anchor="middle">GY-63 #2</text>
|
||||
<text class="spec" x="1250" y="334" text-anchor="middle">MS5611-01BA03 - SPI mode</text>
|
||||
|
||||
<circle class="pad" cx="1110" cy="370" r="4"/>
|
||||
<circle class="pad" cx="1110" cy="405" r="4"/>
|
||||
<circle class="pad" cx="1110" cy="440" r="4"/>
|
||||
<circle class="pad" cx="1110" cy="475" r="4"/>
|
||||
<circle class="pad" cx="1110" cy="510" r="4"/>
|
||||
<circle class="pad" cx="1110" cy="545" r="4"/>
|
||||
<circle class="pad" cx="1110" cy="580" r="4"/>
|
||||
<text class="pin mono" x="1124" y="374">VCC</text>
|
||||
<text class="pin mono" x="1124" y="409">GND</text>
|
||||
<text class="pin mono" x="1124" y="444">SCL <tspan class="spec">= SCLK</tspan></text>
|
||||
<text class="pin mono" x="1124" y="479">SDA <tspan class="spec">= SDI / MOSI</tspan></text>
|
||||
<text class="pin mono" x="1124" y="514">CSB <tspan class="spec">= CS</tspan></text>
|
||||
<text class="pin mono" x="1124" y="549">SDO <tspan class="spec">= MISO</tspan></text>
|
||||
<text class="pin mono" x="1124" y="584">PS</text>
|
||||
|
||||
<!-- ============================ POWER WIRING ============================ -->
|
||||
<path class="w w-v33" d="M 390,370 L 490,370 L 490,205"/>
|
||||
<path class="w w-v33" d="M 1110,370 L 1050,370 L 1050,205"/>
|
||||
<path class="w w-v33" d="M 720,250 L 720,205"/>
|
||||
|
||||
<path class="w w-gnd" d="M 390,405 L 530,405 L 530,232"/>
|
||||
<path class="w w-gnd" d="M 1110,405 L 1010,405 L 1010,232"/>
|
||||
<path class="w w-gnd" d="M 790,250 L 790,232"/>
|
||||
<g class="gsym"><line x1="516" y1="232" x2="544" y2="232"/><line x1="521" y1="238" x2="539" y2="238"/><line x1="526" y1="244" x2="534" y2="244"/></g>
|
||||
<g class="gsym"><line x1="996" y1="232" x2="1024" y2="232"/><line x1="1001" y1="238" x2="1019" y2="238"/><line x1="1006" y1="244" x2="1014" y2="244"/></g>
|
||||
<g class="gsym"><line x1="776" y1="232" x2="804" y2="232"/><line x1="781" y1="238" x2="799" y2="238"/><line x1="786" y1="244" x2="794" y2="244"/></g>
|
||||
|
||||
<!-- ============================ I2C SIGNALS ============================ -->
|
||||
<path class="w w-i2c" d="M 390,440 L 600,440"/>
|
||||
<path class="w w-i2c" d="M 390,475 L 600,475"/>
|
||||
<text class="net mono" x="495" y="432" text-anchor="middle" fill="#1668c4">SCL</text>
|
||||
<text class="net mono" x="495" y="467" text-anchor="middle" fill="#1668c4">SDA</text>
|
||||
|
||||
<!-- CSB -> GND (address 0x77) -->
|
||||
<path class="w w-gnd" d="M 390,510 L 460,510 L 460,548"/>
|
||||
<g class="gsym"><line x1="446" y1="548" x2="474" y2="548"/><line x1="451" y1="554" x2="469" y2="554"/><line x1="456" y1="560" x2="464" y2="560"/></g>
|
||||
<text class="net" x="484" y="524" fill="#5a6b7d">0x77</text>
|
||||
|
||||
<!-- PS -> 3V3 (selects I2C) -->
|
||||
<path class="w w-v33" d="M 390,580 L 545,580 L 545,556"/>
|
||||
<line class="w w-v33" x1="531" y1="556" x2="559" y2="556"/>
|
||||
<text class="net mono" x="545" y="546" text-anchor="middle" fill="#cc2b2b">3V3</text>
|
||||
|
||||
<!-- ============================ SPI SIGNALS ============================ -->
|
||||
<path class="w w-spi" d="M 900,440 L 1110,440"/>
|
||||
<path class="w w-spi" d="M 900,475 L 1110,475"/>
|
||||
<path class="w w-spi" d="M 900,510 L 1110,510"/>
|
||||
<path class="w w-spi" d="M 900,545 L 1110,545"/>
|
||||
<text class="net mono" x="1005" y="432" text-anchor="middle" fill="#d98207">SCK</text>
|
||||
<text class="net mono" x="1005" y="467" text-anchor="middle" fill="#d98207">MOSI</text>
|
||||
<text class="net mono" x="1005" y="502" text-anchor="middle" fill="#d98207">CS</text>
|
||||
<text class="net mono" x="1005" y="537" text-anchor="middle" fill="#d98207">MISO</text>
|
||||
|
||||
<!-- PS -> GND (selects SPI) -->
|
||||
<path class="w w-gnd" d="M 1110,580 L 1040,580 L 1040,614"/>
|
||||
<g class="gsym"><line x1="1026" y1="614" x2="1054" y2="614"/><line x1="1031" y1="620" x2="1049" y2="620"/><line x1="1036" y1="626" x2="1044" y2="626"/></g>
|
||||
|
||||
<!-- ============================ ERROR LEDS ============================ -->
|
||||
<!-- branch 1 : PB0 -->
|
||||
<path class="w w-led" d="M 660,800 L 660,832"/>
|
||||
<rect class="part" x="645" y="832" width="30" height="50" rx="2"/>
|
||||
<path class="w w-led" d="M 660,882 L 660,906"/>
|
||||
<polygon class="part" points="642,906 678,906 660,936"/>
|
||||
<line class="w w-led" x1="640" y1="936" x2="680" y2="936"/>
|
||||
<path class="w w-led" d="M 660,936 L 660,964"/>
|
||||
<g class="gsym"><line x1="646" y1="964" x2="674" y2="964"/><line x1="651" y1="970" x2="669" y2="970"/><line x1="656" y1="976" x2="664" y2="976"/></g>
|
||||
<text class="pin mono" x="690" y="862">510 R</text>
|
||||
<text class="pin" x="690" y="926">LED - I2C sensor error</text>
|
||||
|
||||
<!-- branch 2 : PB1 -->
|
||||
<path class="w w-led" d="M 850,800 L 850,832"/>
|
||||
<rect class="part" x="835" y="832" width="30" height="50" rx="2"/>
|
||||
<path class="w w-led" d="M 850,882 L 850,906"/>
|
||||
<polygon class="part" points="832,906 868,906 850,936"/>
|
||||
<line class="w w-led" x1="830" y1="936" x2="870" y2="936"/>
|
||||
<path class="w w-led" d="M 850,936 L 850,964"/>
|
||||
<g class="gsym"><line x1="836" y1="964" x2="864" y2="964"/><line x1="841" y1="970" x2="859" y2="970"/><line x1="846" y1="976" x2="854" y2="976"/></g>
|
||||
<text class="pin mono" x="880" y="862">510 R</text>
|
||||
<text class="pin" x="880" y="926">LED - SPI sensor error</text>
|
||||
|
||||
<!-- ============================ LEGEND ============================ -->
|
||||
<rect class="panel" x="90" y="660" width="290" height="196" rx="6"/>
|
||||
<text class="mname" x="106" y="686">LEGEND</text>
|
||||
<line class="w w-v33" x1="110" y1="712" x2="150" y2="712"/><text class="lgd" x="162" y="717">3.3 V</text>
|
||||
<line class="w w-gnd" x1="110" y1="742" x2="150" y2="742"/><text class="lgd" x="162" y="747">GND</text>
|
||||
<line class="w w-i2c" x1="110" y1="772" x2="150" y2="772"/><text class="lgd" x="162" y="777">I2C bus</text>
|
||||
<line class="w w-spi" x1="110" y1="802" x2="150" y2="802"/><text class="lgd" x="162" y="807">SPI bus</text>
|
||||
<line class="w w-led" x1="110" y1="832" x2="150" y2="832"/><text class="lgd" x="162" y="837">LED drive (active high)</text>
|
||||
|
||||
<!-- ============================ NOTES ============================ -->
|
||||
<rect class="panel" x="1080" y="660" width="330" height="284" rx="6"/>
|
||||
<text class="mname" x="1096" y="686">NOTES</text>
|
||||
<text class="note" x="1096" y="712">MS5611 is 3.3 V only (1.8 - 3.6 V).</text>
|
||||
<text class="note" x="1096" y="730">Never feed it 5 V.</text>
|
||||
<text class="note" x="1096" y="756">GY-63 boards normally carry SDA / SCL</text>
|
||||
<text class="note" x="1096" y="774">pull-ups - check yours before adding any.</text>
|
||||
<text class="note" x="1096" y="800">PS high selects I2C, PS low selects SPI.</text>
|
||||
<text class="note" x="1096" y="826">CSB low on module #1 sets address 0x77</text>
|
||||
<text class="note" x="1096" y="844">(BARO_I2C_ADDRESS in include/config.h).</text>
|
||||
<text class="note" x="1096" y="870">SPI1 must stay on PB3 / PB4 / PB5: bridges</text>
|
||||
<text class="note" x="1096" y="888">SB16 / SB18 tie PA5 / PA6 to the I2C net.</text>
|
||||
<text class="note" x="1096" y="914">The Nucleo-32 has a single 3V3 pin -</text>
|
||||
<text class="note" x="1096" y="932">distribute it over a breadboard rail.</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 13 KiB |
Reference in New Issue
Block a user