[go: up one dir, main page]

CN103428965B - Intelligent LED color-changing lamp based on brainwave control and intelligent control method thereof - Google Patents

Intelligent LED color-changing lamp based on brainwave control and intelligent control method thereof Download PDF

Info

Publication number
CN103428965B
CN103428965B CN201310289586.3A CN201310289586A CN103428965B CN 103428965 B CN103428965 B CN 103428965B CN 201310289586 A CN201310289586 A CN 201310289586A CN 103428965 B CN103428965 B CN 103428965B
Authority
CN
China
Prior art keywords
control
eeg
module
signal
led
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.)
Active
Application number
CN201310289586.3A
Other languages
Chinese (zh)
Other versions
CN103428965A (en
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.)
Liyang Chang Technology Transfer Center Co ltd
Original Assignee
Changzhou University
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 Changzhou University filed Critical Changzhou University
Priority to CN201310289586.3A priority Critical patent/CN103428965B/en
Publication of CN103428965A publication Critical patent/CN103428965A/en
Application granted granted Critical
Publication of CN103428965B publication Critical patent/CN103428965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

本发明公开了一种基于脑波控制的智能LED变色灯及其智能控制方法,该智能LED变色灯包括脑电耳机控制单元、LDE变光单元和用于给所述脑电耳机控制单元和LDE变光单元提供电源的电源单元,所述脑电耳机控制单元包括Mindwave脑电耳机、脑波传感器模块、数据处理器模块、无线数据传输模块,所述LDE变光单元包括包含有控制芯片的信号传输处理模块、LED驱动模块、LED变光灯。本发明基于Mindwave脑电耳机的数据处理算法,提取集中度和冥思度作为灯的控制参量,采用无线通信方式进行脑电信号的采集与LED变色灯的智能控制。本发明增加了家居的智能性,可以有效的配合医学康复治疗,提高集中度与冥思度。

The invention discloses an intelligent LED color-changing lamp based on brain wave control and its intelligent control method. Dimming unit provides the power supply unit of power supply, and described EEG earphone control unit comprises Mindwave EEG earphone, electroencephalogram sensor module, data processor module, wireless data transmission module, and described LDE light changing unit comprises the signal that contains control chip Transmission processing module, LED driver module, LED dimming lamp. The present invention is based on the data processing algorithm of the Mindwave EEG headset, extracts the degree of concentration and the degree of meditation as the control parameters of the lamp, and uses wireless communication to collect the EEG signal and intelligently control the LED color-changing lamp. The invention increases the intelligence of home furnishing, can effectively cooperate with medical rehabilitation treatment, and improves concentration and meditation.

Description

一种基于脑波控制的智能LED变色灯及其智能控制方法An intelligent LED color-changing lamp based on brainwave control and its intelligent control method

技术领域 technical field

本发明涉及一种基于脑波控制的智能LED变色灯及其智能控制方法,主要用于多动症、抽动症等疾病的辅助康复治疗与智能家居应用领域。 The invention relates to an intelligent LED color-changing lamp based on brainwave control and an intelligent control method thereof, which are mainly used for auxiliary rehabilitation treatment of ADHD, tic disorder and other diseases and in the application field of smart home.

背景技术 Background technique

生物存在电现象,对大脑来说,脑细胞就是大脑内一个个“微小的发电站”。神经电活动,其频率变动范围在每秒1-30次之间,可划分为四个波段,即δ(1-3Hz)、θ(4-7Hz)、α(8-13Hz)、β(14-30Hz),而人的活动差异可以在这四种脑波信号上反应出来。脑电技术的发展使脑电信号可以应用在多种领域,例如生物检测、医学康复、意念游戏、智能家居等。 There are electrical phenomena in living things. For the brain, brain cells are "tiny power stations" in the brain. Neuroelectric activity, whose frequency ranges from 1 to 30 times per second, can be divided into four bands, namely δ (1-3Hz), θ (4-7Hz), α (8-13Hz), β (14 -30Hz), and the differences in human activities can be reflected in these four brain wave signals. With the development of EEG technology, EEG signals can be applied in various fields, such as biological detection, medical rehabilitation, mind games, smart home, etc.

基于脑波设计的变色LED灯,可以在医学领域辅助治疗小儿多动、情绪失能等多种意念控制类病例,也可以增加智能家居中的人机交互性。人们可以运用脑波放松与专注的情境,控制灯光的柔和变化和灯的亮灭。现有技术中的LED灯不能随脑波信号的变化而变化。 The color-changing LED lights designed based on brainwaves can assist in the medical field to treat children with hyperactivity, emotional disability and other cases of mind control, and can also increase the human-computer interaction in smart homes. People can use brainwaves to relax and concentrate, control the soft changes of lights and the lights on and off. The LED lamp in the prior art cannot change with the change of the brain wave signal.

发明内容 Contents of the invention

针对现有技术中存在的上述问题,本发明提供一种根据提取出来的不同脑电集中度和冥思度信号控制LED灯颜色变化的智能LED变色灯及其智能控制方法。 Aiming at the above-mentioned problems in the prior art, the present invention provides an intelligent LED color-changing lamp and an intelligent control method thereof that control the color change of the LED lamp according to extracted signals of different EEG concentrations and meditation degrees.

本发明的技术方案是: Technical scheme of the present invention is:

