CN105242599A - Music wireless control system based on gesture tracking sensor, and method thereof - Google Patents

Music wireless control system based on gesture tracking sensor, and method thereof Download PDF

Info

Publication number
CN105242599A
CN105242599A CN201510638392.9A CN201510638392A CN105242599A CN 105242599 A CN105242599 A CN 105242599A CN 201510638392 A CN201510638392 A CN 201510638392A CN 105242599 A CN105242599 A CN 105242599A
Authority
CN
China
Prior art keywords
data
module
gesture
sensor
music
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.)
Pending
Application number
CN201510638392.9A
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.)
Nanjing Post and Telecommunication University
Original Assignee
Nanjing Post and Telecommunication 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 Nanjing Post and Telecommunication University filed Critical Nanjing Post and Telecommunication University
Priority to CN201510638392.9A priority Critical patent/CN105242599A/en
Publication of CN105242599A publication Critical patent/CN105242599A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Program-control systems
    • G05B19/02Program-control systems electric
    • G05B19/04Program control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Program control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25341Single chip programmable controller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)

Abstract

本发明公开了一种基于手势追踪传感器的音乐无线控制系统和方法,该方法包括:1)传感器嵌入墙体表面,且采用无线传感的方式控制播放器。相对于有线传输更节约空间,美观方便。2)只需要人体自身动作即可智能控制背景音乐。无需近距离按键,无需使用遥控器,也无需手机,平板等终端设备下载专用app控制。3)在一些特定场合比如KTV以及需要背景音乐的会场本系统只需唱歌者本人或主持人自己就可以控制音乐播放,简单方便。该系统主要由数据采集、数据传输、信息处理三部分构成。数据采集部分通过红外传感器感知人体靠近,启动手势追踪传感器追踪手势。数据传输部分通过Wi-Fi无线收发模块发送数据和接收数据。数据处理部分根据数据控制音乐播放器。

The invention discloses a music wireless control system and method based on a gesture tracking sensor. The method includes: 1) the sensor is embedded in the wall surface, and the player is controlled by means of wireless sensing. Compared with wired transmission, it is more space-saving, beautiful and convenient. 2) The background music can be intelligently controlled only by the human body's own actions. There is no need for close buttons, no remote control, and no need for mobile phones, tablets and other terminal devices to download special app control. 3) In some specific occasions such as KTV and venues that require background music, the system only needs the singer or host himself to control the music playback, which is simple and convenient. The system is mainly composed of three parts: data acquisition, data transmission and information processing. The data acquisition part senses the approach of the human body through the infrared sensor, and starts the gesture tracking sensor to track the gesture. The data transmission part sends and receives data through the Wi-Fi wireless transceiver module. The data processing part controls the music player according to the data.

Description

一种基于手势追踪传感器的音乐无线控制系统和方法A music wireless control system and method based on a gesture tracking sensor

技术领域technical field

本发明涉及一种基于手势追踪传感器的音乐无线控制系统和方法,属于传感技术与无线通信技术的交叉领域。The invention relates to a music wireless control system and method based on a gesture tracking sensor, which belongs to the intersecting field of sensor technology and wireless communication technology.

背景技术Background technique

目前,手势传感器、无线传输技术的发展迅速,但在一些场合里音乐控制仍采用有线控制,极其不便。在智能家居领域中,虽然已实现了音乐的无线控制,但人们仍大多采用手机,平板等终端实现智能控制,然而这些终端却在一定程度上加大了人们对手机等产品的依赖。无法利用人体自身的简单动作实现对外界的智能控制。At present, gesture sensors and wireless transmission technologies are developing rapidly, but in some occasions music control still uses wired control, which is extremely inconvenient. In the field of smart home, although the wireless control of music has been realized, people still mostly use terminals such as mobile phones and tablets to realize intelligent control. However, these terminals have increased people's dependence on mobile phones and other products to a certain extent. It is impossible to use the simple actions of the human body to realize intelligent control of the outside world.

全球领先的高性能模拟IC和传感器供应商ams推出新的TMx4903系列先进光学传感器模块,集成了通用遥控器、条形码仿真、RGB颜色传感、接近感测和3D手势检测功能,TMD4903和TMG4903是该模块的两大系列产品,能实现精确的颜色感知和接近探测。而本发明采用此款手势传感器,并结合Wi-Fi技术能够很好地解决上面的问题。ams, the world's leading supplier of high-performance analog ICs and sensors, has launched a new TMx4903 series of advanced optical sensor modules that integrate universal remote control, barcode emulation, RGB color sensing, proximity sensing and 3D gesture detection. TMD4903 and TMG4903 are the Two families of modules for precise color perception and proximity detection. However, the present invention adopts this gesture sensor and combines Wi-Fi technology to solve the above problems well.

发明内容Contents of the invention

