[go: up one dir, main page]

CN205620732U - Acoustic control light cube based on singlechip - Google Patents

Acoustic control light cube based on singlechip Download PDF

Info

Publication number
CN205620732U
CN205620732U CN201620309441.4U CN201620309441U CN205620732U CN 205620732 U CN205620732 U CN 205620732U CN 201620309441 U CN201620309441 U CN 201620309441U CN 205620732 U CN205620732 U CN 205620732U
Authority
CN
China
Prior art keywords
unit
chip microcomputer
sound
audio detection
detection unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201620309441.4U
Other languages
Chinese (zh)
Inventor
王金鹏
刘奇明
葛广军
李少飞
殷许鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Henan University of Urban Construction
Original Assignee
Henan University of Urban Construction
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Henan University of Urban Construction filed Critical Henan University of Urban Construction
Priority to CN201620309441.4U priority Critical patent/CN205620732U/en
Application granted granted Critical
Publication of CN205620732U publication Critical patent/CN205620732U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

本实用新型属于LED三维显示装置技术领域,具体涉及一种基于单片机的声控光立方,包括第一单片机、驱动单元、锁存单元、显示单元和为系统供电的电源单元,第一单片机与驱动单元和锁存单元连接,驱动单元和锁存单元分别与显示单元连接,还包括第二单片机、声音检测单元、音乐播放单元和音频检测单元,音频检测单元通过优先编码单元与第一单片机连接,第一单片机优先处理音频检测单元检测到的信号;声音检测单元的输出端与第二单片机的输入端连接,第二单片机的输出端通过继电器单元与音乐播放单元连接,第二单片机与第一单片机通信连接。本实用新型结构简单、立体感比较强。

The utility model belongs to the technical field of LED three-dimensional display devices, in particular to a sound-controlled light cube based on a single-chip microcomputer, comprising a first single-chip microcomputer, a drive unit, a latch unit, a display unit and a power supply unit for supplying power to the system, the first single-chip microcomputer and the drive unit It is connected with the latch unit, the drive unit and the latch unit are respectively connected with the display unit, and also includes a second single-chip microcomputer, a sound detection unit, a music player unit and an audio detection unit, and the audio detection unit is connected with the first single-chip microcomputer through a priority coding unit, and the second A single-chip microcomputer preferentially processes the signal detected by the audio detection unit; the output end of the sound detection unit is connected with the input end of the second single-chip microcomputer, the output end of the second single-chip microcomputer is connected with the music playback unit through the relay unit, and the second single-chip microcomputer communicates with the first single-chip microcomputer connect. The utility model has simple structure and relatively strong three-dimensional effect.

Description

一种基于单片机的声控光立方A sound-controlled light cube based on single-chip microcomputer

技术领域technical field

本实用新型属于LED三维显示装置技术领域,具体涉及一种基于单片机的声控光立方。The utility model belongs to the technical field of LED three-dimensional display devices, in particular to a sound-controlled light cube based on a single-chip microcomputer.

背景技术Background technique

目前LED显示屏与二维广告流水灯的应用相当广泛,在工业场所、商业街、娱乐场所都可以看到他们的身影,但这些应用都是二维显示,显示画面单一,不能动态的显示出三维立体图形,对于娱乐场所显然他们的显示效果过于简单,立体感比较弱,观赏性差。因此,能制作出灵活多变、绚丽多彩的立体三维图像LED显示,将给我们的生活带来前所未有的视觉新体验。At present, LED display screens and two-dimensional advertising running lights are widely used. They can be seen in industrial sites, commercial streets, and entertainment venues. Three-dimensional graphics, for entertainment venues, their display effect is obviously too simple, the three-dimensional effect is relatively weak, and the appreciation is poor. Therefore, being able to produce flexible and colorful three-dimensional image LED displays will bring an unprecedented new visual experience to our lives.

实用新型内容Utility model content

本实用新型新的目的在于提供一种结构简单、能够根据音乐动态显示相应的三维立体图形的基于单片机的声控光立方。The new purpose of the utility model is to provide a sound-controlled light cube based on a single-chip microcomputer, which has a simple structure and can dynamically display corresponding three-dimensional graphics according to music.