一种基于脑波控制的智能LED变色灯,包括脑电耳机控制单元、LDE变光单元和用于给所述脑电耳机控制单元和LDE变光单元提供电源的电源单元,所述脑电耳机控制单元包括Mindwave脑电耳机、脑波传感器模块、数据处理器模块、无线数据传输模块,所述LDE变光单元包括包含有控制芯片的信号传输处理模块、LED驱动模块、LED变光灯。 An intelligent LED color-changing lamp based on brainwave control, comprising an EEG earphone control unit, an LDE dimming unit and a power supply unit for providing power to the EEG earphone control unit and the LDE dimming unit, the EEG earphone The control unit includes a Mindwave EEG headset, an EEG sensor module, a data processor module, and a wireless data transmission module. The LDE dimming unit includes a signal transmission processing module including a control chip, an LED driver module, and an LED dimming lamp.

所述Mindwave脑电耳机用于接收脑电信号并将接收的脑电信号通过脑波传感器模块传输给数据处理器模块,所述数据处理器模块用于对脑波传感器模块的输入信号进行干扰滤波以及脑电信号特征的提取,所述无线数据传输模块接收经数据处理器模块处理后的脑电信号并将该信号传输给LDE变光单元中的信号传输处理模块。 The Mindwave EEG earphone is used to receive the EEG signal and transmit the received EEG signal to the data processor module through the EEG sensor module, and the data processor module is used to perform interference filtering on the input signal of the EEG sensor module As well as the extraction of EEG signal features, the wireless data transmission module receives the EEG signal processed by the data processor module and transmits the signal to the signal transmission processing module in the LDE dimming unit.

所述信号传输处理模块,用于接收脑电耳机控制单元传输来的脑电信号,提取集中度和冥思度作为灯的控制参量,将处理好的数据发送给LED驱动模块,基于信号强弱的不同,LED驱动模块驱动所述LED变光灯发出不同颜色的光并进行明暗切换。 The signal transmission processing module is used to receive the EEG signal transmitted by the EEG earphone control unit, extract the degree of concentration and the degree of meditation as the control parameters of the lamp, and send the processed data to the LED driver module, based on the strength of the signal The LED driver module drives the LED dimming lamp to emit light of different colors and switch between bright and dark.

所述无线数据传输模块为蓝牙数据传输模块,所述蓝牙数据传输模块有两种工作模式,即数据传输模式和远程控制模式;数据传输模式下:LED驱动模块与控制芯片串口连接,控制LED变光灯的颜色以及明暗变化;远程控制模式下:LED驱动模块不与控制芯片串口连接,直接通过芯片自带的I/O口与LED变光灯相连接,简单控制LED变光灯的颜色变化但不控制其亮度。 The wireless data transmission module is a bluetooth data transmission module, and the bluetooth data transmission module has two working modes, i.e. data transmission mode and remote control mode; in the data transmission mode: the LED driver module is connected with the serial port of the control chip to control the In the remote control mode: the LED driver module is not connected to the serial port of the control chip, but directly connected to the LED dimming lamp through the I/O port of the chip, and the color change of the LED dimming lamp is simply controlled but does not control its brightness.

一种基于脑波控制的智能LED变色灯的智能控制方法,该方法基于Mindwave脑电耳机的数据处理算法,提取集中度和冥思度作为灯的控制参量,采用无线通信方式进行脑电信号的采集与LED变色灯的智能控制,具体包括如下步骤: An intelligent control method of an intelligent LED color-changing lamp based on brainwave control. This method is based on the data processing algorithm of Mindwave EEG headsets, extracts concentration and meditation as the control parameters of the lamp, and uses wireless communication to monitor EEG signals. Acquisition and intelligent control of LED color-changing lights include the following steps:

(1)由Mindwave脑电耳机接收脑电信号并将接收的脑电信号通过脑波传感器模块传输给数据处理器模块;数据处理器模块对脑波传感器模块的输入信号进行干扰滤波以及脑电信号特征的提取,无线数据传输模块接收经数据处理器模块处理后的脑电信号并将该信号传输给LDE变光单元中的信号传输处理模块。 (1) The Mindwave EEG headset receives the EEG signal and transmits the received EEG signal to the data processor module through the EEG sensor module; the data processor module performs interference filtering on the input signal of the EEG sensor module and the EEG signal For feature extraction, the wireless data transmission module receives the EEG signal processed by the data processor module and transmits the signal to the signal transmission processing module in the LDE dimming unit.

(2)信号传输处理模块接收脑电耳机控制单元传输来的脑电信号,通过信号处理优化算法从提取出所需的控制参数并转换为实际控制信号,提取集中度和冥思度作为灯的控制参量,将处理好的数据发送给LED驱动模块,基于信号强弱的不同,LED驱动模块驱动LED变光灯发出不同颜色的光并进行明暗切换。 (2) The signal transmission and processing module receives the EEG signal transmitted by the EEG headset control unit, extracts the required control parameters through the signal processing optimization algorithm and converts them into actual control signals, and extracts the degree of concentration and meditation as the lamp's Control the parameters and send the processed data to the LED driver module. Based on the strength of the signal, the LED driver module drives the LED dimmer to emit different colors of light and switch between light and dark.

本发明的有益效果是: The beneficial effects of the present invention are:

1、增加家居的智能性,将脑电科技与传统家居融合起来,让灯光随着注意力与心情的改变而发生变化; 1. Increase the intelligence of the home, integrate the EEG technology with the traditional home, and let the light change with the change of attention and mood;

2、可以有效的配合进行小儿多动症,情绪失能、老人智力恢复等方面的医学康复治疗; 2. It can effectively cooperate with the medical rehabilitation treatment of children with ADHD, emotional disability, and the intellectual recovery of the elderly;

