All Projects
Special / Hobby
DCC Block Detector
Model railway MQTT control
ESP32MQTTRocrailOptokopplerINA3221DCC
Description
Two components for digital model railway control: A 3-channel block detector with PC817 optocouplers detects occupied track sections and reports them via MQTT to Rocrail. An INA3221-based current monitor tracks power consumption of individual track sections. Enables automatic train operation through reliable track occupancy detection.
Want something like this built?
This is exactly what my "Custom ESP32 Firmware" package covers — from 239€.
I deliver software only (firmware, configuration, code) — no assembled hardware. The components used are only linked for reference, you buy them yourself. Enclosures on request.
Features
- 3-channel track occupancy detection
- Optocoupler-based current sensing
- INA3221 current measurement per block
- MQTT integration with Rocrail
- Configurable thresholds
- Compact PCB design
Techstack
Hardware
- ESP32
- PC817 Optokoppler
- INA3221
- DCC Gleissignal
Software
- PlatformIO
- PubSubClient MQTT
- Arduino Framework
Integration
- Rocrail
- MQTT Broker