为实现上述目的,本实用新型采用以下技术方案:一种基于单片机的声控光立方,包括第一单片机、驱动单元、锁存单元、显示单元和为系统供电的电源单元,所述第一单片机的输出端分别与驱动单元和锁存单元的输入端连接,驱动单元和锁存单元的输出端分别与显示单元的输入端连接,所述显示单元为由512只LED灯组成的8*8*8立方体点阵显示器,立方体点阵显示器为八层,每一层LED灯的阴极连接到一起,每一竖列LED灯的阳极连接在一起,所述驱动单元的输出端与每一层LED灯阴极连接作为每一层LED灯的阴极驱动,所述锁存单元的输出端与每一竖列LED灯的阳极连接作为每一竖列LED灯的阳极驱动;还包括第二单片机、用于检测有无声音的有声音检测单元、音乐播放单元和用于检测音乐音频信号的音频检测单元,所述音频检测单元通过优先编码单元与第一单片机连接;所述声音检测单元的输出端与第二单片机的输入端连接,第二单片机的输出端通过继电器单元与音乐播放单元连接;第二单片机与第一单片机通信连接。In order to achieve the above object, the utility model adopts the following technical solutions: a sound-controlled light cube based on a single-chip microcomputer, including a first single-chip microcomputer, a drive unit, a latch unit, a display unit and a power supply unit for supplying power to the system, the first single-chip microcomputer The output terminals are respectively connected to the input terminals of the drive unit and the latch unit, and the output terminals of the drive unit and the latch unit are respectively connected to the input terminals of the display unit. The display unit is an 8*8*8 LED lamp composed of 512 Cube dot matrix display, the cube dot matrix display has eight layers, the cathodes of each layer of LED lights are connected together, the anodes of each vertical LED light are connected together, the output end of the drive unit is connected to the cathode of each layer of LED lights Connected as the cathode drive of each layer of LED lamps, the output of the latch unit is connected to the anode of each vertical LED lamp as the anode drive of each vertical LED lamp; it also includes a second single-chip microcomputer for detecting No sound has sound detection unit, music playing unit and the audio detection unit that is used to detect music audio signal, described audio frequency detection unit is connected with the first single-chip microcomputer by priority encoding unit; The output end of described sound detection unit is connected with the second single-chip microcomputer The input end of the second single-chip microcomputer is connected with the music player unit through the relay unit; the second single-chip microcomputer is connected with the first single-chip microcomputer for communication.

所述音频检测单元包括极低音频检测模块、中低音频检测模块、低音频检测模块、中音频检测模块、中高音频检测模块、高音频检测模块、极高音频检测模块。The audio detection unit includes an extremely low audio detection module, a middle and low audio detection module, a low audio detection module, a middle audio detection module, a middle and high audio detection module, a high audio detection module, and an extremely high audio detection module.

还包括用于检测音乐音强信号的音强检测单元,音强检测单元的输出端通过A/D转换单元与第二单片机连接。It also includes a sound intensity detection unit for detecting the music sound intensity signal, and the output end of the sound intensity detection unit is connected with the second single-chip microcomputer through the A/D conversion unit.

所述第一单片机和第二单片机均采用增强型8051单片机STC12C5A60S2。Both the first single-chip microcomputer and the second single-chip microcomputer adopt enhanced 8051 single-chip microcomputer STC12C5A60S2.

所述驱动单元采用八路NPN达林顿管驱动器ULN2803A。The drive unit uses an eight-way NPN Darlington tube driver ULN2803A.

所述锁存单元采用八片74HC573锁存器。The latch unit adopts eight 74HC573 latches.

所述优先编码单元采用74HC148优先编码器。The priority encoding unit adopts 74HC148 priority encoder.

与现有技术相比,本实用新型的有益效果为:Compared with the prior art, the beneficial effects of the utility model are:

1、本实用新型中的声音检测单元将检测到的声音信号发送给第二单片机,第二单片机对接收的信号进行分析处理,当声音检测单元检测到有声音时,第二单片机控制继电器单元得电,继电器单元的常开触头闭合,音乐播放单元启动,第二单片机同时向第一单片机发送信号,第一单片机控制显示单元跳出待机动画画面,显示单元显示预设动画后,第一单片机才开始处理音频检测单元和音强检测单元检测的信号,控制显示单元显示与此时音乐相应的3D图形。由于显示单元为由512只LED灯组成的8*8*8立方体点阵显示器,具有三维动画感强烈、观赏性好、性价比高的特点,可应用于三维的广告流水灯、城市夜景、户外景观等众多领域;1. The sound detection unit in the utility model sends the detected sound signal to the second single-chip microcomputer, and the second single-chip microcomputer analyzes and processes the received signal. When the sound detection unit detects that there is sound, the second single-chip microcomputer controls the relay unit to obtain Electricity, the normally open contact of the relay unit is closed, the music player unit starts, the second single-chip microcomputer sends a signal to the first single-chip microcomputer at the same time, the first single-chip microcomputer controls the display unit to jump out of the standby animation screen, and after the display unit displays the preset animation, the first single-chip microcomputer Start to process the signals detected by the audio detection unit and the sound intensity detection unit, and control the display unit to display 3D graphics corresponding to the music at this time. Since the display unit is an 8*8*8 cube dot matrix display composed of 512 LED lights, it has the characteristics of strong 3D animation, good appreciation, and high cost performance, and can be applied to 3D advertising running lights, city night scenes, and outdoor landscapes. and many other fields;

2、本实用新型中的音频检测单元包括7个音频检测模块,从极低音频到极高音频的7个频段,分别对应7个音频检测模块,音频检测单元的输出信号接74HC148优先编码器的输入端,74HC148优先编码器的输出端接第一单片机,第一单片机优先处理音频检测单元检测到的信号;并控制显示单元显示相应的3D动画图形;2. The audio detection unit in the utility model includes 7 audio detection modules, 7 frequency bands from extremely low audio frequency to extremely high audio frequency, corresponding to 7 audio detection modules respectively, and the output signal of the audio detection unit is connected to the 74HC148 priority encoder The input terminal, the output terminal of the 74HC148 priority encoder is connected to the first single-chip microcomputer, and the first single-chip microcomputer preferentially processes the signal detected by the audio detection unit; and controls the display unit to display corresponding 3D animation graphics;

