How-To-Tutorials

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

176 articles

how to configure vs code with cmake for stm32f4xx projects using gnu arm toolchain
How-To-Tutorials
How to Configure VS Code with CMake for STM32F4xx Projects Using GNU Arm Toolchain

Set up VS Code with CMake and the GNU Arm Embedded Toolchain for STM32F4xx development. Covers toolchain files, Cortex-Debug configuration, and building bare-metal firmware outside of STM32CubeIDE.

Sep 22, 2025

how to configure stm32 exti for button presses with hardware debouncing
How-To-Tutorials
How to Configure STM32 EXTI for Button Presses with Hardware Debouncing

Every mechanical button bounces. A simple RC filter on the hardware side eliminates the noise before it reaches your GPIO, keeping your EXTI interrupt handler clean and predictable.

Sep 22, 2025

how to set up an esp32 web server with static ip in arduino ide
How-To-Tutorials
How to Set Up an ESP32 Web Server with Static IP in Arduino IDE

Give your ESP32 web server a fixed address on the network so you always know where to find it. Full walkthrough with Arduino IDE 2.x and the ESP32 Arduino core v3.x.

Sep 22, 2025

how to implement stm32 i2c interface for vl53l0x distance sensing at 50hz
How-To-Tutorials
How to Implement STM32 I2C Interface for VL53L0X Distance Sensing at 50Hz

Read VL53L0X Time-of-Flight distance measurements at a steady 50Hz using STM32 I2C and a hardware timer. Includes the full ST API integration and platform layer setup.

Sep 22, 2025

how to implement kalman filter for mpu6050 sensor fusion on stm32
How-To-Tutorials
How to Implement Kalman Filter for MPU6050 Sensor Fusion on STM32

Raw accelerometer data is noisy and gyroscope data drifts. A Kalman filter fuses both MPU6050 sensors on STM32 to produce stable, accurate orientation estimates.

Sep 22, 2025

stm32 spi communication draw 16 bit rgb graphics on 2 4 inch tft display
How-To-Tutorials
STM32 SPI Communication: Draw 16-bit RGB Graphics on 2.4-inch TFT Display

Introduction In this tutorial, we will learn how to use SPI communication with an STM32 microcontroller to draw 16-bit RGB graphics on a 2.4-inch TFT display...

Sep 22, 2025

How-To-Tutorials
Integrate BME280 Sensor in Zephyr Using Device Tree for Temp and Humidity

Integrating a BME280 Environmental Sensor in Zephyr Using Device Tree The BME280 sensor is a versatile device that can measure temperature, humidity, and...

Sep 22, 2025

set up vs code with cmake for stm32f4 embedded c projects using stm32cubemx
How-To-Tutorials
Set Up VS Code with CMake for STM32F4 Embedded C Projects Using STM32CubeMX

Introduction Setting up Visual Studio Code (VS Code) for STM32F4 embedded development can streamline your workflow, especially when combined with CMake and the...

Sep 22, 2025

configure-vs-code-for-stm32f4-development-with-cmake-and-arm-gcc-toolchain.png
How-To-Tutorials
Configure VS Code for STM32F4 Development with CMake and ARM GCC Toolchain

Configuring VS Code with CMake and the ARM GCC Toolchain for STM32F4 Embedded C Development In this tutorial, you will learn how to set up Visual Studio Code...

Sep 22, 2025

how-to-configure-esp32-with-lmic-for-lorawan-sensor-data-transmission.png
How-To-Tutorials
How to Configure ESP32 with LMIC for LoRaWAN Sensor Data Transmission

LoRaWAN lets you send sensor data over kilometers on almost no power. Here's how to wire an ESP32 to an RFM95W LoRa module, set up the MCCI LMIC library, and get sensor readings flowing to your network server every 10 minutes.

Sep 22, 2025

how-to-implement-wi-fi-remote-logging-with-zephyr-rtos-and-mqtt-over-tls.png
How-To-Tutorials
How to Implement Wi-Fi Remote Logging with Zephyr RTOS and MQTT over TLS

Remote logging over Wi-Fi with Zephyr RTOS and MQTT over TLS lets you stream encrypted sensor data from embedded devices without physical access. This guide covers Zephyr v3.7+ setup, TLS 1.3 configuration, and building a publish pipeline from sensor to broker.

Sep 22, 2025

implement-esp32-ble-gatt-server-for-real-time-temperature-and-humidity-data.png
How-To-Tutorials
Implement ESP32 BLE GATT Server for Real-Time Temperature and Humidity Data

Introduction This tutorial will guide you through implementing a BLE (Bluetooth Low Energy) GATT (Generic Attribute Profile) server on an ESP32 to transmit...

Sep 22, 2025

