Files
voice-assistant/docs/wiring-esp32-wroom-fingerprint.svg
Denis Defolie d29cde2538 Documentation : carte ESP-32S, mesures de l'ampli, diagnostic du R503 sur la WROOM
Essais de la WROOM (repli de la S3) du 2026-10-21.

BROCHAGE.md
- §1.7 carte « ESP-32S » (NodeMCU-32S, 38 broches) : mêmes GPIO que la WROOM,
  environnement esp32dev, broches 6 à 11 interdites. Puce lue par esptool sur la
  carte essayée : ESP32-D0WDQ6 rév. v1.0, deux cœurs (le firmware épingle l'audio
  sur le cœur 1). Table non vérifiée sur une carte réelle, source indiquée.
- §1.6 / §1.7 : toutes les cartes n'ont pas de LED intégrée sur GPIO 2 ; sans
  elle, LED externe (correction d'une affirmation non vérifiée).
- §8 : mesures de l'ampli (8m à 8p, tension de Vin, ligne 16).
- §9 : « aucun son alors que le journal dit jouée » ; R503 « ABSENT » avec la
  ligne de touche vivante et le rouge à 3,3 V (processeur du capteur muet) ;
  réponse 0xE5 en 3 à 4 ms (écho ou parasite sur la ligne).

Schéma de la WROOM : « 30 broches » retiré du titre (le firmware dit 38,
BROCHAGE dit 30), PNG régénéré. README FR/EN : ligne ESP-32S du tableau Matériel.

CONTEXT.md : deux entrées de journal. Résultat de l'essai : micro, ampli, bouton,
Wi-Fi et MQTT fonctionnent ; le R503 est muet (touche GPIO 34 bonne, 3,3 V sur le
rouge, 0 octet à 9 600-115 200 bauds dans les deux sens, GPIO 16/17 jamais hauts),
l'utilisateur le juge mort et va le remplacer. À la livraison : poignée de main,
puis make finger-enroll NAME=Denis ID=1 (capteur neuf vide, config inchangée).
Non prouvé : fil jaune coupé contre processeur mort.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 21:53:01 +02:00

253 lines
18 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 1040" width="1400" height="1040" font-family="DejaVu Sans, Arial, Helvetica, sans-serif">
<!-- Schéma de câblage : ESP32 WROOM + INMP441 + MAX98357A + HP + capteur R503 + bouton + LED (repli de la S3) -->
<!-- Fond blanc explicite : le schéma reste lisible en thème sombre. -->
<rect x="0" y="0" width="1400" height="1040" fill="#ffffff"/>
<style>
.box { fill:#f7f7f4; stroke:#333333; stroke-width:2; }
.title { font-size:17px; font-weight:bold; fill:#1a1a1a; }
.sub { font-size:12px; fill:#555555; }
.pin { font-size:12px; fill:#1a1a1a; }
.pinused { font-size:12px; font-weight:bold; fill:#1a1a1a; }
.lbl { font-size:12px; fill:#333333; }
.tickl { stroke:#999999; stroke-width:1.5; }
.w { fill:none; stroke-width:2.4; stroke-linejoin:round; }
.gnd { stroke:#333333; }
.sig { stroke:#6b6b6b; }
.v33 { stroke:#cc2222; }
.v5 { stroke:#e08214; }
.clk { stroke:#1f6fd0; }
.ws { stroke:#12855d; }
.data { stroke:#8a3fc0; }
.yel { stroke:#d4a800; }
.brn { stroke:#8b5a2b; }
.cyan { stroke:#0aa0d8; }
.warn { font-size:12px; font-weight:bold; fill:#b30000; }
</style>
<text x="30" y="40" class="title" style="font-size:22px">Assistant vocal local — câblage ESP32 WROOM avec le capteur R503</text>
<text x="30" y="62" class="sub">Repli de la S3 · ESP32 WROOM (DevKit V1) · INMP441 (micro I2S) · MAX98357A (ampli I2S) · haut-parleur · capteur d'empreinte R503 · bouton PTT · LED d'état et de démonstration</text>
<text x="830" y="100" class="title" text-anchor="middle">ESP32 WROOM (DevKit V1)</text>
<rect x="700" y="110" width="260" height="590" rx="6" class="box"/>
<text x="830" y="688" class="sub" text-anchor="middle" style="font-size:11px">vue logique — numéros sérigraphiés</text>
<text x="712" y="140" class="pin">EN</text>
<line class="tickl" x1="690" y1="135" x2="700" y2="135"/>
<text x="948" y="140" class="pin" text-anchor="end">GPIO 23</text>
<line class="tickl" x1="960" y1="135" x2="970" y2="135"/>
<text x="712" y="178" class="pin">GPIO 36</text>
<line class="tickl" x1="690" y1="173" x2="700" y2="173"/>
<text x="948" y="178" class="pinused" text-anchor="end">GPIO 22</text>
<line class="tickl" x1="960" y1="173" x2="970" y2="173"/>
<text x="712" y="216" class="pin">GPIO 39</text>
<line class="tickl" x1="690" y1="211" x2="700" y2="211"/>
<text x="948" y="216" class="pin" text-anchor="end">TX0</text>
<line class="tickl" x1="960" y1="211" x2="970" y2="211"/>
<text x="712" y="254" class="pinused">GPIO 34</text>
<line class="tickl" x1="690" y1="249" x2="700" y2="249"/>
<text x="948" y="254" class="pin" text-anchor="end">RX0</text>
<line class="tickl" x1="960" y1="249" x2="970" y2="249"/>
<text x="712" y="292" class="pin">GPIO 35</text>
<line class="tickl" x1="690" y1="287" x2="700" y2="287"/>
<text x="948" y="292" class="pinused" text-anchor="end">GPIO 21</text>
<line class="tickl" x1="960" y1="287" x2="970" y2="287"/>
<text x="712" y="330" class="pin">GPIO 32</text>
<line class="tickl" x1="690" y1="325" x2="700" y2="325"/>
<text x="948" y="330" class="pin" text-anchor="end">GPIO 19</text>
<line class="tickl" x1="960" y1="325" x2="970" y2="325"/>
<text x="712" y="368" class="pinused">GPIO 33</text>
<line class="tickl" x1="690" y1="363" x2="700" y2="363"/>
<text x="948" y="368" class="pin" text-anchor="end">GPIO 18</text>
<line class="tickl" x1="960" y1="363" x2="970" y2="363"/>
<text x="712" y="406" class="pinused">GPIO 25</text>
<line class="tickl" x1="690" y1="401" x2="700" y2="401"/>
<text x="948" y="406" class="pin" text-anchor="end">GPIO 5</text>
<line class="tickl" x1="960" y1="401" x2="970" y2="401"/>
<text x="712" y="444" class="pinused">GPIO 26</text>
<line class="tickl" x1="690" y1="439" x2="700" y2="439"/>
<text x="948" y="444" class="pinused" text-anchor="end">GPIO 17 (TX2)</text>
<line class="tickl" x1="960" y1="439" x2="970" y2="439"/>
<text x="712" y="482" class="pinused">GPIO 27</text>
<line class="tickl" x1="690" y1="477" x2="700" y2="477"/>
<text x="948" y="482" class="pinused" text-anchor="end">GPIO 16 (RX2)</text>
<line class="tickl" x1="960" y1="477" x2="970" y2="477"/>
<text x="712" y="520" class="pinused">GPIO 14</text>
<line class="tickl" x1="690" y1="515" x2="700" y2="515"/>
<text x="948" y="520" class="pinused" text-anchor="end">GPIO 4</text>
<line class="tickl" x1="960" y1="515" x2="970" y2="515"/>
<text x="712" y="558" class="pin">GPIO 12</text>
<line class="tickl" x1="690" y1="553" x2="700" y2="553"/>
<text x="948" y="558" class="pinused" text-anchor="end">GPIO 2</text>
<line class="tickl" x1="960" y1="553" x2="970" y2="553"/>
<text x="712" y="596" class="pin">GPIO 13</text>
<line class="tickl" x1="690" y1="591" x2="700" y2="591"/>
<text x="948" y="596" class="pin" text-anchor="end">GPIO 15</text>
<line class="tickl" x1="960" y1="591" x2="970" y2="591"/>
<text x="712" y="634" class="pin">GND</text>
<line class="tickl" x1="690" y1="629" x2="700" y2="629"/>
<text x="948" y="634" class="pinused" text-anchor="end">GND</text>
<line class="tickl" x1="960" y1="629" x2="970" y2="629"/>
<text x="712" y="672" class="pinused">VIN (5 V)</text>
<line class="tickl" x1="690" y1="667" x2="700" y2="667"/>
<text x="948" y="672" class="pinused" text-anchor="end">3V3</text>
<line class="tickl" x1="960" y1="667" x2="970" y2="667"/>
<rect x="60" y="190" width="240" height="200" rx="6" class="box"/>
<text x="180" y="218" class="title" text-anchor="middle" style="font-size:15px">INMP441</text>
<text x="180" y="236" class="sub" text-anchor="middle">micro I2S — entrée audio</text>
<text x="180" y="254" class="warn" text-anchor="middle">3,3 V uniquement</text>
<text x="288" y="280" class="pinused" text-anchor="end">SD</text>
<line class="tickl" x1="300" y1="276" x2="310" y2="276"/>
<text x="288" y="308" class="pinused" text-anchor="end">SCK</text>
<line class="tickl" x1="300" y1="304" x2="310" y2="304"/>
<text x="288" y="336" class="pinused" text-anchor="end">WS</text>
<line class="tickl" x1="300" y1="332" x2="310" y2="332"/>
<polyline class="w data" points="300,276 670,276 670,363 690,363"/>
<polyline class="w clk" points="300,304 655,304 655,401 690,401"/>
<polyline class="w ws" points="300,332 640,332 640,439 690,439"/>
<text x="68" y="384" class="pinused">L/R</text>
<line class="tickl" x1="80" y1="390" x2="80" y2="400"/>
<text x="96" y="384" class="pinused">GND</text>
<line class="tickl" x1="110" y1="390" x2="110" y2="400"/>
<text x="136" y="384" class="pinused">VDD</text>
<line class="tickl" x1="150" y1="390" x2="150" y2="400"/>
<polyline class="w gnd" points="80,390 80,790"/>
<polyline class="w gnd" points="110,390 110,790"/>
<polyline class="w v33" points="150,390 150,750"/>
<text x="48" y="378" class="lbl" transform="rotate(-90 48 378)" style="font-size:11px">L/R → GND (canal gauche)</text>
<circle cx="80" cy="790" r="4" fill="#333333"/><circle cx="110" cy="790" r="4" fill="#333333"/><circle cx="150" cy="750" r="4" fill="#cc2222"/>
<rect x="380" y="440" width="200" height="180" rx="6" class="box"/>
<text x="470" y="498" class="title" text-anchor="middle" style="font-size:15px">MAX98357A</text>
<text x="470" y="516" class="sub" text-anchor="middle">ampli classe D mono</text>
<text x="470" y="532" class="sub" text-anchor="middle">alimenté en 5 V</text>
<text x="568" y="481" class="pinused" text-anchor="end">BCLK</text>
<line class="tickl" x1="580" y1="477" x2="590" y2="477"/>
<text x="568" y="519" class="pinused" text-anchor="end">LRC</text>
<line class="tickl" x1="580" y1="515" x2="590" y2="515"/>
<text x="568" y="557" class="pinused" text-anchor="end">DIN</text>
<line class="tickl" x1="580" y1="553" x2="590" y2="553"/>
<polyline class="w clk" points="580,477 690,477"/>
<polyline class="w ws" points="580,515 690,515"/>
<polyline class="w data" points="580,553 600,553"/>
<text x="606" y="550" class="lbl" style="font-size:11px">GPIO 22</text>
<text x="606" y="563" class="lbl" style="font-size:11px">(côté droit)</text>
<text x="392" y="494" class="pinused">+</text><text x="392" y="554" class="pinused">−</text>
<line class="tickl" x1="370" y1="490" x2="380" y2="490"/><line class="tickl" x1="370" y1="550" x2="380" y2="550"/>
<text x="420" y="614" class="pin" text-anchor="middle">GAIN</text>
<line class="tickl" x1="420" y1="620" x2="420" y2="630"/>
<text x="460" y="614" class="pin" text-anchor="middle">SD</text>
<line class="tickl" x1="460" y1="620" x2="460" y2="630"/>
<text x="510" y="614" class="pinused" text-anchor="middle">GND</text>
<line class="tickl" x1="510" y1="620" x2="510" y2="630"/>
<text x="550" y="614" class="pinused" text-anchor="middle">Vin</text>
<line class="tickl" x1="550" y1="620" x2="550" y2="630"/>
<text x="420" y="648" class="lbl" text-anchor="middle" style="font-size:11px">NC</text>
<text x="460" y="648" class="lbl" text-anchor="middle" style="font-size:11px">NC</text>
<text x="200" y="650" class="lbl" style="font-size:11px">GAIN : NC → gain 9 dB</text>
<text x="200" y="666" class="lbl" style="font-size:11px">SD : NC → ampli actif</text>
<polyline class="w gnd" points="510,630 510,790"/><circle cx="510" cy="790" r="4" fill="#333333"/>
<polyline class="w v5" points="550,630 550,830"/><circle cx="550" cy="830" r="4" fill="#e08214"/>
<rect x="200" y="470" width="130" height="100" rx="6" class="box"/>
<text x="265" y="508" class="title" text-anchor="middle" style="font-size:15px">HP</text>
<text x="265" y="530" class="sub" text-anchor="middle">4 Ω / 3 W</text>
<text x="265" y="548" class="sub" text-anchor="middle">(ou 8 Ω / 2 W)</text>
<polyline class="w gnd" points="370,490 330,490"/><polyline class="w gnd" points="370,550 330,550"/>
<text x="336" y="484" class="lbl">+</text>
<text x="200" y="590" class="lbl" style="font-size:11px">« − » jamais à la masse</text>
<polyline class="w v5" points="405,830 405,814"/>
<polyline class="w gnd" points="405,790 405,806"/>
<line x1="389" y1="814" x2="421" y2="814" stroke="#333" stroke-width="3"/>
<line x1="389" y1="806" x2="421" y2="806" stroke="#333" stroke-width="3"/>
<circle cx="405" cy="830" r="4" fill="#e08214"/><circle cx="405" cy="790" r="4" fill="#333333"/>
<text x="377" y="822" class="lbl" style="font-size:13px">+</text>
<text x="427" y="808" class="pinused">C1</text>
<polyline class="w v5" points="480,830 480,814"/>
<polyline class="w gnd" points="480,790 480,806"/>
<line x1="464" y1="814" x2="496" y2="814" stroke="#333" stroke-width="3"/>
<line x1="464" y1="806" x2="496" y2="806" stroke="#333" stroke-width="3"/>
<circle cx="480" cy="830" r="4" fill="#e08214"/><circle cx="480" cy="790" r="4" fill="#333333"/>
<text x="502" y="808" class="pinused">C2</text>
<polyline class="w v5" points="690,667 675,667 675,830"/><circle cx="675" cy="830" r="4" fill="#e08214"/>
<polyline class="w v33" points="970,667 985,667 985,750"/><circle cx="985" cy="750" r="4" fill="#cc2222"/>
<polyline class="w gnd" points="970,629 1005,629 1005,790"/><circle cx="1005" cy="790" r="4" fill="#333333"/>
<polyline class="w data" points="970,173 1000,173"/>
<text x="1008" y="170" class="lbl" style="font-size:11px">DIN de l'ampli</text>
<text x="1008" y="184" class="lbl" style="font-size:11px">(à gauche de la carte)</text>
<rect x="1090" y="267" width="160" height="40" rx="6" class="box"/>
<text x="1170" y="284" class="title" text-anchor="middle" style="font-size:12px">LED démo + 330 Ω</text>
<text x="1170" y="298" class="sub" text-anchor="middle" style="font-size:10px">« la lumière » (étape 11)</text>
<polyline class="w sig" points="970,287 1090,287"/>
<polyline class="w gnd" points="1250,287 1275,287 1275,299"/>
<g stroke="#333333" stroke-width="2.4" fill="none"><line x1="1263" y1="299" x2="1287" y2="299"/><line x1="1268" y1="305" x2="1282" y2="305"/><line x1="1273" y1="311" x2="1277" y2="311"/></g>
<text x="1292" y="309" class="lbl" style="font-size:11px">GND</text>
<rect x="1090" y="370" width="250" height="220" rx="6" class="box"/>
<text x="1102" y="405" class="pinused">Bleu · WAKEUP</text>
<text x="1102" y="443" class="pinused">Marron · RX</text>
<text x="1102" y="481" class="pinused">Jaune · TX</text>
<text x="1328" y="405" class="pinused" text-anchor="end">Rouge · 3,3 V</text>
<text x="1328" y="443" class="pinused" text-anchor="end">Blanc · 3,3VT</text>
<text x="1328" y="481" class="pinused" text-anchor="end">Noir · GND</text>
<text x="1215" y="520" class="title" text-anchor="middle" style="font-size:15px">Capteur R503</text>
<text x="1215" y="538" class="sub" text-anchor="middle">empreinte digitale (Grow)</text>
<text x="1215" y="554" class="sub" text-anchor="middle">UART 57600 bauds</text>
<text x="1215" y="570" class="warn" text-anchor="middle">alimenté en 3,3 V</text>
<text x="1215" y="584" class="sub" text-anchor="middle" style="font-size:10px">WAKEUP : haut = repos, bas = doigt</text>
<polyline class="w yel" points="970,477 1090,477"/>
<polyline class="w brn" points="970,439 1090,439"/>
<polyline class="w cyan" points="1065,401 1090,401"/>
<text x="1086" y="372" class="lbl" text-anchor="end" style="font-size:11px">GPIO 34</text>
<text x="1086" y="385" class="lbl" text-anchor="end" style="font-size:11px">(côté gauche)</text>
<text x="658" y="253" class="lbl" text-anchor="end" style="font-size:11px">fil bleu du R503 (WAKEUP) : le capteur est à droite de la carte</text>
<polyline class="w cyan" points="690,249 665,249"/>
<polyline class="w v33" points="1340,401 1376,401 1376,750"/><circle cx="1376" cy="750" r="4" fill="#cc2222"/>
<polyline class="w v33" points="1340,439 1364,439 1364,750"/><circle cx="1364" cy="750" r="4" fill="#cc2222"/>
<polyline class="w gnd" points="1340,477 1352,477 1352,790"/><circle cx="1352" cy="790" r="4" fill="#333333"/>
<polyline class="w sig" points="970,515 1050,515 1050,658 1090,658"/>
<polyline class="w sig" points="970,553 1030,553 1030,708 1090,708"/>
<rect x="1090" y="640" width="160" height="36" rx="6" class="box"/>
<text x="1170" y="656" class="title" text-anchor="middle" style="font-size:12px">Bouton PTT</text>
<text x="1170" y="670" class="sub" text-anchor="middle" style="font-size:10px">pull-up interne</text>
<rect x="1090" y="690" width="160" height="36" rx="6" class="box"/>
<text x="1170" y="706" class="title" text-anchor="middle" style="font-size:12px">LED d'état + 330 Ω</text>
<text x="1170" y="720" class="sub" text-anchor="middle" style="font-size:10px">optionnelle (LED intégrée)</text>
<polyline class="w gnd" points="1250,658 1272,658 1272,664"/>
<g stroke="#333333" stroke-width="2.4" fill="none"><line x1="1260" y1="664" x2="1284" y2="664"/><line x1="1265" y1="670" x2="1279" y2="670"/><line x1="1270" y1="676" x2="1274" y2="676"/></g>
<text x="1290" y="676" class="lbl" style="font-size:11px">GND</text>
<polyline class="w gnd" points="1250,708 1272,708 1272,714"/>
<g stroke="#333333" stroke-width="2.4" fill="none"><line x1="1260" y1="714" x2="1284" y2="714"/><line x1="1265" y1="720" x2="1279" y2="720"/><line x1="1270" y1="726" x2="1274" y2="726"/></g>
<text x="1290" y="726" class="lbl" style="font-size:11px">GND</text>
<polyline class="w v33" points="50,750 1385,750"/>
<polyline class="w gnd" points="50,790 1385,790"/>
<polyline class="w v5" points="50,830 1385,830"/>
<text x="10" y="744" class="lbl" fill="#cc2222">3,3 V</text>
<text x="10" y="784" class="lbl">GND</text>
<text x="10" y="824" class="lbl" fill="#e08214">5 V</text>
<text x="1000" y="876" class="title" style="font-size:13px">Découplage conseillé (C1, C2)</text>
<text x="1000" y="900" class="lbl">C1 = 470 µF / 16 V électrolytique, faible ESR</text>
<text x="1000" y="920" class="lbl"> polarisé : la bande imprimée est le « − »</text>
<text x="1000" y="940" class="lbl">C2 = 100 nF X7R céramique (code 104)</text>
<text x="1000" y="960" class="lbl">les deux à moins de 3 cm des broches de l'ampli</text>
<rect x="30" y="852" width="520" height="140" rx="6" fill="#ffffff" stroke="#bbbbbb" stroke-width="1.5"/>
<text x="44" y="876" class="title" style="font-size:14px">Légende</text>
<line class="w v5" x1="44" y1="896" x2="80" y2="896"/>
<text x="88" y="900" class="lbl">5 V</text>
<line class="w v33" x1="44" y1="918" x2="80" y2="918"/>
<text x="88" y="922" class="lbl">3,3 V</text>
<line class="w gnd" x1="44" y1="940" x2="80" y2="940"/>
<text x="88" y="944" class="lbl">masse / logique</text>
<line class="w clk" x1="230" y1="896" x2="266" y2="896"/>
<text x="274" y="900" class="lbl">horloge bit (SCK / BCLK)</text>
<line class="w ws" x1="230" y1="918" x2="266" y2="918"/>
<text x="274" y="922" class="lbl">mot (WS / LRC)</text>
<line class="w data" x1="230" y1="940" x2="266" y2="940"/>
<text x="274" y="944" class="lbl">données audio (SD / DIN)</text>
<line class="w yel" x1="44" y1="962" x2="80" y2="962"/><line class="w brn" x1="80" y1="962" x2="116" y2="962"/><line class="w cyan" x1="116" y1="962" x2="152" y2="962"/>
<text x="160" y="966" class="lbl">fils du R503 : jaune, marron, bleu</text>
<circle cx="52" cy="984" r="4" fill="#333333"/>
<text x="64" y="988" class="lbl" style="font-size:11px">connexion électrique — deux fils qui se croisent sans point ne sont pas reliés.</text>
<text x="580" y="876" class="warn">Masse commune obligatoire entre tous les modules.</text>
<text x="580" y="898" class="lbl">Câblez hors tension (USB débranché).</text>
<text x="580" y="916" class="lbl">INMP441 et R503 en 3,3 V : le 5 V les détruit.</text>
<text x="580" y="934" class="lbl">TX et RX sont croisés : le TX du capteur va sur GPIO 16 (RX2).</text>
<text x="580" y="952" class="lbl">GPIO 34 : entrée seule, sans résistance interne.</text>
<text x="580" y="970" class="lbl">Éviter GPIO 0, 12, 15 (démarrage), 6 à 11 (flash), 1 et 3 (USB-série).</text>
<text x="580" y="988" class="lbl">Fils I2S de 15 cm max, loin des fils du haut-parleur.</text>
<text x="580" y="1006" class="lbl">Alimentation 5 V / 2 A. Détails : docs/BROCHAGE.md §1.3b et §1.6</text>
</svg>