3、本实用新型的中的音强检测单元检测范围大,能够检测音乐的每一个声音,并将检测到的音强信号经A/D转换单元转换处理后发送给第二单片机,当7个音频检测模块均检测不到与事先设定的固定频率一致的频率时,第一单片机才会处理音强检测单元通过A/D转换单元和第二单片机发生来的此时的音乐音强信号,然后第一单片机发送相应指令控制显示单元显示与此刻音乐相应的3D动画图形;音强检测单元的应用完善了音频检测单元检测范围小的问题。3. The sound intensity detection unit in the utility model has a large detection range, can detect each sound of music, and sends the detected sound intensity signal to the second single-chip microcomputer after being converted and processed by the A/D conversion unit. When 7 When the audio frequency detection modules cannot detect the frequency consistent with the preset fixed frequency, the first single-chip microcomputer will process the music sound intensity signal generated by the sound intensity detection unit at this time through the A/D conversion unit and the second single-chip microcomputer. Then the first single-chip microcomputer sends corresponding instructions to control the display unit to display 3D animation graphics corresponding to the music at the moment; the application of the sound intensity detection unit improves the problem of the small detection range of the audio detection unit.

附图说明Description of drawings

图1为本实用新型的控制原理框图;Fig. 1 is the control principle block diagram of the present utility model;

图2为本实用新型的声音检测单元检测电路原理图。Fig. 2 is a schematic diagram of the detection circuit of the sound detection unit of the present invention.

具体实施方式detailed description

本实用新型公开了一种基于单片机的声控光立方,如图1所示,包括第一单片机、第二单片机、用于检测有无声音的声音检测单元、音乐播放单元、音频检测单元和用于检测音乐音强信号的音强检测单元、驱动单元、锁存单元、显示单元和为系统供电的电源单元,第一单片机和第二单片机均采用增强型8051单片机STC12C5A60S2,驱动单元采用八路NPN达林顿管驱动器ULN2803A,锁存单元采用八片74HC573锁存器,第一单片机的输出端分别与驱动单元和锁存单元的输入端连接;显示单元为由512只LED灯组成的8*8*8立方体点阵显示器,具有三维动画感强烈、观赏性好、性价比高的特点,可应用于三维的广告流水灯、城市夜景、户外景观等众多领域;立方体点阵显示器为八层,每一层LED灯的阴极连接到一起,每一层LED灯有一个公共阴极管脚,共计八个阴极管脚,驱动器ULN2803A对应的输出端分别与八个阴极管脚连接,作为每一层LED灯的阴极驱动;立方体点阵显示器的每一竖列的LED灯的阳极连接在一起,共计64个阳极管脚,64个阳极管脚每八个为一组分别与八片锁存器74HC573对应的输出端连接,锁存单元作为每一竖列LED灯的阳极驱动。工作原理:从层分析,每一层有64只共阴极的LED灯,该64只共阴极的LED灯的阳极独立控制,互不影响;从列分析,该立方体点阵显示器有64个竖直方向的列,每一列有八只共阳的LED灯,该八只LED灯的阴极由于处在不同的层,因此可独立控制,互不影响。当想要点亮一只LED灯,则只需要给这只LED灯所在的列高电平,给这只LED灯所在的层低电平,这只LED灯就会受到正向的电压,从而被点亮。The utility model discloses a sound-controlled light cube based on a single-chip microcomputer. As shown in FIG. The sound intensity detection unit, drive unit, latch unit, display unit and power supply unit for the system to detect the music sound intensity signal, the first single-chip microcomputer and the second single-chip microcomputer both adopt enhanced 8051 single-chip microcomputer STC12C5A60S2, and the driving unit adopts eight-way NPN Darling Dayton tube driver ULN2803A, the latch unit adopts eight 74HC573 latches, the output terminals of the first single-chip microcomputer are respectively connected with the input terminals of the drive unit and the latch unit; the display unit is 8*8*8 composed of 512 LED lights Cube dot matrix display has the characteristics of strong 3D animation, good appreciation, and high cost performance. It can be applied to many fields such as 3D advertising running lights, urban night scenes, outdoor landscapes, etc. The cube dot matrix display has eight layers, each layer of LED The cathodes of the lamps are connected together, and each layer of LED lamps has a common cathode pin, a total of eight cathode pins, and the corresponding output terminals of the driver ULN2803A are respectively connected to the eight cathode pins, as the cathode drive of each layer of LED lamps ; The anodes of the LED lamps in each vertical column of the cube dot matrix display are connected together, a total of 64 anode pins, and each of the 64 anode pins is a group of eight, respectively connected to the corresponding output terminals of eight latches 74HC573 , the latch unit is used as the anode drive of each vertical LED lamp. Working principle: From layer analysis, each layer has 64 common-cathode LED lights, and the anodes of the 64 common-cathode LED lights are independently controlled without affecting each other; from column analysis, the cube dot matrix display has 64 vertical Each column has eight common anode LED lamps. Since the cathodes of the eight LED lamps are in different layers, they can be controlled independently without affecting each other. When you want to light up an LED lamp, you only need to give the column where the LED lamp is located a high level, and give the layer where the LED lamp is located a low level, and the LED lamp will receive a positive voltage, thus is lit.

