IoT capstone: your own connected product lesson plan
Design and build a connected product of your own on the ESP32-C3, milestone by milestone: the brief, the data contract, firmware, a dashboard, failure handling, a security review and a demo.
Objectives and materials
By the end, students can
- Pick a product, write requirements with numbers, and design the data before the code.
- Firmware that never waits, and a dashboard served by the board itself.
- Survive a bad network and a curious attacker.
- A 60 second demo, a release, a README and a link to share.
Materials for the whole unit
- ESP32-C3-DevKitM-1
- Full-size breadboard
- LED
- Pushbutton
- Resistor
- Temperature and humidity, SHT31
Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.
Plan it
Pick a product, write requirements with numbers, and design the data before the code.
| Lesson | Time | What students do |
|---|---|---|
| Pick a productThe brief for a connected product of your own, and FridgeWatch, the reference build: a shared-fridge monitor that has to do its one job before it ever touches a network. | 65 min |
|
| Data and API designDesign the message before the code: a versioned JSON reading with units in its field names, a round trip through echo.mokxi to prove it parses, and a config pulled from api.mokxi that is checked before it is trusted. | 75 min |
|
Materials
- ESP32-C3-DevKitM-1
- Full-size breadboard
- LED
- Pushbutton
- Resistor
- Temperature and humidity, SHT31
Check for understanding
Each student finishes "Data and API design" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Your version: the data contract".
Build it
Firmware that never waits, and a dashboard served by the board itself.
| Lesson | Time | What students do |
|---|---|---|
| FirmwareThe node as one loop that never waits: each job checks its own millis() clock and returns, so the LED keeps blinking while reports go out, and a serial console answers at any moment. | 65 min |
|
| DashboardThe node serves its own dashboard and a JSON endpoint from a WebServer, with one setLimit() behind both the form and the Serial Monitor, and the status LED following whatever either one sets. | 65 min |
|
Materials
- ESP32-C3-DevKitM-1
- Full-size breadboard
- LED
- Pushbutton
- Resistor
- Temperature and humidity, SHT31
Check for understanding
Each student finishes "Dashboard" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Your version: the dashboard".
Harden it
Survive a bad network and a curious attacker.
| Lesson | Time | What students do |
|---|---|---|
| Failure handlingMake it expect trouble: WiFi as a state machine that names each failure and backs off, a weak-signal warning, a config fetch that survives errors and bad JSON, and readings buffered through an outage and sent when it ends. | 75 min |
|
| Security reviewReview the node like an attacker: a token printed to the log, a limit that trusts any text, a name that could inject HTML into the dashboard, and a short threat model of who can reach what. | 65 min |
|
Materials
- ESP32-C3-DevKitM-1
- Full-size breadboard
- LED
- Pushbutton
- Resistor
- Temperature and humidity, SHT31
Check for understanding
Each student finishes "Security review" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Your version: the review".
Ship it
A 60 second demo, a release, a README and a link to share.
| Lesson | Time | What students do |
|---|---|---|
| Demo and write-upThe finished build in a 60 second demo: it reports, it warns, it survives an outage. Then tag the release, write the README and share the project. | 75 min |
|
Materials
- ESP32-C3-DevKitM-1
- Full-size breadboard
- LED
- Pushbutton
- Resistor
- Temperature and humidity, SHT31
Check for understanding
Each student finishes "Demo and write-up" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Your version: ship it".
Teach this unit as a class
Start a class from this course and its 7 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.
The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.