HeadlinesBriefing favicon HeadlinesBriefing.com

Perl-Based Smart Home Automation System with CAN Bus

Hacker News •
×

A Perl veteran has built an ambitious smart home automation system called WHIP (Witty House Infrastructure Processor) after finding existing solutions lacking. The system controls a 1400m³, 80% off-grid house with 24kWp solar and 120kWh battery storage using Perl-based monitoring tools like Wmodbus and ecs_bms_tool for Victron energy systems.

Dissatisfied with FHEM's limitations and Arduino-based alternatives, the creator designed WHIP around a distributed architecture. STM32F103 microcontrollers running FreeRTOS and libopencm3 form autonomous nodes connected via CAN bus instead of traditional RS485 or WiFi. This industrial-grade approach enables true multi-master communication at 1MBit/s with built-in collision resolution.

WHIP's modular design includes specialized RasPi hubs named after mythological figures - Raijin for energy management, Lucifer for DALI lighting, and Bragi for audio. The system features Ganglion, an insect-brain model where nodes execute IF-THEN rules locally using compiled bytecode. With over 115 sensor/actuator modules and 153 million possible configurations, WHIP demonstrates how Perl can power sophisticated home automation beyond typical IoT solutions.