声音检测单元的输出端与第二单片机的输入端连接,第二单片机的输出端通过继电器单元与音乐播放单元连接;声音检测单元包括麦克风和双电压比较器(LM393)U1,声音检测单元检测到有声音时,即麦克风拾取声音信号,并将声音信号转化为电信号,并依次通过放大电路和双电压比较器U1进行放大比较处理后发送给第二单片机,第二单片机对接收的信号进行处理并控制继电器单元得电,继电器单元的常开触头闭合,音乐播放单元启动;第二单片机同时向第一单片机发送信号,第一单片机控制显示单元跳出待机动画画面,并在显示预设动画后,第一单片机才开始处理音频检测单元和音强检测单元检测的信号,控制显示单元显示与此时音乐相应的3D动画图形。The output end of the sound detection unit is connected with the input end of the second single-chip microcomputer, and the output end of the second single-chip microcomputer is connected with the music playing unit through the relay unit; the sound detection unit includes a microphone and a dual voltage comparator (LM393) U1, and the sound detection unit detects When there is sound, the microphone picks up the sound signal and converts the sound signal into an electrical signal, which is then amplified and compared by the amplifier circuit and the dual-voltage comparator U1, and then sent to the second single-chip microcomputer, and the second single-chip microcomputer processes the received signal And control the relay unit to be energized, the normally open contact of the relay unit is closed, and the music player unit starts; the second single-chip microcomputer sends a signal to the first single-chip microcomputer at the same time, and the first single-chip microcomputer controls the display unit to jump out of the standby animation screen, and after displaying the preset animation , the first single-chip microcomputer begins to process the signals detected by the audio detection unit and the sound intensity detection unit, and controls the display unit to display 3D animation graphics corresponding to the music at this time.

声音检测单元检测电路原理图如图2所示,麦克风的引脚2通过第一电阻R1接电源,引脚1接地,麦克风的引脚2与引脚1之间并联连接第四电阻R4和第三电容C3,麦克风的引脚2通过第一电容C1与三极管T1的基极连接,三极管T1的基极通过第二电阻R2接电源,三极管T1的集电极通过第三电阻R3接电源,三极管T1的集电极通过第四电容C4接地,三极管T1的发射极接地,三极管T1的集电极与双电压比较器(LM393)U1的引脚3连接,双电压比较器U1的引脚4接地,双电压比较器UI的引脚8接电源,双电压比较器U1的引脚8还通过第二电容C2接地,双电压比较器U1的引脚2接基准电压源;接线器P3的引脚3接电源,接线器P3的引脚2(接地端)通过第五电阻R5与第一发光二极管D1的负极连接,第一发光二极管D1的正极接电源;接线器P3的引脚1(输出端)通过第六电阻R6与第二发光二极管D2的负极连接,第二发光二极管D2的正极接电源,第二发光二极管D2的正极与第七电阻R7的第一端连接,第七电阻R7的第二端与接线器P3的引脚1连接,第七电阻R7的第一端还与滑动电阻R8的第一端连接,滑动电阻R8的第二端接地,滑动电阻R8的滑动端与双电压比较器U1的引脚2连接,双电压比较器U1的引脚1与第二单片机的输入端连接。The schematic diagram of the detection circuit of the sound detection unit is shown in Figure 2. The pin 2 of the microphone is connected to the power supply through the first resistor R1, and the pin 1 is grounded. The fourth resistor R4 and the fourth resistor R4 are connected in parallel between the pin 2 and pin 1 of the microphone. Three capacitors C3, the pin 2 of the microphone is connected to the base of the transistor T1 through the first capacitor C1, the base of the transistor T1 is connected to the power supply through the second resistor R2, the collector of the transistor T1 is connected to the power supply through the third resistor R3, and the transistor T1 The collector of the transistor T1 is grounded through the fourth capacitor C4, the emitter of the transistor T1 is grounded, the collector of the transistor T1 is connected to the pin 3 of the dual voltage comparator (LM393) U1, and the pin 4 of the dual voltage comparator U1 is grounded, and the dual voltage Pin 8 of the comparator UI is connected to the power supply, pin 8 of the dual-voltage comparator U1 is grounded through the second capacitor C2, pin 2 of the dual-voltage comparator U1 is connected to the reference voltage source; pin 3 of the connector P3 is connected to the power supply , the pin 2 (ground terminal) of the connector P3 is connected to the cathode of the first light-emitting diode D1 through the fifth resistor R5, and the anode of the first light-emitting diode D1 is connected to the power supply; the pin 1 (output terminal) of the connector P3 is connected through the fifth resistor R5 The six resistors R6 are connected to the negative pole of the second light-emitting diode D2, the positive pole of the second light-emitting diode D2 is connected to the power supply, the positive pole of the second light-emitting diode D2 is connected to the first end of the seventh resistor R7, and the second end of the seventh resistor R7 is connected to the The pin 1 of the connector P3 is connected, the first end of the seventh resistor R7 is also connected to the first end of the sliding resistor R8, the second end of the sliding resistor R8 is grounded, the sliding end of the sliding resistor R8 is connected to the dual voltage comparator U1 Pin 2 is connected, and pin 1 of the dual-voltage comparator U1 is connected to the input terminal of the second microcontroller.

