How-To-Tutorials
Practical, step-by-step guides for designing, programming, and integrating hardware and software in embedded projects.
176 articles

Integrating a TPM 2.0 Root of Trust with DICE Architecture on STM32 Microcontrollers for Secure Boot and Firmware Integrity Verification This tutorial walks...
Oct 14, 2025

Using the INA219 Current Sensor with an STM32 to Measure Power Consumption in Real-Time for Battery-Powered IoT Devices The INA219 is a high-side current shunt...
Oct 14, 2025

Building a PID controller on STM32 for a 48V-to-5V buck converter. Covers the algorithm implementation with anti-windup, step-by-step tuning methodology, and real-world load transient testing.
Oct 14, 2025

Cut your ESP32's power consumption by 30-50% using Dynamic Voltage and Frequency Scaling with FreeRTOS. This guide covers the ESP-IDF v5.3+ power management framework, PM locks, and practical tips for battery-powered IoT devices.
Oct 14, 2025

IEEE 802.1AS gives your Ethernet-TSN network sub-microsecond time synchronization, which is the foundation for reliable real-time industrial sensor data acquisition. Here's how to set it up from switch configuration through application-level timestamping.
Oct 14, 2025

Implementing Sensorless Field-Oriented Control for a BLDC Motor Using TMC5160 with Arduino for Precise Speed Regulation This tutorial will guide you through...
Oct 14, 2025

Introduction In this tutorial, we will walk through the process of deploying a TensorFlow Lite Micro model for gesture recognition on the ESP32 using the I2S...
Oct 14, 2025

Need to log data or store files from your STM32F4? An SD card over SPI with FatFs is the simplest path to removable storage. Here's how to wire it up, configure the driver, and get file operations working.
Oct 14, 2025

Get Matter and Thread running on the ESP32-H2 using Zephyr RTOS v3.7+ to build interoperable IoT devices that work with Apple Home, Google Home, and Alexa out of the box.
Oct 14, 2025

Connect an ESP32 to AWS IoT Core over MQTT with TLS mutual authentication to publish temperature sensor data. Covers AWS IoT Thing setup, certificate configuration, and a complete Arduino sketch.
Oct 14, 2025

Implementing MQTT with TLS on the ESP8266 for Secure IoT Data Transmission In this tutorial, we will walk through the steps required to implement MQTT with TLS...
Oct 13, 2025

Reducing STM32 Firmware Size Using GCC Optimization Flags -Os for Memory-Constrained Applications When developing applications for STM32 microcontrollers,...
Oct 13, 2025

Integrating CANopen Protocol Stack into STM32 Firmware for Real-Time Sensor Data Acquisition using FreeRTOS This tutorial walks you through the integration of...
Oct 13, 2025
Pneumatic actuators move fast and hit hard -- if your firmware gets the control logic wrong, things break. Here's how to build a safe state machine with fault detection on STM32 using the HAL library.
Oct 13, 2025

Your STM32F4 needs somewhere to stash incoming firmware during OTA updates. The Winbond W25Q64 gives you 8MB of SPI flash for exactly this -- here's how to wire it up, write a driver, and build a reliable update flow.
Oct 13, 2025

A buck converter without closed-loop control is basically a suggestion generator for output voltage. Here's how to implement and tune a PID controller on STM32 using the TIM peripheral at 100kHz switching frequency, with anti-windup and practical tuning tips.
Oct 13, 2025
Introduction This tutorial will guide you through the process of migrating STM32 bare-metal firmware to FreeRTOS. We will focus on implementing UART...
Oct 13, 2025

Set up real-time power monitoring on an ESP32 using the INA219 current sensor over I2C, with proper high-side wiring, calibration tips, and accurate voltage/current/power readings.
Oct 13, 2025

Bare-metal firmware gets messy once you're juggling multiple I2C reads, UART logging, and data processing in one loop. Here's how to migrate your STM32F4 project to FreeRTOS with a dedicated sensor task using the CMSIS-RTOS v2 API.
Oct 13, 2025

Using DWT Cycle Counters on STM32F4 to Profile Execution Time of Interrupt Service Routines Profiling the execution time of Interrupt Service Routines (ISRs)...
Oct 13, 2025

Integrating a TPM 2.0-based DICE Root of Trust in an STM32 IoT Device for Secure Firmware Updates This tutorial will guide you through the process of...
Oct 13, 2025

Implementing MQTT with TLS on the ESP32 using the Arduino IDE In this tutorial, we will walk through the steps to implement MQTT with TLS on the ESP32 using...
Oct 13, 2025
Implementing MQTT over TLS with the ESP8266 for Secure IoT Data Transmission In this tutorial, we will guide you through the process of implementing MQTT over...
Oct 12, 2025

Deploying a TensorFlow Lite Micro Voice Recognition Model on ESP32 with I2S Microphone Input In this tutorial, we will guide you through the process of...
Oct 12, 2025