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

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

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

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

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

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

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
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

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

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

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

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

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
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

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

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

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

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

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

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

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

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
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
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

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