How-To-Tutorials

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

176 articles

how to implement aes 256 encryption with stm32 for secure mqtt communication
How-To-Tutorials
How to Implement AES-256 Encryption with STM32 for Secure MQTT Communication

MQTT sends data in plaintext by default. This guide shows how to use the STM32 hardware crypto accelerator for AES-256 encryption of MQTT payloads using HAL.

Oct 10, 2025

how to configure stm32l4 sleep modes with rtc for 1hz sensor polling
How-To-Tutorials
How to Configure STM32L4 Sleep Modes with RTC for 1Hz Sensor Polling

Put your STM32L4 to sleep between sensor reads using Stop 2 mode and the RTC wakeup timer for 1Hz polling. This approach drops idle current to single-digit microamps while keeping your firmware responsive to periodic sensor reads.

Oct 10, 2025

how to use stm32 tim2 for 1ms event scheduling and button debouncing
How-To-Tutorials
How to Use STM32 TIM2 for 1ms Event Scheduling and Button Debouncing

Set up TIM2 on STM32 for 1ms periodic event scheduling and combine it with EXTI-based button debouncing. Covers timer math, interrupt handlers, and the flag-based ISR pattern.

Oct 10, 2025

stream 1080p video from raspberry pi 4 to aws s3 with gstreamer and rtmp
How-To-Tutorials
Stream 1080p Video from Raspberry Pi 4 to AWS S3 with GStreamer and RTMP

Introduction Streaming 1080p video from a Raspberry Pi 4 to AWS S3 can be accomplished effectively using GStreamer and the RTMP protocol. This tutorial will...

Oct 10, 2025

optimize tensorflow lite models for stm32f4 with cmsis nn techniques
How-To-Tutorials
Optimize TensorFlow Lite Models for STM32F4 with CMSIS-NN Techniques

Introduction Optimizing TensorFlow Lite models for deployment on resource-constrained hardware like STM32F4 microcontrollers can significantly enhance both...

Oct 10, 2025

integrate canopen with stm32f4 for real time sensor data control
How-To-Tutorials
Integrate CANopen with STM32F4 for Real-Time Sensor Data Control

Integrating the CANopen Protocol Stack with STM32F4 Firmware for Real-Time Sensor Data Acquisition and Control This tutorial provides a step-by-step guide on...

Oct 10, 2025

real time environmental noise detection with cortex m4 dsp and cmsis dsp
How-To-Tutorials
Real-Time Environmental Noise Detection with Cortex-M4 DSP and CMSIS-DSP

Introduction In this tutorial, we will explore how to implement real-time sound classification using a Cortex-M4 DSP with the CMSIS-DSP library. This project...

Oct 9, 2025

create a real time mqtt dashboard with flask and esp32 sensor data
How-To-Tutorials
Create a Real-Time MQTT Dashboard with Flask and ESP32 Sensor Data