本发明目的在于提出了一种基于手势传感器的音乐无线控制系统,该系统包括信息采集模块、数据传输模块、数据处理模块。首先,数据采集部分,使用红外传感模块自动探测是否有人靠近、当检测到有人靠近时,TMx4903传感器模块启动,对手势进行捕捉及检测同时通过计数器计数,当30秒后仍未有手势,则TMx4903传感器模块恢复待机状态。然后,数据传输部分,使用Wi-Fi传输模块将数据采集部分获取的手势信息,从Wi-Fi发送端无线传输到Wi-Fi接收端。最后,数据处理部分对通过数据传输部分传递过来的数据进行判断并实现对背景音乐的处理。The object of the present invention is to propose a wireless music control system based on a gesture sensor, which includes an information collection module, a data transmission module, and a data processing module. First of all, in the data acquisition part, the infrared sensor module is used to automatically detect whether someone is approaching. When it detects that someone is approaching, the TMx4903 sensor module starts to capture and detect gestures and count through the counter at the same time. When there is no gesture after 30 seconds, then The TMx4903 sensor module returns to standby. Then, the data transmission part uses the Wi-Fi transmission module to wirelessly transmit the gesture information obtained by the data collection part from the Wi-Fi sending end to the Wi-Fi receiving end. Finally, the data processing part judges the data transmitted through the data transmission part and realizes the processing of the background music.

本发明系统采用TMx4903系列传感器对手势的识别,该系统可用于家庭及KTV等需要播放音乐的场合。该系统包括感知器件,无线传输模块,单片机系统,音乐播放器,音响。该信息采集模块主要包括个两个子模块,即:The system of the present invention adopts TMx4903 series sensors to recognize gestures, and the system can be used in occasions where music needs to be played, such as home and KTV. The system includes sensing device, wireless transmission module, single-chip microcomputer system, music player and audio. The information collection module mainly includes two sub-modules, namely:

(1)红外识别子模块:红外线识别是否有人靠近。当无人靠近时,系统处于待机状态。当红外线感知到有人靠近时则开启系统手势识别部分。当人离开后则使手势识别模块恢复待机状态。(1) Infrared identification sub-module: Infrared identification whether someone is approaching. When no one is near, the system is in standby mode. When the infrared senses that someone is approaching, the gesture recognition part of the system is turned on. When the person leaves, the gesture recognition module is restored to the standby state.

(2)手势识别子模块:利用TMx4903传感器对手势进行识别。(2) Gesture recognition sub-module: Use TMx4903 sensor to recognize gestures.

本发明的数据传输模块主要包括:Data transmission module of the present invention mainly comprises:

Wi-Fi发送模块:传感器端单片机(ArduinoUNOR3硬件开发板)向Wi-Fi发送模块发送数据,Wi-Fi发送模块将数据通过无线局域网发送到Wi-Fi接收模块。Wi-Fi sending module: The sensor-side microcontroller (ArduinoUNOR3 hardware development board) sends data to the Wi-Fi sending module, and the Wi-Fi sending module sends the data to the Wi-Fi receiving module through the wireless LAN.

Wi-Fi接收模块:Wi-Fi接收模块接收到由Wi-Fi发送模块发送的数据后将数据发送到音乐播放器端单片机(ArduinoUNOR3硬件开发板)。Wi-Fi receiving module: After receiving the data sent by the Wi-Fi sending module, the Wi-Fi receiving module sends the data to the music player-side microcontroller (ArduinoUNOR3 hardware development board).

本发明的数据处理模块包括:Data processing module of the present invention comprises:

传感器端处理模块:传感器端单片机(ArduinoUNOR3硬件开发板)将对不同的手势信息进行判断。并向Wi-Fi发送端发送相应数据。Sensor end processing module: The sensor end MCU (ArduinoUNOR3 hardware development board) will judge different gesture information. And send the corresponding data to the Wi-Fi sender.

音乐播放器端处理模块:Wi-Fi接收端将数据送至音乐播放器端单片机(ArduinoUNOR3硬件开发板),音乐播放器端单片机(ArduinoUNOR3硬件开发板)对数据进行分析后对模拟开关进行控制,实现对歌曲的播放,暂停,切换,及音量调节。Music player-side processing module: Wi-Fi receiving end sends data to the music player-side MCU (ArduinoUNOR3 hardware development board), and the music player-side MCU (ArduinoUNOR3 hardware development board) analyzes the data and then controls the analog switch. Realize the playback, pause, switch, and volume adjustment of songs.

本发明还提供了一种基于手势追踪传感器的音乐无线控制系统的实现方法,该方法包括如下步骤:The present invention also provides a method for realizing a music wireless control system based on a gesture tracking sensor, the method comprising the following steps:

步骤1:设计一种基于手势追踪传感器的音乐无线控制系统,包括信息采集模块、数据传输模块、数据处理模块三部分。Step 1: Design a wireless music control system based on gesture tracking sensors, including three parts: information collection module, data transmission module, and data processing module.

步骤2:设计数据采集部分的体系结构。采用传感器端单片机(ArduinoUNOR3硬件开发板)对TMx4903传感器模块、红外传感模块、计时模块进行集成。Step 2: Design the architecture of the data acquisition part. The sensor module (Arduino UNOR3 hardware development board) is used to integrate the TMx4903 sensor module, infrared sensor module and timing module.

