STM32 LED Control: From Library Functions to Register-Level Programming

This article demonstrates basic STM32 GPIO control by blinking an onboard LED using both the Standard Peripheral Library and direct register manipulation. The target hardware uses the PC13 pin to drive the LED: a low output turns the LED on, a high output turns it off. All code is developed on an STM32F103 minimum system board. Schematic Analys ...

Posted on Wed, 07 Oct 2026 16:04:22 +0000 by Ollie Saunders

Linux LED Driver Framework with Hardware Abstraction

Character Device Driver Foundations Developing a Linux character device driver generally follows a standard sequence of operations: Acquire a major device number, either statically assigned or dynamically allocated by the kernel. Declare a file_operations structure to define the driver's supported interactions. Implement the requisite handlers ...

Posted on Mon, 06 Jul 2026 17:19:02 +0000 by Stressed

Understanding GPIO, LED, and Buzzer Control in Microcontrollers

GPIO (General Purpose Input/Output) GPIO pins are versatile pins on microcontrollers that can be configured as either inputs or outputs to interface with various electronic components. GPIO Configuration Modes Floating Input: The pin is left unconnected, which can lead to unpredictable states due to noise. Not recommended for practical applica ...

Posted on Sun, 10 May 2026 16:15:03 +0000 by spivey

Raspberry Pi 4B Button-Controlled LED Operation

Button Operation Principal A push button functions by connecting or disconnecting a circuit. When pressed, the circuit closes; when released, it opens. To read this state via a Genarel Purpose Input/Output (GPIO) pin, the pin must not be left floating, as ambient electrical noise could cause erratic readings. To prevent this, a pull-up or pull- ...

Posted on Sun, 10 May 2026 16:06:37 +0000 by bladechob

PWM LED Brightness Control Using MSPM0G3507 and Keil

Project Overview This project demonstrates controlling LED brightness through PWM (Pulse Width Modulation) on the MSPM0G3507 microcontroller using Keil MDK. Two push buttons adjust the brightness level up and down. Project Setup Creating the Project Obtain the MSPM0 SDK from the officiall Texas Instruments website. Navigate to the driver librar ...

Posted on Thu, 07 May 2026 23:53:42 +0000 by phphelpme