Skip to content

Start Here

Welcome to the IoT and embedded pillar. This page gives you a learning path, a recommended starter stack, the standard telemetry architecture you will meet again and again, and a capstone project (a Smart Relay Controller) that ties everything together.

Use the Tools hub alongside these guides: the MQTT Topic Tester for validating topic filters and the IoT Battery Calculator for sizing battery-powered nodes.

Stage Focus You should be able to… Read next
1. Electronics and safe wiring Voltage, current, GPIO, relays, level shifting Wire an LED, a button, a sensor and an opto-isolated relay without damaging the board Hardware wiring safety
2. Firmware basics Arduino framework or ESP-IDF, Wi-Fi, libraries, serial debugging Read a sensor, connect to Wi-Fi, publish a value Wokwi virtual IoT lab
3. Messaging and data MQTT topics, QoS, retained messages, brokers, databases Publish telemetry, subscribe to commands, store and chart the data MQTT Topic Tester
4. Production thinking Power budget, watchdogs, OTA updates, security, enclosures Explain how your device survives power loss, bad Wi-Fi and a hostile network IoT Battery Calculator, Cybersecurity start
Layer Student / learning stack Production-minded stack
MCU ESP32 DevKit (classic) or ESP32-S3 ESP32 module on a custom PCB, or an industrial controller
Firmware Arduino framework, PlatformIO or Arduino IDE ESP-IDF or PlatformIO with CI, OTA updates, watchdog
Simulation Wokwi in the browser Wokwi plus hardware-in-the-loop tests
Transport Wi-Fi + MQTT (plain, on a LAN) MQTT over TLS with per-device credentials; or wired Ethernet/Modbus
Broker Public test broker (non-sensitive data only) or local Mosquitto Private broker (Mosquitto, EMQX) with authentication and ACLs
Storage CSV or a free-tier time-series service InfluxDB, TimescaleDB or PostgreSQL with retention policies
Dashboard Node-RED dashboard or Grafana on a laptop Grafana behind a reverse proxy with SSO and alerting
Power / I/O USB power, relay module on a breadboard Fused, isolated supply, DIN-rail enclosure, surge protection
Debugging Serial monitor, MQTTX Remote logs, health topics, metrics
+---------+ I2C/1-Wire +-----------+ Wi-Fi +--------------+
| Sensor |--------------->| ESP32 |----------->| MQTT broker |
| (DHT22, | | firmware: | MQTT/TCP | (Mosquitto, |
| BME280)| | read, | 1883/8883 | EMQX) |
+---------+ | publish, |<-----------| |
| subscribe | commands +------+-------+
+---------+ GPIO | | |
| Relay |<---------------| | | subscribe
| module | +-----------+ v
+---------+ +----------------+
| Ingest service |
| (Node-RED / |
| Telegraf / |
| Python) |
+-------+--------+
|
v
+-----------------+----------+
| Time-series database |
| (InfluxDB / TimescaleDB) |
+-----------------+----------+
|
v
+----------------+
| Dashboard |
| (Grafana / |
| Node-RED UI) |
+----------------+

Port 1883 is plain MQTT, 8883 is MQTT over TLS. See the industrial ports cheat sheet.

Build a device that reports temperature and humidity and lets you switch a load remotely.

Goal: an ESP32 reads a DHT22 every few seconds, publishes JSON to MQTT, and toggles a relay when it receives a command. A dashboard (or MQTTX) shows readings and sends commands.

Build in three phases

  1. Simulate (no hardware). Follow the Wokwi virtual IoT lab. Get telemetry and relay commands working end to end.
  2. Bench build with a low-voltage load. Use an opto-isolated relay module switching an LED or a small 5 V/12 V DC load, never mains. Read Hardware wiring safety first, especially about the JD-VCC jumper, active-low inputs and flyback diodes.
  3. Harden. Add a retained “online/offline” status topic with a Last Will message, a watchdog, reconnect logic with back-off, and a private broker with credentials.

Parts are covered in the India student BOM guide. The pin cheat sheet is at /iot/pinout-reference/.