步骤3:设计数据传输部分的体系结构。由传感器端单片机(ArduinoUNOR3硬件开发板)上的Wi-Fi发送端及音乐播放器端单片机(ArduinoUNOR3硬件开发板)上的Wi-Fi接收端组成。Step 3: Design the architecture of the data transfer section. It consists of the Wi-Fi sending end on the sensor-side MCU (ArduinoUNOR3 hardware development board) and the Wi-Fi receiving end on the music player-side MCU (ArduinoUNOR3 hardware development board).

步骤4:ESP8266串口Wi-Fi无线收发模块的通信协议的设置,模块VCC端连接5V转3.3V电源模块。GPIO0低电平,GPIO2高电平,GPIO15低电平,CH-PD连接到高电平时,模块进入工作模式。通过发送AT指令对发送端和接收端进行通信协议的设置。其中,ESP8266串口Wi-Fi无线收发模块作发送端执行如下设置:输入指令AT+CWMODE=1,进入STA模式。对于ESP8266串口Wi-Fi无线收发模块作接收端执行如下设置:输入指令AT+CWMODE=2,进入AP模式。Step 4: Set the communication protocol of the ESP8266 serial port Wi-Fi wireless transceiver module, and connect the VCC terminal of the module to a 5V to 3.3V power supply module. GPIO0 low level, GPIO2 high level, GPIO15 low level, when CH-PD is connected to high level, the module enters the working mode. Set the communication protocol between the sending end and the receiving end by sending AT commands. Among them, the ESP8266 serial port Wi-Fi wireless transceiver module is used as the sending end to perform the following settings: input the command AT+CWMODE=1 to enter the STA mode. For the ESP8266 serial port Wi-Fi wireless transceiver module as the receiving end, perform the following settings: Enter the command AT+CWMODE=2 to enter the AP mode.

步骤5:在有人靠近红外传感器时,传感器感知到人体,将信号传到传感器端单片机(ArduinoUNOR3硬件开发板)中,传感器端单片机(ArduinoUNOR3硬件开发板)再向TMx4903模块发出信号,开启TMx4903传感器模块。同时也开始计数,当计数到30秒时,若TMx4903传感器模块感知到手势并传感器端单片机(ArduinoUNOR3硬件开发板)传递数据则继续开启手势传感器,并进行步骤7。若传感器端单片机(ArduinoUNOR3硬件开发板)未收到数据则关闭TMx4903传感器模块。Step 5: When someone approaches the infrared sensor, the sensor senses the human body and transmits the signal to the sensor-side microcontroller (ArduinoUNOR3 hardware development board), and the sensor-side microcontroller (ArduinoUNOR3 hardware development board) sends a signal to the TMx4903 module to turn on the TMx4903 sensor module . At the same time, it also starts counting. When the count reaches 30 seconds, if the TMx4903 sensor module senses the gesture and the sensor-side MCU (Arduino UNOR3 hardware development board) transmits data, then continue to turn on the gesture sensor and proceed to step 7. If the sensor-side microcontroller (ArduinoUNOR3 hardware development board) does not receive data, turn off the TMx4903 sensor module.

步骤6:若红外传感器检测不到人体,则关闭计时模块及手势传感模块。Step 6: If the infrared sensor cannot detect the human body, turn off the timing module and gesture sensing module.

步骤7:传感器端单片机(ArduinoUNOR3硬件开发板)收到手势信号后,通过手势识别的算法判断手势,并根据程序对手势所代表的对音乐的控制命令的设定产生不同的数据,发送给Wi-Fi发送端。Step 7: After receiving the gesture signal, the MCU on the sensor side (ArduinoUNOR3 hardware development board) judges the gesture through the gesture recognition algorithm, and generates different data according to the program's setting of the music control command represented by the gesture, and sends it to the Wi-Fi -Fi sender.

步骤8:Wi-Fi发送端通过无线局域网将8bit数据传输到Wi-Fi接收端。Step 8: The Wi-Fi sending end transmits 8bit data to the Wi-Fi receiving end through the wireless LAN.

步骤9:Wi-Fi接收端收到数据后将数据发送给音乐播放器端单片机(即:ArduinoUNOR3硬件开发板),音乐播放器端单片机(ArduinoUNOR3硬件开发板)通过对数据的判断,选择,使音乐播放器进入下面四种模式。(1)播放模式。当系统收到“播放”的手势信息时,系统控制音乐播放器播放;(2)暂停模式。当系统收到“暂停”的手势信息时,系统控制音乐播放器暂停播放;(3)切换模式。当系统收到“切换”的手势信息时,系统继续接收手势数据并判断是播放上一曲还是播放下一曲,然后控制音乐播放器切换;(4)音量调节模式。当系统收到“音量调节”的手势信息时,系统继续接收手势数据并判断是调高音量还是调低音量,然后控制音乐播放器音量调节。Step 9: After receiving the data, the Wi-Fi receiving end sends the data to the MCU on the music player side (namely: ArduinoUNOR3 hardware development board), and the MCU on the music player side (ArduinoUNOR3 hardware development board) judges and selects the data to make The music player enters the following four modes. (1) Play mode. When the system receives the "play" gesture information, the system controls the music player to play; (2) pause mode. When the system receives the "pause" gesture information, the system controls the music player to pause playback; (3) switch modes. When the system receives the "switch" gesture information, the system continues to receive gesture data and judges whether to play the previous song or the next song, and then controls the music player to switch; (4) volume adjustment mode. When the system receives the "volume adjustment" gesture information, the system continues to receive gesture data and judges whether to increase or decrease the volume, and then controls the volume adjustment of the music player.

