mirror of
https://github.com/deunix-educ/voice-assistant.git
synced 2026-11-26 20:19:43 +01:00
F5 : le même firmware sur l'ESP32-S3 Mini, brochage et environnement PlatformIO par carte
Firmware : le brochage passe dans pins_esp32_wroom.h et pins_esp32_s3_mini.h, choisis par BOARD_ESP32_S3_MINI ; config.h les inclut. S3 Mini : micro 5/6/7, ampli 13/12/11, bouton 10, LED 9 et 8, R503 sur 1/2/4 (GPIO de démarrage, USB et flash évités). USB natif : Serial sans délai d'émission (un port sans terminal ne bloque plus la boucle), attente de 3 s au démarrage, nom de la carte affiché, cause de reset USB reconnue. platformio.ini : environnements esp32dev (défaut) et esp32s3mini (flash 4 Mo, USB-Serial/JTAG). Makefile : FW_ENV pour fw-build, fw-check et fw-upload. Documentation : schéma de câblage de la S3 Mini (docs/wiring-esp32-s3.svg et .png), BROCHAGE §1.5, README FR/EN (procédure par étapes, portail de configuration, tableau de pannes : flash vierge, NO_AP_FOUND, signal trop faible), CONTEXT.md. Essayé sur la carte : téléversement par l'USB natif, portail, R503, micro, ampli, LED, Wi-Fi, MQTT, sessions au doigt et au bouton, droits, doigt inconnu refusé (3 éclairs rouges). server/config.yaml laissé de côté : seule l'adresse locale de l'utilisateur diffère. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,240 @@
|
||||
<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-S3 Mini + INMP441 + MAX98357A + HP + capteur R503 + bouton + LED -->
|
||||
<!-- 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-S3 Mini</text>
|
||||
<text x="30" y="62" class="sub">ESP32-S3 Mini · INMP441 (micro I2S) · MAX98357A (ampli I2S) · haut-parleur · capteur d'empreinte R503 · bouton PTT · LED d'état et de démonstration</text>
|
||||
<text x="700" y="100" class="title" text-anchor="middle">ESP32-S3 Mini (18 broches, USB-C)</text>
|
||||
<rect x="600" y="130" width="200" height="460" rx="6" class="box"/>
|
||||
<rect x="670" y="590" width="60" height="26" rx="4" class="box"/>
|
||||
<text x="700" y="608" class="pin" text-anchor="middle">USB-C</text>
|
||||
<text x="700" y="638" class="sub" text-anchor="middle">vue de dessus, USB-C en bas</text>
|
||||
<text x="700" y="654" class="sub" text-anchor="middle">repérez les numéros sérigraphiés</text>
|
||||
<text x="612" y="170" class="pinused">GPIO 8</text>
|
||||
<line class="tickl" x1="590" y1="166" x2="600" y2="166"/>
|
||||
<text x="612" y="218" class="pinused">GPIO 9</text>
|
||||
<line class="tickl" x1="590" y1="214" x2="600" y2="214"/>
|
||||
<text x="612" y="266" class="pinused">GPIO 10</text>
|
||||
<line class="tickl" x1="590" y1="262" x2="600" y2="262"/>
|
||||
<text x="612" y="314" class="pinused">GPIO 11</text>
|
||||
<line class="tickl" x1="590" y1="310" x2="600" y2="310"/>
|
||||
<text x="612" y="362" class="pinused">GPIO 12</text>
|
||||
<line class="tickl" x1="590" y1="358" x2="600" y2="358"/>
|
||||
<text x="612" y="410" class="pinused">GPIO 13</text>
|
||||
<line class="tickl" x1="590" y1="406" x2="600" y2="406"/>
|
||||
<text x="612" y="458" class="pinused">3V3</text>
|
||||
<line class="tickl" x1="590" y1="454" x2="600" y2="454"/>
|
||||
<text x="612" y="506" class="pinused">GND</text>
|
||||
<line class="tickl" x1="590" y1="502" x2="600" y2="502"/>
|
||||
<text x="612" y="554" class="pinused">5V</text>
|
||||
<line class="tickl" x1="590" y1="550" x2="600" y2="550"/>
|
||||
<text x="788" y="170" class="pinused" text-anchor="end">GPIO 7</text>
|
||||
<line class="tickl" x1="800" y1="166" x2="810" y2="166"/>
|
||||
<text x="788" y="218" class="pinused" text-anchor="end">GPIO 6</text>
|
||||
<line class="tickl" x1="800" y1="214" x2="810" y2="214"/>
|
||||
<text x="788" y="266" class="pinused" text-anchor="end">GPIO 5</text>
|
||||
<line class="tickl" x1="800" y1="262" x2="810" y2="262"/>
|
||||
<text x="788" y="314" class="pinused" text-anchor="end">GPIO 4</text>
|
||||
<line class="tickl" x1="800" y1="310" x2="810" y2="310"/>
|
||||
<text x="788" y="362" class="pin" text-anchor="end">GPIO 3</text>
|
||||
<line class="tickl" x1="800" y1="358" x2="810" y2="358"/>
|
||||
<text x="788" y="410" class="pinused" text-anchor="end">GPIO 2</text>
|
||||
<line class="tickl" x1="800" y1="406" x2="810" y2="406"/>
|
||||
<text x="788" y="458" class="pinused" text-anchor="end">GPIO 1</text>
|
||||
<line class="tickl" x1="800" y1="454" x2="810" y2="454"/>
|
||||
<text x="788" y="506" class="pin" text-anchor="end">RX (GPIO 44)</text>
|
||||
<line class="tickl" x1="800" y1="502" x2="810" y2="502"/>
|
||||
<text x="788" y="554" class="pin" text-anchor="end">TX (GPIO 43)</text>
|
||||
<line class="tickl" x1="800" y1="550" x2="810" y2="550"/>
|
||||
<polyline class="w v33" points="60,700 1340,700"/>
|
||||
<polyline class="w gnd" points="60,740 1340,740"/>
|
||||
<polyline class="w v5" points="60,780 1340,780"/>
|
||||
<text x="60" y="694" class="lbl" fill="#cc2222">3,3 V</text>
|
||||
<text x="60" y="734" class="lbl">GND (masse commune)</text>
|
||||
<text x="60" y="774" class="lbl" fill="#e08214">5 V</text>
|
||||
<rect x="380" y="148" width="160" height="36" rx="6" class="box"/>
|
||||
<text x="460" y="164" class="title" text-anchor="middle" style="font-size:12px">LED démo + 330 Ω</text>
|
||||
<text x="460" y="178" class="sub" text-anchor="middle" style="font-size:10px">« la lumière » (étape 11)</text>
|
||||
<polyline class="w sig" points="590,166 540,166"/>
|
||||
<polyline class="w gnd" points="380,166 350,166 350,176"/>
|
||||
<g stroke="#333333" stroke-width="2.4" fill="none"><line x1="338" y1="176" x2="362" y2="176"/><line x1="343" y1="182" x2="357" y2="182"/><line x1="348" y1="188" x2="352" y2="188"/></g>
|
||||
<text x="298" y="184" class="lbl" style="font-size:11px">GND</text>
|
||||
<rect x="380" y="196" width="160" height="36" rx="6" class="box"/>
|
||||
<text x="460" y="212" class="title" text-anchor="middle" style="font-size:12px">LED d'état + 330 Ω</text>
|
||||
<text x="460" y="226" class="sub" text-anchor="middle" style="font-size:10px">optionnelle</text>
|
||||
<polyline class="w sig" points="590,214 540,214"/>
|
||||
<polyline class="w gnd" points="380,214 350,214 350,224"/>
|
||||
<g stroke="#333333" stroke-width="2.4" fill="none"><line x1="338" y1="224" x2="362" y2="224"/><line x1="343" y1="230" x2="357" y2="230"/><line x1="348" y1="236" x2="352" y2="236"/></g>
|
||||
<text x="298" y="232" class="lbl" style="font-size:11px">GND</text>
|
||||
<rect x="380" y="244" width="160" height="36" rx="6" class="box"/>
|
||||
<text x="460" y="260" class="title" text-anchor="middle" style="font-size:12px">Bouton PTT</text>
|
||||
<text x="460" y="274" class="sub" text-anchor="middle" style="font-size:10px">pull-up interne</text>
|
||||
<polyline class="w sig" points="590,262 540,262"/>
|
||||
<polyline class="w gnd" points="380,262 350,262 350,272"/>
|
||||
<g stroke="#333333" stroke-width="2.4" fill="none"><line x1="338" y1="272" x2="362" y2="272"/><line x1="343" y1="278" x2="357" y2="278"/><line x1="348" y1="284" x2="352" y2="284"/></g>
|
||||
<text x="298" y="280" class="lbl" style="font-size:11px">GND</text>
|
||||
<rect x="300" y="292" width="240" height="148" rx="6" class="box"/>
|
||||
<text x="420" y="360" class="title" text-anchor="middle" style="font-size:15px">MAX98357A</text>
|
||||
<text x="420" y="378" class="sub" text-anchor="middle">ampli classe D mono</text>
|
||||
<text x="420" y="394" class="sub" text-anchor="middle">alimenté en 5 V</text>
|
||||
<text x="528" y="314" class="pinused" text-anchor="end">DIN</text>
|
||||
<polyline class="w data" points="590,310 540,310"/>
|
||||
<text x="528" y="362" class="pinused" text-anchor="end">LRC</text>
|
||||
<polyline class="w ws" points="590,358 540,358"/>
|
||||
<text x="528" y="410" class="pinused" text-anchor="end">BCLK</text>
|
||||
<polyline class="w clk" points="590,406 540,406"/>
|
||||
<text x="312" y="334" class="pinused">+</text>
|
||||
<text x="312" y="394" class="pinused">−</text>
|
||||
<text x="340" y="432" class="pin" text-anchor="middle">GAIN</text>
|
||||
<line class="tickl" x1="340" y1="440" x2="340" y2="450"/>
|
||||
<text x="380" y="432" class="pin" text-anchor="middle">SD</text>
|
||||
<line class="tickl" x1="380" y1="440" x2="380" y2="450"/>
|
||||
<text x="420" y="432" class="pinused" text-anchor="middle">GND</text>
|
||||
<line class="tickl" x1="420" y1="440" x2="420" y2="450"/>
|
||||
<text x="460" y="432" class="pinused" text-anchor="middle">Vin</text>
|
||||
<line class="tickl" x1="460" y1="440" x2="460" y2="450"/>
|
||||
<text x="340" y="464" class="lbl" text-anchor="middle" style="font-size:11px">NC</text>
|
||||
<text x="380" y="464" class="lbl" text-anchor="middle" style="font-size:11px">NC</text>
|
||||
<text x="60" y="466" class="lbl" style="font-size:11px">GAIN : NC → gain 9 dB</text>
|
||||
<text x="60" y="482" class="lbl" style="font-size:11px">SD : NC → ampli actif</text>
|
||||
<polyline class="w gnd" points="420,450 420,740"/>
|
||||
<circle cx="420" cy="740" r="4" fill="#333333"/>
|
||||
<polyline class="w v5" points="460,450 460,780"/>
|
||||
<circle cx="460" cy="780" r="4" fill="#e08214"/>
|
||||
<rect x="60" y="300" width="130" height="120" rx="6" class="box"/>
|
||||
<text x="125" y="338" class="title" text-anchor="middle" style="font-size:15px">HP</text>
|
||||
<text x="125" y="360" class="sub" text-anchor="middle">4 Ω / 3 W</text>
|
||||
<text x="125" y="378" class="sub" text-anchor="middle">(ou 8 Ω / 2 W)</text>
|
||||
<polyline class="w gnd" points="300,330 190,330"/>
|
||||
<polyline class="w gnd" points="300,390 190,390"/>
|
||||
<text x="196" y="322" class="lbl">+</text>
|
||||
<text x="60" y="440" class="lbl" style="font-size:11px">« − » jamais à la masse</text>
|
||||
<polyline class="w v33" points="590,454 490,454 490,700"/>
|
||||
<circle cx="490" cy="700" r="4" fill="#cc2222"/>
|
||||
<polyline class="w gnd" points="590,502 505,502 505,740"/>
|
||||
<circle cx="505" cy="740" r="4" fill="#333333"/>
|
||||
<polyline class="w v5" points="590,550 520,550 520,780"/>
|
||||
<circle cx="520" cy="780" r="4" fill="#e08214"/>
|
||||
<rect x="880" y="134" width="220" height="150" rx="6" class="box"/>
|
||||
<text x="990" y="168" class="title" text-anchor="middle" style="font-size:15px">INMP441</text>
|
||||
<text x="990" y="186" class="sub" text-anchor="middle">micro I2S — entrée audio</text>
|
||||
<text x="990" y="204" class="warn" text-anchor="middle">3,3 V uniquement</text>
|
||||
<text x="892" y="170" class="pinused">SD</text>
|
||||
<polyline class="w data" points="810,166 880,166"/>
|
||||
<text x="892" y="218" class="pinused">WS</text>
|
||||
<polyline class="w ws" points="810,214 880,214"/>
|
||||
<text x="892" y="266" class="pinused">SCK</text>
|
||||
<polyline class="w clk" points="810,262 880,262"/>
|
||||
<text x="1088" y="170" class="pinused" text-anchor="end">VDD</text>
|
||||
<line class="tickl" x1="1100" y1="166" x2="1110" y2="166"/>
|
||||
<text x="1088" y="218" class="pinused" text-anchor="end">GND</text>
|
||||
<line class="tickl" x1="1100" y1="214" x2="1110" y2="214"/>
|
||||
<text x="1088" y="266" class="pinused" text-anchor="end">L/R</text>
|
||||
<line class="tickl" x1="1100" y1="262" x2="1110" y2="262"/>
|
||||
<polyline class="w v33" points="1110,166 1160,166 1160,700"/>
|
||||
<circle cx="1160" cy="700" r="4" fill="#cc2222"/>
|
||||
<polyline class="w gnd" points="1110,214 1145,214 1145,740"/>
|
||||
<circle cx="1145" cy="740" r="4" fill="#333333"/>
|
||||
<polyline class="w gnd" points="1110,262 1130,262 1130,740"/>
|
||||
<circle cx="1130" cy="740" r="4" fill="#333333"/>
|
||||
<text x="1172" y="258" class="lbl" style="font-size:11px">L/R → GND</text>
|
||||
<text x="1172" y="272" class="lbl" style="font-size:11px">(canal gauche)</text>
|
||||
<rect x="880" y="300" width="240" height="292" rx="6" class="box"/>
|
||||
<text x="892" y="314" class="pinused">Bleu · WAKEUP</text>
|
||||
<text x="892" y="328" class="sub" style="font-size:10px">haut au repos, bas si doigt posé</text>
|
||||
<polyline class="w cyan" points="810,310 880,310"/>
|
||||
<text x="892" y="410" class="pinused">Marron · RX</text>
|
||||
<text x="892" y="424" class="sub" style="font-size:10px">le RX du capteur</text>
|
||||
<polyline class="w brn" points="810,406 880,406"/>
|
||||
<text x="892" y="458" class="pinused">Jaune · TX</text>
|
||||
<text x="892" y="472" class="sub" style="font-size:10px">le TX du capteur</text>
|
||||
<polyline class="w yel" points="810,454 880,454"/>
|
||||
<text x="1000" y="508" class="title" text-anchor="middle" style="font-size:15px">Capteur R503</text>
|
||||
<text x="1000" y="526" class="sub" text-anchor="middle">empreinte digitale (Grow)</text>
|
||||
<text x="1000" y="542" class="sub" text-anchor="middle">UART 57600 bauds</text>
|
||||
<text x="1000" y="560" class="warn" text-anchor="middle">alimenté en 3,3 V</text>
|
||||
<text x="930" y="586" class="pinused" text-anchor="middle" style="font-size:11px">Rouge</text>
|
||||
<line class="tickl" x1="930" y1="592" x2="930" y2="602"/>
|
||||
<text x="924" y="618" class="sub" text-anchor="end" style="font-size:10px">3,3 V</text>
|
||||
<text x="990" y="586" class="pinused" text-anchor="middle" style="font-size:11px">Blanc</text>
|
||||
<line class="tickl" x1="990" y1="592" x2="990" y2="602"/>
|
||||
<text x="984" y="618" class="sub" text-anchor="end" style="font-size:10px">3,3VT</text>
|
||||
<text x="1050" y="586" class="pinused" text-anchor="middle" style="font-size:11px">Noir</text>
|
||||
<line class="tickl" x1="1050" y1="592" x2="1050" y2="602"/>
|
||||
<text x="1044" y="618" class="sub" text-anchor="end" style="font-size:10px">GND</text>
|
||||
<polyline class="w v33" points="930,602 930,700"/>
|
||||
<circle cx="930" cy="700" r="4" fill="#cc2222"/>
|
||||
<polyline class="w v33" points="990,602 990,700"/>
|
||||
<circle cx="990" cy="700" r="4" fill="#cc2222"/>
|
||||
<polyline class="w gnd" points="1050,602 1050,740"/>
|
||||
<circle cx="1050" cy="740" r="4" fill="#333333"/>
|
||||
<polyline class="w v5" points="250,780 250,764"/>
|
||||
<polyline class="w gnd" points="250,740 250,756"/>
|
||||
<line x1="234" y1="764" x2="266" y2="764" stroke="#333" stroke-width="3"/>
|
||||
<line x1="234" y1="756" x2="266" y2="756" stroke="#333" stroke-width="3"/>
|
||||
<circle cx="250" cy="780" r="4" fill="#e08214"/>
|
||||
<circle cx="250" cy="740" r="4" fill="#333333"/>
|
||||
<polyline class="w v5" points="310,780 310,764"/>
|
||||
<polyline class="w gnd" points="310,740 310,756"/>
|
||||
<line x1="294" y1="764" x2="326" y2="764" stroke="#333" stroke-width="3"/>
|
||||
<line x1="294" y1="756" x2="326" y2="756" stroke="#333" stroke-width="3"/>
|
||||
<circle cx="310" cy="780" r="4" fill="#e08214"/>
|
||||
<circle cx="310" cy="740" r="4" fill="#333333"/>
|
||||
<text x="222" y="772" class="lbl" style="font-size:13px">+</text>
|
||||
<text x="272" y="758" class="pinused">C1</text>
|
||||
<text x="332" y="758" class="pinused">C2</text>
|
||||
<text x="1020" y="876" class="title" style="font-size:13px">Découplage conseillé</text>
|
||||
<text x="1020" y="900" class="lbl">C1 = 470 µF / 16 V électrolytique, faible ESR</text>
|
||||
<text x="1020" y="920" class="lbl"> polarisé : la bande imprimée est le « − »</text>
|
||||
<text x="1020" y="940" class="lbl">C2 = 100 nF X7R céramique (code 104)</text>
|
||||
<text x="1020" 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">UNE seule broche 3V3, GND et 5V sur la carte :</text>
|
||||
<text x="580" y="952" class="lbl">tout part sur les rails d'une plaque d'essai.</text>
|
||||
<text x="580" y="970" class="lbl">Rien sur GPIO 0, 3, 45, 46 (démarrage), 19, 20 (USB).</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.5</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 16 KiB |
Reference in New Issue
Block a user