3、开发人类的潜在智力,提高集中度与冥思度。 3. Develop human potential intelligence, improve concentration and meditation.

附图说明 Description of drawings

图1是本发明一种基于脑波控制的智能LED变色灯的系统框图。 Fig. 1 is a system block diagram of an intelligent LED color-changing lamp based on brain wave control according to the present invention.

具体实施方式 Detailed ways

下面结合附图对本发明作进一步详细说明。 The present invention will be described in further detail below in conjunction with the accompanying drawings.

如图1所示,本发明一种基于脑波控制的智能LED变色灯包括脑电耳机控制单元、LDE变光单元和用于给脑电耳机控制单元和LDE变光单元提供电源的电源单元,脑电耳机控制单元包括Mindwave脑电耳机、脑波传感器模块、数据处理器模块、无线数据传输模块,LDE变光单元包括包含有控制芯片的信号传输处理模块、LED驱动模块、LED变光灯。 As shown in Figure 1, an intelligent LED color-changing lamp based on brainwave control of the present invention includes an EEG headset control unit, an LDE dimming unit, and a power supply unit for providing power to the EEG headset control unit and the LDE dimming unit, The EEG headset control unit includes a Mindwave EEG headset, an EEG sensor module, a data processor module, and a wireless data transmission module. The LDE dimming unit includes a signal transmission processing module including a control chip, an LED driver module, and an LED dimming lamp.

Mindwave脑电耳机,用于接收脑电信号并将接收的脑电信号通过脑波传感器模块传输给数据处理器模块,数据处理器模块用于对脑波传感器模块的输入信号进行干扰滤波以及脑电信号特征的提取,无线数据传输模块接收经数据处理器模块处理后的脑电信号并将该信号传输给LDE变光单元中的信号传输处理模块。 Mindwave EEG earphones are used to receive EEG signals and transmit the received EEG signals to the data processor module through the EEG sensor module, and the data processor module is used for interference filtering and EEG Extraction of signal features, the wireless data transmission module receives the EEG signal processed by the data processor module and transmits the signal to the signal transmission processing module in the LDE dimming unit.

信号传输处理模块,用于接收脑电耳机控制单元传输来的脑电信号,提取集中度和冥思度作为灯的控制参量,将处理好的数据发送给LED驱动模块,基于信号强弱的不同,LED驱动模块驱动LED变光灯发出不同颜色的光并进行明暗切换。 The signal transmission processing module is used to receive the EEG signal transmitted by the EEG headset control unit, extract the degree of concentration and the degree of meditation as the control parameters of the lamp, and send the processed data to the LED driver module, based on the difference in signal strength , the LED drive module drives the LED dimming lamp to emit light of different colors and switch between light and dark.

无线数据传输模块为蓝牙数据传输模块,蓝牙数据传输模块有两种工作模式,即数据传输模式和远程控制模式;数据传输模式下:LED驱动模块与控制芯片串口连接,控制LED变光灯的颜色以及明暗变化;远程控制模式下:LED驱动模块不与控制芯片串口连接,直接通过芯片自带的I/O口与LED变光灯相连接,简单控制LED变光灯的颜色变化但不控制其亮度。 The wireless data transmission module is a Bluetooth data transmission module, and the Bluetooth data transmission module has two working modes, namely data transmission mode and remote control mode; in data transmission mode: the LED driver module is connected to the serial port of the control chip to control the color of the LED dimming lamp And the change of light and shade; in the remote control mode: the LED driver module is not connected to the serial port of the control chip, but directly connected to the LED dimming lamp through the I/O port of the chip, which simply controls the color change of the LED dimming lamp but does not control its brightness.

本发明一种基于脑波控制的智能LED变色灯的智能控制方法,基于Mindwave脑电耳机的数据处理算法,提取集中度和冥思度作为灯的控制参量,采用无线通信方式进行脑电信号的采集与LED变色灯的智能控制,具体包括如下步骤: The present invention is an intelligent control method of an intelligent LED color-changing lamp based on brain wave control. Based on the data processing algorithm of the Mindwave EEG earphone, the degree of concentration and the degree of meditation are extracted as the control parameters of the lamp, and the EEG signal is detected by wireless communication. Acquisition and intelligent control of LED color-changing lights include the following steps:

(1)由Mindwave脑电耳机接收脑电信号并将接收的脑电信号通过脑波传感器模块传输给数据处理器模块;数据处理器模块对脑波传感器模块的输入信号进行干扰滤波以及脑电信号特征的提取,无线数据传输模块接收经数据处理器模块处理后的脑电信号并将该信号传输给LDE变光单元中的信号传输处理模块。 (1) The Mindwave EEG headset receives the EEG signal and transmits the received EEG signal to the data processor module through the EEG sensor module; the data processor module performs interference filtering on the input signal of the EEG sensor module and the EEG signal For feature extraction, the wireless data transmission module receives the EEG signal processed by the data processor module and transmits the signal to the signal transmission processing module in the LDE dimming unit.

(2)信号传输处理模块接收脑电耳机控制单元传输来的脑电信号,通过信号处理优化算法从提取出所需的控制参数并转换为实际控制信号,提取集中度和冥思度作为灯的控制参量,将处理好的数据发送给LED驱动模块,基于信号强弱的不同,LED驱动模块驱动LED变光灯发出不同颜色的光并进行明暗切换。 (2) The signal transmission and processing module receives the EEG signal transmitted by the EEG headset control unit, extracts the required control parameters through the signal processing optimization algorithm and converts them into actual control signals, and extracts the degree of concentration and meditation as the lamp's Control the parameters and send the processed data to the LED driver module. Based on the strength of the signal, the LED driver module drives the LED dimmer to emit different colors of light and switch between light and dark.