有益效果:Beneficial effect:

1、本发明的传感器嵌入墙体表面,采用无线传感的方式控制播放器,其节约了空间,并且更加的美观方便。1. The sensor of the present invention is embedded in the surface of the wall, and the player is controlled by wireless sensing, which saves space and is more beautiful and convenient.

2、本发明的手势能够实现对背景音乐的开始,暂停,切换,音量调节,无需近距离按键,无需使用遥控器,也无需手机,平板等终端设备下载专用app控制。只需要人体自身动作即可智能控制背景音乐。2. The gestures of the present invention can realize the start, pause, switch, and volume adjustment of background music, without the need for close-range buttons, remote controls, and terminal devices such as mobile phones and tablets to download special app controls. The background music can be intelligently controlled only by the human body's own actions.

3、本发明在一些特定场合比如KTV以及需要背景音乐的会场,常常需要其他人在播放器旁边配合播放音乐。而本系统只需唱歌者本人或主持人自己就可以控制音乐播放,简单方便,不存在主持人与DJ人员契合度不够的问题。3. In some specific occasions such as KTV and venues that require background music, the present invention often requires other people to cooperate with the player to play music. However, this system only needs the singer himself or the host himself to control the music playback, which is simple and convenient, and there is no problem of insufficient fit between the host and the DJ personnel.

附图说明Description of drawings

图1为本发明的方法流程图。Fig. 1 is a flow chart of the method of the present invention.

图2为本发明的系统体系结构图。Fig. 2 is a system architecture diagram of the present invention.

图3为本发明的数据采集部分的体系结构图。Fig. 3 is a system structure diagram of the data acquisition part of the present invention.

图4为本发明的数据传输部分的体系结构图。FIG. 4 is a structural diagram of the data transmission part of the present invention.

图5为本发明的数据处理部分的程序流程图。Fig. 5 is a program flow chart of the data processing part of the present invention.

具体实施方案specific implementation plan

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

如图1所示,本发明提供了一种基于手势追踪传感器的音乐无线控制系统,该系统包括信息采集、数据传输、数据处理三个模块。数据采集模块使用红外传感模块周期性探测是否有人靠近。当有人靠近红外传感器时,传感器感知到人体,将信号传到ArduinoUNOR3单片机中,单片机再发出信号,将TMx4903传感器模块的电源端拉高,开启TMx4903传感器模块。同时也开始计数,当计数到30秒时,TMx4903传感器模块若感知到手势,则向单片机传递数据。若单片机未收到数据,则关闭计数模块与手势传感模块,若单片机收到数据后,则通过手势识别的算法判断手势,并根据程序对手势所代表的对音乐的控制命令的设定产生不同的数据。当手势为音乐播放的命令时,Wi-Fi发送端将发送数据10000000,当手势为音乐暂停的命令时,Wi-Fi发送端将发送数据01000000,当手势为音乐切换并且向上切换的命令时,Wi-Fi发送端将发送数据00100000,当手势为音乐切换并且向下切换的命令时,Wi-Fi发送端将发送数据00110000,当手势为音量调节并且减小音量的命令时,Wi-Fi发送端将发送数据00001000,当手势为音量调节并且增加音量的命令时,Wi-Fi发送端将发送数据00001100。Wi-Fi接收端接收来自Wi-Fi发送端通过无线局域网发送的8bit数据后,将数据发送到音乐播放器端的单片机(即:ArduinoUNOR3硬件开发板),音乐播放器端单片机(即:ArduinoUNOR3硬件开发板)实现对音乐播放的控制。As shown in Fig. 1, the present invention provides a music wireless control system based on a gesture tracking sensor, which includes three modules of information collection, data transmission and data processing. The data acquisition module uses the infrared sensing module to periodically detect whether someone is approaching. When someone approaches the infrared sensor, the sensor senses the human body and transmits the signal to the Arduino UNOR3 MCU, which then sends out a signal to pull the power terminal of the TMx4903 sensor module high to turn on the TMx4903 sensor module. At the same time, it also starts counting. When the count reaches 30 seconds, if the TMx4903 sensor module senses the gesture, it will transmit data to the microcontroller. If the MCU does not receive the data, turn off the counting module and the gesture sensor module. If the MCU receives the data, it will judge the gesture through the gesture recognition algorithm, and generate according to the setting of the control command for the music represented by the gesture different data. When the gesture is a command to play music, the Wi-Fi sender will send data 10000000. When the gesture is a command to pause music, the Wi-Fi sender will send data 01000000. When the gesture is a command to switch music and switch up, The Wi-Fi sender will send data 00100000. When the gesture is a command to switch music and switch down, the Wi-Fi sender will send data 00110000. When the gesture is a command to adjust the volume and decrease the volume, Wi-Fi will send The Wi-Fi sender will send data 00001000, and when the gesture is a command to adjust the volume and increase the volume, the Wi-Fi sender will send data 00001100. After the Wi-Fi receiving end receives the 8bit data sent from the Wi-Fi sending end through the wireless LAN, it sends the data to the MCU on the music player side (ie: ArduinoUNOR3 hardware development board), and the MCU on the music player side (ie: ArduinoUNOR3 hardware development board) board) to realize the control of music playback.

