Connectors & Pinout
Connector reference for the BattleCore Sensor Board — pin assignments, voltages, and intended use for the host port.
The Sensor Board is a self-contained hit-sensor module. It carries two 38 kHz IR receivers and one SK6812 addressable RGB LED, all running from a single 5 V supply. It connects to a host controller through one 4-pin cable that provides power, an addressable-RGB data line in, and the combined IR-hit output.
The view below shows the actual board layout, centred on the connector. Use the mouse wheel to zoom out for context or in for detail, and drag to pan. Hover or tap a pad to highlight it in the pin table, and vice-versa.
Power Rails
| Rail | Voltage | Source | Used by |
|---|---|---|---|
PWR_5V | 5 V | Host (CN_IN pin 1) | Single supply — IR receivers (via an RC filter) and the RGB LED. |
PWR_GND | GND · 0 V | — | Common ground reference for the whole board. |
Twin IR Receivers
Two TSOP IR receivers (U1 and U2) face outward from opposite ends of the board for wider coverage. Their outputs are diode-OR’d (D1A / D1B) onto the single IR_OUT line, so a hit detected by either receiver is reported on one wire.
Connector
Sensor Input
CN_IN4-pin · 1.5 mm pitch · SMT
Connector: JST ZH (1.5 mm, 4P)
The single host connection for the Sensor Board. It feeds the board its 5 V supply, carries an addressable-RGB data line in for the on-board indicator LED, and returns the combined IR-receiver output. Everything on the board runs from this one 5 V rail.
IR_OUT has no pull-up on this board — it relies on a pull-up at the host. Enable the host input's internal pull-up (e.g. an ESP32 GPIO in INPUT_PULLUP) and read it as active-low: high when idle, low while a hit is detected. The diode keeps the receivers' 5 V off this line, so it sits at the host's logic level (3.3 V on an ESP32) and is safe for a 3.3 V input. Note that RGB_IN drives a 5 V SK6812; a 3.3 V data source is slightly below its typical high threshold, so verify colour reliability for your LED batch.
Location on the PCB (top view). Scroll to zoom, drag to pan; the highlighted port is CN_IN. Hover or tap a pad to link it to the table. = pin 1
| Pin | Signal | Voltage | Notes |
|---|---|---|---|
| 1 | PWR_5V | 5 V | Board supply (5 V) — powers the IR receivers and the RGB LED. |
| 2 | RGB_IN | 3.3 V logic | Addressable RGB (SK6812) data in for the indicator LED. |
| 3 | PWR_GND | GND · 0 V | Ground. |
| 4 | IR_OUT | 3.3 V logic | Combined IR-receiver output — open-collector, active-low. The receivers pull this line low (through a Schottky diode and a 220 Ω series resistor) on a detected 38 kHz IR carrier; the diode blocks their 5 V supply, so the line is never driven high on its own and idles at the host's pull-up level. |
Pins 5 & 6 are SMT mounting tabs tied to GND for mechanical retention.