本发明一种基于脑波控制的智能LED变色灯的智能控制方法的具体过程如下: The specific process of the intelligent control method of an intelligent LED color-changing lamp based on brain wave control of the present invention is as follows:

Mindwave脑电耳机每一秒钟发出512个小数据包和1个大数据包,所有数据通过蓝牙无线传输进入到labview所设置的虚拟串口中,对于进入到串口中的数据包,通过程序对整个数据包进行有效数据的提取,最终目的是提取集中度(Attention)和冥思度(Meditation)这两个有效特征信号。 The Mindwave EEG headset sends out 512 small data packets and 1 large data packet every second. All data enters the virtual serial port set by labview through Bluetooth wireless transmission. For the data packets entering the serial port, the entire The data packet extracts effective data, and the ultimate goal is to extract two effective characteristic signals of concentration (Attention) and meditation (Meditation).

上述集中度和冥思度的提取过程为:首先在513个数据包中找到唯一的大数据包。凡是大数据包,其数据格式均如下:AA AA 20 02 C8 83 18 00 31 6C 00 BF 2E 00 5F 58 00 73 8F 00 21 FC 00 32 CF 00 1D 92 00 18 1E 04 00 05 00 4B。总共有36个字节组成,依次找到04和05这两个数,04后面是需要的集中度,05后面则是需要的冥思度。找到所有20,这里的20使用了十六进制,其实是0x20,换算成十进制也就是32.根据标准大数据包格式:AA AA 20 02 C8 83 18 00 31 6C 00 BF 2E 00 5F 58 00 73 8F 00 21 FC 00 32 CF 00 1D 92 00 18 1E 04 00 05 00 4B。这里第三位的20作为判断大数据包的标志,其他的小数据包中也可能会有20,因此接下来还要进行严格地筛选。将所有符合条件也就是数值为0x20的绝对地址进行一个处理:将他们都往后移动29位来开始筛选。标准大数据包中:AA AA 20 02 C8 83 18 00 31 6C 00 BF 2E 00 5F 58 00 73 8F 00 21 FC 00 32 CF 00 1D 92 00 18 1E 04 00 05 00 4B。可以看到,0x20往后移动29位就是0x04,代表这他后面一位是集中度。到所有0x20后移29位的数,接下来要判断这些数是否为0x04,把是0x04的地址给取出来,这个取出来的地址是相对地址,而不是所有数据中的绝对地址。这个数组中只要有值为0x04的都把他们的地址拿出来。现在得到了符合条件的0x04的相对地址,并且在我们的设置下,每一秒钟只有这么一个。通过这个相对地址可以找到这个符合条件0x04在每一秒的串口输入数组中的绝对地址。最后,在这个绝对地址基础上加30就是需要的集中度,加32就是需要的冥思度了。 The process of extracting the above-mentioned degree of concentration and meditation is as follows: firstly, the only large data packet is found among the 513 data packets. For all large data packets, the data format is as follows: AA AA 20 02 C8 83 18 00 31 6C 00 BF 2E 00 5F 58 00 73 8F 00 21 FC 00 32 CF 00 1D 92 00 18 1E 04 00 05 00 4B. There are a total of 36 bytes. Find the two numbers 04 and 05 in turn. After 04 is the required degree of concentration, and after 05 is the required degree of meditation. Find all 20. The 20 here uses hexadecimal, which is actually 0x20, which is 32 when converted to decimal. According to the standard large data packet format: AA AA 20 02 C8 83 18 00 31 6C 00 BF 2E 00 5F 58 00 73 8F 00 21 FC 00 32 CF 00 1D 92 00 18 1E 04 00 05 00 4B. The 20 in the third place here is used as a sign to judge the large data packet, and there may also be 20 in other small data packets, so strict screening must be carried out next. Perform a process on all absolute addresses that meet the conditions, that is, the value is 0x20: move them back by 29 bits to start screening. In the standard large data packet: AA AA 20 02 C8 83 18 00 31 6C 00 BF 2E 00 5F 58 00 73 8F 00 21 FC 00 32 CF 00 1D 92 00 18 1E 04 00 05 00 4B. It can be seen that 0x20 is moved 29 bits backward to 0x04, which means that the next bit is concentration. Move all 29-bit numbers after 0x20, and then judge whether these numbers are 0x04, and take out the address of 0x04. The taken out address is a relative address, not an absolute address in all data. As long as there is a value of 0x04 in this array, take out their addresses. Now we get the relative address of 0x04 that meets the conditions, and under our settings, there is only one such address per second. Through this relative address, you can find the absolute address of the serial port input array that meets the condition 0x04 every second. Finally, adding 30 to this absolute address is the required concentration, and adding 32 is the required meditation.

在得到所需的集中度和冥思度后,下一步是对所取值的处理。以集中度的处理范式为例,数值进入到处理子程序中,由于集中度值在0到100之间,在经过多次试验之后配合自身要求给集中度进行控制区间划分,并且对应相应的蓝牙AT指令,在蓝牙指令输出的同时使用变光控件。 After obtaining the required concentration and meditation, the next step is to process the values. Taking the concentration processing paradigm as an example, the numerical value enters the processing subroutine. Since the concentration value is between 0 and 100, after many tests, the concentration control interval is divided according to its own requirements, and the corresponding Bluetooth AT command, use dimming control while bluetooth command is output.