如图2所示,手势追踪传感器的音乐无线控制系统包括信息采集、数据传输、数据处理三个模块。信息采集部分包含红外传感器,手势追踪传感器,传感器端单片机。数据传输部分包含Wi-Fi发送端与Wi-Fi接收端。数据处理部分包含音乐播放器端单片机,音乐播放器。As shown in Figure 2, the music wireless control system of the gesture tracking sensor includes three modules: information collection, data transmission, and data processing. The information collection part includes an infrared sensor, a gesture tracking sensor, and a single-chip microcomputer at the sensor end. The data transmission part includes a Wi-Fi sender and a Wi-Fi receiver. The data processing part includes a music player-side microcontroller and a music player.

如图3所示,数据采集部分采用传感器端单片机(即,ArduinoUNOR3硬件开发板)对TMx4903传感器模块、红外传感模块、计时模块以及Wi-Fi传输模块的发送端进行集成。其中,红外模块选用HC-SR501人体红外感应模块,Wi-Fi发送模块选用ESP8266串口Wi-Fi无线收发器。数据采集部分的硬件连接的具体方式如下:As shown in Figure 3, the data acquisition part uses the sensor-side single-chip microcomputer (that is, the Arduino UNOR3 hardware development board) to integrate the sending end of the TMx4903 sensor module, infrared sensor module, timing module and Wi-Fi transmission module. Among them, the infrared module uses HC-SR501 human body infrared sensor module, and the Wi-Fi sending module uses ESP8266 serial port Wi-Fi wireless transceiver. The specific way of hardware connection of the data acquisition part is as follows:

HC-SR501人体红外感应模块与ArduinoUNOR3硬件开发板的连接:HC-SR501人体红外感应模块的引脚GND连接到ArduinoUNOR3硬件开发板的GND端口,HC-SR501人体红外感应模块的引脚Vcc连接到ArduinoUNOR3硬件开发板的电源IO的5V端口,HC-SR501人体红外感应模块的引脚信号输出端连接到ArduinoUNOR3硬件开发板的数字IO的5号端口,HC-SR501人体红外感应模块的引脚可重复触发端连接ArduinoUNOR3硬件开发板的数字IO的6号端口。The connection between the HC-SR501 human body infrared sensor module and the ArduinoUNOR3 hardware development board: the pin GND of the HC-SR501 human body infrared sensor module is connected to the GND port of the ArduinoUNOR3 hardware development board, and the pin Vcc of the HC-SR501 human body infrared sensor module is connected to the ArduinoUNOR3 The 5V port of the power supply IO of the hardware development board, the pin signal output terminal of the HC-SR501 human body infrared sensor module is connected to the No. 5 port of the digital IO of the ArduinoUNOR3 hardware development board, and the pin of the HC-SR501 human body infrared sensor module can be triggered repeatedly The terminal is connected to the No. 6 port of the digital IO of the Arduino UNOR3 hardware development board.

计时模块与ArduinoUNOR3硬件开发板的连接:计时模块的引脚1连接到ArduinoUNOR3硬件开发板的电源IO的5V端口,按键计时模块的引脚2连接到ArduinoUNOR3硬件开发板的数字IO的8号端口,按键计时模块的引脚3连接到ArduinoUNOR3硬件开发板的GND端口The connection between the timing module and the ArduinoUNOR3 hardware development board: pin 1 of the timing module is connected to the 5V port of the power IO of the ArduinoUNOR3 hardware development board, and pin 2 of the button timing module is connected to the No. 8 port of the digital IO of the ArduinoUNOR3 hardware development board. Connect the pin 3 of the key timing module to the GND port of the ArduinoUNOR3 hardware development board

ESP8266串口Wi-Fi无线收发模块与ArduinoUNOR3硬件开发板的连接:ESP8266串口Wi-Fi无线收发模块的引脚3.3V连接到3.3V输出电源模块,ESP8266串口Wi-Fi无线收发模块的引脚GND连接到ArduinoUNOR3硬件开发板的GND端口,ESP8266串口Wi-Fi无线收发模块的引脚UTXD连接到ArduinoUNOR3硬件开发板的数字IO的0号端口(RX),HC-05蓝牙传输从模块的引脚URXD连接到ArduinoUNOR3硬件开发板的数字IO的1号端口(TX)。The connection between ESP8266 serial port Wi-Fi wireless transceiver module and ArduinoUNOR3 hardware development board: the pin 3.3V of ESP8266 serial port Wi-Fi wireless transceiver module is connected to the 3.3V output power module, and the pin of ESP8266 serial port Wi-Fi wireless transceiver module is connected to GND To the GND port of the ArduinoUNOR3 hardware development board, the pin UTXD of the ESP8266 serial port Wi-Fi wireless transceiver module is connected to the 0th port (RX) of the digital IO of the ArduinoUNOR3 hardware development board, and the HC-05 Bluetooth transmission slave module is connected to the pin URXD To port 1 (TX) of the digital IO of the Arduino UNOR3 hardware development board.

