Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Zephyr RTOS in Practice: Build Scalable Embedded Application
Rating: 4.0 out of 5(36 ratings)
281 students

Zephyr RTOS in Practice: Build Scalable Embedded Application

Zephyr RTOS - Part 1
Created byJohn O'Sullivan
Last updated 11/2026
English
English [Auto],

What you'll learn

  • Understand the core architecture and execution model of Zephyr RTOS, including threads, timers, work queues, interrupts, and scheduling.
  • Configure and build Zephyr applications using the west-based workflow, Kconfig (`prj.conf`), and board-specific tooling for ESP32-class hardware.
  • Describe hardware using Zephyr’s device tree system and correctly bind GPIOs, buttons, LEDs, and peripherals to application code in a portable, scalable way.
  • Design efficient periodic and event-driven embedded applications using the appropriate Zephyr primitives instead of defaulting to thread-based designs.
  • Implement robust GPIO input and output handling, including debouncing strategies, interrupt-driven inputs, and deferred processing.
  • Use Zephyr’s logging and debugging facilities to observe runtime behavior, diagnose problems, and reason about real-time system behavior.
  • Transition from Arduino-style, loop-based programs to structured, multi-component RTOS applications with clear separation of hardware, configuration, and logic.
  • Apply best practices for memory-efficient, responsive embedded system design suitable for production environments.

Course content

4 sections • 42 lectures • 3h 53m total length
  • Welcome to the Course2:12

    Welcome to the course and meet your lecturer.

  • Introduction1:49

    What You Will Learn


    In the introduction section of this course, you will develop a clear, practical understanding of what Zephyr RTOS is and why it matters in modern embedded development. You will learn how Zephyr fits into the broader embedded ecosystem and why it is increasingly used as the foundation for real-world IoT, consumer, and industrial products.

    We will explore what makes Zephyr different from hobby-oriented platforms, focusing on its scalability across a wide range of hardware, from small microcontrollers to more capable edge devices. You will gain insight into how Zephyr is designed to support long-term, production-quality embedded systems rather than quick prototypes or one-off projects.

    The introduction also explains Zephyr’s strong industry backing through the Linux Foundation and its contributor ecosystem. You will learn why this matters for reliability, maintenance, security, and long-term product support, and why companies choose Zephyr for commercial deployments.

    Most importantly, this section helps you build the right mental model for the rest of the course. You will understand that Zephyr is not just another API to learn, but a structured operating system with clear design principles. By the end of the introduction, you will know what problems Zephyr solves, where it is used, and why learning it is a valuable next step in your embedded systems journey.


  • Parts and Equipment List3:38

    A list of parts and resources used in the course.

  • Bare Metal, RTOS, and Zephyr4:40

    What you will learn from this lecture


    In this lecture, you will learn the difference between writing software on bare metal, on a generic real-time operating system, and on Zephyr. We explain that bare metal has no operating system and leaves all scheduling and timing to you, that an RTOS adds a scheduler and the primitives needed for threads to cooperate, and that Zephyr is an RTOS whose kernel is surrounded by a complete platform.


    You will also learn why "RTOS versus Zephyr" is not quite the right question, because Zephyr contains an RTOS. By the end you should be able to explain, in one sentence, what Zephyr adds on top of a plain RTOS, and you should recognise which of the three approaches fits a given project.

Requirements

  • Basic familiarity with C programming, such as variables, functions, control flow, and compiling simple programs.
  • Some prior exposure to microcontrollers or embedded development, for example using Arduino or a similar platform. Deep hardware knowledge is not required.
  • A development computer running Linux, macOS, or Windows capable of installing the Zephyr toolchain and build tools.
  • An ESP32-S3 development board (or a compatible Zephyr-supported ESP32 board) to follow along with the hands-on demonstrations.
  • A USB cable and basic components such as LEDs, resistors, and push buttons for simple external hardware examples. No advanced lab equipment is required.

Description

This course is a practical, end-to-end introduction to professional embedded systems development with Zephyr RTOS on the ESP32-S3 platform. It is designed to take learners from foundational concepts to production-style workflows by combining core RTOS theory with real hardware implementation, structured software architecture, and modern debugging techniques. Rather than focusing on isolated code snippets, the course emphasises how complete embedded applications are built, configured, tested, observed, and iterated in a repeatable way.


This is part one of a two-part course, and it is pitched deliberately at an entry level: it assumes you are new to RTOS concepts and to Zephyr specifically, even if you have prior C or embedded experience. We take our time on foundational topics like kernel mechanics, devicetree, the build system and debugging workflow. I have found that these are the areas where newcomers most often stumble. More experienced engineers may find some early lessons move slowly, and we hope they will still find value in the Zephyr-specific patterns and the end-to-end workflow shown along the way; part two then builds on these foundations to cover advanced material (BLE, zbus, CBOR, custom drivers, and project work at a pace that assumes the groundwork here is solid.


You begin by understanding what Zephyr is, where it fits in the embedded ecosystem, and why it is widely adopted for  commercial IoT products. From there, the course establishes a strong development foundation: workspace setup, project structure, Kconfig and prj.conf, Devicetree overlays, and the west workflow for build, flash, and monitor operations. These fundamentals are then reinforced through hands-on projects that progressively introduce real RTOS design patterns.


Across the technical modules, you implement GPIO control, interrupt-driven input with debouncing, multithreading, timers, workqueues, and inter-thread messaging. You integrate real peripherals over I2C, SPI, and PWM, including displays, sensors, ADCs, and servo motion control. The course then expands into networking by connecting devices to Wi-Fi, exposing HTTP services, and building browser-based control and telemetry interfaces. Finally, it covers observability at a professional level with structured logging, OpenOCD/GDB debugging, and trace analysis using tools like Trace Compass.


By the end, learners can design portable Zephyr applications that combine hardware control, concurrency, networking, and diagnostics in a clean, maintainable architecture suitable for real-world embedded and IoT development.

Note: This course is being continuously updated.



Who this course is for:

  • This course is designed to be approachable for beginners while still leading into professional embedded development. This is Part 1 of a two part course, focusing on introducing students to Zephyr. Part 2 will build on this and deal with more advanced topics.