无线数据传输模块采用一款多功能的蓝牙芯片,该芯片带有两种工作模式:数据传输模式和远程控制模式。在本发明中将充分利用这两种模式。数据传输模式:与控制芯片串口连接,控制LED变光灯的颜色以及明暗变化;远程控制模式:不与控制芯片连接,直接通过芯片自带的I/O口与LED灯相连接,可以实现简单控制LED变光灯的颜色变化但不能控制其亮度。远程控制模式作为数据传输模的后备和延伸:即使在数据传输模失效情况下,远程控制模式仍可以保证系统大部分功能的实现;另一方面由于预留了许多控制I/O口,也可以使用它的远控功能去控制更多附加模块,为后续扩充功能提供了升级空间。 The wireless data transmission module uses a multifunctional Bluetooth chip with two working modes: data transmission mode and remote control mode. Both modes will be fully utilized in the present invention. Data transmission mode: connect with the serial port of the control chip to control the color and light and dark changes of the LED dimming lamp; remote control mode: do not connect with the control chip, directly connect with the LED light through the I/O port of the chip, which can realize simple Control the color change of the LED dimming light but not its brightness. The remote control mode is used as the backup and extension of the data transmission mode: even in the case of data transmission mode failure, the remote control mode can still ensure the realization of most functions of the system; on the other hand, because many control I/O ports are reserved, it can also Use its remote control function to control more additional modules, providing an upgrade space for subsequent expansion functions.

在通过蓝牙通信模块得到控制信号之后,控制芯片通过自身的TXD、RXD与主控制芯片的RXD、TXD信号线相连进行通信。控制芯片的串口在接收到上传的数据之后,对发出的蓝牙AT指令进行有效识别,进而对单片机I/O口完成相应的PWM信号输出操作。 After obtaining the control signal through the Bluetooth communication module, the control chip communicates with the RXD and TXD signal lines of the main control chip through its own TXD and RXD. After the serial port of the control chip receives the uploaded data, it effectively recognizes the Bluetooth AT command sent, and then completes the corresponding PWM signal output operation to the I/O port of the microcontroller.

本发明使用低功耗单片机作为主控处理器,基于Mindwave脑电耳机的数据处理算法,提取集中度和冥思度作为灯的控制参量,采用蓝牙的短距离无线通信方式来进行脑电信号的采集与LED的智能控制。单片机的I/O口驱动能力非常有限,尤其是上拉电流,因此为了有效驱动LED必须增设一个驱动放大电路。本电路采用NPN型三极管,发射极接地,集电极端放置了LED灯以及限流大功率电阻。当NPN型三极管基极的电压大于导通电压时,此时三极管呈导通状态,灯亮;当三极管基极电压小于导通电压时,则三极管呈截止状态,灯熄灭。 The present invention uses a low-power single-chip microcomputer as the main control processor, extracts the concentration degree and meditation degree as the control parameters of the lamp based on the data processing algorithm of the Mindwave EEG headset, and uses the short-distance wireless communication method of Bluetooth to perform EEG signal detection. Acquisition and LED intelligent control. The driving capability of the I/O port of the microcontroller is very limited, especially the pull-up current, so in order to effectively drive the LED, a driving amplifier circuit must be added. This circuit adopts NPN type triode, the emitter is grounded, and the collector terminal is placed with LED lights and current-limiting high-power resistors. When the base voltage of the NPN triode is greater than the conduction voltage, the triode is in the conduction state and the light is on; when the base voltage of the triode is lower than the conduction voltage, the triode is in the cut-off state and the light is off.

对于电路的电源供给问题,本发明中的电源单元使用了节能的锂电池作为动力源,符合本发明节能和小型化的特点。同时对于锂电池的充电方式采用了轻便的USB接口方案,电源管理芯片为美信公司的MAX1811,MAX1811无须微处理器控制,同时对电池充电电流也可通过逻辑控制电路置为100mA或500mA,符合USB的电流标准。芯片自带的充电状态指示功能可通过加入一个状态指示灯来判断当前的电池用电状态。充电过程中,当未达到最高充电电压时,MAX1811对锂电池进行恒流充电;达到最高充电电压时,则对其进行恒压充电,增强了锂电池的过压保护。 Regarding the power supply of the circuit, the power supply unit in the present invention uses an energy-saving lithium battery as a power source, which conforms to the characteristics of energy saving and miniaturization of the present invention. At the same time, a portable USB interface solution is adopted for the lithium battery charging method. The power management chip is Maxim's MAX1811. current standard. The charging status indication function of the chip can judge the current battery power status by adding a status indicator light. During the charging process, when the maximum charging voltage is not reached, the MAX1811 charges the lithium battery with a constant current; when the maximum charging voltage is reached, it is charged with a constant voltage, which enhances the overvoltage protection of the lithium battery.

本发明使用低功耗单片机作为主控处理器,基于Mindwave脑电耳机的数据处理算法,提取集中度和冥思度作为灯的控制参量,采用蓝牙的短距离无线通信方式来进行脑电信号的采集与LED的智能控制。 The present invention uses a low-power single-chip microcomputer as the main control processor, extracts the concentration degree and meditation degree as the control parameters of the lamp based on the data processing algorithm of the Mindwave EEG headset, and uses the short-distance wireless communication method of Bluetooth to perform EEG signal detection. Acquisition and LED intelligent control.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明。凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。 The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (5)