如图4所示,数据传输部分采用ArduinoUNOR3硬件开发板对Wi-Fi传输模块的发送端与Wi-Fi传输模块的接收端集成。数据传输部分的硬件连接的具体方式如下:As shown in Figure 4, the data transmission part uses the Arduino UNOR3 hardware development board to integrate the sending end of the Wi-Fi transmission module with the receiving end of the Wi-Fi transmission module. The specific way of the hardware connection of the data transmission part is as follows:

ESP8266串口Wi-Fi无线收发模块与ArduinoUNOR3硬件开发板的连接:ESP8266串口Wi-Fi无线收发模块的引脚VCC连接到ArduinoUNOR3硬件开发板的电源IO的5V端口,ESP8266串口Wi-Fi无线收发模块的引脚GND连接到ArduinoUNOR3硬件开发板的GND端口,ESP8266串口Wi-Fi无线收发模块的引脚TX_5V连接到ArduinoUNOR3硬件开发板的数字IO的0号端口(RX),ESP8266串口Wi-Fi无线收发模块的引脚RX_5V连接到ArduinoUNOR3硬件开发板的数字IO的1号端口(TX)。The connection between ESP8266 serial port Wi-Fi wireless transceiver module and ArduinoUNOR3 hardware development board: the pin VCC of ESP8266 serial port Wi-Fi wireless transceiver module is connected to the 5V port of the power supply IO of ArduinoUNOR3 hardware development board, and the pin of ESP8266 serial port Wi-Fi wireless transceiver module Pin GND is connected to the GND port of the ArduinoUNOR3 hardware development board, and the pin TX_5V of the ESP8266 serial Wi-Fi wireless transceiver module is connected to the 0th port (RX) of the digital IO of the ArduinoUNOR3 hardware development board, and the ESP8266 serial Wi-Fi wireless transceiver module The pin RX_5V of the Arduino UNOR3 hardware development board is connected to the No. 1 port (TX) of the digital IO of the Arduino UNOR3 hardware development board.

ESP8266串口Wi-Fi无线收发模块的通信协议的设置,具体操作如下:To set the communication protocol of the ESP8266 serial port Wi-Fi wireless transceiver module, the specific operation is as follows:

模块VCC端连接5V转3.3V电源模块。GPIO0低电平,GPIO2高电平,GPIO15低电平,CH-PD连接到高电平时,模块进入工作模式。The VCC terminal of the module is connected to a 5V to 3.3V power supply module. GPIO0 low level, GPIO2 high level, GPIO15 low level, when CH-PD is connected to high level, the module enters the working mode.

使用超级终端或串口调试助手,通过发送AT指令对发送端和接收端进行通信协议的设置。其中,ESP8266串口Wi-Fi无线收发模块作发送端执行如下设置:输入指令AT+CWMODE=1,进入STA模式。对于ESP8266串口Wi-Fi无线收发模块作接收端执行如下设置:输入指令AT+CWMODE=2,进入AP模式。Use the HyperTerminal or the serial port debugging assistant to set the communication protocol between the sending end and the receiving end by sending AT commands. Among them, the ESP8266 serial port Wi-Fi wireless transceiver module is used as the sending end to perform the following settings: input the command AT+CWMODE=1 to enter the STA mode. For the ESP8266 serial port Wi-Fi wireless transceiver module as the receiving end, perform the following settings: Enter the command AT+CWMODE=2 to enter the AP mode.

如图5所示,Wi-Fi接收端接收来自Wi-Fi发送端通过无线局域网发送的8bit数据后,将数据发送到音乐播放器端的单片机。音乐播放器端单片机内部程序对数据判断后再向模拟开关发送数据。模拟开关在这里将起到代替人们手指按键的动作。对于不同的数据音乐播放器将选择进入下面四种模式。(1)播放模式。当系统收到“播放”的手势信息时,通过对模拟开关芯片发送指令控制音乐播放器播放;(2)暂停模式。当系统收到“暂停”的手势信息时,系统通过对模拟开关芯片发送指令控制音乐播放器暂停播放;(3)切换模式。当系统收到“切换”的手势信息时,系统继续接收手势数据并判断是播放上一曲还是播放下一曲,然后通过对模拟开关芯片发送指令控制音乐播放器切换;(4)音量调节模式。当系统收到“音量调节”的手势信息时,系统继续接收手势数据并判断是调高音量还是调低音量,然后通过对模拟开关芯片发送指令控制音乐播放器音量调节。As shown in Figure 5, the Wi-Fi receiving end receives the 8-bit data sent from the Wi-Fi sending end through the wireless LAN, and then sends the data to the single-chip microcomputer at the music player end. The internal program of the MCU on the music player side judges the data and then sends the data to the analog switch. The analog switch here will play the action of replacing people's finger keys. For different data, the music player will choose to enter the following four modes. (1) Play mode. When the system receives the "play" gesture information, it sends instructions to the analog switch chip to control the music player to play; (2) Pause mode. When the system receives the "pause" gesture information, the system controls the music player to suspend playback by sending instructions to the analog switch chip; (3) switching mode. When the system receives the "switch" gesture information, the system continues to receive gesture data and judges whether to play the previous song or the next song, and then controls the music player to switch by sending instructions to the analog switch chip; (4) volume adjustment mode . When the system receives the "volume adjustment" gesture information, the system continues to receive the gesture data and judge whether to increase or decrease the volume, and then control the volume adjustment of the music player by sending instructions to the analog switch chip.