当接通电源时,第一发光二极管D1(电源指示灯)亮,当环境中有声音时,麦克风拾取声音信号并将声音信号转换为电信号,此时的电信号经三极管T1放大处理后输送至双电压比较器U1,双电压比较器U1将麦克风采集到的信号与基准电压信号进行比较,当没有声音或者声音很小时,双电压比较器U1引脚3的电压比较高,当双电压比较器U1引脚3的电压高于引脚2的电压(基准电压值),双电压比较器U1引脚1输出高电平,第二发光二极管D2(声音指示灯)灭;当有声音时,双电压比较器U1引脚3的电压低于引脚2的电压(基准电压值),双电压比较器U1引脚1输出低电平,第二发光二极管D2(声音指示灯)亮,第二单片机控制继电器单元得电,音乐播放单元启动,通过调节滑动电阻R8可以改变输入到双电压比较器U1的引脚3的基准电压值,可以改变麦克风采集声音信号的有效值的大小,即可以改变声音检测单元检测有效声音的大小。When the power is turned on, the first light-emitting diode D1 (power indicator light) is on. When there is sound in the environment, the microphone picks up the sound signal and converts the sound signal into an electrical signal. At this time, the electrical signal is amplified by the transistor T1 and sent To the dual-voltage comparator U1, the dual-voltage comparator U1 compares the signal collected by the microphone with the reference voltage signal. When there is no sound or the sound is very small, the voltage of pin 3 of the dual-voltage comparator U1 is relatively high. When the dual-voltage comparator The voltage of pin 3 of comparator U1 is higher than the voltage of pin 2 (reference voltage value), the output of pin 1 of dual voltage comparator U1 is high level, and the second light-emitting diode D2 (sound indicator light) is off; when there is sound, The voltage of pin 3 of the dual voltage comparator U1 is lower than the voltage of pin 2 (reference voltage value), the output of pin 1 of the dual voltage comparator U1 is low level, the second LED D2 (sound indicator light) is on, and the second The single-chip microcomputer controls the relay unit to be powered on, and the music player unit starts. By adjusting the sliding resistor R8, the reference voltage value input to pin 3 of the dual-voltage comparator U1 can be changed, and the effective value of the sound signal collected by the microphone can be changed, that is, it can be changed. The sound detection unit detects the magnitude of the effective sound.

音频检测单元包括极低音频检测模块、中低音频检测模块、低音频检测模块、中音频检测模块、中高音频检测模块、高音频检测模块和极高音频检测模块,音频检测单元通过优先编码单元与第一单片机的输入端连接,7个音频检测模块均采用LM567鉴频模块,7个音频检测模块对应7个LM567鉴频模块,LM567鉴频模块使用麦克风拾取声音信号,并对其进行2级放大处理,然后对信号进行鉴频识别,即与事先设定的一个固定频率进行比对,当频率相同时,输出一个开关量信号,达到对固定频率音频识别的目的,然后输出相应信号给74HC148优先编码器, 优先编码器进行编码后发送对应编码给第一单片机,第一单片机优先处理音频检测单元检测到的信号,并控制显示单元显示与音乐相应的3D动画图形。本设计中的7个音频检测模块检测音频频率分别对应极低音频到极高音频的7个频段中的一个固定频率,七段音频频段的划分为:极低音频段20~40HZ、中低音频段40~150HZ、低音频段150~500HZ、中音频段500~2KHZ、中高音频段2K~5KHZ、高音频段5K~10KHZ、极高音频段10~20KHZ;极低音频检测模块对应极低音频段中的40HZ频率、中低音频检测模块对应中低音频段中的100HZ频率、低音频检测模块对应低音频段中的300HZ频率、中音频检测模块对应中音频段中的1200HZ频率、中高音频检测模块对应中高音频段中的3000HZ频率、高音频检测模块对应高音频段中的7KHZ频率、极高音频检测模块对应极高音频段中的10KHZ频率。如表1为7个音频检测模块输出结果分析。The audio detection unit includes an extremely low audio detection module, a low-medium audio detection module, a low audio detection module, a mid-to-high audio detection module, a high-frequency audio detection module, and an extremely high audio detection module. The audio detection unit communicates with the priority encoding unit The input terminal of the first single-chip microcomputer is connected, and the 7 audio detection modules all use LM567 frequency discrimination modules, and the 7 audio detection modules correspond to 7 LM567 frequency discrimination modules. Processing, and then carry out frequency identification on the signal, that is, compare it with a fixed frequency set in advance. When the frequency is the same, output a switching signal to achieve the purpose of audio identification of the fixed frequency, and then output the corresponding signal to 74HC148 priority Encoder, Priority The encoder performs encoding and sends the corresponding code to the first single-chip microcomputer. The first single-chip microcomputer processes the signal detected by the audio detection unit first, and controls the display unit to display 3D animation graphics corresponding to the music. The audio frequency detected by the 7 audio detection modules in this design corresponds to a fixed frequency in the 7 frequency bands from extremely low audio frequency to extremely high audio frequency. 40~150HZ, low frequency range 150~500HZ, middle frequency range 500~2KHZ, middle and high frequency range 2K~5KHZ, high frequency range 5K~10KHZ, extremely high frequency range 10~20KHZ; the extremely low frequency detection module corresponds to 40HZ in the extremely low frequency range The frequency, middle and low audio frequency detection module corresponds to the 100HZ frequency in the middle and low frequency range, the low frequency detection module corresponds to the 300HZ frequency in the low frequency range, the middle frequency detection module corresponds to the 1200HZ frequency in the middle frequency range, and the middle and high frequency detection module corresponds to the middle and high frequency range The frequency of 3000HZ, the high-frequency detection module corresponds to the 7KHZ frequency in the high-frequency range, and the extremely high-frequency detection module corresponds to the 10KHZ frequency in the high-frequency range. Table 1 shows the analysis of the output results of the 7 audio detection modules.

