Drogheda/03-Architecture-Hardware/circuitikz-wiring/Drogheda_Diagrama-Unico-Proto.tex

507 lines
35 KiB
TeX
Raw 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.

% Drogheda_Diagrama-Unico-Proto.tex — UN solo diagrama de conexiones del protoboard
% HBOX Watchdog v3 (DEV) · bloques 1–11 en una sola hoja, todos los símbolos.
% Fuente de verdad: watchdog-electrical-design-state.md §2 + Guía v3.0 (Bloques 1–11).
% Autocontenido: pdflatex Drogheda_Diagrama-Unico-Proto.tex
\documentclass[border=14pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{circuitikz}
\usepackage{helvet}\renewcommand{\familydefault}{\sfdefault}
\usetikzlibrary{calc,arrows.meta}
\definecolor{net5V}{HTML}{C62828}
\definecolor{net3V3}{HTML}{EF6C00}
\definecolor{netGND}{HTML}{212121}
\definecolor{netSig}{HTML}{1565C0}
\definecolor{netAna}{HTML}{2E7D32}
\definecolor{netIgn}{HTML}{800020}
\definecolor{Indigo}{HTML}{2C3C5B}
\ctikzset{bipoles/length=0.75cm, font=\footnotesize}
\newcommand{\flagg}[4]{\node[circle,fill=#1,text=white,inner sep=1.6pt,font=\bfseries\tiny] (#2) at (#3) {#4};}
\newcommand{\ant}[2]{\draw (#1,#2) -- ++(0,0.34) -- ++(-0.18,0.22); \draw (#1,#2) ++(0,0.34) -- ++(0.18,0.22);}
\newcommand{\bnum}[2]{\node[circle,draw=Indigo,text=Indigo,inner sep=1.2pt,font=\bfseries\tiny] at (#1) {#2};}
% pinout strip helpers
\definecolor{cafe}{HTML}{8B4513}
\definecolor{dorado}{HTML}{DAA520}
\newcommand{\csq}[1]{\fcolorbox{black!45}{#1}{\phantom{\rule{0.12cm}{0.12cm}}}}
\begin{document}
\begin{tikzpicture}[every node/.append style={font=\footnotesize}]
% ================= TITULO + LEYENDA =================
\node[anchor=north west,font=\bfseries\large,Indigo] at (-20.4,13.6)
{HBOX Watchdog v3 — Diagrama ÚNICO de conexiones del protoboard (bloques 1–11)};
\node[anchor=north west,font=\scriptsize,gray] at (-20.4,12.9)
{Todo el sistema en una hoja, para verificación rápida · Modo B dibujado (Modo A: ver Avisos) · pinouts de componentes abajo · Proyecto Drogheda / Helgen · v1.2 · 2026-07-20};
\begin{scope}[shift={(-20.4,12.1)}]
\foreach \i/\c/\t in {0/net5V/{5 V},1.6/net3V3/{3.3 V},3.2/netGND/GND,4.6/netSig/{Señal},6.2/netAna/{Analógico},8.6/netIgn/{Ign. / 24 V}}{
\draw[\c,line width=2pt] (\i,0)--(\i+0.45,0); \node[anchor=west,font=\scriptsize] at (\i+0.5,0){\t};}
\node[anchor=west,font=\scriptsize] at (11.6,0){$\bullet$ = unión · cruce sin punto = NO se conectan · SAL/3V3/VEH: misma red donde se repite la etiqueta};
\end{scope}
% ================= RIEL MAIN5V =================
\draw[net5V,line width=1.2pt] (-8.6,10.6) -- (23.0,10.6);
\node[net5V,font=\bfseries,anchor=south west] at (-8.6,10.65){MAIN5V};
\node[net5V,font=\bfseries,anchor=south east] at (23.0,10.65){MAIN5V};
\bnum{-9.0,10.6}{1}
% cap de reserva del riel
\fill[net5V] (-7.4,10.6) circle(1.4pt);
\draw (-7.4,10.6) to[C,l=$100\,\mu$F$+$100 nF] (-7.4,9.1) node[ground]{};
% ================= MCU BLACKPILL =================
\node[draw,fill=blue!8,rounded corners,inner sep=0] (MCU) at (2.3,0.9) [minimum width=4.6cm,minimum height=13cm]{};
\node[font=\bfseries\small,Indigo,rotate=90] at (2.3,2.6){Blackpill STM32F411 (WeAct)};
\node[font=\tiny,gray,rotate=90] at (2.9,2.6){3V3 = salida del regulador del módulo};
% --- pin 5V (borde superior) ---
\draw[net5V,line width=1pt] (1.6,7.4) -- (1.6,10.6); \fill[net5V] (1.6,10.6) circle(1.4pt);
\node[font=\bfseries\tiny,anchor=north] at (1.6,7.3){5V};
% --- GND (borde inferior) ---
\draw[netGND,line width=1pt] (0.8,-5.6) -- (0.8,-6.1) node[ground]{};
\node[font=\bfseries\tiny,anchor=south] at (0.8,-5.5){GND};
% --- 3V3 (borde izq) ---
\draw[net3V3,line width=1pt] (0,6.6) -- (-0.9,6.6); \flagg{net3V3}{f3a}{-1.15,6.6}{3V3}
\node[font=\bfseries\tiny,anchor=west] at (0.05,6.6){3V3};
% --- pines izquierda ---
\foreach \y/\nm in {4.4/PA0,3.2/PA4,1.8/PA5,0.0/PA7,-1.6/PB1,-3.0/PA8,-4.8/NRST}{
\node[font=\bfseries\tiny,anchor=west] at (0.05,\y){\nm};}
% --- pines derecha ---
\foreach \y/\nm in {6.6/PA1,5.6/PA2,5.0/PA3,4.2/PA10,3.4/PA9,2.2/PB6,1.6/PB7,0.4/PB0,-1.2/PA6}{
\node[font=\bfseries\tiny,anchor=east] at (4.55,\y){\nm};}
% --- pines borde inferior (gauge) ---
\foreach \x/\nm in {1.8/PB12,2.6/PB13,3.4/PB14,4.2/PB15}{
\node[font=\bfseries\tiny,anchor=south,rotate=90] at (\x,-5.45){\nm};}
% ================= BLOQUE 10 · FUENTE + RESPALDO (izquierda arriba) =================
\bnum{-19.0,9.7}{10}
\node[draw,rounded corners,minimum width=2.3cm,minimum height=1.5cm,align=center,font=\scriptsize] (SRC) at (-18.0,8.6){Fuente 5 V\\«vehículo»\\SD-15B-05 / banco};
\draw[netGND] (-18.0,7.85) -- (-18.0,7.4) node[ground]{};
% fila VEH -> D1 -> SYS -> corte -> riel
\draw[net5V,line width=1pt] (-16.8,8.6) -- (-15.0,8.6);
\node[net5V,font=\bfseries\tiny,anchor=south] at (-16.1,8.65){VEH 5V};
\draw[net5V] (-15.0,8.6) to[D,l={\tiny 1N5819}] (-13.2,8.6);
\draw[net5V,line width=1pt] (-13.2,8.6) -- (-10.6,8.6);
\fill[net5V] (-10.6,8.6) circle(1.5pt);
\node[net5V,font=\bfseries\tiny,anchor=south] at (-10.6,8.72){nodo SYS};
\draw[net5V,line width=1pt] (-10.6,8.6) -- (-10.0,8.6);
\draw[net5V] (-10.0,8.6) to[nos] (-9.0,8.6);
\node[font=\tiny,anchor=south,align=center] at (-9.5,9.0){apagador de\\corte (SPST)};
\draw[net5V,line width=1.2pt] (-9.0,8.6) -- (-8.6,8.6) -- (-8.6,10.6);
% --- compuerta de carga CHRG_RUN (PA8) ---
\node[pmos,anchor=gate] (MC) at (-16.4,6.0){};
\node[font=\tiny,anchor=west,align=left] at (-15.5,6.0){IRF9540N (P)};
\node[font=\tiny,gray,anchor=south west] at ($(MC.source)+(0.06,0.0)$){S};
\node[font=\tiny,gray,anchor=north west] at ($(MC.drain)+(0.06,0.0)$){D};
\node[font=\tiny,gray,anchor=south] at ($(MC.gate)+(0.18,0.08)$){G};
\draw[net5V,line width=0.9pt] (MC.source) -- (MC.source |- 0,8.6);
\fill[net5V] (MC.source |- 0,8.6) circle(1.4pt);
\draw[netSig] (MC.gate) -- (-17.6,6.0); \fill (-17.6,6.0) circle(1.3pt);
\draw (-17.6,6.0) to[R,l=$10$k] (-17.6,7.4);
\draw (-17.6,7.4) -- (MC.source |- 0,7.4); \fill (MC.source |- 0,7.4) circle(1.3pt);
\node[npn,anchor=collector] (QC) at (-17.6,5.3){};
\node[font=\tiny,anchor=west] at (-17.25,4.75){2N3904};
\node[font=\tiny,gray,anchor=south west] at ($(QC.collector)+(0.05,0.0)$){C};
\node[font=\tiny,gray,anchor=north west] at ($(QC.emitter)+(0.05,0.0)$){E};
\node[font=\tiny,gray,anchor=south] at ($(QC.base)+(0.14,0.08)$){B};
\draw[netSig] (QC.collector) -- (-17.6,6.0);
\draw[netSig] (QC.base) to[R,l_=$1$k] (-20.2,4.75 |- QC.base);
\draw[netGND] (QC.emitter) -- ++(0,-0.35) node[ground]{};
\node[font=\tiny,Indigo,align=left,anchor=west] at (-20.2,3.05){\textbf{CHRG\_RUN (PA8):} ALTO = carga\\MCU ausente = SIN carga (inverso al PCB)};
% --- TP4056 ---
\node[draw,rounded corners,fill=blue!6,minimum width=1.8cm,minimum height=1.2cm,font=\tiny,align=center] (TP) at (-15.5,3.8){TP4056\\cargador};
\draw[net5V,line width=0.9pt] (MC.drain) -- (MC.drain |- 0,4.4);
\node[font=\tiny,anchor=south west] at (-15.55,4.42){IN$+$};
\draw[netGND] (-16.4,3.8) -- (-16.9,3.8) -- (-16.9,3.4) node[ground]{};
\node[font=\tiny,anchor=west] at (-16.38,3.58){IN$-$};
% B+ hacia bus
\draw[net5V,line width=0.9pt] (-15.2,3.2) -- (-15.2,2.6);
\node[font=\tiny,anchor=north west] at (-15.18,3.2){B$+$};
\node[font=\tiny,gray,align=left,anchor=north west] at (-16.6,2.0){NTC del kit: SIN USAR\\(módulo sin pin TEMP;\\en PCB $\rightarrow$ LTC4040)};
% --- bus BAT+ ---
\draw[net5V,line width=1pt] (-15.2,2.6) -- (-9.1,2.6);
\node[net5V,font=\bfseries\tiny,anchor=south] at (-12.6,2.65){BAT$+$};
% bateria
\fill[net5V] (-13.6,2.6) circle(1.4pt);
\draw (-13.6,2.6) to[battery1] (-13.6,0.8);
\draw[netGND] (-13.6,0.8) -- (-13.6,0.55) node[ground]{};
\node[font=\tiny,anchor=west,align=left] at (-13.35,1.6){18650 1S4P\\$\sim$12 Ah};
% --- MT3608 ---
\node[draw,rounded corners,fill=blue!6,minimum width=1.9cm,minimum height=1.2cm,font=\tiny,align=center] (MT) at (-10.9,3.8){MT3608\\elevador $\rightarrow$5 V};
\fill[net5V] (-11.4,2.6) circle(1.4pt);
\draw[net5V,line width=0.9pt] (-11.4,2.6) -- (-11.4,3.2);
\node[font=\tiny,anchor=south west] at (-11.38,3.22){IN$+$};
\draw[netGND] (-11.85,3.8) -- (-12.35,3.8) -- (-12.35,3.35) node[ground]{};
\draw[net5V,line width=0.9pt] (-10.6,4.4) -- (-10.6,5.2);
\draw[net5V] (-10.6,5.2) to[D,l={\tiny 1N5819}] (-10.6,6.6);
\draw[net5V,line width=0.9pt] (-10.6,6.6) -- (-10.6,8.6);
\node[font=\tiny,anchor=west] at (-10.35,5.9){aj. $<$ 5 V veh.};
% ================= BLOQUE 4 · SENSADO =================
\bnum{-9.0,6.4}{4}
% PA0 (BAT_SENSE): bus -> riser -> divisor vertical en x=-2.8
\fill[net5V] (-9.1,2.6) circle(1.4pt);
\draw[netAna,line width=0.9pt] (-9.1,2.6) -- (-9.1,6.0) -- (-2.8,6.0);
\node[netAna,font=\tiny,anchor=south] at (-6.2,6.05){BAT\_SENSE ($\div$2)};
\draw (-2.8,6.0) to[R,l=$10$k] (-2.8,4.4);
\fill (-2.8,4.4) circle(1.4pt);
\draw (-2.8,4.4) to[R,l=$10$k] (-2.8,3.0);
\draw[netGND] (-2.8,3.0) -- (-2.8,2.7) node[ground]{};
\draw[netAna,line width=0.9pt] (-2.8,4.4) -- (0,4.4);
% PA4 (5V_SENSE): divisor vertical en x=-6.0
\flagg{net5V}{fveh}{-6.0,4.9}{VEH}
\draw (-6.0,4.7) to[R,l_=$10$k] (-6.0,3.2);
\fill (-6.0,3.2) circle(1.4pt);
\draw (-6.0,3.2) to[R,l_=$10$k] (-6.0,1.7);
\draw[netGND] (-6.0,1.7) -- (-6.0,1.45) node[ground]{};
\draw[netAna,line width=0.9pt] (-6.0,3.2) -- (0,3.2);
\node[netAna,font=\tiny,anchor=south] at (-4.0,3.25){5V\_SENSE ($\div$2)};
% PA5 (ignicion): DFR1015
\node[netIgn,font=\bfseries\tiny,align=right,anchor=east] at (-8.8,2.0){Ignición\\12--24 V\\(GX16 p3)};
\draw[netIgn,line width=1pt] (-8.75,2.0) -- (-8.2,2.0);
\node[draw,rounded corners,minimum width=1.6cm,minimum height=1.2cm,font=\tiny,align=center] (DFR) at (-7.4,1.8){DFR1015\\$\rightarrow$ 5 V};
\node[font=\tiny,anchor=south west] at (-8.18,2.02){IN$+$};
\draw[netGND] (-8.2,1.4) -- (-8.5,1.4) -- (-8.5,1.0) node[ground]{};
\draw[net5V,line width=0.9pt] (-6.6,1.8) -- (-5.6,1.8);
\draw (-5.6,1.8) to[R,l=$100\,\Omega$] (-3.9,1.8);
\draw[netGND] (-6.6,1.4) -- (-6.35,1.4) -- (-6.35,1.0) node[ground]{};
\draw[netSig,line width=0.9pt] (-3.9,1.8) -- (0,1.8);
\fill (-3.1,1.8) circle(1.3pt); \fill (-2.2,1.8) circle(1.3pt);
% clamp BAT54 hacia 3V3 (dibujado hacia abajo; cátodo en 3V3)
\draw (-3.1,1.8) to[D] (-3.1,0.85);% ánodo en PA5, cátodo hacia 3V3 (clamp Schottky)
\flagg{net3V3}{f3c}{-3.1,0.55}{3V3}
\node[font=\tiny,anchor=east,align=right] at (-3.35,1.05){1N5819\\\textcolor{gray}{(PCB: BAT54)}};
\draw (-2.2,1.8) to[C,l=100 nF] (-2.2,0.9);
\draw[netGND] (-2.2,0.9) -- (-2.2,0.7) node[ground]{};
\node[font=\tiny,gray,anchor=north west,align=left] at (-8.8,0.55){banco: apagador 3V3$\rightarrow$PA5\\simula la ignición (sin DFR1015)};
\node[font=\tiny,netSig,anchor=south] at (-1.1,1.85){digital, sin divisor};
% ================= BLOQUE 11 · LM35 (PA7) + NTC (PB1) =================
\bnum{-7.6,-0.35}{11}
\node[draw,rounded corners,minimum width=1.4cm,minimum height=1.5cm,font=\bfseries\scriptsize,align=center] (LM) at (-5.9,-1.25){LM35};
\node[font=\tiny,anchor=north] at (-5.9,-1.5){TO-92};
\draw[netAna,line width=0.9pt] (-5.9,-0.5) -- (-5.9,0.0) -- (0,0.0);
\node[font=\tiny,anchor=west] at (-5.8,-0.22){OUT};
\node[netAna,font=\tiny,anchor=south] at (-1.6,0.08){10 mV/°C · aire/tarjeta};
\draw[net5V,line width=0.9pt] (-6.6,-0.8) -- (-7.4,-0.8);
\node[net5V,font=\bfseries\tiny,anchor=south east] at (-7.05,-0.7){MAIN5V};
\fill[net5V] (-7.4,-0.8) circle(1.2pt);
\draw (-7.4,-0.8) to[C,l_=100 nF] (-7.4,-1.7);
\draw[netGND] (-7.4,-1.7) -- (-7.4,-1.9) node[ground]{};
\draw[netGND] (-5.9,-2.0) -- (-5.9,-2.35) node[ground]{};
% NTC -> PB1 (columna x=-3.3)
\flagg{net3V3}{f3d}{-3.3,-0.45}{3V3}
\draw (-3.3,-0.65) to[R,l=$10$k 1\%] (-3.3,-1.6);
\fill (-3.3,-1.6) circle(1.4pt);
\draw (-3.3,-1.6) to[thR,l=NTC $10$k] (-3.3,-2.8);
\draw[netGND] (-3.3,-2.8) -- (-3.3,-3.0) node[ground]{};
\draw[netAna,line width=0.9pt] (-3.3,-1.6) -- (0,-1.6);
\node[netAna,font=\tiny,anchor=south] at (-1.55,-1.5){al punto caliente (celda/módem)};
\draw (-3.3,-1.6) -- (-4.3,-1.6); \draw (-4.3,-1.6) to[C] (-4.3,-2.6);
\node[font=\tiny,anchor=east] at (-4.45,-2.1){100 nF};
\draw[netGND] (-4.3,-2.6) -- (-4.3,-2.8) node[ground]{};
% ================= PA8 (ruta larga a la compuerta de carga) =================
\draw[netSig,line width=0.9pt] (0,-3.0) -- (-1.3,-3.0) -- (-1.3,-3.4) -- (-20.2,-3.4) -- (-20.2,4.75 |- QC.base);
\node[netSig,font=\tiny,anchor=south] at (-11.0,-3.35){PA8 = CHRG\_RUN $\rightarrow$ compuerta de carga (Bloque 10)};
% ================= BLOQUE 7 · RESET + GAUGE =================
\bnum{-3.5,-4.3}{7}
\draw[netSig,line width=0.9pt] (0,-4.8) -- (-1.2,-4.8);
\draw (-1.2,-4.8) to[push button] (-2.6,-4.8);
\draw[netGND] (-2.6,-4.8) -- (-2.6,-5.3) node[ground]{};
\node[font=\tiny,anchor=north,align=center] at (-1.9,-5.35){reset $\rightarrow$ GND};
% gauge x4
\foreach \x in {1.8,2.6,3.4,4.2}{
\draw[netSig,line width=0.8pt] (\x,-5.6) -- (\x,-6.0);
\draw (\x,-6.0) to[R] (\x,-7.3);
\draw (\x,-7.3) to[leD] (\x,-8.4);
\draw[netGND] (\x,-8.4) -- (\x,-8.6) node[ground]{};}
\node[font=\tiny,anchor=east] at (1.7,-6.65){$330\,\Omega$};
\node[font=\tiny,anchor=north,align=center] at (3.0,-8.9){gauge de batería $\times$4 · quedan APAGADOS hasta firmware};
% ================= BLOQUE 3 · INTERRUPTOR DE CARGA (PA1 -> SAL) =================
\bnum{5.4,7.3}{3}
\draw[netSig,line width=0.9pt] (4.6,6.6) -- (5.1,6.6);
\draw (5.1,6.6) to[R,l=$1$k] (7.1,6.6);
\node[npn,anchor=base] (Q1) at (7.6,6.6){};
\node[font=\tiny,anchor=west] at (8.5,6.3){2N3904};
\node[font=\tiny,gray,anchor=south west] at ($(Q1.collector)+(0.05,0.0)$){C};
\node[font=\tiny,gray,anchor=north west] at ($(Q1.emitter)+(0.05,0.0)$){E};
\node[font=\tiny,gray,anchor=south] at ($(Q1.base)+(0.14,0.08)$){B};
\draw[netSig] (7.1,6.6) -- (Q1.base);
\draw[netGND] (Q1.emitter) -- ++(0,-0.35) node[ground]{};
\draw[netSig] (Q1.collector) -- (Q1.collector |- 0,8.4); \fill (Q1.collector |- 0,8.4) circle(1.4pt);
\draw (Q1.collector |- 0,8.4) to[R,l=$10$k] (Q1.collector |- 0,10.6);
\fill[net5V] (Q1.collector |- 0,10.6) circle(1.4pt);
\node[pmos,anchor=gate] (M1) at (9.9,8.4){};
\node[font=\tiny,anchor=south,align=center] at (10.6,9.35){IRF9540N (P)};
\node[font=\tiny,gray,anchor=south west] at ($(M1.source)+(0.06,0.0)$){S};
\node[font=\tiny,gray,anchor=north west] at ($(M1.drain)+(0.06,0.0)$){D};
\node[font=\tiny,gray,anchor=south] at ($(M1.gate)+(0.18,0.08)$){G};
\draw[netSig] (Q1.collector |- 0,8.4) -- (M1.gate);
\draw[net5V,line width=0.9pt] (M1.source) -- (M1.source |- 0,10.6);
\fill[net5V] (M1.source |- 0,10.6) circle(1.4pt);
\draw[net5V,line width=1pt] (M1.drain) -- (M1.drain |- 0,7.6);
\coordinate (SALn) at (M1.drain |- 0,7.6);
\fill[net5V] (SALn) circle(1.5pt);
\node[net5V,font=\bfseries\tiny,anchor=south west] at ($(SALn)+(0.1,0.04)$){SAL = 5 V conmutado del stack};
% ================= BLOQUES 8/9 · STACK RTK (Modo B dibujado) =================
\bnum{15.35,7.85}{8}
\node[font=\bfseries\tiny,Indigo,anchor=west] at (15.55,7.85){/ 9};
% linea SAL
\draw[net5V,line width=1pt] (SALn) -- (20.0,7.6);
% F9P
\node[draw,fill=blue!7,rounded corners,inner sep=0] (F9P) at (15.5,4.6) [minimum width=4cm,minimum height=5.2cm]{};
\node[font=\bfseries\scriptsize,align=center] at (15.5,6.6){simpleRTK2B Pro\\(ZED-F9P)};
\node[font=\tiny,align=center,Indigo] at (15.5,2.55){switch XBee $\rightarrow$ \textbf{UART1}\\(socket del Pro VACÍO)};
% 5V top
\fill[net5V] (14.2,7.6) circle(1.4pt);
\draw[net5V,line width=0.9pt] (14.2,7.6) -- (14.2,7.2);
\node[font=\bfseries\tiny,anchor=north] at (14.2,7.15){5V};
% IOREF / GND izq
\node[font=\bfseries\tiny,anchor=west] at (13.55,6.4){IOREF};
\draw[net3V3,line width=0.9pt] (13.5,6.4) -- (12.8,6.4); \flagg{net3V3}{f3b}{12.5,6.4}{3V3}
\node[font=\bfseries\tiny,anchor=west] at (13.55,5.6){GND};
\draw[netGND,line width=0.9pt] (13.5,5.6) -- (12.9,5.6) -- (12.9,5.15) node[ground]{};
% RX1 / TX1
\node[font=\bfseries\tiny,anchor=west] at (13.55,4.6){RX1};
\node[font=\bfseries\tiny,anchor=west] at (13.55,4.0){TX1};
\draw[netSig,line width=0.9pt] (4.6,5.6) -- (12.3,5.6) -- (12.3,4.6) -- (13.5,4.6);
\draw[netSig,line width=0.9pt] (4.6,5.0) -- (11.9,5.0) -- (11.9,4.0) -- (13.5,4.0);
\node[netSig,font=\tiny,anchor=south] at (8.0,5.62){PA2 $\rightarrow$ RX1 (NMEA, cruce TX/RX)};
\node[netSig,font=\tiny,anchor=north] at (6.8,4.97){PA3 $\leftarrow$ TX1};
% antena GNSS (borde derecho)
\draw (17.5,6.6) -- (18.4,6.6); \ant{18.4}{6.6}
\node[font=\tiny,anchor=north west] at (18.4,6.35){Ant. GNSS (SMA)};
% TX2 / RX2 (borde inferior)
\node[font=\bfseries\tiny,anchor=south] at (14.6,2.05){TX2};
\node[font=\bfseries\tiny,anchor=south] at (16.4,2.05){RX2};
% TX2 -> PA10
\draw[netSig,line width=0.9pt] (14.6,2.0) -- (14.6,1.2) -- (11.5,1.2) -- (11.5,4.2) -- (4.6,4.2);
\node[netSig,font=\tiny,anchor=south] at (8.6,4.25){F9P TX2 $\rightarrow$ PA10 (subida al MCU · Modo B)};
% pull-up 22k DFU en PA10
\fill (11.5,3.0) circle(1.3pt);
\draw (11.5,3.0) to[R,l=$22$k] (12.6,3.0); \flagg{net3V3}{f3e}{12.9,3.0}{3V3}
\node[font=\tiny,gray,anchor=north] at (11.9,2.62){DFU-safe};
% PA9 -> DIN
\draw[netSig,line width=0.9pt] (4.6,3.4) -- (5.5,3.4) -- (5.5,3.9) -- (11.1,3.9) -- (11.1,0.8) -- (19.6,0.8) -- (19.6,3.3) -- (20.0,3.3);
\node[netSig,font=\tiny,anchor=north] at (9.3,3.85){PA9 $\rightarrow$ 4G DIN (releva + inyecta \$PHLG)};
% XBee 4G
\node[draw,fill=black!8,rounded corners,inner sep=0] (G4) at (21.7,3.7) [minimum width=3.4cm,minimum height=3.8cm]{};
\node[font=\bfseries\scriptsize,align=center] at (21.7,4.6){4G NTRIP Master\\(XBee)};
\node[font=\tiny,align=center] at (21.4,3.85){en breakout BOB-08276\\(paso 2.0 mm $\rightarrow$ 2.54)};
\node[font=\bfseries\tiny,anchor=west] at (20.05,3.3){3 RX (DIN)};
\node[font=\bfseries\tiny,anchor=west] at (20.05,2.5){2 TX (DOUT)};
\node[font=\bfseries\tiny,anchor=east] at (23.35,4.9){1 VCC};
\node[font=\bfseries\tiny,anchor=east] at (23.35,4.2){14 VREF};
\node[font=\bfseries\tiny,anchor=east] at (23.35,3.6){6 V\_USB};
\node[font=\bfseries\tiny,anchor=east] at (23.35,3.0){7 USB$+$};
\node[font=\bfseries\tiny,anchor=east] at (23.35,2.4){8 USB$-$};
% pines obligatorios del borde inferior: RESET · LED · GND x4 · ON/OFF (leyenda abajo)
\node[font=\bfseries\tiny,anchor=south] at (20.4,1.9){5};
\node[font=\bfseries\tiny,anchor=south] at (21.2,1.9){13};
\node[font=\bfseries\tiny,anchor=south] at (22.0,1.9){G};
\node[font=\bfseries\tiny,anchor=south] at (22.8,1.9){20};
\draw[netSig,line width=0.8pt] (20.4,1.8) -- (20.4,1.35);
\draw (20.4,1.35) to[push button] (20.4,0.45);
\draw[netGND] (20.4,0.45) -- (20.4,0.25) node[ground]{};
\draw[netSig,line width=0.8pt] (21.2,1.8) -- (21.2,1.45);
\draw (21.2,1.45) to[R] (21.2,0.55);
\draw (21.2,0.55) to[leD] (21.2,-0.35);
\draw[netGND] (21.2,-0.35) -- (21.2,-0.5) node[ground]{};
\node[font=\tiny,anchor=west] at (21.4,1.0){1k};
\draw[netGND,line width=0.9pt] (22.0,1.8) -- (22.0,1.3) node[ground]{};
\draw[netGND,line width=0.9pt] (22.8,1.8) -- (22.8,1.3) node[ground]{};
\node[font=\tiny,anchor=north west,align=left] at (19.9,-0.95){\textbf{5}$=$RESET (al aire $=$ ON) · \textbf{13}$=$LED (tenue, 1.8 V)\\\textbf{G}$=$GND, pines \textbf{4·10·11·15 (los cuatro)} · \textbf{20}$=$ON/OFF$\rightarrow$\textbf{GND $=$ siempre ON}};
% USB (solo configuracion desde la PC)
\node[draw,rounded corners,fill=blue!6,inner sep=0] (USBB) at (26.0,3.1) [minimum width=2.6cm,minimum height=2.2cm]{};
\node[font=\bfseries\tiny,align=center] at (26.0,3.8){Breakout USB-C\\(con 5.1k en CC)};
\node[font=\tiny,align=center,Indigo] at (26.0,2.6){$\rightarrow$ PC\\SOLO configuración};
\node[font=\bfseries\tiny,anchor=west] at (24.75,3.6){VBUS};
\node[font=\bfseries\tiny,anchor=west] at (24.75,3.0){D$+$};
\node[font=\bfseries\tiny,anchor=west] at (24.75,2.4){D$-$};
\draw[net5V,line width=0.9pt] (23.4,3.6) -- (24.7,3.6);
\draw[netSig,line width=0.9pt] (23.4,3.0) -- (24.7,3.0);
\draw[netSig,line width=0.9pt] (23.4,2.4) -- (24.7,2.4);
\node[net5V,font=\tiny,anchor=south] at (24.05,3.65){5 V};
\draw[netGND,line width=0.9pt] (26.0,2.0) -- (26.0,1.55) node[ground]{};
% DOUT -> RX2 directo (RTCM3)
\draw[netSig,densely dashed,line width=1pt,-{Stealth}] (20.0,2.5) -- (19.2,2.5) -- (19.2,1.5) -- (16.4,1.5) -- (16.4,2.0);
\node[netSig,font=\tiny,anchor=north] at (17.9,1.4){RTCM3 \textbf{DIRECTO} $\rightarrow$ F9P RX2 (no pasa por el MCU)};
% antenas LTE
\draw (21.0,5.6) -- (21.0,5.9); \ant{21.0}{5.9}
\draw (22.4,5.6) -- (22.4,5.9); \ant{22.4}{5.9}
\node[font=\tiny,anchor=south,align=center] at (21.4,6.8){2$\times$ ant. LTE (¡antes de energizar!)\\$\rightarrow$ servidor NTRIP};
% buck MODEM 3.3V
\node[draw,rounded corners,fill=blue!6,minimum width=2.6cm,minimum height=1.2cm,font=\tiny,align=center] (BKM) at (21.8,8.6){LM2596/MP1584\\«MODEM 3.3 V» (aj.)};
\draw[net5V,line width=0.9pt] (20.0,7.6) -- (20.0,8.6) -- (20.5,8.6);
\draw[netGND] (21.2,8.0) -- (21.2,7.5) node[ground]{};
\draw[net3V3,line width=0.9pt] (23.1,8.6) -- (23.9,8.6) -- (23.9,4.2) -- (23.4,4.2);
\fill[net3V3] (23.9,4.9) circle(1.3pt);
\draw[net3V3,line width=0.9pt] (23.9,4.9) -- (23.4,4.9);
\node[net3V3,font=\tiny,anchor=west,align=left] at (24.0,4.55){VREF(14) $\rightarrow$ VCC\\\textbf{obligatorio}};
\node[net3V3,font=\bfseries\tiny,anchor=west] at (24.0,8.6){3.3 V — NUNCA 5 V};
\fill[net3V3] (23.9,6.4) circle(1.4pt);
\draw (23.9,6.4) -- (24.7,6.4); \draw (24.7,6.4) to[C,l=$100\,\mu$F$+$100 nF] (24.7,5.3);
\draw[netGND] (24.7,5.3) -- (24.7,5.1) node[ground]{};
\node[font=\tiny,gray,anchor=west,align=left] at (24.0,7.5){junto al pin VCC\\(picos LTE hasta \textbf{2 A})};
% ================= BLOQUE 6 · AHT10 (I2C1) =================
\bnum{7.5,3.35}{6}
\node[draw,rounded corners,inner sep=0] (AHT) at (8.85,1.9) [minimum width=2.1cm,minimum height=2.2cm]{};
\node[font=\bfseries\scriptsize,align=center] at (8.85,2.55){AHT10\\(T $+$ RH)};
\node[font=\tiny] at (9.0,2.0){0x38 fija};
\node[font=\tiny,Indigo,align=center] at (8.95,1.2){SOLO él en el bus\\3V3 — nunca 5 V};
\node[font=\bfseries\tiny,anchor=west] at (7.85,2.2){SCL}; \node[font=\bfseries\tiny,anchor=west] at (7.85,1.6){SDA};
\draw[netSig,line width=0.9pt] (4.6,2.2) -- (7.8,2.2);
\draw[netSig,line width=0.9pt] (4.6,1.6) -- (7.8,1.6);
\fill (6.6,2.2) circle(1.3pt); \draw (6.6,2.2) to[R,l_=$4.7$k] (6.6,3.4); \flagg{net3V3}{f3f}{6.6,3.6}{3V3}
\fill (7.5,1.6) circle(1.3pt); \draw (7.5,1.6) to[R,l_=$4.7$k] (7.5,0.4); \flagg{net3V3}{f3g}{7.5,0.18}{3V3}
\draw[net3V3,line width=0.9pt] (9.9,2.6) -- (10.5,2.6); \flagg{net3V3}{f3h}{10.75,2.6}{3V3}
\node[font=\bfseries\tiny,anchor=east] at (9.85,2.6){VCC};
\node[font=\bfseries\tiny,anchor=west] at (9.0,0.62){GND};
\draw[netGND,line width=0.9pt] (8.85,0.8) -- (8.85,0.42) node[ground]{};
% ================= BLOQUE 2 · LED PB0 =================
\bnum{5.3,-0.25}{2}
\draw[netSig,line width=0.9pt] (4.6,0.4) -- (5.1,0.4);
\draw (5.1,0.4) to[R,l=$330\,\Omega$] (6.6,0.4);
\draw (6.6,0.4) to[leD] (6.6,-0.7);
\draw[netGND] (6.6,-0.7) -- (6.6,-0.9) node[ground]{};
\node[font=\tiny,anchor=west] at (6.95,-0.75){LED estado};
% ================= BLOQUE 5 · VENTILADOR =================
\bnum{5.6,-1.9}{5}
\draw[netSig,line width=0.9pt] (4.6,-1.2) -- (6.1,-1.2) -- (6.1,-2.6);
\draw (6.1,-2.6) to[R,l=$220$] (7.9,-2.6);
\fill (8.3,-2.6) circle(1.3pt);
\draw[netSig] (7.9,-2.6) -- (8.3,-2.6);
\node[nmos,anchor=gate] (M2) at (8.9,-2.6){};
\node[font=\tiny,anchor=west] at (10.0,-3.3){IRLZ44N (N, lógico)};
\node[font=\tiny,gray,anchor=south west] at ($(M2.drain)+(0.06,0.0)$){D};
\node[font=\tiny,gray,anchor=north west] at ($(M2.source)+(0.06,0.0)$){S};
\node[font=\tiny,gray,anchor=south] at ($(M2.gate)+(0.18,0.08)$){G};
\draw (8.3,-2.6) to[R,l_=$100$k] (8.3,-4.2);
\draw[netGND] (8.3,-4.2) -- (8.3,-4.4) node[ground]{};
\draw[netGND] (M2.source) -- (M2.source |- 0,-3.7) node[ground]{};
\draw[netGND,line width=0.9pt] (M2.drain) -- (M2.drain |- 0,-1.5);
\draw[netGND,line width=0.9pt] (M2.drain |- 0,-1.5) -- (11.65,-1.5);
\node[draw,circle,minimum size=1.1cm,font=\scriptsize] (FAN) at (12.2,-1.5){VENT};
\node[font=\tiny,anchor=north] at (12.2,-2.1){2 hilos};
\node[font=\tiny,anchor=north west] at (11.6,-1.55){$-$};
\node[net5V,font=\tiny,anchor=south west] at (12.28,-0.98){$+$};
\draw[net5V,line width=0.9pt] (FAN.north) -- (12.2,-0.3);
\draw[net5V,line width=1pt] (10.4,-0.3) -- (13.8,-0.3);
\node[net5V,font=\bfseries\tiny,anchor=south] at (11.2,-0.25){5 V VENT (separado)};
\fill (10.4,-1.5) circle(1.3pt); \fill[net5V] (10.4,-0.3) circle(1.3pt); \fill[net5V] (12.2,-0.3) circle(1.3pt);
\draw (10.4,-1.5) to[D,l={\tiny 1N5819}] (10.4,-0.3);
\node[draw,rounded corners,fill=blue!6,minimum width=2.3cm,minimum height=1.2cm,font=\tiny,align=center] (BKV) at (15.0,-0.3){LM2596 «VENT»\\24 $\rightarrow$ \textbf{5.0 V} (aj.)};
\draw[netGND] (15.0,-0.9) -- (15.0,-1.35) node[ground]{};
% --- 5b · Protección de polaridad 24 V: Q10 (P-FET) + DzG 15 V + 100k ---
\node[font=\bfseries\tiny,Indigo,anchor=south] at (17.1,0.05){5b · protección 24 V};
\draw[netIgn,line width=0.9pt] (16.15,-0.3) -- (19.0,-0.3);
\node[netIgn,font=\tiny,anchor=south] at (17.5,-0.28){24 V protegido};
\node[pmos,anchor=source,rotate=0] (QX) at (19.0,-0.3){};
\node[font=\tiny,anchor=west,align=left] at (19.5,-0.55){Q10\\IRF9540N (P)};
\node[font=\tiny,gray,anchor=south east] at (19.0,-0.25){S};
\node[font=\tiny,gray,anchor=north west] at ($(QX.drain)+(0.05,0.0)$){D};
\node[font=\tiny,gray,anchor=east] at ($(QX.gate)+(-0.05,0.15)$){G};
\draw[netIgn,line width=0.9pt] (QX.drain) -- (QX.drain |- 0,-1.7) -- (19.4,-1.7) -- (19.4,-2.1);
\node[netIgn,font=\bfseries\tiny,anchor=north] at (19.4,-2.2){Fuente 24 V (banco / gabinete)};
\draw[netSig] (QX.gate) -- (17.3,-0.85 |- QX.gate); \fill (17.3,-0.85 |- QX.gate) circle(1.3pt);
\draw (17.3,-0.85 |- QX.gate) to[R,l_=$100$k] (17.3,-2.35);
\draw[netGND] (17.3,-2.35) -- (17.3,-2.5) node[ground]{};
\draw (17.3,-0.85 |- QX.gate) to[zD,l={\tiny DzG 15 V}] (17.3,-0.3);
\fill[netIgn] (17.3,-0.3) circle(1.3pt);
\node[font=\tiny,gray,anchor=north west,align=left] at (16.2,-2.75){si conectas la fuente al revés, Q10 corta\\— protege buck y DFR · DzG $=$ 1N4744A 1 W};
% ================= AVISOS =================
\node[draw,rounded corners,fill=gray!6,anchor=north west,align=left,font=\scriptsize,text width=19.6cm,inner sep=7pt] at (-20.4,-5.9){%
\textbf{\textcolor{Indigo}{Avisos (verificación):}}\\[2pt]
$\bullet$ \textbf{Modo A (por defecto):} el 4G va \textbf{dentro} del socket XBee del Pro (switch $\rightarrow$ UART2); PA9, PA10, la buck «MODEM 3.3 V» y el breakout \textbf{no se usan}; todo lo demás igual. El diagrama dibuja el \textbf{Modo B} (diagnóstico \$PHLG).\\
$\bullet$ \textbf{Apagado = estado seguro:} el stack arranca \textbf{OFF} (pull-up de 10 k en la compuerta del IRF9540N); PA1 en ALTO lo enciende.\\
$\bullet$ \textbf{Nunca 5 V} a PA0/PA4/PA7/PB1 sin divisor ni a \textbf{PA5} (digital, máx 3.3 V — clamp Schottky \textbf{1N5819} del kit a 3V3; en el PCB es BAT54). \textbf{IOREF $\rightarrow$ 3V3 es obligatorio} (sin él, los UART del Pro no responden).\\
$\bullet$ \textbf{4G en breakout — pines obligatorios:} \textbf{VREF(14)$\rightarrow$VCC} y \textbf{ON/OFF(20)$\rightarrow$GND} (sin ellos el módem puede no encender) $+$ \textbf{los 4 GND (4·10·11·15)}. \textbf{VCC $=$ 3.3 V, NUNCA 5 V} (buck dedicada desde SAL, picos \textbf{2 A}: reiniciar el stack reinicia el módem). USB (V\_USB$=$VBUS 5 V $+$ D$\pm$) \textbf{solo para configurar} desde la PC. En Modo A el socket del Pro resuelve todos estos pines.\\
$\bullet$ \textbf{AHT10: solo él} en I\textsuperscript{2}C1 y solo a 3V3.\\
$\bullet$ Ventilador en \textbf{5 V separado} (LM2596 ajustado a 5.0 V con multímetro); IRLZ44N debe ser \textbf{lógico}. MT3608 ajustado \textbf{apenas por debajo} del 5 V del vehículo (prioridad al vehículo). Electrolíticos \textbf{con polaridad}.\\
$\bullet$ Blackpill: \textbf{USB y riel 5 V nunca al mismo tiempo}. Bench: bloques 1+3 bastan para el arranque; agrega el resto en orden.\\
$\bullet$ \textbf{Disipadores TO-220} (perfboard 10$\times$10): ponlos en \textbf{Q10} y el \textbf{IRF9540N del interruptor de carga}; opcional en IRLZ44N y el IRF9540N de carga de batería. \textbf{La tab metálica $=$ DRAIN} — si dos comparten disipador, usa mica/aislante. Plano sugerido 10$\times$10: \textbf{potencia a la izquierda · Blackpill al centro · stack RTK a la derecha} (igual que esta hoja); módulos sobre headers hembra, nunca soldados directo.};
% ================= FRANJA DE PINOUTS (para el técnico de soldadura) =================
\begin{scope}[shift={(0,-0.75)}]
\node[anchor=north west,font=\bfseries\small,Indigo] at (-20.4,-9.8)
{Pinouts — identifica CADA pieza antes de soldar (vistas de frente / superior)};
% --- A) 4G NTRIP Master (XBee) 20 pines, vista superior ---
\node[draw,rounded corners,fill=gray!5,inner sep=5pt,anchor=north west] (PXB) at (-20.4,-10.4) [minimum width=6.6cm,minimum height=4.6cm]{};
\node[anchor=north west,font=\bfseries\tiny,Indigo] at (-20.2,-10.55){4G NTRIP Master (XBee) — vista superior, antenas arriba};
\node[draw,fill=black!12,rounded corners,inner sep=0] at (-17.05,-12.85) [minimum width=1.5cm,minimum height=3.3cm]{};
\foreach \i/\txt/\st in {1/{\textbf{1 VCC 3.3--3.6 V (2 A pk)}}/b,2/{2 TX (DOUT)}/n,3/{3 RX (DIN)}/n,4/{\textbf{4 GND}}/b,5/{5 RESET (al aire $=$ ON)}/n,6/{6 V\_USB (5 V $=$ VBUS)}/n,7/{7 USB$+$}/n,8/{8 USB$-$}/n,9/{9 DTR — no conectar}/n,10/{\textbf{10 GND}}/b}{
\draw ($(-17.8,-11.35)+(0,-0.31*\i+0.31)$) -- ++(-0.28,0);
\node[font=\tiny,anchor=east] at ($(-18.12,-11.35)+(0,-0.31*\i+0.31)$) {\txt};}
\foreach \i/\txt in {1/{\textbf{20 ON/OFF $\rightarrow$ GND $=$ ON}},2/{19 —},3/{18 —},4/{17 —},5/{16 RTS — no conectar},6/{\textbf{15 GND}},7/{\textbf{14 VREF $\rightarrow$ VCC}},8/{13 LED (1.8 V)},9/{12 CTS — no conectar},10/{\textbf{11 GND}}}{
\draw ($(-16.3,-11.35)+(0,-0.31*\i+0.31)$) -- ++(0.28,0);
\node[font=\tiny,anchor=west] at ($(-15.98,-11.35)+(0,-0.31*\i+0.31)$) {\txt};}
% --- B) TO-92 ---
\node[draw,rounded corners,fill=gray!5,inner sep=5pt,anchor=north west] at (-13.5,-10.4) [minimum width=3.6cm,minimum height=4.6cm]{};
\node[anchor=north west,font=\bfseries\tiny,Indigo] at (-13.3,-10.55){TO-92 (parte plana AL FRENTE)};
\node[draw,fill=black!12,rounded corners=2pt] at (-12.3,-11.6) [minimum width=1.1cm,minimum height=0.55cm]{};
\foreach \x/\l in {-12.65/E,-12.3/B,-11.95/C}{ \draw (\x,-11.87) -- (\x,-12.15); \node[font=\bfseries\tiny,anchor=north] at (\x,-12.17){\l}; }
\node[font=\tiny,anchor=west] at (-11.6,-11.7){\textbf{2N3904}};
\node[draw,fill=black!12,rounded corners=2pt] at (-12.3,-13.2) [minimum width=1.1cm,minimum height=0.55cm]{};
\foreach \x/\l in {-12.8/{$+$V},-12.3/OUT,-11.8/G}{ \draw (\x,-13.47) -- (\x,-13.75); \node[font=\bfseries\tiny,anchor=north] at (\x,-13.77){\l}; }
\node[font=\tiny,anchor=west] at (-11.6,-13.3){\textbf{LM35}};
\node[font=\tiny,gray,anchor=north west,align=left] at (-13.3,-14.15){si lo volteas, el orden se invierte};
% --- C) TO-220 ---
\node[draw,rounded corners,fill=gray!5,inner sep=5pt,anchor=north west] at (-9.6,-10.4) [minimum width=3.7cm,minimum height=4.6cm]{};
\node[anchor=north west,font=\bfseries\tiny,Indigo] at (-9.4,-10.55){TO-220 (frente; tab metálica atrás)};
\node[draw,fill=black!30] at (-8.1,-11.35) [minimum width=1.15cm,minimum height=0.3cm]{};
\node[draw,fill=black!12] at (-8.1,-11.9) [minimum width=1.15cm,minimum height=0.8cm]{};
\foreach \x/\l in {-8.45/G,-8.1/D,-7.75/S}{ \draw (\x,-12.3) -- (\x,-12.6); \node[font=\bfseries\tiny,anchor=north] at (\x,-12.62){\l}; }
\node[font=\tiny,anchor=north west,align=left] at (-9.4,-13.15){\textbf{IRF9540N} (P) y \textbf{IRLZ44N} (N):\\G--D--S · \textbf{la tab $=$ D (drain)}\\no atornilles tabs a un mismo\\disipador sin aislante};
% --- D) Diodos / LED / electrolítico ---
\node[draw,rounded corners,fill=gray!5,inner sep=5pt,anchor=north west] at (-5.6,-10.4) [minimum width=4.6cm,minimum height=4.6cm]{};
\node[anchor=north west,font=\bfseries\tiny,Indigo] at (-5.4,-10.55){Polaridad};
\draw (-5.3,-11.5) to[D] (-3.9,-11.5);
\node[font=\tiny,anchor=west] at (-3.75,-11.5){\textbf{1N5819/4744}: franja $=$ cátodo (K)};
\draw (-5.3,-12.5) to[leD] (-3.9,-12.5);
\node[font=\tiny,anchor=west] at (-3.75,-12.5){\textbf{LED}: pata larga $=$ ánodo ($+$)};
\draw (-5.3,-13.5) to[C] (-3.9,-13.5);
\node[font=\tiny,anchor=west] at (-3.75,-13.5){\textbf{Electrolítico}: franja $=$ negativo ($-$)};
\node[font=\tiny,gray,anchor=north west] at (-5.4,-14.15){cerámicos (104) no tienen polaridad};
% --- E) Módulos (pads de conexión) ---
\node[draw,rounded corners,fill=gray!5,inner sep=5pt,anchor=north west] at (-0.6,-10.4) [minimum width=14.2cm,minimum height=4.6cm]{};
\node[anchor=north west,font=\bfseries\tiny,Indigo] at (-0.4,-10.55){Módulos — pads (vista superior)};
\node[draw,fill=blue!6,rounded corners] (mTP) at (0.9,-12.4) [minimum width=2.0cm,minimum height=1.6cm,font=\bfseries\tiny]{TP4056};
\node[font=\tiny,anchor=east] at (-0.15,-11.9){IN$+$}; \node[font=\tiny,anchor=east] at (-0.15,-12.9){IN$-$};
\node[font=\tiny,anchor=west] at (1.95,-11.9){B$+$}; \node[font=\tiny,anchor=west] at (1.95,-12.9){B$-$};
\node[font=\tiny,gray,anchor=north] at (0.9,-13.35){OUT$\pm$: sin usar};
\node[draw,fill=blue!6,rounded corners] (mMT) at (4.45,-12.4) [minimum width=1.9cm,minimum height=1.6cm,font=\bfseries\tiny,align=center]{MT3608\\{\tiny trimmer $=$ ajuste}};
\node[font=\tiny,anchor=east] at (3.45,-11.9){IN$+$}; \node[font=\tiny,anchor=east] at (3.45,-12.9){IN$-$};
\node[font=\tiny,anchor=west] at (5.45,-11.9){OUT$+$}; \node[font=\tiny,anchor=west] at (5.45,-12.9){OUT$-$};
\node[draw,fill=blue!6,rounded corners] (mLM) at (8.1,-12.4) [minimum width=2.0cm,minimum height=1.6cm,font=\bfseries\tiny,align=center]{LM2596\\{\tiny $\times$2: VENT 5.0 V}\\{\tiny y MODEM 3.3 V}};
\node[font=\tiny,anchor=east] at (7.05,-11.9){IN$+$}; \node[font=\tiny,anchor=east] at (7.05,-12.9){IN$-$};
\node[font=\tiny,anchor=west] at (9.15,-11.9){OUT$+$}; \node[font=\tiny,anchor=west] at (9.15,-12.9){OUT$-$};
\node[draw,fill=blue!6,rounded corners] (mDF) at (11.8,-12.4) [minimum width=1.8cm,minimum height=1.6cm,font=\bfseries\tiny]{DFR1015};
\node[font=\tiny,anchor=east] at (10.85,-11.9){IN$+$}; \node[font=\tiny,anchor=east] at (10.85,-12.9){IN$-$};
\node[font=\tiny,anchor=west] at (12.75,-11.9){OUT$+$}; \node[font=\tiny,anchor=west] at (12.75,-12.9){OUT$-$};
\node[font=\tiny,gray,anchor=north,align=center] at (11.8,-13.4){IN$-$/OUT$-$ $=$ GND común};
\node[font=\tiny,anchor=north west,align=left] at (-0.4,-14.35){\textbf{AHT10}: VIN$\rightarrow$3V3 · GND · SCL$\rightarrow$PB6 · SDA$\rightarrow$PB7 \quad · \quad \textbf{Breakout USB-C}: VBUS · D$+$ · D$-$ · GND \quad · \quad \textbf{BOB-08276}: hembras 2.0 mm arriba, pines 2.54 abajo (pin 1 marcado)};
% --- F) Resistencias usadas (código de 4 bandas) ---
\node[draw,rounded corners,fill=gray!5,inner sep=5pt,anchor=north west] at (14.0,-10.4) [minimum width=9.4cm,minimum height=4.6cm]{};
\node[anchor=north west,font=\bfseries\tiny,Indigo] at (14.2,-10.55){Resistencias usadas — código de colores (4ª banda dorada $=$ $\pm$5\,\%)};
\node[font=\tiny,anchor=north west,align=left,inner sep=0] at (14.2,-11.1){%
\begin{tabular}{@{}l l@{\hspace{2.2em}}l l@{}}
$100\,\Omega$ & \csq{cafe}\,\csq{black}\,\csq{cafe}\,\csq{dorado} & $4.7$ k & \csq{yellow}\,\csq{violet}\,\csq{red}\,\csq{dorado}\\[1pt]
$220\,\Omega$ & \csq{red}\,\csq{red}\,\csq{cafe}\,\csq{dorado} & $10$ k & \csq{cafe}\,\csq{black}\,\csq{orange}\,\csq{dorado}\\[1pt]
$330\,\Omega$ & \csq{orange}\,\csq{orange}\,\csq{cafe}\,\csq{dorado} & $22$ k & \csq{red}\,\csq{red}\,\csq{orange}\,\csq{dorado}\\[1pt]
$1$ k & \csq{cafe}\,\csq{black}\,\csq{red}\,\csq{dorado} & $100$ k & \csq{cafe}\,\csq{black}\,\csq{yellow}\,\csq{dorado}\\
\end{tabular}};
\node[font=\tiny,gray,anchor=north west,align=left] at (14.2,-13.6){en duda: mídela con el multímetro antes de soldar\\pines del \textbf{Blackpill}: etiquetados en el cuerpo del diagrama (centro)};
\end{scope}
\end{tikzpicture}
\end{document}