How-To-Tutorials

Practical, step-by-step guides for designing, programming, and integrating hardware and software in embedded projects.

176 articles

integrate tpm 2 0 with dice on stm32 for secure boot and firmware integrity
How-To-Tutorials
Integrate TPM 2.0 with DICE on STM32 for Secure Boot and Firmware Integrity

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

measure power consumption with ina219 and stm32 for iot devices
How-To-Tutorials
Measure Power Consumption with INA219 and STM32 for IoT Devices

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

how to design and tune a pid controller for stm32 buck converter
How-To-Tutorials
How to Design and Tune a PID Controller for STM32 Buck Converter

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

how to implement dvfs firmware on esp32 with freertos for iot power optimization
How-To-Tutorials
How to Implement DVFS Firmware on ESP32 with FreeRTOS for IoT Power Optimization

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

how to implement ieee 802 1as time synchronization in ethernet tsn networks
How-To-Tutorials
How to Implement IEEE 802.1AS Time Synchronization in Ethernet-TSN Networks

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

implement sensorless field oriented control for bldc motors with arduino
How-To-Tutorials
Implement Sensorless Field-Oriented Control for BLDC Motors with Arduino

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

deploy tensorflow lite micro for gesture recognition on esp32 with i2s microphone
How-To-Tutorials
Deploy TensorFlow Lite Micro for Gesture Recognition on ESP32 with I2S Microphone

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

how to interface stm32f4 with sd card using spi and implement fatfs
How-To-Tutorials
How to Interface STM32F4 with SD Card Using SPI and Implement FatFs

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

how to set up matter and thread on esp32 h2 with zephyr rtos for iot
How-To-Tutorials
How to Set Up Matter and Thread on ESP32-H2 with Zephyr RTOS for IoT

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

how to connect esp32 to aws iot core via mqtt for secure temperature data
How-To-Tutorials
How to Connect ESP32 to AWS IoT Core via MQTT for Secure Temperature Data

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

secure iot data transmission implement mqtt with tls on esp8266
How-To-Tutorials
Secure IoT Data Transmission: Implement MQTT with TLS on ESP8266

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

reduce stm32 firmware size using gcc os optimization for memory constraints
How-To-Tutorials
Reduce STM32 Firmware Size Using GCC -Os Optimization for Memory Constraints

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

Oct 13, 2025

integrate canopen protocol with stm32 and freertos for sensor data acquisition
How-To-Tutorials
Integrate CANopen Protocol with STM32 and FreeRTOS for Sensor Data Acquisition

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

How-To-Tutorials
How to Implement a State Machine for Safe Pneumatic Actuator Control on STM32

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

how to implement winbond w25q64 spi flash with stm32f4 for ota updates
How-To-Tutorials
How to Implement Winbond W25Q64 SPI Flash with STM32F4 for OTA Updates

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

how to implement and tune a pid controller for buck converter with stm32
How-To-Tutorials
How to Implement and Tune a PID Controller for Buck Converter with STM32

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

How-To-Tutorials
Migrate STM32 Firmware to FreeRTOS: UART Communication & Task Scheduling Guide

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

how to use ina219 current sensor for real time power monitoring on esp32
How-To-Tutorials
How to Use INA219 Current Sensor for Real-Time Power Monitoring on ESP32

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

how to migrate stm32f4 firmware to freertos for i2c sensor data collection
How-To-Tutorials
How to Migrate STM32F4 Firmware to FreeRTOS for I2C Sensor Data Collection

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

profile execution time of interrupts using dwt cycle counters on stm32f4
How-To-Tutorials
Profile Execution Time of Interrupts Using DWT Cycle Counters on STM32F4

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

integrate tpm 2 0 dice root of trust in stm32 for secure firmware updates
How-To-Tutorials
Integrate TPM 2.0 DICE Root of Trust in STM32 for Secure Firmware Updates

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

secure iot sensor data transmission implement mqtt with tls on esp32
How-To-Tutorials
Secure IoT Sensor Data Transmission: Implement MQTT with TLS on ESP32

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

How-To-Tutorials
Secure IoT Data Transmission: Implement MQTT over TLS with ESP8266

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

deploy tensorflow lite micro voice recognition on esp32 with i2s mic input
How-To-Tutorials
Deploy TensorFlow Lite Micro Voice Recognition on ESP32 with I2S Mic Input

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