newlandmark

LED dimming circuit based on STM32

 
Overview

Main control : STM32F103C8T6

Function : 12-level LED brightness control

           Breathing light effect (adjustable speed)

Instructions :

         1. Dimming mode

                It enters the dimming mode when it is turned on, including 12 levels of brightness. Press KEY1 to increase the brightness, and KEY2 to increase the brightness. When the extreme value is reached, the LED flashes to indicate.

         2. Breathing light mode

                After powering on, long press KEY1 to enter the breathing light mode, press KEY1 to accelerate breathing, and vice versa for KEY2. When the extreme value is reached, the LED flashes to indicate.

                In the breathing light mode, press and hold KEY1 again to exit the breathing light mode.

 

Hardware support : STM32F103C8 external crystal oscillator 8MHz RCC function setting main frequency 72MHz   

       Pin occupation :

PA3~PA4         keys KEY1~KEY2

PB8 LED-PWM (TIM4-CH3)

PA13~PA14 SW download

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-24 01:21:25

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号