In this project, I built a **professional-grade smart home room controller designed to work behind your existing electrical switches while adding modern automation features.
You can watch the full making on: Tech Panda at https://youtu.be/45XjdFmznos
This custom ESP32-C6 based controller combines **energy monitoring, climate intelligence, presence detection, fan control, lighting automation, and fully local smart home control** into one compact PCB. Unlike cloud-dependent smart devices, this system is designed to run locally with offline capability, persistent memory, and advanced automation logic.
## π₯ Features Inside This Smart Home Controller:
β‘ **Real-Time Energy Monitoring** * ACS37800 power monitoring IC * True voltage, current, active power, and power factor measurement * Daily and monthly kWh tracking * Persistent logging using SPI flash storage
π¬οΈ **Smart Fan Control** * Dual AC zero-cross phase-cut fan dimming * Independent ceiling fan and exhaust fan control * Smooth silent speed adjustment * Relay interlocking protection
π **Smart Presence & Air Quality Intelligence** * 24GHz mmWave human presence detection * Micro-motion and breathing detection * STCC4 COβ sensor * Temperature and humidity monitoring * Automatic ventilation control
π‘ **Lighting Automation** * Six-channel relay controller * Works with existing wall switches * Custom channel naming * Presence-based automation * Night protection and inactivity timers
π§ **ESP32-C6 Local Smart Home OS** * ESP32-C6 RISC-V processor * Wi-Fi 6 connectivity * Web-based dashboard * Non-blocking C++ firmware * Local automation engine * MQTT Auto Discovery for Home Assistant
π¦ **Custom Hardware Design** * PCB designed for mains voltage safety * Isolation slots for high-voltage protection * Custom Fusion 360 3D printed enclosure * RF window optimized for mmWave radar performance
π» **AI-Assisted Firmware Development** The firmware was developed using an AI agentic workflow with OpenAI Codex integrated inside PlatformIO, helping create a structured hardware abstraction layer and professional embedded software architecture. ---
## In This Video You Will Learn:
β How to design a smart home controller PCB
β How to safely combine 230V AC and low-voltage electronics
β How zero-cross fan dimming works
β How to integrate mmWave radar and COβ sensors
β How to build an ESP32-C6 smart home dashboard
β How to create offline automation without cloud dependency
β How to connect the controller with Home Assistant using MQTT ---
## Hardware Used:
πΉ ESP32-C6 πΉ ACS37800 Energy Monitoring IC πΉ DFRobot Gravity STCC4 COβ Sensor πΉ DFRobot Fermion C4002 mmWave Radar πΉ Winbond SPI NOR Flash πΉ MCP23017 I/O Expander πΉ ULN2003 Relay Driver πΉ Hi-Link AC/DC Power Module ---
This project represents what I believe a modern smart home controller should be: β No cloud dependency β Works with existing switches β Real hardware monitoring β Intelligent automation β Complete local control
If you want a full step-by-step tutorial covering the **schematic, PCB design, assembly, firmware, and dashboard development**, let me know in the comments!








Comments