Initializing HD44780-Based 16x2 LCD with STM32 Using 8-Bit Mode

The HD44780 controller governs standard character LCD modules like the 1602. Proper initialization requires issuing specific function commadns in a precise sequence and timing, respecting data bus width, display geometry, and internal state transitions. Core HD44780 Command Summary Function RS R/W DB7–DB0 Timing Notes Clear Display 0 0 0 ...

Posted on Sun, 05 Jul 2026 16:28:12 +0000 by curioadmin

Using RViz to Visualize Robot Trajectory on Local Machine

A robot is equipped with an STM32 microcontroller and a Jetson Nano. The STM32 handles motor control and reads data from global positioning sensors, transmitting this information to the Jetson Nano. On the Nano, a node publishes global coordinates, while a subscriber node runs on a local computer to visualize the robot's movement path via RViz. ...

Posted on Sat, 04 Jul 2026 16:51:38 +0000 by shank888

STM32-Based High-Precision Digital Calendar and Clock Implementation

System Architecture and Objectives This design utilizes a STM32 microcontroller to construct a comprehensive digital timepiece and perpetual calendar. The system integrates real-time clock (RTC) management, automated date calculation, user interaction via rotary encoders, and adaptive power management. It is designed for longevity and reliabili ...

Posted on Tue, 30 Jun 2026 17:47:03 +0000 by hackalive

Configuring Interrupt Priority Groups and Preemption on STM32F1 Microcontrollers

Overview of STM32F1 Interrupt Architecture The STM32F1 series, built on the ARM Cortex-M3 core, supports a significant number of interrupts. While the Cortex-M3 architecture theoretically supports 240 external interrupts, the STM32F103 line simplifies this by implementing 60 maskable interrupts alongside 16 internal exceptions. These interrupts ...

Posted on Mon, 29 Jun 2026 16:41:11 +0000 by x_filed2k

STM32 USART Serial Communication Protocol

Communication Interfaces Communication interfaces enable data transfer between devices to expand hardware systems. Communication protocols define rules for data exchange between devices. Common communication interfaces include: USART: TX (transmit) and RX (receive) pins I2C: SCL (serial clock) and SDA (serial data) SPI: SCLK (serial clock), MO ...

Posted on Sun, 28 Jun 2026 16:42:03 +0000 by phpforever

Multi-Channel ADC Data Acquisition Using DMA on STM32

Configure the ADC to sample across 5 channels and enable DMA in circular mode. Buffer Definition and Initialization #define CHANNEL_COUNT 5 #define SAMPLES_PER_CHANNEL 100 static uint16_t raw_adc_buffer[CHAMPLES_PER_CHANNEL * CHANNEL_COUNT]; /** * @brief Initialize ADC calibration and start DMA transfer */ void ADC_Startup(void) { ...

Posted on Tue, 23 Jun 2026 17:54:34 +0000 by Magestic

STM32 Timer Implementation and PWM Control

Timers in STM32 Timers in STM32 microcontrollers are versatile peripherals that can count input clock signals and trigger interrupts when the count reaches a predetermined value. The timer's time base unit consists of a 16-bit counter, prescaler, and auto-reload register, enabling maximum timing periods of 59.65 seconds with a 72MHz clock. Beyo ...

Posted on Mon, 15 Jun 2026 17:49:19 +0000 by helloise

Designing an Intelligent Herbal Pot System Using STM32 Microcontroller

The system displays "Welcome to the Smart Pot System, please wait" upon power-up. After a two-second delay, the normal interface appears. On the first screen, the first line shows "Temperature Threshold Setting", the second line displays the current temperature reading, the third line shows the value from the DS18B20 sensor, ...

Posted on Sat, 13 Jun 2026 17:10:33 +0000 by drbigfresh

STM32F4 I2S Audio Interface: Protocol Timing and Master Clock Generation

The Inter-IC Sound (I2S) bus defines a serial link standard for streaming digital audio between integrated circuits. By routing clock and data on independent conductors, the protocol prevents timing-skew distortion, removing the need for dedicated jitter-compensation hardware in many designs. A minimal half-duplex I2S link uses three signals. T ...

Posted on Fri, 12 Jun 2026 17:50:30 +0000 by shaneH

Implementing External Interrupts (EXTI) on STM32 with Standard Peripheral Library

External interrupts allow a microcontroller to respond immediately too external events by pausing its current program execution, handling the interrupt request, and then resuming normal operation. The STM32 EXTI controller manages up to 20 interrupt/event lines, with GPIO pins 0-15 connected to EXTI lines 0-15. Additional lines serve specific p ...

Posted on Thu, 11 Jun 2026 17:08:35 +0000 by developerdave