Drogheda/03-Architecture-Hardware/circuitikz-wiring/Drogheda_Diagrama_CircuiTikZ.tex
Leopoldo Rodríguez 2c3dffa232 2026-07-02: PROD schematic complete (ERC 0) + carrier-board PCB + doc sweep to the Jul-2 ledger
Electrical/PCB:
- LTC4040 Block B sized to the 12 Ah 1S4P pack (RPROG 825R -> 2.42 A ~ C/5,
  RS 8 mR -> 3.1 A input limit, PFI 4.60 V, backup 4.79 V, charge 4.00 V Li-ion
  via VSYS-referenced straps) + Block E cutoff (P11) + Block F PA4->VEH5V re-tap
  + Block H fail-safe Modo-B bypass (K1 normally-closed relay) + Block I NTC->PB1.
- CARRIER-BOARD conversion: simpleRTK2B Pro on UNO-pattern female headers (MOD1;
  D0/D1=UART1, D2=RX2, D8=TX2, IOREF=3V3, 5V=SW_5V) + 4G NTRIP Master on on-board
  XBee socket (J7/J8; VCC=3V3_MODEM via new Block K MP1584 buck off SW_5V - the
  HP XBee socket is 3.3 V not 5 V). Board 120x100, placement + GND pour + DRC
  baselines. Custom symbols: LTC4040EUFD, AO4406A, SimpleRTK2B_Pro_Socket.
- Fixed duplicated U2, stale no-connects, A4->A3 sheet; ERC 0 errors.

Docs:
- Canonical electrical-design-state + production delta (Block B values table,
  5b/5c/5d/5e) + design/rationale/connections/BOM swept to the Jul-2 assumptions
  ledger (Conexiones-por-Bloque xlsx).
- Guia de Conexion Protoboard: LaTeX source now maintained in-repo -> v2.1 PDF.
- CircuiTikZ sheet + wiring Beamer: block 11 (NTC->PB1) + guinda ignition legend.
- Client decks: Avance v1.1 (overclaims fixed) + RCA v1.1 (2-jul addendum).

Repo hygiene:
- .gitignore: live rtk-config (SIM/APN/NTRIP creds) now ignored and REMOVED from
  tracking (NOTE: rotate those credentials - they exist in prior commits);
  KiCad .bak/snapshots/.history, LaTeX intermediates, Office locks ignored+purged.
- Removed rogue .history gitlinks that broke git status.
2026-07-02 22:18:56 -06:00

46 lines
2.6 KiB
TeX

\documentclass[border=16pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{circuitikz}
\usepackage{helvet}\renewcommand{\familydefault}{\sfdefault}
\input{wiring-blocks}
\begin{document}
\begin{tikzpicture}[every node/.append style={font=\footnotesize}]
% ---- title ----
\node[anchor=north west,font=\bfseries\Large,Indigo] at (-2,6.0)
{HBOX Watchdog v3 — Diagrama de Cableado del Prototipo (CircuiTikZ)};
\node[anchor=north west,font=\small,gray] at (-2,5.2)
{Tarjeta DEV · Firmware v2.3 · STM32F411 Blackpill · Proyecto Drogheda / Helgen · Diagramas v2 · 2026-07-02};
% legend
\begin{scope}[shift={(-2,4.2)}]
\foreach \i/\c/\t in {0/net5V/{5 V},1.7/net3V3/{3.3 V},3.3/netGND/GND,4.7/netSig/{Señal},6.3/netAna/{Analóg. (PA0, PA4, PB1)},10.1/netIgn/{Ign. cruda 12--24 V}}{
\draw[\c,line width=2pt] (\i,0)--(\i+0.5,0); \node[anchor=west,font=\scriptsize] at (\i+0.55,0){\t};}
\end{scope}
% ---- block grid ----
\def\cw{14.0} \def\ch{9.4}
\newcommand\cell[4]{\begin{scope}[shift={(#1*\cw, #2*\ch)}]
\node[anchor=north west,font=\bfseries,Indigo] at (-2,3.7){#3}; #4 \end{scope}}
\cell{0}{0}{1 · Rieles de alimentación}{\blkRieles}
\cell{1}{0}{2 · LED de estado (PB0)}{\blkLED}
\cell{0}{-1}{3 · Interruptor de carga (PA1) — el corazón}{\blkCarga}
\cell{1}{-1}{4 · Sensado: batería / 5 V / ignición}{\blkSensado}
\cell{0}{-2}{5 · Ventilador (2 hilos, 5 V)}{\blkVent}
\cell{1}{-2}{6 · Sensor de temperatura I\textsuperscript{2}C}{\blkTemp}
\cell{0}{-3}{7 · Reset (opcional) y Gauge de batería}{\blkResetGauge}
\cell{0}{-4}{8 · Conexión del stack RTK (modo por defecto): simpleRTK2B Pro + 4G NTRIP}{\blkStack}
\cell{0}{-5}{9 · Modo B — Diagnóstico por NTRIP (relé + inyección \$PHLG)}{\blkStackB}
\cell{0}{-6}{10 · Respaldo de batería (proto): TP4056 + MT3608 — el PCB usa LTC4040}{\blkBatt}
\cell{1}{-6}{11 · Temperatura analógica (NTC $\rightarrow$ PB1)}{\blkTempA}
% notes cell (1,-3)
\begin{scope}[shift={(1*\cw,-3*\ch)}]
\node[anchor=north west,font=\bfseries,Indigo] at (-2,3.4){Avisos};
\node[anchor=north west,font=\scriptsize,text width=11cm] at (-2,2.6){%
$\bullet$ IRLZ44N debe ser \textbf{lógico} (no IRF540/IRFZ44).\\
$\bullet$ Nunca 5 V directo a PA0/PA4/PB1/PA5 (PA5 lógico $\le$ 3.3 V).\\
$\bullet$ El ventilador usa un \textbf{5 V separado}, no la salida ``stack''.\\
$\bullet$ Apagado = estado seguro: el ``stack'' arranca APAGADO.\\
$\bullet$ Cobertura: \textbf{Sección 1 + 3} = suficiente; Sección 2 (TP4056/MT3608) sólo para el respaldo de batería.};
\end{scope}
\end{tikzpicture}
\end{document}