How-To-Tutorials

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

176 articles

how to implement dvfs firmware on stm32f4 with pwm and load monitoring
How-To-Tutorials
How to Implement DVFS Firmware on STM32F4 with PWM and Load Monitoring

Implement Dynamic Voltage and Frequency Scaling on an STM32F4 using PWM-controlled voltage regulation and CPU load monitoring to dynamically optimize power consumption.

Oct 12, 2025

How-To-Tutorials
How to Implement Synchronized Multi-Axis Motion Control with STM32 and PID

Synchronized multi-axis CNC control on STM32 using hardware encoder mode, struct-based PID with anti-windup, and time-based trajectory planning to keep axes in lockstep.

Oct 12, 2025

how to use stm32 tim2 interrupt for 1ms tasks in freertos
How-To-Tutorials
How to Use STM32 TIM2 Interrupt for 1ms Tasks in FreeRTOS

Use a hardware TIM2 interrupt to get precise 1 ms periodic task execution in FreeRTOS on STM32, with proper ISR-to-task notification and priority configuration.

Oct 12, 2025

implement dvfs firmware on stm32f4 for optimal iot power management
How-To-Tutorials
Implement DVFS Firmware on STM32F4 for Optimal IoT Power Management

Implementing Dynamic Voltage and Frequency Scaling (DVFS) Firmware on an STM32F4 for Optimal Power Management in IoT Applications Dynamic Voltage and Frequency...

Oct 12, 2025

how to configure raspberry pi for ethernet tsn and ptp synchronization
How-To-Tutorials
How to Configure Raspberry Pi for Ethernet-TSN and PTP Synchronization

PTP gives you sub-microsecond time synchronization over Ethernet, and a Raspberry Pi can run it with software timestamps for prototyping TSN setups. Here's how to configure linuxptp on a Pi 4 or Pi 5.

Oct 12, 2025

implement modbus rtu and tcp with stm32 hal for industrial sensors
How-To-Tutorials
Implement Modbus RTU and TCP with STM32 HAL for Industrial Sensors

Implementing Modbus RTU over UART and Modbus TCP using STM32 HAL Library for Industrial Sensor Communication Modbus is a widely adopted communication protocol...

Oct 12, 2025

How-To-Tutorials
How to Read MPU6050 and BNO055 IMU Data on STM32 Using I2C and Madgwick Filter

Get stable orientation data from MPU6050 and BNO055 IMUs on an STM32 using I2C and the Madgwick sensor fusion filter. Covers wiring, register-level I2C reads, scaling, and quaternion output using STM32CubeIDE v1.16+ and HAL drivers.

Oct 12, 2025

migrate stm32 bare metal firmware to freertos with mqtt for iot sensors
How-To-Tutorials
Migrate STM32 Bare-Metal Firmware to FreeRTOS with MQTT for IoT Sensors

Introduction In this tutorial, we will guide you through the process of migrating STM32 bare-metal firmware to FreeRTOS, incorporating MQTT for IoT sensor data...

Oct 12, 2025

how to implement dvfs firmware on stm32f4 for adaptive power management
How-To-Tutorials
How to Implement DVFS Firmware on STM32F4 for Adaptive Power Management

Your STM32F4 doesn't need to run full-tilt all the time. DVFS lets you throttle core clock and voltage scaling based on CPU load, cutting power consumption in battery-powered designs.

Oct 12, 2025

build a lightweight http rest server on esp32 with jwt authentication
How-To-Tutorials
Build a Lightweight HTTP/REST Server on ESP32 with JWT Authentication

Creating a Lightweight HTTP/REST Server on ESP32 Using ESP-IDF with JWT Authentication for IoT Device Control This tutorial will guide you through the process...

Oct 11, 2025

build a real time temperature and humidity dashboard with raspberry pi and flask
How-To-Tutorials
Build a Real-Time Temperature and Humidity Dashboard with Raspberry Pi and Flask

Creating a Raspberry Pi-based Web Dashboard for Real-Time Temperature and Humidity Data Visualization Using Flask and MQTT This tutorial will guide you through...

Oct 11, 2025

how to implement arm trustzone for secure firmware updates in stm32
How-To-Tutorials
How to Implement ARM TrustZone for Secure Firmware Updates in STM32

ARM TrustZone on STM32 Cortex-M33 parts gives you hardware-enforced isolation for firmware updates. Put your bootloader, crypto keys, and signature verification in the secure world where application code can't touch them.