Introduction In this tutorial, we will create a web dashboard using Flask to visualize real-time data from an ESP32 sensor network via MQTT (Message Queuing...

Oct 9, 2025

How-To-Tutorials
Secure IoT Data Transmission: Implement MQTT over TLS with ESP32 and MbedTLS

Introduction In this tutorial, we will cover how to implement MQTT over TLS using the ESP32 microcontroller and the MbedTLS library. This setup ensures secure...

Oct 9, 2025

how to implement real time object detection on raspberry pi 4 with tensorflow lite
How-To-Tutorials
How to Implement Real-Time Object Detection on Raspberry Pi 4 with TensorFlow Lite

Run real-time object detection on a Raspberry Pi using TensorFlow Lite and a USB webcam. Covers setup, model loading, and a complete Python detection pipeline with OpenCV.

Oct 9, 2025

build a lorawan node with stm32l072 and rfm95w for iot sensors
How-To-Tutorials
Build a LoRaWAN Node with STM32L072 and RFM95W for IoT Sensors

Building a LoRaWAN Node with STM32L072 and RFM95W for Battery-Powered IoT Sensors This tutorial will guide you through the process of building a LoRaWAN node...

Oct 9, 2025

migrate stm32f4 bare metal firmware to freertos uart i2c guide
How-To-Tutorials
Migrate STM32F4 Bare-Metal Firmware to FreeRTOS: UART & I2C Guide

Introduction This tutorial will guide you through the migration of bare-metal firmware for the STM32F4 microcontroller to FreeRTOS. We will implement two...

Oct 9, 2025

implement secure boot on stm32f4 with rsa ecc using openssl and cubemx
How-To-Tutorials
Implement Secure Boot on STM32F4 with RSA & ECC Using OpenSSL and CubeMX

Implementing Secure Boot on STM32F4 with RSA and ECC for Firmware Authentication Using OpenSSL and CubeMX Secure Boot is a critical security feature that...

Oct 9, 2025

build a fault tolerant safety state machine for pwm actuators with stm32
How-To-Tutorials
Build a Fault-Tolerant Safety State Machine for PWM Actuators with STM32

Implementing a Fault-Tolerant Safety State Machine for PWM-Controlled Industrial Actuators Using an STM32 Microcontroller with Watchdog Timer Integration This...

Oct 9, 2025

How-To-Tutorials
Optimize TensorFlow Lite Micro Models for ARM Cortex-M4 with 16-bit Fixed-Point

Introduction Optimizing TensorFlow Lite Micro quantized models for ARM Cortex-M4 inference can significantly enhance the performance and efficiency of machine...

Oct 9, 2025

implement wear leveling and journaling in stm32 firmware for nand flash
How-To-Tutorials
Implement Wear Leveling and Journaling in STM32 Firmware for NAND Flash

Implementing Wear Leveling and Journaling in STM32 Firmware for NAND Flash This tutorial will guide you through the process of implementing wear leveling and...

Oct 9, 2025

how to tune a digital pid controller for buck converter with stm32f4
How-To-Tutorials
How to Tune a Digital PID Controller for Buck Converter with STM32F4

Your buck converter's output is only as good as your control loop. Here's how to implement and tune a digital PID controller on STM32F4 with proper anti-windup, ADC-synchronized feedback, and practical tuning advice for real load conditions.

Oct 9, 2025

How-To-Tutorials
Integrate HAL and LL Drivers in STM32CubeIDE for I2C Temperature Monitoring

Integrating HAL and LL Drivers in STM32CubeIDE for a Real-Time Temperature Monitoring System Using I2C with MPU6050 This tutorial will guide you through the...

Oct 8, 2025

how to implement a kalman filter for mpu6050 calibration on stm32f4 quadcopter
How-To-Tutorials
How to Implement a Kalman Filter for MPU6050 Calibration on STM32F4 Quadcopter

Fuse MPU6050 accelerometer and gyroscope data with a Kalman filter on STM32F4 for stable quadcopter orientation. Covers wiring, raw data reading, filter implementation with bias tracking, and tuning tips.

Oct 8, 2025

migrate stm32f4 firmware to freertos with i2c and pwm a step by step guide
How-To-Tutorials
Migrate STM32F4 Firmware to FreeRTOS with I2C and PWM: A Step-by-Step Guide

Introduction This tutorial will guide you through the process of migrating your STM32F4 bare-metal firmware to FreeRTOS, while integrating I2C and PWM...

Oct 8, 2025

implement tpm 2 0 dice root of trust on raspberry pi 4 for secure iot
How-To-Tutorials
Implement TPM 2.0 DICE Root of Trust on Raspberry Pi 4 for Secure IoT

Implementing a TPM 2.0-based DICE Root of Trust on a Raspberry Pi 4 for Secure IoT Device Identity Management This tutorial will guide you through the process...

Oct 8, 2025

reduce stm32 firmware size by 30 with gcc optimization flags
How-To-Tutorials
Reduce STM32 Firmware Size by 30% with GCC Optimization Flags

Reducing STM32 Firmware Size by 30% Using GCC Optimization Flags ‘-Os’ and ‘-ffunction-sections’ In embedded systems development,...

Oct 8, 2025

how to build a 16 bit adc data logger with circular buffer on stm32f4
How-To-Tutorials
How to Build a 16-bit ADC Data Logger with Circular Buffer on STM32F4

Build a 16-bit ADC data logger on the STM32F4 using a circular buffer and I2C temperature sensor. Covers hardware setup, buffer implementation, timer-driven sampling, and common debugging tips.

Oct 8, 2025

how to implement and debug freertos task scheduler on stm32f4
How-To-Tutorials
How to Implement and Debug FreeRTOS Task Scheduler on STM32F4

Set up FreeRTOS v11.x on STM32F4 using a custom hardware timer as the tick source instead of SysTick. Covers timer configuration, task creation, interrupt priorities, and practical debugging techniques.

Oct 8, 2025