/vandal

An ESP32-based lighting control system for campervans (or anything else)

Primary LanguageCGNU General Public License v3.0GPL-3.0

vandal

A lighting and fan control system for campervans (or anything else)

vandal is an ESP32-based 10-channel smart switch module with LoRa, CANBus, a display, and a rotary encoder. For 12-24V DC systems, intended to control camper or RV lighting. It features

  • 7 switched-positive output channels, capable of each sourcing 5A at Vin (up to 27V) . All channels support fade, blink, breathe modes via an SX1509 driver.
  • 3 switched-negative channels, capable of each sinking 200mA at up to 30V.
  • 6 protected IO lines, 5V-tolerant and operating at a 3.3V logic level
  • CANBus interface (via a SN65HVD230 transceiver)
  • Protected 1Wire bus, operating at 5V, for temperature sensors (DS1820B and others)
  • LoRa transceiver (HopeRF RFM95) with SMA antenna connection
  • USB programming for the ESP32 (using a FT232R)
  • Numeric/text display: footprints and headers to support 2x Adafruit 0.54" LED backpacks
  • 8x32 LED matrix: footprints and headers to support 4x MAX7219-based 8x8 LED arrays Amazon AliExpress 1 AliExpress 2
  • Rotary (quadrature) encoder to allow control by the user
  • Protected power supply supporting 12V and 24V lead-acid and LiFePO4 battery systems

Protected lines feature diode clamping to 5V and 0V, and high-current lines include TVS diodes on the output to protect against overvoltage and back-EMF. The input has reverse polarity protection. All outputs (and the input) are individually fused.

This project is a work in progress, and the software for the ESP32 doesn't exist yet. It's intended to control LED lighting in my van, and is a bit of an excuse to play with CANBus and the RFM95 LoRa module.

The PCB was created in KiCad. I have a few spare - if you're interested, shoot me an email and I can post you one for a small fee. Alternatively, the gerber files are available here.

The hardware and software for this project are copyright 2020 Patrick Coleman. They are released under the GNU General Public License, version 3.0.

Schematic and board renders

See this spreadsheet for the BOM for board revision v1.0.

schematic Full size PNG PDF

board top Full size PNG

board bottom Full size PNG