匡畅
摘 要:针对目前市面上音乐节奏彩灯成本高、需要提前编程、效果单一等缺点,设计了一种基于频谱分析的音乐节奏灯光系统。该系统以单片机为控制核心,配合MSGEQ7芯片、WS2812彩灯模块、固态继电器模块,蓝牙音频模块等,可以实现对用户播放的音乐进行频谱分析,根据频谱特征判断音乐的鼓点节奏和音乐氛围,并控制彩灯随着音乐节奏进行不同效果的变化。該系统具有操作简单、无需编程、即插即用、效果丰富、识别精准等特点。
关键词:单片机;MSGEQ7;WS2812
中图分类号:TP311 文献标志码:A 文章编号:2095-2945(2020)19-0092-02
Abstract: In view of the shortcomings of music rhythm lights in the market, such as high cost, need to be programmed in advance, and single effect, a music rhythm lighting system based on spectrum analysis is designed. The system takes single-chip microcomputer as the control core, and cooperates with MSGEQ7 chip, WS2812 color lamp module, solid-state relay module, Bluetooth audio module and so on. It can ana