表1Table 1

.

音强检测单元采用LM386模块,LM386模块是一种音频集成功率放大器,具有自身功耗低、更新内链增益可调整、电源电压范围大、外接元件少和总谐波失真小等优点。音强检测单元的输出端通过A/D转换单元与第二单片机连接,A/D转换单元采用ADC0809芯片,LM386模块的咪头能够检测音乐声音强度的变化,音乐声音强度信号被转换为电信号经功率放大器LM386进行放大处理后发送给A/D转换单元进行转换,A/D转换单元将接收到的电信号转换为数字信号发送给第二单片机,第二单片机将接收到的数字信号与其内部事先存储的各音强段对应的数字进行比对,分析出所接收信号属于哪一音强范围,然后将处理结果发送给第一单片机,供第一单片机参考,只有当音频检测单元检测不到与事先设定的固定频率一致的信号时,第一单片机才会处理音强检测单元通过第二单片机发送来的音乐音强信号,并且根据接收到的信号向驱动单元和/或锁存单元发送指令,控制显示单元显示与此时音乐相应的3D动画图形,音强检测单元的应用,其完善了音频检测单元检测范围小的问题。The sound intensity detection unit adopts LM386 module. LM386 module is an audio integrated power amplifier, which has the advantages of low power consumption, adjustable internal link gain, large power supply voltage range, few external components and small total harmonic distortion. The output end of the sound intensity detection unit is connected to the second single-chip microcomputer through the A/D conversion unit. The A/D conversion unit adopts the ADC0809 chip. The microphone of the LM386 module can detect the change of the music sound intensity, and the music sound intensity signal is converted into an electrical signal After being amplified by the power amplifier LM386, it is sent to the A/D conversion unit for conversion. The A/D conversion unit converts the received electrical signal into a digital signal and sends it to the second single-chip microcomputer. The second single-chip microcomputer combines the received digital signal with its internal Compare the numbers corresponding to each sound intensity segment stored in advance to analyze which sound intensity range the received signal belongs to, and then send the processing result to the first single-chip microcomputer for reference by the first single-chip microcomputer. When the pre-set fixed frequency is consistent with the signal, the first single-chip microcomputer will process the music sound intensity signal sent by the sound intensity detection unit through the second single-chip microcomputer, and send instructions to the drive unit and/or latch unit according to the received signal , the display unit is controlled to display 3D animation graphics corresponding to the music at this time, and the application of the sound intensity detection unit improves the problem of the small detection range of the audio detection unit.

由于本设计设置有优先处理等级,音频检测单元和音强检测单元两路同步检测,检测效果好。Since this design has a priority processing level, the two-way synchronous detection of the audio detection unit and the sound intensity detection unit has a good detection effect.

工作原理:打开工作电源,显示单元显示待机动画,声音检测单元检测是否有声音,当检测不到声音时,显示单元依然显示待机动画;当检测到有声音时,声音检测单元向第二单片机发送信号,第二单片机控制继电器单元动作,音乐播放单元启动开始播放音乐;同时,第二单片机向第一单片机发送信号,第一单片机接收到信号后控制显示单元跳出待机动画显示相应的预设图形。Working principle: Turn on the working power, the display unit displays the standby animation, the sound detection unit detects whether there is sound, when no sound is detected, the display unit still displays the standby animation; when the sound is detected, the sound detection unit sends a message to the second microcontroller signal, the second single-chip microcomputer controls the action of the relay unit, and the music playback unit starts to play music; at the same time, the second single-chip microcomputer sends a signal to the first single-chip microcomputer, and after the first single-chip microcomputer receives the signal, the control display unit jumps out of the standby animation to display the corresponding preset graphics.

音频检测单元将检测到的音乐信号处理后发送给优先编码单元,优先编码器74HC148对其进行编码后发送对应编码给第一单片机,第一单片机对接收的信号进行处理并向驱动单元和/或锁存单元发送相应指令,控制显示单元显示随音乐变化的3D动画图形。The audio detection unit processes the detected music signal and sends it to the priority encoding unit, and the priority encoder 74HC148 encodes it and then sends the corresponding code to the first single-chip microcomputer, and the first single-chip microcomputer processes the received signal and sends it to the drive unit and/or The latch unit sends corresponding instructions to control the display unit to display 3D animation graphics that change with the music.

