Drogheda/03-Architecture-Hardware/Guia-Conexion-Protoboard/main.tex

79 lines
4.0 KiB
TeX
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.

% Helgen Drogheda — Guía de Conexión en Protoboard · DRG-PROTO-001 (es-MX)
% Watchdog HBOX v3 · tarjeta DEV STM32F411 Blackpill · bloques 1–11 · v3.1
% v3.0 agrega modulos-pinout.tex (catálogo visual de piezas) + Bloque 9 con puente XBee.
%
% Compilar (preferido, con fuentes de marca): latexmk -xelatex main.tex
% Compilar (fallback sin fuentes de marca): latexmk -pdf main.tex (pdfLaTeX)
% El shim de abajo neutraliza polyglossia bajo pdfTeX para que el estilo
% compartido (_brand/estilo-helgen.tex) compile sin cambios en ambos motores.
%
% Fuente de datos autoritativa: ../Drogheda_Conexiones-por-Bloque_Proto_v1.xlsx
% Diagramas: ../circuitikz-wiring/ (Drogheda_Diagrama_CircuiTikZ.pdf · _Beamer.pdf)
\documentclass[11pt]{article}
\newcommand{\sistema}{Helgen Drogheda — HBOX RTK}
\newcommand{\sistemapdf}{Helgen Drogheda HBOX RTK}
\newcommand{\doctipo}{Guía de Conexión en Protoboard}
% ---- Shim de compatibilidad pdfLaTeX (el estilo es canónicamente XeLaTeX) ----
\usepackage{iftex}
\ifPDFTeX
\usepackage[utf8]{inputenc}
\usepackage{lmodern} % fuentes escalables (espejo del fallback Latin Modern del estilo)
% Finge que polyglossia ya está cargado (el estilo lo pide sin condición)
\expandafter\def\csname ver@polyglossia.sty\endcsname{2020/01/01}
\providecommand{\setmainlanguage}[2][]{}
\fi
\input{../../_brand/estilo-helgen.tex}
\usepackage{circuitikz}
\input{../circuitikz-wiring/wiring-blocks.tex}
% ---- Colores de red / cable (mismos que los diagramas CircuiTikZ) ----
\definecolor{netIgn}{HTML}{7B1E3B} % GUINDA — ignición cruda 12–24 V
% Swatch de color + etiqueta para la columna «Red»
\newcommand{\redsw}[2]{\textcolor{#1}{\rule[-0.12ex]{0.72em}{0.72em}}\,{\footnotesize\textbf{#2}}}
\newcommand{\redV}{\redsw{net5V}{5V}}
\newcommand{\redT}{\redsw{net3V3}{3V3}}
\newcommand{\redG}{\redsw{netGND}{GND}}
\newcommand{\redS}{\redsw{netSig}{Señal}}
\newcommand{\redA}{\redsw{netAna}{Analóg.}}
\newcommand{\redI}{\redsw{netIgn}{12--24\,V}}
\newcommand{\redN}{{\footnotesize —}}
% ---- Encabezado de bloque + línea «Qué prueba» + línea «Piezas de este bloque» ----
\newcommand{\bloque}[2]{\subsection*{Bloque #1 · #2}}
\newcommand{\queprueba}[1]{\noindent{\small\textit{\textbf{Qué prueba:} #1}}\par\smallskip}
\newcommand{\compbloque}[1]{\noindent{\small\textbf{\textcolor{HelgenTeal}{Piezas de este
bloque:}} {\small #1}}\par\smallskip}
% ---- Diagrama CircuiTikZ incrustado por bloque (mismas macros que la lámina) ----
\newcommand{\diagramabloque}[2]{%
\begin{center}
\begin{adjustbox}{max width=\textwidth}
\begin{tikzpicture}[every node/.append style={font=\footnotesize}]#2\end{tikzpicture}
\end{adjustbox}\\
{\small\itshape Bloque #1 — mismo dibujo que la lámina CircuiTikZ (\texttt{circuitikz-wiring/}).}
\end{center}}
% ---- Encabezado estándar de las tablas de conexión ----
\newcommand{\theadconex}{\rowcolor{HelgenIndigo}
\textcolor{white}{\textbf{Red}} &
\textcolor{white}{\textbf{Conexión (desde $\rightarrow$ vía $\rightarrow$ hacia)}} &
\textcolor{white}{\textbf{Valor / Nota}}\\}
\begin{document}
\helgenportada{Guía de Conexión en Protoboard}{HBOX Watchdog v3 — tarjeta DEV / protoboard · bloques 1--11}{%
\begin{tabular}{@{}ll@{}}
\textbf{Documento} & DRG-PROTO-001 — Guía de Conexión en Protoboard\\
\textbf{Versión} & 3.1 (pines obligatorios del XBee $+$ USB config; Bloque 5b Q10$+$Zener; disipadores y plano 10$\times$10)\\
\textbf{Fecha} & 8 de julio de 2026\\
\textbf{Firmware} & v2.3 · MCU STM32F411 «Blackpill»\\
\textbf{Dirigido a} & Técnico de armado — sigue el orden de la sección~\ref{sec:orden}\\
\textbf{Fuente de datos} & \texttt{Drogheda\_Conexiones-por-Bloque\_Proto\_v1.xlsx} (autoritativa)\\
\textbf{Autor} & Dr.\ Leopoldo Rodríguez Salazar — Helgen Technologies\\
\textbf{Clasificación} & Confidencial — uso interno de Helgen\\
\textbf{Asistencia IA} & Elaborado con asistencia de Claude (Anthropic), revisado por el autor\\
\end{tabular}}
\input{cuerpo.tex}
\end{document}