MartinFowler

51 single chip WS2812RGB running water lamp

 
Overview

1. System block diagram
 
 
2. Project description
The running water lamp uses a full-color LED with built-in WS2812, which is driven by a single line. The driving timing requirements are relatively strict. This project uses the PWM inside the microcontroller for driving, and the timing is used according to the values ​​required in the RGB lamp manual. The logic analyzer has been carefully debugged to ensure that there will be no data transmission errors;
in terms of hardware, do not solder the parts marked DNI in the schematic diagram. The reserved position is convenient for using other methods such as SPI and serial port mode 0 to drive RGB lights;
burning When recording the program, please note: Select the 24MHz frequency in the STC programming tool, and use the reserved test points for programming.
    3. Button description:
                        K1: Switch the running water lamp style
                        K2: Switch the monochrome mode on and off
                        K3: Switch the brightness in the monochrome mode
 
3. Open source file description
Unzip the compressed package into several directories as shown above:
        device: button and RGB lamp driver
        project: keil project and project files developed using the EIDE plug-in in VSCode
        system: system file main.c and other
        hardware: schematic, BOM, Gerber
        information: data manual and other
         program files
 
 
4. Purchase links for some components
1. MCU:
https://m.tb.cn/h.UskVxr2?tk=KHqYdPjn5ct
2. Button
https://m.tb.cn/h.UIrU3Ef?tk=k01JdPjMUCN 
3. USB interface (MicroUSB with positioning post)
https ://m.tb.cn/h.Utd7jSC?tk=3uC9dPjnv44
 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-23 23:35:53

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号