Claims (4)

1. based on a music wireless control system for gesture tracing sensor, it is characterized in that: described system comprises information acquisition module, data transmission module, data processing module;
Described information acquisition module comprises two submodules, that is:
(1) infrared recognin module: it is close that infrared ray has identified whether people; When nobody is close, system is in holding state; When infrared ray perceived people near time then open system gesture identification part; After people leaves, then make gesture recognition module recover holding state;
(2) gesture identification submodule: utilize TMx4903 sensor to identify gesture;
Described data transmission module comprises:
Wi-Fi sending module: sensor side single-chip microcomputer sends data to Wi-Fi sending module, and data are sent to Wi-Fi receiver module by WLAN (wireless local area network) by Wi-Fi sending module;
Wi-Fi receiver module: data are sent to music player end single-chip microcomputer after Wi-Fi receiver module receives the data sent by Wi-Fi sending module;
Described data processing module comprises:
Sensor side processing module: sensor side single-chip microcomputer judges to different gesture informations, and send corresponding data to Wi-Fi transmitting terminal;
Music player end processing module: data are delivered to music player end single-chip microcomputer by Wi-Fi receiving end, music player end single-chip microcomputer controls analog switch after data analysis, to the broadcasting of song, suspends, switches, and volume adjusting.
2. a kind of music wireless control system based on gesture tracing sensor according to claim 1, it is characterized in that: described system comprises: first, part of data acquisition, use infrared sensing module automatic detection whether have people close, when detected people near time, TMx4903 sensor assembly starts, catch gesture and detect simultaneously by rolling counters forward, when having gesture not yet after 30 seconds, then TMx4903 sensor assembly recovers holding state; Then, tcp data segment, the gesture information using Wi-Fi transport module part of data acquisition to be obtained, is wirelessly transmitted to Wi-Fi receiving end from Wi-Fi transmitting terminal; Finally, data processing section is judged the data passed over by tcp data segment and realizes the process to background music.
3. a kind of music wireless control system based on gesture tracing sensor according to claim 1, is characterized in that: described system adopts TMx4903 series sensor to the identification of gesture, and described system needs for family and KTV the occasion playing music; Described system comprises perception device, wireless transport module, Single Chip Microcomputer (SCM) system, music player, sound equipment.
4. based on an implementation method for the music wireless control system of gesture tracing sensor, it is characterized in that, described method comprises the steps:
Step 1: design a kind of music wireless control system based on gesture tracing sensor, comprises information acquisition module, data transmission module, data processing module three part;
Step 2: the architecture of design data collecting part, adopts sensor side single-chip microcomputer to carry out integrated to TMx4903 sensor assembly, infrared sensing module, timing module;
Step 3: the architecture of design data hop, comprises the Wi-Fi transmitting terminal on sensor side single-chip microcomputer and the Wi-Fi receiving end on music player end single-chip microcomputer;
The setting of the communication protocol of step 4:ESP8266 serial ports Wi-Fi radio receiving transmitting module, module VCC end connects 5V and turns 3.3V power module, GPIO0 low level, GPIO2 high level, GPIO15 low level, when CH-PD is connected to high level, module enters mode of operation, by transmission AT instruction, transmitting terminal and receiving end is carried out to the setting of communication protocol, wherein, ESP8266 serial ports Wi-Fi radio receiving transmitting module is made transmitting terminal and is performed following setting: input instruction AT+CWMODE=1, enters STA mode; Receiving end is done for ESP8266 serial ports Wi-Fi radio receiving transmitting module and performs following setting: input instruction AT+CWMODE=2, enters ap mode;
Step 5: when there being people near infrared sensor, sensor senses is to human body, and passed to by signal in sensor side single-chip microcomputer, sensor side single-chip microcomputer sends signal to TMx4903 module again, opens TMx4903 sensor assembly; Also start counting simultaneously, when counting down to 30 seconds, if TMx4903 sensor assembly perceives gesture and sensor side single-chip microcomputer transmission data, continuing to open gesture sensor, and carry out step 7; If sensor side single-chip microcomputer does not receive data, close TMx4903 sensor assembly;
Step 6: if infrared sensor can't detect human body, then close timing module and gesture sensing module;
Step 7: after sensor side single-chip microcomputer receives hand signal, judges gesture by the algorithm of gesture identification, and produces different data according to the setting of program to the control command to music representated by gesture, sends to Wi-Fi transmitting terminal;
8bit data are transferred to Wi-Fi receiving end by WLAN (wireless local area network) by step 8:Wi-Fi transmitting terminal;
Step 9:Wi-Fi receiving end sends the data to music player end single-chip microcomputer after receiving data, music player end single-chip microcomputer, by the judgement to data, is selected, made music player enter four kinds of patterns below, comprising: (1) play mode; When system receives the gesture information of " broadcasting ", Systematical control music player is play; (2) park mode; When system receives the gesture information of " time-out ", Systematical control music player suspends to be play; (3) switch mode; When system receives the gesture information of " switching ", system continuation reception gesture data also judges it is play a upper song or play next song, then controls music player and switches; (4) volume control mode; When system receives the gesture information of " volume adjusting ", system continues to receive gesture data and judges heighten volume or turn down volume, then controls music player volume adjusting.
CN201510638392.9A 2015-09-30 2015-09-30 Music wireless control system based on gesture tracking sensor, and method thereof Pending CN105242599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510638392.9A CN105242599A (en) 2015-09-30 2015-09-30 Music wireless control system based on gesture tracking sensor, and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510638392.9A CN105242599A (en) 2015-09-30 2015-09-30 Music wireless control system based on gesture tracking sensor, and method thereof