How-To-Tutorials
How to Implement a PID Controller for NEMA 17 Stepper Motor with Arduino

Stepper motors skip steps and stall when pushed hard. A PID controller closes the loop, giving your NEMA 17 smooth acceleration using Arduino and AccelStepper.

Sep 22, 2025

how-to-implement-esp32-deep-sleep-mode-for-battery-efficient-iot-monitoring.png
How-To-Tutorials
How to Implement ESP32 Deep Sleep Mode for Battery-Efficient IoT Monitoring

Put your ESP32 into deep sleep between sensor readings and extend battery life from days to months. Covers timer and GPIO wakeup, RTC memory, DHT22 integration, and practical tips for minimizing power consumption.

Sep 5, 2025

how-to-implement-efuse-secure-key-storage-for-aes-encryption-on-esp32.png
How-To-Tutorials
How to Implement eFUSE Secure Key Storage for AES Encryption on ESP32

The ESP32's eFUSE block gives you one-time-programmable hardware key storage that's far more secure than hardcoding AES keys in firmware. This guide covers burning AES-128 keys into eFUSE key blocks using ESP-IDF v5.3+ and reading them back for hardware-accelerated encryption.

Sep 5, 2025

how-to-implement-a-zephyr-wi-fi-logging-system-with-mqtt-for-dht22-data.png
How-To-Tutorials
How to Implement a Zephyr Wi-Fi Logging System with MQTT for DHT22 Data

Build a Zephyr RTOS Wi-Fi logging system on ESP32 that reads DHT22 temperature data and publishes it to an MQTT broker, using the modern Zephyr v3.7+ sensor API and networking stack.

Sep 5, 2025

how-to-implement-a-circular-dma-buffer-for-uart-on-stm32f4-at-9600bps.png
How-To-Tutorials
How to Implement a Circular DMA Buffer for UART on STM32F4 at 9600bps

Circular DMA lets your STM32F4 receive UART data at 9600 bps in the background without burning CPU cycles. Set up a ring buffer, configure DMA in circular mode, and track your read position using the NDTR register.

Sep 5, 2025

how-to-implement-freertos-tasks-and-message-queues-on-stm32f4-for-temperature-logging.png
How-To-Tutorials
How to Implement FreeRTOS Tasks and Message Queues on STM32F4 for Temperature Logging

FreeRTOS tasks and message queues give your STM32F4 temperature logger a clean producer-consumer architecture. Wire up an LM35, create a reader task and a logger task, and connect them with a queue that scales to multiple sensors.

Sep 5, 2025

how-to-cross-compile-c-programs-for-raspberry-pi-using-gcc-on-ubuntu.png
How-To-Tutorials
How to Cross-Compile C Programs for Raspberry Pi Using GCC on Ubuntu

Speed up Raspberry Pi development by cross-compiling C programs on your Ubuntu workstation. Covers toolchain setup, Makefiles, and deploying ARM binaries to the Pi.

Sep 5, 2025

how-to-create-unity-ceedling-firmware-unit-tests-for-stm32-gpio-toggle.png
How-To-Tutorials
How to Create Unity/Ceedling Firmware Unit Tests for STM32 GPIO Toggle

Set up Unity and Ceedling to unit test STM32 firmware on your host machine -- no hardware needed. Covers project setup, GPIO toggle testing, CMock for mocking HAL dependencies, and practical tips.

Sep 5, 2025

debug-stm32f4-with-st-link-and-gdb-real-time-breakpoint-setup-guide.png
How-To-Tutorials
Debug STM32F4 with ST-Link and GDB: Real-Time Breakpoint Setup Guide

Introduction Debugging STM32F4 microcontrollers can be a complex task, but with the right tools and techniques, it becomes manageable. This tutorial will guide...

Sep 5, 2025

How-To-Tutorials
Integrate MPU6050 with Kalman Filter for Motion Tracking on STM32

Integrating MPU6050 Data with Kalman Filter on STM32 The MPU6050 sensor combines a 3-axis accelerometer and a 3-axis gyroscope, making it a popular choice for...

Sep 5, 2025

How-To-Tutorials
How to Implement a Circular Buffer Log System on STM32 SPI Flash with DMA

Build a circular buffer log system on STM32 that writes to SPI flash using DMA transfers. Covers buffer management, flash write sequences, error handling with callbacks, and tips for surviving power loss in production.

Sep 5, 2025

how-to-monitor-temperature-in-real-time-with-esp32-dht22-and-mqtt.png
How-To-Tutorials
How to Monitor Temperature in Real-Time with ESP32, DHT22, and MQTT

Set up an ESP32 with a DHT22 sensor to publish real-time temperature readings over MQTT using Arduino IDE 2.x. Covers wiring, code, MQTT broker setup, and practical debugging tips.

Sep 5, 2025