音强检测单元将检测到的信号依次通过A/D转换单元、第二单片机发送给第一单片机,第一单片机对接收的信号进行处理并向驱动单元和/或锁存单元发送相应指令,控制显示单元显示随音乐变化的3D动画图形。The sound intensity detection unit sends the detected signal to the first single-chip microcomputer successively through the A/D conversion unit and the second single-chip microcomputer, and the first single-chip microcomputer processes the received signal and sends corresponding instructions to the drive unit and/or latch unit to control The display unit displays 3D animated graphics that change with the music.

本实用新型结构简单,音频检测单元与音强检测单元两路同步检测,检测效果好,能够使显示单元根据音乐动态显示相应的3D图形,具有三维动画感强烈、观赏性好、性价比高的特点。The utility model has a simple structure, the audio detection unit and the sound intensity detection unit are two-way synchronous detection, the detection effect is good, and the display unit can dynamically display the corresponding 3D graphics according to the music, and has the characteristics of a strong sense of three-dimensional animation, good appreciation and high cost performance .

Claims (7)

1.一种基于单片机的声控光立方,包括第一单片机、驱动单元、锁存单元、显示单元和为系统供电的电源单元,所述第一单片机的输出端分别与驱动单元和锁存单元的输入端连接,驱动单元和锁存单元的输出端分别与显示单元的输入端连接,所述显示单元为由512只LED灯组成的8*8*8立方体点阵显示器,立方体点阵显示器为八层,每一层LED灯的阴极连接到一起,驱动单元的输出端与每一层LED灯阴极连接作为每一层LED灯的阴极驱动,每一竖列LED灯的阳极连接在一起,锁存单元的输出端与每一竖列LED灯的阳极连接作为每一竖列LED灯的阳极驱动;其特征在于:还包括第二单片机、用于检测有无声音的声音检测单元、音乐播放单元和用于检测音乐音频信号的音频检测单元,所述音频检测单元通过优先编码单元与第一单片机连接;所述声音检测单元的输出端与第二单片机的输入端连接,第二单片机的输出端通过继电器单元与音乐播放单元连接;第二单片机与第一单片机通信连接。1. A sound-controlled light cube based on a single-chip microcomputer, comprising a first single-chip microcomputer, a drive unit, a latch unit, a display unit and a power supply unit for system power supply, the output terminal of the first single-chip microcomputer is connected with the drive unit and the latch unit respectively The input terminals are connected, and the output terminals of the drive unit and the latch unit are respectively connected with the input terminals of the display unit. The display unit is an 8*8*8 cube dot matrix display composed of 512 LED lights, and the cube dot matrix display is eight layer, the cathodes of each layer of LED lamps are connected together, the output of the drive unit is connected to the cathode of each layer of LED lamps as the cathode drive of each layer of LED lamps, the anodes of each vertical LED lamp are connected together, and the latch The output end of the unit is connected to the anode of each vertical LED lamp as the anode drive of each vertical LED lamp; it is characterized in that it also includes a second single-chip microcomputer, a sound detection unit for detecting whether there is sound, a music playback unit and An audio detection unit for detecting music audio signals, the audio detection unit is connected with the first single-chip microcomputer through a priority coding unit; the output end of the sound detection unit is connected with the input end of the second single-chip microcomputer, and the output end of the second single-chip microcomputer is passed through The relay unit is connected with the music playing unit; the second single-chip microcomputer is communicatively connected with the first single-chip microcomputer. 2.如权利要求1所述的基于单片机的声控光立方,其特征在于:所述音频检测单元包括极低音频检测模块、中低音频检测模块、低音频检测模块、中音频检测模块、中高音频检测模块、高音频检测模块、极高音频检测模块。2. The sound-controlled light cube based on single-chip microcomputer as claimed in claim 1, characterized in that: the audio detection unit includes an extremely low audio detection module, a middle and low audio detection module, a low audio detection module, a middle audio detection module, and a middle and high audio detection module. Detection module, high audio detection module, extremely high audio detection module. 3.如权利要求1所述的基于单片机的声控光立方,其特征在于:还包括用于检测音乐音强信号的音强检测单元,音强检测单元的输出端通过A/D转换单元与第二单片机连接。3. the sound-controlled light cube based on single-chip microcomputer as claimed in claim 1, is characterized in that: also comprise the sound intensity detection unit that is used to detect music intensity signal, the output end of sound intensity detection unit is through A/D conversion unit and the first Two microcontrollers are connected. 4.如权利要求1-3任一所述的基于单片机的声控光立方,其特征在于:所述第一单片机和第二单片机均采用增强型8051单片机STC12C5A60S2。4. The sound-controlled light cube based on a single-chip microcomputer according to any one of claims 1-3, characterized in that: the first single-chip microcomputer and the second single-chip microcomputer both use enhanced 8051 single-chip microcomputer STC12C5A60S2. 5.如权利要求1-3任一所述的基于单片机的声控光立方,其特征在于:所述驱动单元采用八路NPN达林顿管驱动器ULN2803A。5. The sound-controlled light cube based on a single-chip microcomputer according to any one of claims 1-3, characterized in that: the drive unit is an eight-way NPN Darlington driver ULN2803A. 6.如权利要求1-3任一所述的基于单片机的声控光立方,其特征在于:所述锁存单元采用八片74HC573锁存器。6. The sound-activated light cube based on a single-chip microcomputer according to any one of claims 1-3, wherein the latch unit adopts eight 74HC573 latches. 7.如权利要求1-3任一所述的基于单片机的声控光立方,其特征在于:所述优先编码单元采用74HC148优先编码器。7. The sound-controlled light cube based on a single-chip microcomputer according to any one of claims 1-3, wherein the priority encoding unit adopts a 74HC148 priority encoder.
CN201620309441.4U 2016-04-14 2016-04-14 Acoustic control light cube based on singlechip Expired - Fee Related CN205620732U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201620309441.4U CN205620732U (en) 2016-04-14 2016-04-14 Acoustic control light cube based on singlechip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201620309441.4U CN205620732U (en) 2016-04-14 2016-04-14 Acoustic control light cube based on singlechip