Publications (1)

Publication Number Publication Date
CN105242599A true CN105242599A (en) 2016-01-13

Family

ID=55040279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510638392.9A Pending CN105242599A (en) 2015-09-30 2015-09-30 Music wireless control system based on gesture tracking sensor, and method thereof

Country Status (1)

Country Link
CN (1) CN105242599A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2026056190A1 (en) * 2024-09-14 2026-03-19 无锡市思娱科技有限公司 Ktv gesture recognition control system and control method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1087437A (en) * 1992-11-21 1994-06-01 来钢 Method and apparatus with producing remote control command signal by dance movement
CN201222353Y (en) * 2008-05-29 2009-04-15 郑淙铭 Broadcasting device controlled by limb movement
CN101895799A (en) * 2010-07-07 2010-11-24 中兴通讯股份有限公司 Music playback control method and music playback terminal
CN203151686U (en) * 2013-02-22 2013-08-21 冠捷显示科技(厦门)有限公司 Intelligent television of identifying remote controller via gestures
CN103383598A (en) * 2012-05-04 2013-11-06 三星电子株式会社 Terminal and method for controlling the same based on spatial interaction
CN204362249U (en) * 2014-12-26 2015-05-27 歌尔声学股份有限公司 A kind of wireless sound system
CN104795080A (en) * 2015-04-09 2015-07-22 广东欧珀移动通信有限公司 Music playing control method and device
CN104932458A (en) * 2015-04-29 2015-09-23 应艳琴 Intelligent household controller

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1087437A (en) * 1992-11-21 1994-06-01 来钢 Method and apparatus with producing remote control command signal by dance movement
CN201222353Y (en) * 2008-05-29 2009-04-15 郑淙铭 Broadcasting device controlled by limb movement
CN101895799A (en) * 2010-07-07 2010-11-24 中兴通讯股份有限公司 Music playback control method and music playback terminal
CN103383598A (en) * 2012-05-04 2013-11-06 三星电子株式会社 Terminal and method for controlling the same based on spatial interaction
CN203151686U (en) * 2013-02-22 2013-08-21 冠捷显示科技(厦门)有限公司 Intelligent television of identifying remote controller via gestures
CN204362249U (en) * 2014-12-26 2015-05-27 歌尔声学股份有限公司 A kind of wireless sound system
CN104795080A (en) * 2015-04-09 2015-07-22 广东欧珀移动通信有限公司 Music playing control method and device
CN104932458A (en) * 2015-04-29 2015-09-23 应艳琴 Intelligent household controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2026056190A1 (en) * 2024-09-14 2026-03-19 无锡市思娱科技有限公司 Ktv gesture recognition control system and control method

Similar Documents

Publication Publication Date Title
CN104216351B (en) Household electrical appliance sound control method and system
CN204116902U (en) To the voice-operated Voice command end of household electrical appliance and control terminal
CN103445409B (en) Intelligent bracelet
CN103345211B (en) Smart home control system and control method
EP3121706A1 (en) Control method and control system for working mode of mobile device
CN102973404B (en) Sauna house or far infrared light wave room and control method thereof
CN104754391A (en) Remote control data transmission method and interaction device of television
CN105025643A (en) Household intelligent light control system and method thereof
WO2017166066A1 (en) Infrared remote control method, terminal and apparatus
CN105867156A (en) Intelligent home control system
CN213403583U (en) Remote control night lamp with voice and gesture control aggregation
CN209044373U (en) Intelligent human-body infrared sensor and control system
CN106154995A (en) Intelligent bracelet gestural control system
CN202920607U (en) Sauna room or far infrared light wave room
CN201897874U (en) Timing remote controller
CN105242599A (en) Music wireless control system based on gesture tracking sensor, and method thereof
CN210836252U (en) Fingerprint lock and fingerprint lock control system
CN205230404U (en) Learning machine
TWI556664B (en) To achieve a wireless interaction between an electronic device and an initiator
CN104391570A (en) Wearable intelligent equipment and wearable intelligent system
CN103795982A (en) Video monitoring system based on gravity sensing technology
CN108427309A (en) Intelligent home control system
CN202711677U (en) Intelligent song-requiring system used in KTV room
CN105719460A (en) A Home Gateway System Based on Smart Bracelet
CN207835889U (en) Intelligent lighting exhibition hall switch circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160113