Smart Lock System Based on STM32: Lock Control

Smart Lock System Based on STM32: Lock Control

This section marks the beginning of our project, hardware groundwork. To start this project, I also need to learn about the hardware part, as both are indispensable.This collection is my study of hardware, recording some basics, taking it slow.Now let’s start our project.Here we use a motor to act as a door lock switch (the … Read more

Smart Lock System Based on STM32: A Classic Introduction and Timer Review

Now we have reached the configuration of the timer and the review of the interrupt demonstration, preparing adequately for the subsequent project.Question:The timer is provided with a clock frequency of 84MHz,please configure a 100KHz PWM waveform with a duty cycle of 30%. How should the timer be configured? Think about it first.First, from the information … Read more

In-Depth Analysis of the Linux PWM Subsystem

In-Depth Analysis of the Linux PWM Subsystem 1 Basics of PWM Technology 1.1 Basic Principles and Working Mechanism of PWM Pulse Width Modulation (PWM) is an effective technique that uses digital signals to simulate the control of analog circuits. The core idea is to equivalently obtain different analog voltage values by changing the duty cycle … Read more

RK3588 Platform Development Series: PWM Development

Introduction Pulse Width Modulation (PWM) is a commonly seen feature in embedded systems. It is a highly effective technique that utilizes the digital output of a microprocessor to control analog circuits, widely applied in various fields ranging from measurement and communication to power control and conversion. The Rockchip PWM supports three modes: Continuous mode, One-shot … Read more

Comparison of NXP’s SCTimer and TIM1 from ST

Comparison of NXP's SCTimer and TIM1 from ST

NXP Corporation’s SCTimer (State Configurable Timer) is highly powerful and can compete with TIM1 from the STM8 microcontroller. However, they differ in hardware design philosophy and application focus. The following is a comparison from multiple aspects. First, it should be noted that both powerful timers are unique to their respective designs. Their main features are … Read more

Arduino Power Module: DC Motor Fan

Arduino Power Module: DC Motor Fan

Arduino Sensor: HS-S01A Infrared SensorArduino Sensor: HS-S02P Infrared Sensor (Obstacle Avoidance)Arduino Sensor: HS-S03P Ultraviolet SensorArduino Sensor: HS-S05P Sound SensorArduino Sensor: HS-F07P Active BuzzerArduino Sensor: HS-S08P Flame SensorArduino Sensor: HS-S09LB Raindrop SensorArduino Sensor: HS-S09PC Soil Moisture Sensor Arduino Sensor: HS-S10P Mist Sensor Arduino Sensor: HS-S11-L Gas Sensor Arduino Sensor: HS-S20P Ambient Light Sensor Arduino Sensor: HS-S21P … Read more

Highlights of PWM Functionality in STC8H Microcontroller

Highlights of PWM Functionality in STC8H Microcontroller

The STC8H microcontroller’s PWM functionality is considered professional-grade, which is not available in other STC8 series. This functionality is designed by referencing and drawing inspiration from the design concepts and features of high-end timers in the STM32 series, making it very advanced. Its comprehensive capabilities surpass those of the same-level STM8 series microcontrollers. The following … Read more

Notes on Implementing Python Programming Control with ESP8266 Module

Notes on Implementing Python Programming Control with ESP8266 Module

1. Two Python Development Paths The ESP8266 runs Python mainly through two methods; understand the differences before getting started: MicroPython Firmware: Burn a lightweight version of Python directly into the module, allowing it to run Python code independently (suitable for local control); Remote Control: The ESP8266 runs a server, and a computer/mobile device sends commands … Read more

Challenges in Designing an Isolated DAC Output with PWM

Challenges in Designing an Isolated DAC Output with PWM

The goal of this design is to produce an isolated DAC output. It requires a 12V power supply to generate an output of 0~5V, achieving approximately 13.3 bits of resolution at 10,000 counts. The DAC output must stabilize within 1 second after changing settings, and it should maintain stability and low noise over extended periods. … Read more

Maximizing Efficiency in Two-Wheel Electric Vehicle MCUs

Maximizing Efficiency in Two-Wheel Electric Vehicle MCUs

1 Overview of Electric Vehicle Controllers The two-wheeled vehicle controller, simply put, controls the motor, which mainly consists of two parts: Hardware Core: AD sampling, CPU computation, PWM drive Software Core: Motor control algorithms, such as square wave control and FOC control (dual-resistor FOC/single-resistor FOC) 2 MCU Rollout Method Used in Controllers The first phase … Read more