Publications (1)

Publication Number Publication Date
CN205620732U true CN205620732U (en) 2016-10-05

Family

ID=57030599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201620309441.4U Expired - Fee Related CN205620732U (en) 2016-04-14 2016-04-14 Acoustic control light cube based on singlechip

Country Status (1)

Country Link
CN (1) CN205620732U (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106780911A (en) * 2016-12-30 2017-05-31 西南石油大学 A kind of gate inhibition's voice coding, decoding system and method
CN108888949A (en) * 2018-09-17 2018-11-27 龙岩学院 A kind of game interaction means and method based on Arduino
CN109118981A (en) * 2018-09-27 2019-01-01 深圳市眼界科技有限公司 Acoustic control matrix wall data interactive method, device and system
CN110190892A (en) * 2019-06-13 2019-08-30 上海彩虹鱼海洋科技股份有限公司 Short message receive-transmit system
CN110896575A (en) * 2019-12-17 2020-03-20 常州机电职业技术学院 LED three-section voltage display circuit and LED display method
CN112530432A (en) * 2020-12-01 2021-03-19 苏州三六零智能安全科技有限公司 Dynamic display system, device and method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106780911A (en) * 2016-12-30 2017-05-31 西南石油大学 A kind of gate inhibition's voice coding, decoding system and method
CN106780911B (en) * 2016-12-30 2019-02-12 西南石油大学 An access control voice encoding and decoding system and method
CN108888949A (en) * 2018-09-17 2018-11-27 龙岩学院 A kind of game interaction means and method based on Arduino
CN109118981A (en) * 2018-09-27 2019-01-01 深圳市眼界科技有限公司 Acoustic control matrix wall data interactive method, device and system
CN110190892A (en) * 2019-06-13 2019-08-30 上海彩虹鱼海洋科技股份有限公司 Short message receive-transmit system
CN110896575A (en) * 2019-12-17 2020-03-20 常州机电职业技术学院 LED three-section voltage display circuit and LED display method
CN110896575B (en) * 2019-12-17 2021-08-20 常州机电职业技术学院 LED three-segment voltage display circuit and LED display method
CN112530432A (en) * 2020-12-01 2021-03-19 苏州三六零智能安全科技有限公司 Dynamic display system, device and method

Similar Documents

Publication Publication Date Title
CN205620732U (en) Acoustic control light cube based on singlechip
CN204335113U (en) A light music fountain control circuit
CN204836738U (en) Acoustic control music lamp crowd
CN204335059U (en) Led
CN103899971B (en) A kind of Foldable desk lamp
CN202868405U (en) Light-emitting diode (LED) lamp device with intelligent voice recognition function
CN204350351U (en) A kind of full-automatic longitude and latitude controller for road lamp
CN201878380U (en) LED music sound control light system
CN207298883U (en) A kind of intelligent interaction LED outdoor lights process and equipments
CN205987491U (en) Stage lighting system of audio control
CN201601808U (en) Luminous earphone
CN208189935U (en) A data line whose light brightness can change with the sound
CN203338123U (en) Music light control panel
CN207422066U (en) A kind of gardens floor-type solar energy Landscape Lamp
CN201630665U (en) A new type of outdoor seat
CN204704767U (en) The lamp socket of a kind of lamppost and application thereof
CN205149641U (en) A background light control circuit for commercial car combination meter
CN206027106U (en) Intelligence stage, light, beautiful historical romance system of synthesizing of dance
CN211557595U (en) Wisdom street lamp visual control system
CN205596344U (en) Sound amplifying circuit and easy-to-hear device including the sound amplifying circuit
CN218299243U (en) A stereo set lamp pole circuit for real teaching of instructing of integrated operational amplifier
CN221202820U (en) Exhibition stand for exhibition hall
CN2645089Y (en) Portable audio signal display
CN203490918U (en) A sound-activated LED signboard with USB function
CN209066696U (en) A kind of karaoke chamber running lamp ceiling board

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20161005

Termination date: 20170414