1.一种基于脑波控制的智能LED变色灯,其特征在于:包括脑电耳机控制单元、LDE变光单元和用于给所述脑电耳机控制单元和LDE变光单元提供电源的电源单元,所述脑电耳机控制单元包括Mindwave脑电耳机、脑波传感器模块、数据处理器模块、无线数据传输模块,所述LDE变光单元包括包含有控制芯片的信号传输处理模块、LED驱动模块、LED变光灯;所述信号传输处理模块,用于接收脑电耳机控制单元传输来的脑电信号,提取集中度和冥思度作为灯的控制参量,将处理好的数据发送给LED驱动模块,基于信号强弱的不同,LED驱动模块驱动所述LED变光灯发出不同颜色的光并进行明暗切换; 1. An intelligent LED color-changing lamp based on brainwave control, characterized in that: it comprises an EEG earphone control unit, an LDE light-changing unit and a power supply unit for providing power to the EEG earphone control unit and the LDE light-changing unit , the EEG earphone control unit includes a Mindwave EEG earphone, an EEG sensor module, a data processor module, and a wireless data transmission module, and the LDE dimming unit includes a signal transmission processing module including a control chip, an LED driver module, LED dimming lamp; the signal transmission processing module is used to receive the EEG signal transmitted by the EEG earphone control unit, extract concentration and meditation as the control parameters of the lamp, and send the processed data to the LED driver module , based on the difference in signal strength, the LED driver module drives the LED dimming lamp to emit light of different colors and switch between light and dark; 所述集中度和冥思度的提取过程为:首先在513个数据包中找到唯一的大数据包,其标准数据格式为:AA AA 20 02 C8 83 18 00 31 6C 00 BF 2E 00 5F 58 00 73 8F 00 21 FC 00 32 CF 00 1D 92 00 18 1E 04 00 05 00 4B,数字04后面是需要的集中度,数字05后面则是需要的冥思度;根据上述标准大数据包格式,将第三位的20作为判断大数据包的标志;将上述标准大数据包中,所有数值为0x20的绝对地址往后移动29位,判断得到的数是否为0x04,把是0x04的相对地址取出来,得到符合条件的0x04的相对地址,并设置每一秒钟只有一个相对地址,其后面一位是集中度;通过所述相对地址找到符合条件的0x04在每一秒的串口输入数组中的绝对地址;最后,在所述绝对地址基础上加30得到需要的集中度,加32得到需要的冥思度。 The process of extracting the degree of concentration and meditation is as follows: first find the only large data packet among the 513 data packets, and its standard data format is: AA AA 20 02 C8 83 18 00 31 6C 00 BF 2E 00 5F 58 00 73 8F 00 21 FC 00 32 CF 00 1D 92 00 18 1E 04 00 05 00 4B, after the number 04 is the required degree of concentration, and after the number 05 is the required degree of meditation; according to the above-mentioned standard large data packet format, the first The three-digit 20 is used as a sign for judging the large data packet; in the above-mentioned standard large data packet, all the absolute addresses with a value of 0x20 are moved back by 29 bits, and it is judged whether the obtained number is 0x04, and the relative address of 0x04 is taken out. Get the relative address of 0x04 that meets the conditions, and set only one relative address per second, and the next bit is the concentration; find the absolute address of 0x04 that meets the conditions in the serial port input array of each second through the relative address ;Finally, add 30 on the basis of the absolute address to get the required degree of concentration, and add 32 to get the required degree of meditation. 2.根据权利要求1所述的一种基于脑波控制的智能LED变色灯,其特征在于:所述Mindwave脑电耳机用于接收脑电信号并将接收的脑电信号通过脑波传感器模块传输给数据处理器模块,所述数据处理器模块用于对脑波传感器模块的输入信号进行干扰滤波以及脑电信号特征的提取,所述无线数据传输模块接收经数据处理器模块处理后的脑电信号并将该信号传输给LDE变光单元中的信号传输处理模块。 2. An intelligent LED color-changing lamp based on brain wave control according to claim 1, characterized in that: the Mindwave EEG earphone is used to receive EEG signals and transmit the received EEG signals through the EEG sensor module For the data processor module, the data processor module is used to filter the input signal of the brainwave sensor module and extract the characteristics of the brainwave signal, and the wireless data transmission module receives the brainwave signal processed by the data processor module signal and transmit the signal to the signal transmission processing module in the LDE dimming unit. 3.根据权利要求1所述的一种基于脑波控制的智能LED变色灯,其特征在于:所述无线数据传输模块为蓝牙数据传输模块,所述蓝牙数据传输模块有两种工作模式,即数据传输模式和远程控制模式;数据传输模式下:LED驱动模块与控制芯片串口连接,控制LED变光灯的颜色以及明暗变化;远程控制模式下:LED驱动模块不与控制芯片串口连接,直接通过芯片自带的I/O口与LED变光灯相连接,简单控制LED变光灯的颜色变化但不控制其亮度。 3. An intelligent LED color-changing lamp based on brainwave control according to claim 1, characterized in that: the wireless data transmission module is a Bluetooth data transmission module, and the Bluetooth data transmission module has two working modes, namely Data transmission mode and remote control mode; in data transmission mode: the LED driver module is connected to the serial port of the control chip to control the color and brightness change of the LED dimming lamp; in remote control mode: the LED driver module is not connected to the serial port of the control chip, directly through The I/O port that comes with the chip is connected to the LED dimming light, which simply controls the color change of the LED dimming light but does not control its brightness. 4.一种基于脑波控制的智能LED变色灯的智能控制方法,其特征在于:基于Mindwave脑电耳机的数据处理算法,提取集中度和冥思度作为灯的控制参量,采用无线通信方式进行脑电信号的采集与LED变色灯的智能控制,具体包括如下步骤: 4. An intelligent control method of an intelligent LED color-changing lamp based on brain wave control, characterized in that: based on the data processing algorithm of Mindwave EEG earphones, concentration and meditation are extracted as the control parameters of the lamp, and wireless communication is used to carry out The collection of EEG signals and the intelligent control of LED color-changing lights include the following steps: (1)由Mindwave脑电耳机接收脑电信号并将接收的脑电信号通过脑波传感器模块传输给数据处理器模块;数据处理器模块对脑波传感器模块的输入信号进行干扰滤波以及脑电信号特征的提取,无线数据传输模块接收经数据处理器模块处理后的脑电信号并将该信号传输给LDE变光单元中的信号传输处理模块; (1) The Mindwave EEG headset receives the EEG signal and transmits the received EEG signal to the data processor module through the EEG sensor module; the data processor module performs interference filtering on the input signal of the EEG sensor module and the EEG signal Feature extraction, the wireless data transmission module receives the EEG signal processed by the data processor module and transmits the signal to the signal transmission processing module in the LDE dimming unit; (2)信号传输处理模块接收脑电耳机控制单元传输来的脑电信号,通过信号处理优化算法从提取出所需的控制参数并转换为实际控制信号,提取集中度和冥思度作为灯的控制参量,将处理好的数据发送给LED驱动模块,基于信号强弱的不同,LED驱动模块驱动LED变光灯发出不同颜色的光并进行明暗切换; (2) The signal transmission and processing module receives the EEG signal transmitted by the EEG headset control unit, extracts the required control parameters through the signal processing optimization algorithm and converts them into actual control signals, and extracts the degree of concentration and meditation as the lamp's Control the parameters and send the processed data to the LED driver module. Based on the strength of the signal, the LED driver module drives the LED dimmer to emit different colors of light and switch between light and dark; 所述集中度和冥思度的提取过程为:首先在513个数据包中找到唯一的大数据包,其标准数据格式为:AA AA 20 02 C8 83 18 00 31 6C 00 BF 2E 00 5F 58 00 73 8F 00 21 FC 00 32 CF 00 1D 92 00 18 1E 04 00 05 00 4B,数字04后面是需要的集中度,数字05后面则是需要的冥思度;根据上述标准大数据包格式,将第三位的20作为判断大数据包的标志;将上述标准大数据包中,所有数值为0x20的绝对地址往后移动29位,判断得到的数是否为0x04,把是0x04的相对地址取出来,得到符合条件的0x04的相对地址,并设置每一秒钟只有一个相对地址,其后面一位是集中度;通过所述相对地址找到符合条件的0x04在每一秒的串口输入数组中的绝对地址;最后,在所述绝对地址基础上加30得到需要的集中度,加32得到需要的冥思度。 The process of extracting the degree of concentration and meditation is as follows: first find the only large data packet among the 513 data packets, and its standard data format is: AA AA 20 02 C8 83 18 00 31 6C 00 BF 2E 00 5F 58 00 73 8F 00 21 FC 00 32 CF 00 1D 92 00 18 1E 04 00 05 00 4B, after the number 04 is the required degree of concentration, and after the number 05 is the required degree of meditation; according to the above-mentioned standard large data packet format, the first The three-digit 20 is used as a sign for judging the large data packet; in the above-mentioned standard large data packet, all the absolute addresses with a value of 0x20 are moved back by 29 bits, and it is judged whether the obtained number is 0x04, and the relative address of 0x04 is taken out. Get the relative address of 0x04 that meets the conditions, and set only one relative address per second, and the next bit is the concentration; find the absolute address of 0x04 that meets the conditions in the serial port input array of each second through the relative address ;Finally, add 30 on the basis of the absolute address to get the required degree of concentration, and add 32 to get the required degree of meditation. 5.根据权利要求4所述的一种基于脑波控制的智能LED变色灯的智能控制方法,其特征在于:所述无线数据传输模块为蓝牙数据传输模块,所述蓝牙数据传输模块有两种工作模式,即数据传输模式和远程控制模式;数据传输模式下:LED驱动模块与控制芯片串口连接,控制LED变光灯的颜色以及明暗变化;远程控制模式下:LED驱动模块不与控制芯片串口连接,直接通过芯片自带的I/O口与LED变光灯相连接,简单控制LED变光灯的颜色变化但不控制其亮度。 5. The intelligent control method of an intelligent LED color-changing lamp based on brain wave control according to claim 4, characterized in that: the wireless data transmission module is a Bluetooth data transmission module, and the Bluetooth data transmission module has two types Working mode, that is, data transmission mode and remote control mode; in data transmission mode: the LED driver module is connected to the serial port of the control chip to control the color and brightness change of the LED dimming lamp; in remote control mode: the LED driver module is not connected to the serial port of the control chip Connect, directly connect with the LED dimming lamp through the I/O port that comes with the chip, simply control the color change of the LED dimming lamp but not control its brightness.
CN201310289586.3A 2013-07-11 2013-07-11 Intelligent LED color-changing lamp based on brainwave control and intelligent control method thereof Active CN103428965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310289586.3A CN103428965B (en) 2013-07-11 2013-07-11 Intelligent LED color-changing lamp based on brainwave control and intelligent control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310289586.3A CN103428965B (en) 2013-07-11 2013-07-11 Intelligent LED color-changing lamp based on brainwave control and intelligent control method thereof

