Skip to content

Overview

Initially this course has been conceived as a short course on IoT with the main purpose to give a first understanding of the main issues in developing IoT solutions. We do believe the most efficient way to learn this subject is experimenting, this is way the course encourage attendants to hands-on.

No specific background is needed, even if a basic knowledge of electronics and computer science might help.

Over the years the course evolved and it is now not so short, however, the idea is to guide the attendants step by step, incrementally. So it is up to you how far to go.

Premise

If you ask multiple people what the Internet of Things (IoT) is, you will likely get many different answers. Devices such as a Raspberry Pi, Jetson Nano, Arduino Uno, or ESP32 are all legitimately considered IoT devices, but they differ significantly in capabilities.

The Raspberry Pi, Jetson Nano, and Arduino Uno Q can handle relatively complex tasks, including AI workloads, whereas the resource-constrained ESP32 cannot easily achieve the same performance.

Tip

An Embedded Wireless Sensor Network (EWSNs) is a distributed collection of resource-constrained embedded devices that cooperate through wireless communication to sense, process, and potentially act upon information about the physical environment.

Tip

Internet of Things (IoT) focuses on interconnecting physical objects, primarily through the Internet, and integrating them into a wider digital ecosystem.

Warning

The challenges posed by resource-constrained devices are particularly interesting. Therefore, in this course, we focus on Embedded Wireless Sensor Networks (EWSNs) as a specific and technically challenging component of the broader IoT ecosystem.

Note

In this course, we make an unconditional choice: students will work with the ESP32 powered by a battery

Why?

  • From a teaching perspective, it provides the most valuable learning experience, emphasising efficiency and thoughtful system design.
  • It presents a greater challenge, encouraging careful design.
  • Solutions developed for the resource-limited ESP32 will generally scale easily to more powerful devices.
  • The battery force students to design power efficient solutions

Note

In many IoT environments, particularly industrial ones, devices are easily line-powered. Yet, the constraints of battery-powered design offer a much more engaging set of challenges.

Regardless of the fact that, for simplicity, you might use a more resource-demanding (“non-IoT‑friendly”) technology, we expect you to demonstrate a thoughtful design process and provide a prototype that shows how you optimised limited resources to meet your application’s requirements.

As an example, it is well known that Wi-Fi is not particularly IoT-friendly, as it consumes a significant amount of energy. At the same time, most ESP32 devices natively support Wi-Fi, making it a very convenient choice.

While we encourage you to challenge yourself with more IoT-friendly technologies (e.g., LoRa), using WiFi is perfectly acceptable provided that you demonstrate the following:

  1. You clarify what is the most suitable technology and you are aware of pros and cons;
  2. You measure and report the energy consumption of your solution employing WiFi;
  3. You discuss whether your design meets the requirements of your application;
  4. You optimise your design to meet the requirements (e.g. applying energy-aware mechanisms such as duty cycling, sleep modes, or other techniques) under suitable assumptions (e.g. assuming you are using LoRa instead of WiFi).

This approach ensures that even when using convenient technologies like Wi-Fi, you remain mindful of IoT constraints and practice efficient design principles.

Note

We value the process and the right questions with sound answers more than the final product.

Tools and Materials

The reference hardware is the ESP32 and we now mostly use PlatformIO.
vscode is a nice companion together with the Platformio extension.

Initially we focused on The Espressif software development environment (esp-idf) and FREERTOS.

While this is probably the way to go for doing serious stuff, we found the Arduino framework to better suits the goal of providing a step-by-step introduction. Furthermore, Arduino on the ESP32 relies "secretely" :fontawesome-regular-face-laugh-wink: on FreeRTOS, even if to take full advantage of it, esp-idf is a must.

The list of material for each group: 1 ESP32-DevKit, a breadboard, some wires and resistors, one led, one button, one potentiometer and one 3 Axis Accelerometer Gyroscope

Editions

Some material of this course is used in the Sapienza University of Rome course on Internet of Thing Algorithms and Services

First edition of the course 19th (Session 1 and 2) and 21st (Session 3 and 4) of July 2023 in the University of Stellenbosch (South Africa) during an Erasmus+ staff mobility for teaching visit. About 40 participants selected among more the 100 candidates.

Second edition of the course 25th, 29th and 31st Of October and 4th of November 2024 in the Business and Technology University (Tbilisi, Georgia) during an Erasmus+ staff mobility for teaching visit. Two groups of 10 students each.