r/esp32 • u/Future-Fisherman-300 • 3h ago
I made a thing! ESP32 Camper Automation Kit: 8-Ch CAN Relay Dev Board w/ INA3221 #canbus #esp32 #campervan #vanbuild
Hey everyone,
A while back I put together a 12V control setup for a friend's camper using off-the-shelf Chinese breakout boards. It worked, but dealing with the rat's nest of jumper wires, fragile connections, and ground noise was a real headache. So I decided to lay out a proper single-PCB version built around CAN bus, paired with a Guition touchscreen display as the main camper control panel.
Here is what's on the board (272 × 98 mm):
- MCU: ESP32-C3-WROOM-02 (picked mainly for low idle power draw in 12V battery setups)
- Relays: 8× SPST-NO automotive relays (JYT78F-S-DC12V-A, 20A contact rating, conservatively rated to 5A on the PCB) driven via an MCP23017 and a TBD62083AFG Darlington array, with 4 mm via-stitched power traces
- Inputs: 8× GND-switched 12V digital inputs with hardware debouncing/filtering, interrupt-driven through the MCP23017
- CAN bus: Galvanically isolated CAN transceiver so vehicle ground loops and voltage transients don't fry the MCU
- Monitoring: Onboard 3-channel INA3221 for watching battery banks / rails (up to 3A design limit; stock firmware reports all three voltages out of the box)
- Protection & extras: Resettable PTC fuse, B340 (40V/3A) Schottky diode for reverse-polarity protection on the 12V input, and an I2C header for an optional external SSD1306 OLED
The CAN link with the Guition display is already up and running. I put the pinout, CAN frame map, and working ESP-IDF source code (with a local WebSocket web UI and automatic Wi-Fi AP fallback) up on GitHub:https://github.com/SebastianS85/esp32c3-relay-board
Next on my list is adding Home Assistant / ESPHome support. I don't really have experience with HA yet, so that's the next thing I'm diving into.
Would appreciate any feedback on the hardware layout, protection stage, or tips on the cleanest way to integrate a board like this with Home Assistant.