Publications (2)

Publication Number Publication Date
CN103428965A CN103428965A (en) 2013-12-04
CN103428965B true CN103428965B (en) 2015-07-22

Family

ID=49652911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310289586.3A Active CN103428965B (en) 2013-07-11 2013-07-11 Intelligent LED color-changing lamp based on brainwave control and intelligent control method thereof

Country Status (1)

Country Link
CN (1) CN103428965B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104036124A (en) * 2014-05-30 2014-09-10 绍兴市柯桥区柯桥中学 Idiodynamic system suitable for patient who is in intensive care or has disabled limbs
CN104270692A (en) * 2014-09-15 2015-01-07 中山市乐居智能技术开发有限公司 Color-changing earphones based on human physiological signals
CN104606763B (en) * 2015-01-30 2018-02-16 上海泰亿格康复医疗科技股份有限公司 A kind of audiovisual integration training aids based on brain wave induction and audio visualization technology
CN104984535A (en) * 2015-06-13 2015-10-21 常州大学 Application system of table tennis serving machine based on brain wave control
CN105054928A (en) * 2015-07-17 2015-11-18 张洪振 Emotion display equipment based on BCI (brain-computer interface) device electroencephalogram acquisition and analysis
CN105159135A (en) * 2015-10-21 2015-12-16 珠海格力电器股份有限公司 Control method and system of intelligent household appliance
CN107027233A (en) * 2017-05-17 2017-08-08 孟柳伊 A kind of lamp for automatically adjusting brightness, color effects and automatic switch
CN107231726B (en) 2017-06-23 2018-12-21 京东方科技集团股份有限公司 intelligent lamp
CN107693012B (en) * 2017-09-20 2023-05-05 福州大学厦门工艺美术学院 Device and method for improving concentration of children
CN112911770A (en) * 2021-01-26 2021-06-04 上海交通大学 Interactive method for enhancing artistic appreciation
CN112714210A (en) * 2021-01-29 2021-04-27 福建中联智创教育科技有限公司 Brain wave intelligent reading lamp
CN115054795B (en) * 2022-05-25 2024-02-06 厦门猫一个文化创意有限公司 Meditation assistance device and meditation assistance system
CN115282431B (en) * 2022-07-06 2023-06-30 电子科技大学 An EEG-based light-regulating intelligent lamp stimulation method and device thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201887798U (en) * 2010-09-10 2011-06-29 李隆 Music colored light environment control center base on Internet
CN202315311U (en) * 2011-11-23 2012-07-11 杭州尚想科技有限公司 Electroencephalogram signal collecting headset system based on electroencephalogram control technology
CN103037577A (en) * 2012-12-10 2013-04-10 马正 Acousto-optic synchronous control method
CN103052351A (en) * 2010-07-28 2013-04-17 姜星彻 Portable brainwave measuring and controlling system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052351A (en) * 2010-07-28 2013-04-17 姜星彻 Portable brainwave measuring and controlling system
CN201887798U (en) * 2010-09-10 2011-06-29 李隆 Music colored light environment control center base on Internet
CN202315311U (en) * 2011-11-23 2012-07-11 杭州尚想科技有限公司 Electroencephalogram signal collecting headset system based on electroencephalogram control technology
CN103037577A (en) * 2012-12-10 2013-04-10 马正 Acousto-optic synchronous control method

