From 13d6b3904954f19cde5e453dc9234bf4cdbb31cd Mon Sep 17 00:00:00 2001 From: "victor.fraile" Date: Wed, 25 Mar 2026 15:47:49 +0000 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20lsn50-v2-xkc-y25-v-drainage/docs/?= =?UTF-8?q?wiring.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lsn50-v2-xkc-y25-v-drainage/docs/wiring.md | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 lsn50-v2-xkc-y25-v-drainage/docs/wiring.md diff --git a/lsn50-v2-xkc-y25-v-drainage/docs/wiring.md b/lsn50-v2-xkc-y25-v-drainage/docs/wiring.md new file mode 100644 index 0000000..8dee481 --- /dev/null +++ b/lsn50-v2-xkc-y25-v-drainage/docs/wiring.md @@ -0,0 +1,42 @@ +# Wiring + +## Componentes + +- `Dragino LSN50 v2.x` +- `XKC-Y25-V` +- resistencia `47k` +- diodo `1N4148` + +## Conexiones validadas + +### Alimentación del sensor +- `XKC VCC` -> `LSN50 pin 14 (+5V)` +- `XKC GND` -> `LSN50 pin 15 (GND)` + +### Señal +- `XKC OUT` -> cátodo del diodo +- ánodo del diodo -> `LSN50 pin 24 (PA12)` + +### Pull-up +- resistencia `47k` entre: + - `LSN50 pin 24 (PA12)` + - `LSN50 pin 13 (VDD)` + +## Pinout relevante fijado + +### Regleta derecha +- pin `14` -> `+5V` +- pin `15` -> `GND` +- pin `24` -> `PA12` +- pin `25` -> `NRST` (no usado) + +### Regleta izquierda +- pin `1` -> `VDD` +- pin `12` -> `GND` +- pin `13` -> `VDD` + +## Notas + +- No conectar `OUT` del XKC directamente a `PA12`. +- No asumir que el `+5V` es permanente. +- El rail de `+5V` está gobernado por ventana `5VT`. \ No newline at end of file