A kind of game control device of interactive gait recognition methodTechnical field
The present invention relates to the game control dress of technical field of game, more particularly to a kind of interactive gait recognition methodPut.
Background technology
With social spirit and material progress transition and the development of science and technology, the average life span of the mankind constantly extends.PeopleBe not only satisfied with longevity, it is also desirable to while longevity again higher quality of life.Now, more and more people appreciate" keeping fit by exercise " this concept, starts to advocate healthy lifestyles, and the idea for treating life is also being continuously updated.
And the contradiction played all the time between health brings very big puzzlement to numerous parents:One mentions object for appreciation tripPlay, many parents will dislike very much, they think that game is unsound, can damage the eyesight of child, cause child's notice,Physical stamina letdown.Therefore, there is an urgent need for a kind of need that can be played the intellectual product played and can also taken exercises, meet parents' healthWill, while the needs of children's game are also met, while the consumption of the amount of exercise in game process is monitored, fill up this kind of with thisThe blank in market.
The content of the invention
The embodiment of the present invention proposes a kind of game control device of interactive gait recognition method, can monitor in game processAmount of exercise consumption, be effectively improved child because indulge play caused by myopia, obesity, cervical spondylosis, lack of exercise constitution decline etc.Health problem.
The embodiment of the present invention provides the game control device of interactive gait recognition method, including:Data collection station andRepeater;The data collection station is worn on user's foot, for gathering the action data of user;The repeater with it is describedData collection station communicates to connect;
The data collection station includes:STC microcontrollers, three-axis sensor and the first NRF communication modules;The STC is mono-Piece machine is connected with the three-axis sensor, the first NRF communication modules respectively;
The three-axis sensor is used to read the axial data of XYZ tri-, detects the action of human foot in real time;
The repeater includes:Main control chip, serial ports modular converter and the 2nd NRF communication modules;The main control chip pointIt is not connected with the serial ports modular converter, the 2nd NRF communication modules;
The first NRF communication modules are communicated to connect with the NRF communication modules;
The serial ports modular converter is connected with outer computer.
Further, the three-axis sensor is used to read the axial data of XYZ tri-, detects the dynamic of human foot in real timeMake, be specially:The three-axis sensor reads the real time acceleration of XYZ axis, and by the real time acceleration and history accelerationIt is compared, determines the real-time action of human body step.
Further, the STC microcontrollers are the control chips of model STC12LE.
Further, the three-axis sensor is the sensor of model MMA8451Q.
Further, the first NRF communication modules, the 2nd NRF communication modules are the cores of model nrf24L01Piece.
Further, the main control chip is the microcontroller of model STC15.
Further, the serial ports modular converter is used to serial data being converted to usb data;
The serial ports modular converter includes the conversion chip of model CP2102.
Implement the embodiment of the present invention, have the advantages that:
The game control device of interactive gait recognition method provided in an embodiment of the present invention, including data collection station andRepeater.Data collection station is worn on user's foot, and for gathering the action data of user, the action data after collection passes throughFirst NRF communication modules are sent to the 2nd NRF communication modules of repeater.After repeater is converted into usb data, it is sent toExternal computer.Outer computer determines the role in the action control game of user, and calculate according to the usb data of receptionAmount of exercise consumption in game process.As it can be seen that technical solution of the present invention using data collection station obtain body motion data comeGame role is controlled, while monitors the consumption of the amount of exercise in game process, child can be effectively improved caused by indulging gameThe health problems such as myopia, obesity, cervical spondylosis, the decline of lack of exercise constitution.
Brief description of the drawings
Fig. 1 is that a kind of structure of embodiment of the game control device of interactive gait recognition method provided by the invention is shownIt is intended to;
Fig. 2 is a kind of structure diagram of embodiment of STC microcontrollers provided by the invention;
Fig. 3 be NRF provided by the invention pass through module a kind of embodiment structure diagram;
Fig. 4 is a kind of structure of embodiment of main control chip provided by the invention;
Fig. 5 is a kind of structure diagram of embodiment of serial ports modular converter provided by the invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, completeSite preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, those of ordinary skill in the art are obtained every other without creative effortsEmbodiment, belongs to the scope of protection of the invention.
It is a kind of embodiment of the game control device of interactive gait recognition method provided by the invention referring to Fig. 1Structure diagram, the game control device include:Data collection station 1 and repeater 2.Data collection station 1 is worn on userOn foot, for gathering the action data of user.Repeater 2 is communicated to connect with data collection station 1.Data collection station 1 includes:STC microcontrollers 11,12 and the first NRF communication modules 13 of three-axis sensor.STC microcontrollers 11 respectively with three-axis sensor 12,One NRF communication modules 13 connect.Repeater package 2 includes:Main control chip 21,22 and the 2nd NRF communication modules of serial ports modular converter23.Main control chip 21 is connected with serial ports modular converter 22, the 2nd NRF communication modules 23 respectively.First NRF communication modules 13 with23 connection of NRF communication modules communication.Serial ports modular converter 22 is connected with outer computer.
In the present embodiment, three-axis sensor 12 is used to read the axial data of XYZ tri-, detects the dynamic of human foot in real timeMake, be specially:Three-axis sensor 12 reads the real time acceleration of XYZ axis, and real time acceleration and history acceleration are comparedCompared with determining the real-time action of human body step.
In the present embodiment, referring to Fig. 2, Fig. 2 is a kind of structural representation of embodiment of STC microcontrollers provided by the inventionFigure.STC microcontrollers are the control chips of model STC12LE.STC microcontrollers have the spies such as low-power consumption, cheap, stabilityPoint, is the main control chip for being highly suitable for game device.
In the present embodiment, three-axis sensor 12 is the sensor of model MMA8451Q.Referring to Fig. 3, Fig. 3 is the present inventionA kind of structure diagram of embodiment of the three-axis sensor of offer.
In the present embodiment, referring to Fig. 3, Fig. 3 is that a kind of the pass through structures of embodiment of module of NRF provided by the invention are shownIt is intended to.Wherein, the first NRF communication modules 13, the 2nd NRF communication modules 23 are the chips of model nrf24L01.Knot in Fig. 3Composition can be the structure of the first NRF communication modules or the 2nd NRF communication modules.First NRF communication modules 13 are threeWhen axle sensor obtains the value of acceleration, it can be determined that whether the numerical value obtained twice is consistent, if it is inconsistent, being sent to theTwo NRF communication modules 23, if unanimously, illustrating user and attonity, then into standby mode.If enter the time waitedDuring more than predetermined threshold value, then data collection station 1 enters power-down mode, saves electricity.
In the present embodiment, referring to Fig. 4, Fig. 4 is a kind of structure of embodiment of main control chip provided by the invention.Master controlChip 21 is the microcontroller of model STC15, is developed with minimum system plate.
In the present embodiment, referring to Fig. 5, Fig. 5 is a kind of structure of embodiment of serial ports modular converter provided by the inventionSchematic diagram.Serial ports modular converter 22 is used to serial data being converted to usb data;Serial ports modular converter 22 includes modelThe conversion chip of CP2102.
In the present embodiment, data collection station 1 and repeater 2 are both provided with power module, for whole to data acquisitionEnd 1 and repeater 2 are powered.
In the present embodiment, outer computer is connected with repeater 2, the action that repeater 2 gathers data collection station 1Data are sent to outer computer after being converted to usb data.Computer calculates the amount of exercise in game process according to action dataConsumption.Meanwhile simulation is shown to user by computer, and the role in game is controlled according to action data, realized mutualDynamic formula is played.
The game control device of interactive gait recognition method provided in an embodiment of the present invention, including data collection station andRepeater.Data collection station is worn on user's foot, and for gathering the action data of user, the action data after collection passes throughFirst NRF communication modules are sent to the 2nd NRF communication modules of repeater.After repeater is converted into usb data, it is sent toExternal computer.Outer computer determines the role in the action control game of user, and calculate according to the usb data of receptionAmount of exercise consumption in game process.As it can be seen that technical solution of the present invention using data collection station obtain body motion data comeGame role is controlled, while monitors the consumption of the amount of exercise in game process, child can be effectively improved caused by indulging gameThe health problems such as myopia, obesity, cervical spondylosis, the decline of lack of exercise constitution.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the artFor, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered asProtection scope of the present invention.