Also Published As

Publication number Publication date
CN103428965A (en) 2013-12-04

Similar Documents

Publication Publication Date Title
CN103428965B (en) Intelligent LED color-changing lamp based on brainwave control and intelligent control method thereof
CN103263324B (en) Intelligent wheelchair system based on SSVEP (steady-state visual evoked potential)
CN103207594A (en) Intelligent home control system based on Internet and ZigBee
CN104133549A (en) System and method for controlling device according to physiological signal
CN103169448A (en) Motion sensing net perception terminal system, perception node and perception method
CN201114896Y (en) Intelligent Lighting System
CN103561518A (en) Household intelligent dimming system
CN204948413U (en) Intelligent lighting system using sensing technology
CN204480175U (en) A kind of view-based access control model brings out the intelligent electrical appliance control device of brain-computer interface
CN105188200B (en) Wisdom scene lighting lamp based on biological information feedback
CN203263385U (en) Underwear wearing type life information collection system
CN107883530A (en) A kind of air purifier based on visible light communication and remote control
CN205107672U (en) Portable many physiological parameters monitoring facilities
CN109803468A (en) A kind of intelligent illuminating system that can be automatically adjusted according to the emotional change of people
CN105066359A (en) Air-conditioning remote control method based on electroencephalograph control
CN104902650A (en) Solar intelligent induction street lamp controller
CN103871201B (en) A kind of fatigue driving intelligent warning system based on brain electric control and method thereof
CN202998601U (en) Intelligent household illumination control system
CN203799486U (en) Multi-data-source low-power-consumption wireless sensor network node equipment
CN102920572A (en) Internet-of-things-based amblyopia treatment instrument and use method
CN204948446U (en) A kind of speech-sound intelligent Lighting Control Assembly
CN105578239A (en) A TV Control System Based on Brain-Computer Interface Technology
CN202634848U (en) Light emitting diode (LED) intelligent lighting control system based on ZigBee and LabVIEW
CN204104194U (en) A kind of desk lamp control device based on brain-computer interface
CN201374847Y (en) LED street lamp controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201222

Address after: Building 7, no.8-2, Dutou street, Daitou Town, Liyang City, Changzhou City, Jiangsu Province

Patentee after: Liyang Chang Technology Transfer Center Co.,Ltd.

Address before: Gehu Lake Road Wujin District 213164 Jiangsu city of Changzhou province No. 1

Patentee before: CHANGZHOU University

TR01 Transfer of patent right