Initial commit.
This commit is contained in:
BIN
docs/datasheets/DB_nucleo-f042k6.pdf
Normal file
BIN
docs/datasheets/DB_nucleo-f042k6.pdf
Normal file
Binary file not shown.
BIN
docs/datasheets/DS_stm32f042k6.pdf
Normal file
BIN
docs/datasheets/DS_stm32f042k6.pdf
Normal file
Binary file not shown.
BIN
docs/datasheets/ENG_DS_MS5611-01BA03_B3.pdf
Normal file
BIN
docs/datasheets/ENG_DS_MS5611-01BA03_B3.pdf
Normal file
Binary file not shown.
BIN
docs/wiring-physical.png
Normal file
BIN
docs/wiring-physical.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 637 KiB |
330
docs/wiring-physical.svg
Normal file
330
docs/wiring-physical.svg
Normal file
@@ -0,0 +1,330 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 1120" width="1600" height="1120">
|
||||
<defs>
|
||||
<linearGradient id="sheen" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0%" stop-color="#ffffff" stop-opacity="0.10"/>
|
||||
<stop offset="55%" stop-color="#ffffff" stop-opacity="0.02"/>
|
||||
<stop offset="100%" stop-color="#000000" stop-opacity="0.10"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="usb" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0%" stop-color="#e9ecef"/>
|
||||
<stop offset="50%" stop-color="#c7ccd1"/>
|
||||
<stop offset="100%" stop-color="#9ba2a9"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<style>
|
||||
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; }
|
||||
.hdr { font-size: 16px; font-weight: 700; }
|
||||
.spec { font-size: 12.5px; fill: #5a6b7d; }
|
||||
.note { font-size: 12.5px; }
|
||||
.silk { fill: #ffffff; font-size: 11px; font-weight: 600; }
|
||||
.silkb{ fill: #ffffff; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
|
||||
.bsilk{ font-size: 10px; fill: #2f4f7f; font-weight: 600; }
|
||||
.panel{ fill: #f4f6f8; stroke: #b6c1cc; stroke-width: 1.5; }
|
||||
|
||||
.jw { fill: none; stroke-width: 4.6; stroke-linecap: round; }
|
||||
.c-v33 { stroke: #d62828; }
|
||||
.c-gnd { stroke: #22252a; }
|
||||
.c-sda { stroke: #1f6feb; }
|
||||
.c-scl { stroke: #00a0b0; }
|
||||
.c-sck { stroke: #e07b00; }
|
||||
.c-mosi{ stroke: #b5179e; }
|
||||
.c-miso{ stroke: #7209b7; }
|
||||
.c-cs { stroke: #c99700; }
|
||||
.c-led { stroke: #2a9d4a; }
|
||||
|
||||
.rail-g { fill: none; stroke: #22252a; stroke-width: 7; stroke-linecap: round; }
|
||||
.rail-v { fill: none; stroke: #d62828; stroke-width: 7; stroke-linecap: round; }
|
||||
</style>
|
||||
|
||||
<rect x="0" y="0" width="1600" height="1120" fill="#ffffff"/>
|
||||
|
||||
<text class="title" x="800" y="38" text-anchor="middle">Physical wiring - NUCLEO-F042K6 + 2 x GY-63 (MS5611)</text>
|
||||
<text class="sub" x="800" y="62" text-anchor="middle">Board seen from the component side, USB at the top. Header order follows ST UM1956 Table 10. Highlighted pads are the ones this firmware uses.</text>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- NUCLEO-F042K6 -->
|
||||
<!-- =================================================================== -->
|
||||
<g id="nucleo">
|
||||
<!-- USB Micro-B, CN1 -->
|
||||
<rect x="762" y="122" width="66" height="34" rx="3" fill="url(#usb)" stroke="#7b8288" stroke-width="1.2"/>
|
||||
<rect x="770" y="128" width="50" height="14" rx="2" fill="#6f767c"/>
|
||||
|
||||
<!-- PCB -->
|
||||
<rect x="700" y="150" width="190" height="530" rx="8" fill="#f7f8f9" stroke="#c3c9ce" stroke-width="1.6"/>
|
||||
<rect x="706" y="156" width="178" height="518" rx="5" fill="none" stroke="#3a7ac0" stroke-width="1"/>
|
||||
|
||||
<!-- ST-LINK section -->
|
||||
<rect x="718" y="163" width="24" height="20" rx="3" fill="#2f9e44" stroke="#1e6f2f" stroke-width="1"/>
|
||||
<text class="bsilk" x="730" y="196" text-anchor="middle">LD1</text>
|
||||
<rect x="762" y="248" width="66" height="40" rx="2" fill="#1b1b1b"/>
|
||||
<text x="795" y="272" text-anchor="middle" font-size="9" fill="#8a8a8a" class="mono">ST-LINK</text>
|
||||
<text x="795" y="232" text-anchor="middle" font-size="19" font-weight="700" fill="#03234b">ST</text>
|
||||
|
||||
<!-- target MCU, LQFP32 -->
|
||||
<rect x="757" y="424" width="76" height="76" rx="3" fill="#1b1b1b"/>
|
||||
<circle cx="766" cy="433" r="3.4" fill="#4a4a4a"/>
|
||||
<text x="795" y="466" text-anchor="middle" font-size="8.5" fill="#8a8a8a" class="mono">STM32F042</text>
|
||||
<g fill="#5b6167">
|
||||
<rect x="749" y="432" width="8" height="3"/><rect x="749" y="443" width="8" height="3"/>
|
||||
<rect x="749" y="454" width="8" height="3"/><rect x="749" y="465" width="8" height="3"/>
|
||||
<rect x="749" y="476" width="8" height="3"/><rect x="749" y="487" width="8" height="3"/>
|
||||
<rect x="833" y="432" width="8" height="3"/><rect x="833" y="443" width="8" height="3"/>
|
||||
<rect x="833" y="454" width="8" height="3"/><rect x="833" y="465" width="8" height="3"/>
|
||||
<rect x="833" y="476" width="8" height="3"/><rect x="833" y="487" width="8" height="3"/>
|
||||
</g>
|
||||
|
||||
<!-- bottom features -->
|
||||
<rect x="716" y="640" width="20" height="16" rx="2" fill="#2f9e44" stroke="#1e6f2f" stroke-width="1"/>
|
||||
<text class="bsilk" x="726" y="668" text-anchor="middle">LD2</text>
|
||||
<rect x="854" y="640" width="20" height="16" rx="2" fill="#2f9e44" stroke="#1e6f2f" stroke-width="1"/>
|
||||
<text class="bsilk" x="864" y="668" text-anchor="middle">LD3</text>
|
||||
<rect x="778" y="638" width="34" height="20" rx="3" fill="#d9dde1" stroke="#9aa1a8" stroke-width="1"/>
|
||||
<text class="bsilk" x="795" y="668" text-anchor="middle">B1</text>
|
||||
|
||||
<text class="bsilk" x="714" y="215" text-anchor="middle" font-size="9">CN3</text>
|
||||
<text class="bsilk" x="876" y="215" text-anchor="middle" font-size="9">CN4</text>
|
||||
</g>
|
||||
|
||||
<!-- header pads: generated positions, CN3 x=714 / CN4 x=876, pin i y = 240+(i-1)*28 -->
|
||||
<g id="pads">
|
||||
<!-- CN3 gold rings -->
|
||||
<g fill="#d9b64a">
|
||||
<circle cx="714" cy="240" r="7"/><circle cx="714" cy="268" r="7"/><circle cx="714" cy="296" r="7"/>
|
||||
<circle cx="714" cy="324" r="7"/><circle cx="714" cy="352" r="7"/><circle cx="714" cy="380" r="7"/>
|
||||
<circle cx="714" cy="408" r="7"/><circle cx="714" cy="436" r="7"/><circle cx="714" cy="464" r="7"/>
|
||||
<circle cx="714" cy="492" r="7"/><circle cx="714" cy="520" r="7"/><circle cx="714" cy="548" r="7"/>
|
||||
<circle cx="714" cy="576" r="7"/><circle cx="714" cy="604" r="7"/><circle cx="714" cy="632" r="7"/>
|
||||
<circle cx="876" cy="240" r="7"/><circle cx="876" cy="268" r="7"/><circle cx="876" cy="296" r="7"/>
|
||||
<circle cx="876" cy="324" r="7"/><circle cx="876" cy="352" r="7"/><circle cx="876" cy="380" r="7"/>
|
||||
<circle cx="876" cy="408" r="7"/><circle cx="876" cy="436" r="7"/><circle cx="876" cy="464" r="7"/>
|
||||
<circle cx="876" cy="492" r="7"/><circle cx="876" cy="520" r="7"/><circle cx="876" cy="548" r="7"/>
|
||||
<circle cx="876" cy="576" r="7"/><circle cx="876" cy="604" r="7"/><circle cx="876" cy="632" r="7"/>
|
||||
</g>
|
||||
<g fill="#ffffff">
|
||||
<circle cx="714" cy="240" r="3"/><circle cx="714" cy="268" r="3"/><circle cx="714" cy="296" r="3"/>
|
||||
<circle cx="714" cy="324" r="3"/><circle cx="714" cy="352" r="3"/><circle cx="714" cy="380" r="3"/>
|
||||
<circle cx="714" cy="408" r="3"/><circle cx="714" cy="436" r="3"/><circle cx="714" cy="464" r="3"/>
|
||||
<circle cx="714" cy="492" r="3"/><circle cx="714" cy="520" r="3"/><circle cx="714" cy="548" r="3"/>
|
||||
<circle cx="714" cy="576" r="3"/><circle cx="714" cy="604" r="3"/><circle cx="714" cy="632" r="3"/>
|
||||
<circle cx="876" cy="240" r="3"/><circle cx="876" cy="268" r="3"/><circle cx="876" cy="296" r="3"/>
|
||||
<circle cx="876" cy="324" r="3"/><circle cx="876" cy="352" r="3"/><circle cx="876" cy="380" r="3"/>
|
||||
<circle cx="876" cy="408" r="3"/><circle cx="876" cy="436" r="3"/><circle cx="876" cy="464" r="3"/>
|
||||
<circle cx="876" cy="492" r="3"/><circle cx="876" cy="520" r="3"/><circle cx="876" cy="548" r="3"/>
|
||||
<circle cx="876" cy="576" r="3"/><circle cx="876" cy="604" r="3"/><circle cx="876" cy="632" r="3"/>
|
||||
</g>
|
||||
<!-- used pads get a coloured ring -->
|
||||
<g fill="none" stroke-width="2.6">
|
||||
<circle cx="714" cy="380" r="10.5" stroke="#2a9d4a"/>
|
||||
<circle cx="714" cy="464" r="10.5" stroke="#2a9d4a"/>
|
||||
<circle cx="714" cy="576" r="10.5" stroke="#c99700"/>
|
||||
<circle cx="714" cy="604" r="10.5" stroke="#b5179e"/>
|
||||
<circle cx="714" cy="632" r="10.5" stroke="#7209b7"/>
|
||||
<circle cx="876" cy="268" r="10.5" stroke="#22252a"/>
|
||||
<circle cx="876" cy="408" r="10.5" stroke="#00a0b0"/>
|
||||
<circle cx="876" cy="436" r="10.5" stroke="#1f6feb"/>
|
||||
<circle cx="876" cy="604" r="10.5" stroke="#d62828"/>
|
||||
<circle cx="876" cy="632" r="10.5" stroke="#e07b00"/>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- header silkscreen -->
|
||||
<g class="bsilk">
|
||||
<text x="729" y="244">D1</text> <text x="729" y="272">D0</text> <text x="729" y="300">RST</text>
|
||||
<text x="729" y="328">GND</text> <text x="729" y="356">D2</text> <text x="729" y="384">D3</text>
|
||||
<text x="729" y="412">D4</text> <text x="729" y="440">D5</text> <text x="729" y="468">D6</text>
|
||||
<text x="729" y="496">D7</text> <text x="729" y="524">D8</text> <text x="729" y="552">D9</text>
|
||||
<text x="729" y="580">D10</text> <text x="729" y="608">D11</text> <text x="729" y="636">D12</text>
|
||||
<text x="861" y="244" text-anchor="end">VIN</text> <text x="861" y="272" text-anchor="end">GND</text>
|
||||
<text x="861" y="300" text-anchor="end">RST</text> <text x="861" y="328" text-anchor="end">5V</text>
|
||||
<text x="861" y="356" text-anchor="end">A7</text> <text x="861" y="384" text-anchor="end">A6</text>
|
||||
<text x="861" y="412" text-anchor="end">A5</text> <text x="861" y="440" text-anchor="end">A4</text>
|
||||
<text x="861" y="468" text-anchor="end">A3</text> <text x="861" y="496" text-anchor="end">A2</text>
|
||||
<text x="861" y="524" text-anchor="end">A1</text> <text x="861" y="552" text-anchor="end">A0</text>
|
||||
<text x="861" y="580" text-anchor="end">REF</text> <text x="861" y="608" text-anchor="end">3V3</text>
|
||||
<text x="861" y="636" text-anchor="end">D13</text>
|
||||
</g>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- GY-63 #2 - SPI, left -->
|
||||
<!-- =================================================================== -->
|
||||
<g id="gy63-spi" transform="translate(300,470)">
|
||||
<rect x="0" y="0" width="150" height="190" rx="5" fill="#174a91" stroke="#0e2f5e" stroke-width="1.5"/>
|
||||
<rect x="0" y="0" width="150" height="190" rx="5" fill="url(#sheen)"/>
|
||||
<circle cx="26" cy="27" r="14" fill="#c9a227"/><circle cx="26" cy="27" r="10" fill="#ffffff"/>
|
||||
<g fill="#d9b64a">
|
||||
<circle cx="133" cy="24" r="8"/><circle cx="133" cy="47" r="8"/><circle cx="133" cy="70" r="8"/>
|
||||
<circle cx="133" cy="93" r="8"/><circle cx="133" cy="116" r="8"/><circle cx="133" cy="139" r="8"/>
|
||||
<circle cx="133" cy="162" r="8"/>
|
||||
</g>
|
||||
<g fill="#10305f">
|
||||
<circle cx="133" cy="24" r="3.6"/><circle cx="133" cy="47" r="3.6"/><circle cx="133" cy="70" r="3.6"/>
|
||||
<circle cx="133" cy="93" r="3.6"/><circle cx="133" cy="116" r="3.6"/><circle cx="133" cy="139" r="3.6"/>
|
||||
<circle cx="133" cy="162" r="3.6"/>
|
||||
</g>
|
||||
<text class="silk" x="120" y="28" text-anchor="end">PS</text>
|
||||
<text class="silk" x="120" y="51" text-anchor="end">SDO</text>
|
||||
<text class="silk" x="120" y="74" text-anchor="end">CSB</text>
|
||||
<text class="silk" x="120" y="97" text-anchor="end">SDA</text>
|
||||
<text class="silk" x="120" y="120" text-anchor="end">SCL</text>
|
||||
<text class="silk" x="120" y="143" text-anchor="end">GND</text>
|
||||
<text class="silk" x="120" y="166" text-anchor="end">VCC</text>
|
||||
<rect x="36" y="88" width="52" height="42" rx="3" fill="#b9bfc6" stroke="#7e878f" stroke-width="1.2"/>
|
||||
<rect x="40" y="92" width="44" height="34" rx="2" fill="#a8aeb5"/>
|
||||
<circle cx="62" cy="109" r="7" fill="#5c646c"/><circle cx="62" cy="109" r="4" fill="#3a4148"/>
|
||||
<rect x="38" y="156" width="20" height="11" rx="1" fill="#1b1b1b"/>
|
||||
<rect x="66" y="156" width="20" height="11" rx="1" fill="#1b1b1b"/>
|
||||
<rect x="72" y="140" width="14" height="9" rx="1" fill="#d8801f"/>
|
||||
<rect x="36" y="70" width="18" height="10" rx="1" fill="#1b1b1b"/>
|
||||
<rect x="68" y="70" width="18" height="10" rx="1" fill="#1b1b1b"/>
|
||||
<rect x="56" y="52" width="12" height="8" rx="1" fill="#1b1b1b"/>
|
||||
<rect x="74" y="52" width="12" height="8" rx="1" fill="#1b1b1b"/>
|
||||
<text class="silkb" x="14" y="150" transform="rotate(-90,14,150)">MS5611</text>
|
||||
</g>
|
||||
<text class="hdr" x="375" y="452" text-anchor="middle">GY-63 #2 - SPI</text>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- GY-63 #1 - I2C, right -->
|
||||
<!-- =================================================================== -->
|
||||
<g id="gy63-i2c" transform="translate(1150,330)">
|
||||
<rect x="0" y="0" width="150" height="190" rx="5" fill="#174a91" stroke="#0e2f5e" stroke-width="1.5"/>
|
||||
<rect x="0" y="0" width="150" height="190" rx="5" fill="url(#sheen)"/>
|
||||
<circle cx="124" cy="163" r="14" fill="#c9a227"/><circle cx="124" cy="163" r="10" fill="#ffffff"/>
|
||||
<g fill="#d9b64a">
|
||||
<circle cx="17" cy="24" r="8"/><circle cx="17" cy="47" r="8"/><circle cx="17" cy="70" r="8"/>
|
||||
<circle cx="17" cy="93" r="8"/><circle cx="17" cy="116" r="8"/><circle cx="17" cy="139" r="8"/>
|
||||
<circle cx="17" cy="162" r="8"/>
|
||||
</g>
|
||||
<g fill="#10305f">
|
||||
<circle cx="17" cy="24" r="3.6"/><circle cx="17" cy="47" r="3.6"/><circle cx="17" cy="70" r="3.6"/>
|
||||
<circle cx="17" cy="93" r="3.6"/><circle cx="17" cy="116" r="3.6"/><circle cx="17" cy="139" r="3.6"/>
|
||||
<circle cx="17" cy="162" r="3.6"/>
|
||||
</g>
|
||||
<text class="silk" x="30" y="28">VCC</text><text class="silk" x="30" y="51">GND</text>
|
||||
<text class="silk" x="30" y="74">SCL</text><text class="silk" x="30" y="97">SDA</text>
|
||||
<text class="silk" x="30" y="120">CSB</text><text class="silk" x="30" y="143">SDO</text>
|
||||
<text class="silk" x="30" y="166">PS</text>
|
||||
<rect x="62" y="58" width="52" height="42" rx="3" fill="#b9bfc6" stroke="#7e878f" stroke-width="1.2"/>
|
||||
<rect x="66" y="62" width="44" height="34" rx="2" fill="#a8aeb5"/>
|
||||
<circle cx="88" cy="79" r="7" fill="#5c646c"/><circle cx="88" cy="79" r="4" fill="#3a4148"/>
|
||||
<rect x="64" y="22" width="20" height="11" rx="1" fill="#1b1b1b"/>
|
||||
<rect x="92" y="22" width="20" height="11" rx="1" fill="#1b1b1b"/>
|
||||
<rect x="64" y="40" width="14" height="9" rx="1" fill="#d8801f"/>
|
||||
<rect x="64" y="110" width="18" height="10" rx="1" fill="#1b1b1b"/>
|
||||
<rect x="96" y="110" width="18" height="10" rx="1" fill="#1b1b1b"/>
|
||||
<rect x="64" y="128" width="12" height="8" rx="1" fill="#1b1b1b"/>
|
||||
<rect x="82" y="128" width="12" height="8" rx="1" fill="#1b1b1b"/>
|
||||
<text class="silkb" x="140" y="38" transform="rotate(90,140,38)">MS5611</text>
|
||||
</g>
|
||||
<text class="hdr" x="1225" y="312" text-anchor="middle">GY-63 #1 - I2C</text>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- POWER RAILS -->
|
||||
<!-- =================================================================== -->
|
||||
<path class="rail-g" d="M 300,940 L 1290,940"/>
|
||||
<path class="rail-v" d="M 240,988 L 1400,988"/>
|
||||
<text class="mono" x="1302" y="945" font-size="13" fill="#22252a">GND rail</text>
|
||||
<text class="mono" x="1412" y="993" font-size="13" fill="#d62828">3V3 rail</text>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- JUMPER WIRES -->
|
||||
<!-- =================================================================== -->
|
||||
<!-- I2C signals: module #1 -> CN4 A5 / A4 -->
|
||||
<path class="jw c-scl" d="M 1167,400 C 1080,398 970,406 883,408"/>
|
||||
<path class="jw c-sda" d="M 1167,423 C 1080,422 970,432 883,436"/>
|
||||
|
||||
<!-- SPI signals: module #2 -> CN3 D10 / D11 / D12 -->
|
||||
<path class="jw c-cs" d="M 433,540 C 540,545 610,570 707,576"/>
|
||||
<path class="jw c-mosi" d="M 433,563 C 540,570 610,598 707,604"/>
|
||||
<path class="jw c-miso" d="M 433,517 C 560,520 620,614 707,632"/>
|
||||
<!-- SCK has to travel to the far side: CN4 pin 15 -->
|
||||
<path class="jw c-sck" d="M 433,586 C 560,600 520,732 660,742 C 820,752 962,730 962,670 C 962,642 918,632 883,632"/>
|
||||
|
||||
<!-- power taps from the board -->
|
||||
<path class="jw c-v33" d="M 883,604 C 940,616 946,860 1006,988"/>
|
||||
<path class="jw c-gnd" d="M 883,268 C 1006,300 1028,760 1046,940"/>
|
||||
|
||||
<!-- module #1 power and straps -->
|
||||
<path class="jw c-v33" d="M 1167,354 C 1062,404 1010,790 1120,988"/>
|
||||
<path class="jw c-gnd" d="M 1167,377 C 1090,448 1064,824 1176,940"/>
|
||||
<path class="jw c-gnd" d="M 1167,446 C 1122,600 1152,852 1244,940"/>
|
||||
<path class="jw c-v33" d="M 1167,492 C 1206,650 1258,880 1334,988"/>
|
||||
|
||||
<!-- module #2 power and strap -->
|
||||
<path class="jw c-v33" d="M 433,632 C 540,730 520,880 500,988"/>
|
||||
<path class="jw c-gnd" d="M 433,609 C 510,700 410,860 380,940"/>
|
||||
<path class="jw c-gnd" d="M 433,494 C 540,506 560,812 440,940"/>
|
||||
|
||||
<!-- LED drives -->
|
||||
<path class="jw c-led" d="M 707,380 C 600,420 500,652 560,772"/>
|
||||
<path class="jw c-led" d="M 707,464 C 648,512 662,664 700,772"/>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- LEDS -->
|
||||
<!-- =================================================================== -->
|
||||
<g id="led1">
|
||||
<rect x="545" y="772" width="30" height="48" rx="2" fill="#ffffff" stroke="#22252a" stroke-width="2"/>
|
||||
<line x1="560" y1="820" x2="560" y2="842" stroke="#2a9d4a" stroke-width="4.6" stroke-linecap="round"/>
|
||||
<polygon points="542,842 578,842 560,872" fill="#ffffff" stroke="#22252a" stroke-width="2"/>
|
||||
<line x1="540" y1="872" x2="580" y2="872" stroke="#22252a" stroke-width="2.6" stroke-linecap="round"/>
|
||||
<path class="jw c-gnd" d="M 560,872 L 560,940"/>
|
||||
<text class="mono" x="590" y="800" font-size="12">510 R</text>
|
||||
<text x="590" y="862" font-size="12">I2C error</text>
|
||||
</g>
|
||||
<g id="led2">
|
||||
<rect x="685" y="772" width="30" height="48" rx="2" fill="#ffffff" stroke="#22252a" stroke-width="2"/>
|
||||
<line x1="700" y1="820" x2="700" y2="842" stroke="#2a9d4a" stroke-width="4.6" stroke-linecap="round"/>
|
||||
<polygon points="682,842 718,842 700,872" fill="#ffffff" stroke="#22252a" stroke-width="2"/>
|
||||
<line x1="680" y1="872" x2="720" y2="872" stroke="#22252a" stroke-width="2.6" stroke-linecap="round"/>
|
||||
<path class="jw c-gnd" d="M 700,872 L 700,940"/>
|
||||
<text class="mono" x="734" y="800" font-size="12">510 R</text>
|
||||
<text x="734" y="862" font-size="12">SPI error</text>
|
||||
</g>
|
||||
|
||||
<!-- junction dots where a wire really meets a rail -->
|
||||
<g fill="#22252a">
|
||||
<circle cx="1046" cy="940" r="5"/><circle cx="1176" cy="940" r="5"/><circle cx="1244" cy="940" r="5"/>
|
||||
<circle cx="380" cy="940" r="5"/><circle cx="440" cy="940" r="5"/>
|
||||
<circle cx="560" cy="940" r="5"/><circle cx="700" cy="940" r="5"/>
|
||||
</g>
|
||||
<g fill="#d62828">
|
||||
<circle cx="1006" cy="988" r="5"/><circle cx="1120" cy="988" r="5"/>
|
||||
<circle cx="1334" cy="988" r="5"/><circle cx="500" cy="988" r="5"/>
|
||||
</g>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- LEGEND + NOTES -->
|
||||
<!-- =================================================================== -->
|
||||
<rect class="panel" x="60" y="742" width="300" height="176" rx="6"/>
|
||||
<text class="hdr" x="76" y="768">WIRE COLOURS</text>
|
||||
<g stroke-width="4.6" stroke-linecap="round">
|
||||
<line x1="80" y1="790" x2="118" y2="790" stroke="#d62828"/><text x="128" y="795" font-size="12.5">3V3</text>
|
||||
<line x1="80" y1="812" x2="118" y2="812" stroke="#22252a"/><text x="128" y="817" font-size="12.5">GND</text>
|
||||
<line x1="80" y1="834" x2="118" y2="834" stroke="#00a0b0"/><text x="128" y="839" font-size="12.5">SCL</text>
|
||||
<line x1="80" y1="856" x2="118" y2="856" stroke="#1f6feb"/><text x="128" y="861" font-size="12.5">SDA</text>
|
||||
<line x1="80" y1="878" x2="118" y2="878" stroke="#2a9d4a"/><text x="128" y="883" font-size="12.5">LED drive</text>
|
||||
<line x1="212" y1="790" x2="250" y2="790" stroke="#e07b00"/><text x="260" y="795" font-size="12.5">SCK</text>
|
||||
<line x1="212" y1="812" x2="250" y2="812" stroke="#b5179e"/><text x="260" y="817" font-size="12.5">MOSI</text>
|
||||
<line x1="212" y1="834" x2="250" y2="834" stroke="#7209b7"/><text x="260" y="839" font-size="12.5">MISO</text>
|
||||
<line x1="212" y1="856" x2="250" y2="856" stroke="#c99700"/><text x="260" y="861" font-size="12.5">CS</text>
|
||||
</g>
|
||||
|
||||
<rect class="panel" x="60" y="92" width="490" height="336" rx="6"/>
|
||||
<text class="hdr" x="78" y="118">NOTES</text>
|
||||
<text class="note" x="78" y="144">SPI is split across both headers: MOSI / MISO / CS sit on CN3</text>
|
||||
<text class="note" x="78" y="162">(D11 / D12 / D10) but SCK is CN4 pin 15 (D13). One jumper has</text>
|
||||
<text class="note" x="78" y="180">to cross to the far side of the board - that is normal here.</text>
|
||||
<text class="note" x="78" y="206">I2C is wired to A5 / A4 on CN4. Solder bridges SB16 / SB18 are</text>
|
||||
<text class="note" x="78" y="224">closed from the factory, which puts PB6 / PB7 on those pads.</text>
|
||||
<text class="note" x="78" y="242">D5 / D4 on CN3 are the same two nets - either pair works.</text>
|
||||
<text class="note" x="78" y="268">Do not power the sensors from 5V. MS5611 runs on 1.8 - 3.6 V.</text>
|
||||
<text class="note" x="78" y="294">Both LEDs are external and active high: the GPIO drives the</text>
|
||||
<text class="note" x="78" y="312">anode through 510 R. LD3 on the board cannot be used - it</text>
|
||||
<text class="note" x="78" y="330">shares PB3 with SPI1 SCK.</text>
|
||||
<text class="note" x="78" y="356">A dot means the wire connects to the rail. Wires that merely</text>
|
||||
<text class="note" x="78" y="374">cross without a dot are not connected.</text>
|
||||
<text class="note" x="78" y="400">Sensor #2 is drawn turned 180 deg so its pad row faces the board -</text>
|
||||
<text class="note" x="78" y="418">that is why its pads read PS first and VCC last.</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 21 KiB |
BIN
docs/wiring.png
Normal file
BIN
docs/wiring.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 392 KiB |
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