Oct 11, 2025

how to implement a uart bootloader for stm32 with dfu firmware update
How-To-Tutorials
How to Implement a UART Bootloader for STM32 with DFU Firmware Update

A custom UART bootloader gives you full control over field firmware updates on STM32. This guide covers flash layout, bootloader logic, firmware flashing over serial, and USB DFU integration.

Oct 11, 2025

analyze hard fault and stack overflow exceptions in freertos with stm32cubeide
How-To-Tutorials
Analyze Hard Fault and Stack Overflow Exceptions in FreeRTOS with STM32CubeIDE

Introduction In embedded systems development, particularly when working with FreeRTOS on STM32 microcontrollers, analyzing Hard Fault and Stack Overflow...

Oct 11, 2025

integrate tpm 2 0 for secure boot and dice on stm32 with mbed tls
How-To-Tutorials
Integrate TPM 2.0 for Secure Boot and DICE on STM32 with Mbed TLS

Introduction Integrating a TPM 2.0 chip with STM32 microcontrollers enhances the security of embedded systems by enabling secure boot processes and DICE...

Oct 11, 2025

build an nrf52 ble gatt heart rate monitor with android kotlin app
How-To-Tutorials
Build an nRF52 BLE GATT Heart Rate Monitor with Android Kotlin App

Implementing an nRF52-based BLE GATT Server for Heart Rate Monitoring with a Companion Android App Using Kotlin This tutorial will guide you through the...

Oct 11, 2025

how to implement pwm control for dc fans and rgb leds with stm32 tim2
How-To-Tutorials
How to Implement PWM Control for DC Fans and RGB LEDs with STM32 TIM2

Use STM32's TIM2 timer to generate PWM signals for DC fan speed control and RGB LED color mixing, with 1 kHz frequency and 8-bit resolution using STM32CubeIDE and the HAL library.

Oct 11, 2025

build a real time gesture recognition system with stm32f746 and cmsis libraries
How-To-Tutorials
Build a Real-Time Gesture Recognition System with STM32F746 and CMSIS Libraries

Introduction Implementing a real-time gesture recognition system on the STM32F746 microcontroller can enhance user interaction in various applications, from...

Oct 11, 2025

how to implement dvfs firmware on esp32 with freertos for iot energy efficiency
How-To-Tutorials
How to Implement DVFS Firmware on ESP32 with FreeRTOS for IoT Energy Efficiency

Dynamic frequency scaling on ESP32 can dramatically extend battery life for IoT devices. Use ESP-IDF's power management APIs and FreeRTOS tasks to automatically scale CPU frequency based on workload.

Oct 11, 2025

how to securely update stm32 firmware with spi nor flash and crc validation
How-To-Tutorials
How to Securely Update STM32 Firmware with SPI NOR Flash and CRC Validation

Store firmware on external SPI NOR flash, validate with CRC, and safely update STM32 internal flash — a practical guide to building a reliable field-update mechanism.

Oct 11, 2025

implement wear leveling and journaling in stm32 nor flash with fatfs
How-To-Tutorials
Implement Wear Leveling and Journaling in STM32 NOR Flash with FatFs

Implementing Wear Leveling and Journaling Algorithms for Reliable Data Storage in STM32 NOR Flash Firmware Using FatFs This tutorial will guide you through the...

Oct 10, 2025

how to build a real time image classification model on stm32 with cmsis dsp
How-To-Tutorials
How to Build a Real-Time Image Classification Model on STM32 with CMSIS-DSP

Run a quantized CNN on an STM32 using CMSIS-NN for real-time 32x32 grayscale image classification. Covers model training, int8 quantization, camera preprocessing, layer-by-layer inference, and memory optimization for Cortex-M targets.

Oct 10, 2025

build a dual mode ble gatt server on esp32 with android app in kotlin
How-To-Tutorials
Build a Dual-Mode BLE GATT Server on ESP32 with Android App in Kotlin

Introduction This tutorial will guide you through the implementation of a dual-mode Bluetooth Low Energy (BLE) GATT server on the ESP32 microcontroller, paired...

Oct 10, 2025

connect esp32 to aws iot core via mqtt with tls certificate authentication
How-To-Tutorials
Connect ESP32 to AWS IoT Core via MQTT with TLS Certificate Authentication

Introduction This tutorial will guide you through the process of connecting an ESP32 device to AWS IoT Core using MQTT with TLS authentication. We will use...

Oct 10, 2025