Internet of Things Tutorial
Learn Internet of Things step by step: 36 lessons in 9 chapters with examples, quizzes, diagrams and projects.
Start learning →
of lessons completed
Getting Started
- What Is the Internet of Things? Learn what the Internet of Things is, how a thing becomes a connected device, a short history, key terms and a simulated smart thermostat you can run.
- IoT Architecture and Layers Understand the layered architecture of an IoT system, from perception and network layers to cloud and application, with a runnable gateway simulation.
- IoT Applications and Industries Tour real IoT applications in smart homes, cities, agriculture, healthcare, logistics and industry, and learn what each needs from sensors and networks.
- IoT Challenges and Design Thinking Learn the main IoT challenges: constrained devices, power, connectivity, security, interoperability and scale, and a method for planning a project.
Sensors and Actuators
- Sensor Basics Learn how sensors work and the terms that describe them: range, resolution, accuracy, precision, sensitivity, response time and drift, with simulations.
- Common Sensor Types A tour of the sensors used in IoT: temperature, humidity, light, motion, distance, accelerometer, gas, GPS and soil moisture, with code and conversions.
- Analog-to-Digital Conversion Understand how an ADC turns voltages into numbers: resolution, reference voltage, sampling rate, Nyquist, aliasing and voltage dividers, with simulations.
- Actuators: Relays, Motors and Displays Learn how IoT devices act on the world: LEDs, relays, transistors, DC, servo and stepper motors, buzzers, valves, driver circuits, and safe control logic.
- Signal Conditioning, Calibration and Filtering Clean noisy sensor data with moving averages, exponential smoothing, median filters, debouncing and two-point calibration, with runnable simulations.
Microcontrollers and Boards
- Microcontrollers vs Microprocessors Compare microcontrollers, microprocessors, SoCs and single-board computers for IoT, with memory, power and cost trade-offs and a simple board chooser.
- Arduino Programming Basics Learn Arduino-style firmware: setup and loop, digitalWrite, analogRead, Serial, non-blocking timing with millis, libraries, state machines and a simulator.
- GPIO, PWM, Timers and Interrupts Understand GPIO modes, pull-ups, logic levels, PWM, hardware timers and interrupts, with an interrupt-driven counter and a debounce simulation.
- ESP32, ESP8266 and Raspberry Pi Compare the main IoT boards: ESP32, ESP8266, Raspberry Pi, Pico and Arduino, with their features, Wi-Fi code, GPIO on Linux and a board-selection guide.
- MicroPython and Low-Power Design Program microcontrollers in MicroPython, then design for battery life: sleep modes, duty cycling, wake sources and energy budgets, with simulations.
Connectivity Protocols
- Serial Buses: UART, I2C and SPI Learn how UART, I2C, SPI, 1-Wire and CAN connect microcontrollers to sensors, with framing, addressing, wiring, speed and runnable bus simulations.
- Short-Range Wireless: Wi-Fi, BLE, Zigbee and Thread Compare Wi-Fi, Bluetooth Low Energy, Zigbee, Thread, Matter, Z-Wave and NFC for IoT: range, speed, power, mesh networks, path loss and a runnable BLE packet decoder.
- LPWAN and Cellular IoT: LoRaWAN, NB-IoT, LTE-M and Satellite Understand low-power wide-area networks and cellular IoT: LoRa spreading factors, airtime, duty cycle, NB-IoT, LTE-M and satellite, with a LoRa airtime calculator.
- HTTP, CoAP and Choosing an IoT Protocol Learn how devices use HTTP REST, TCP and UDP, and how CoAP shrinks requests to a few bytes, with message overhead simulations and a protocol decision guide.
MQTT and Messaging
- MQTT: The Publish/Subscribe Model Learn how MQTT works: brokers, clients, topics, publishers and subscribers, why pub/sub suits IoT devices, and a runnable in-process broker to try it.
- MQTT Topics, Wildcards and Naming Best Practices Design MQTT topic trees, use the + and # wildcards, avoid the common naming mistakes, and run a topic-matching function that behaves like a real broker.
- MQTT Quality of Service: QoS 0, 1 and 2 Understand MQTT delivery guarantees: at most once, at least once and exactly once. Simulate a lossy network and see losses, duplicates and handshakes.
- MQTT Retained Messages, Last Will and Sessions Learn the three MQTT features that make IoT reliable: retained messages for last known state, Last Will for offline detection, and persistent sessions.
- Build a Toy MQTT Broker over TCP Write a working publish/subscribe broker with real TCP sockets on loopback, a simple text protocol, wildcards and retained messages, then read what real MQTT adds.
Edge, Cloud and Data Pipelines
- IoT Data Pipelines: From Sensor to Insight Follow IoT data from sensor to dashboard: payload formats, ingestion, validation, deduplication, normalization, enrichment and storage, with a runnable pipeline.
- Edge Computing: Filtering and Deciding Near the Device Learn why IoT processing moves to the edge: latency, bandwidth, privacy and offline operation. Run dead-band filtering, local rules and store-and-forward.
- Time-Series Storage, Queries and Dashboards Store sensor readings as time series, query them with time buckets in SQL, downsample with retention, spot anomalies with a rolling average and draw a text chart.
Security and Privacy
- IoT Threat Modeling: What Can Go Wrong Learn to think like a defender: map the IoT attack surface, apply STRIDE, study classic failures like default passwords, and run a configuration auditor.
- Device Identity, TLS and Access Control Give every IoT device its own identity: credentials and certificates, TLS for encryption, message signing against tampering and replay, and per-topic ACLs.
- Secure Updates, Privacy and Compliance Ship safe firmware updates with signatures, rollback protection and A/B slots, and protect user privacy with data minimization, pseudonyms and retention rules.
Platforms and Applications
- Cloud IoT Platforms and Architecture Compare IoT platforms and learn their common building blocks: device registry, message broker, rules engine, jobs and storage. Run a rules-engine simulator.
- Device Twins, Shadows and Digital Twins Understand device shadows and twins: desired and reported state, deltas and versions, how offline devices catch up, and how digital twins model real systems.
- IoT Applications: Home, Industry, City, Agriculture and Health Tour the main IoT application domains: smart home, industrial IoT, smart cities, agriculture, health, logistics and energy, with the design lessons of each.
Projects and Practice
- Project: A Temperature Monitoring System Build a complete IoT monitor step by step: firmware sketch, simulated sensors, validation, aggregation, alerts with duration and hysteresis, and a status report.
- Project: A Smart Home Rules Engine Build a smart home automation engine: device state store, trigger-condition-action rules as data, motion lights with timers, away mode, and rule tests.
- Project: A Mini MQTT Sensor Network Combine everything: a TCP broker with wildcards, retained state and Last Will, three simulated sensor nodes, a dashboard client and a crash that is detected.
- IoT Practice: Calculations, Exercises and Interview Questions Practice IoT engineering: estimate battery life, message volume and payload size with runnable calculators, solve design exercises and review common interview questions.