STM32F103 GPIO Programming Fundamentals

STM32F103 GPIO Programming Fundamentals Overview In the previous article, we discussed the reset and clock configuration for the STM32F103C8T6 minimal system. At this point, the system clock (SYSCLK) has been configured to 72MHz through a 9x multiplication of the external 8MHz high-speed oscillator (HSE) using the PLL. With the minimal system ...

Posted on Sun, 20 Sep 2026 16:28:21 +0000 by jack bro

STM32 Micro-ROS Integration with STM32CubeIDE

Setting Up Micro-ROS in STM32CubeIDE Begin by adding the following Micro-ROS source files to your project's Core/Src directory: extra_sources/microros_time.c extra_sources/microros_allocators.c extra_sources/custom_memory_manager.c extra_sources/microros_transports/dma_transport.c After copying these files, right-click on your project in ST ...

Posted on Thu, 17 Sep 2026 16:38:10 +0000 by dclamp

Understanding STM32 Reset and Clock Configuration with RCC

Reset Mechanisms STM32 microcontrollers support three primary reset categories: system reset, power-on reset, and backup domain reset. System reset encompasses five different reset sources, with the NRST pin reset being the most commonly used method in minimum system designs. This hardware reset triggers when the NRST pin is pulled low, resetti ...

Posted on Wed, 09 Sep 2026 16:43:48 +0000 by Boerboel649

STM32 GPIO Input Configuration for Buttons and Sensors

Overview of GPIO Input Modes 1.1 Button Basics Mechanical buttons are common digital input devices that close a circuit when pressed and open it when released. Due to the physical nature of their internal spring contacts, they exhibit bounce—a series of rapid on/off transitions during state changes. This requires software or hardware debounc ...

Posted on Fri, 04 Sep 2026 16:39:15 +0000 by crusty76

Designing an ECG Acquisition System with STM32

System Overview An ECG acquisision system captures human electrocardiogram (ECG) signals through electrode arrays. The signals undergo signal conditioning (amplification and filtering) before being processed by an STM32 microcontroller for analog-to-digital conversion (ADC), digital filtering, and feature extraction (e.g., heart rate, QRS compl ...

Posted on Fri, 04 Sep 2026 16:23:27 +0000 by beselabios

STM32 GPIO Output Configuration and Control Techniques

General Purpose Input/Output (GPIO) pins typically operate with in a logic voltage range of 0 to 3.3V. While certain inputs may tolerate 5V, output stages are strictly limited to the 3.3V supply. To control higher-power devices such as motors or relays, an external driver circuit must be integrated between the MCU pin and the load. Hardware Arc ...

Posted on Tue, 01 Sep 2026 16:27:25 +0000 by mindrage00

STM32F103C8T6 Bare-Metal Hardware Foundation

Power Domain A 5 V micro-USB conncetor feeds the MIC5219-3. produces a clean 3.3 V rail. A green indicator LED confirms the rail is alive. USB 5 V ──► LDO 3.3 V ──► VDD, VDDA └──► LED (330 Ω → GND) Clock Tree The MCU can boot from three sources: HSI – internal 8 MHz RC, ±1 % HSE – external 8 MHz crystal, ±20 ppm PLL – mul ...

Posted on Fri, 28 Aug 2026 16:05:50 +0000 by vtolbert

Analog-to-Digital Conversion with STM32 Microcontrollers

Understanding ADC in Embedded Systems Analog-to-Digital Converters (ADCs) serve as a critical interface between analog signals and digital systems. In STM32 microcontrollers like the STM32F103C8T6, the ADC module provides precise conversion of analog voltages into digital values, enabling digital processing of real-world signals. 12-bit succes ...

Posted on Sun, 23 Aug 2026 16:09:41 +0000 by mwichmann4

RS485 Modbus RTU Communication Implementation with STM32

Protocol Overview Modbus RTU is a widely adopted industrial serial communication standard that utilizes binary encoding for efficient data exchange. When paired with the RS485 physical layer, it creates a robust system ideal for noisy industrial environments, sensor networks, and PLC integrations. RS485 employs differential signaling for noise ...

Posted on Sat, 22 Aug 2026 16:41:26 +0000 by abgoosht

STM32-Based Alibaba Cloud Fish Pond Water Quality Detection System (Undergraduate Graduation Project 24064)

Demo video: STM32-Based Alibaba Cloud Fish Pond Water Quality Detection System (Undergraduate Graduation Project 24064) System Functions The core controller is the STM32F103C8T6 microcontroller, which collects water quality data via a pH sensor, turbidity sensor, and temperature sensor. Users can configure threshold values for each parameter; i ...

Posted on Wed, 12 Aug 2026 16:00:21 +0000 by trailerparkboy