Source: https://mokxi.com/learn/path/build-smart-home-hub
Updated: 2026-11-20

All paths

# Build a smart home hub

A web dashboard on an ESP32-C3 that switches relays, reads sensors and runs schedules from a clock.

ESP32-C3-DevKitM-1 Free 3 lessons 3 h 2 chapters 848 XP Maker · Advanced +250 XP

0 of 3 done

Start the course free A dashboard that switches real things Lesson plan for teachers

What you will build

## One project, built step by step

3 lessons in 2 chapters, about 3 hours on a simulated ESP32-C3-DevKitM-1. Free, in your browser, every step checked by the simulator.

Chapter 2 project

### Schedules and a status screen

Finish the hub: a DS3231 clock that turns the porch light on at dusk and off at bedtime, and an LCD that shows the time, the climate and every switch.
Open it in the simulator

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## Control

Serve a dashboard and switch real loads through relays and PWM.

Open 212 XP

### A dashboard that switches real things

Serve a web page from the ESP32-C3 and use it to switch a lamp and a fan through relays, and to dim a porch light. Why a relay, and why it is wired the way it is.

0 of 4 steps

Start What is in it

Chapter 2

## Automation

Let sensors, then a clock, decide when things switch.

Locked 212 XP

### Sensors and automatic modes

Add a DHT22 and a motion sensor, and give each switch an auto mode: the fan follows the temperature and the lamp waits for someone to walk by.

0 of 4 steps

Project Locked 424 XP

### Schedules and a status screen

Finish the hub: a DS3231 clock that turns the porch light on at dusk and off at bedtime, and an LCD that shows the time, the climate and every switch.

0 of 4 steps

Syllabus

## Every lesson in the course

All 3 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### Control

- A dashboard that switches real things Serve a web page from the ESP32-C3 and use it to switch a lamp and a fan through relays, and to dim a porch light. Why a relay, and why it is wired the way it is.

Chapter 2

### Automation

- Sensors and automatic modes Add a DHT22 and a motion sensor, and give each switch an auto mode: the fan follows the temperature and the lamp waits for someone to walk by.
- Schedules and a status screen Finish the hub: a DS3231 clock that turns the porch light on at dusk and off at bedtime, and an LCD that shows the time, the climate and every switch.

Keep going

## The next course on your track

Build a smart home hub is part of the maker track, a ladder of courses from zero to expert.

Next course

### Build a solar tracker

Light sensors and servos aim a panel, an INA219 measures it, and a fair experiment compares tracked with fixed.
Open the next course

Track

### Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.
See every course on the track

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About Build a smart home hub

Is Build a smart home hub free?

Yes. All 3 lessons of Build a smart home hub are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real ESP32-C3-DevKitM-1?

No. Every lesson runs on a simulated ESP32-C3-DevKitM-1 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a smart home hub take?

About 3 hours: 3 lessons in 2 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Schedules and a status screen.

Where do I start?

With "A dashboard that switches real things", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
