Motion game and interaction sensor and control method thereof
Technical Field
The invention relates to an interactive sensor, in particular to a sports game and interactive sensor and a control method thereof.
Background
With the ever-increasing standard of living, modern people are more and more focused on intelligent products, such as: smart mobile phone, intelligent motion bracelet etc, the smart bracelet is that people treat on hand, can gather the distance process of fortune motion in-process in real time when the motion, the step is gathered and calorie burning isoparametric then shows in the hand can the bracelet, but can not send for the cell-phone, and the smart bracelet capacity is limited, consequently present smart bracelet can only preserve the data of the day, consequently data before can not looking over, present smart bracelet list only gathers the function of motion simultaneously, can't control peripheral equipment as interactive inductor, lead to present product function singleness, consequently, need improve.
Disclosure of Invention
The present invention is directed to overcome the above-mentioned deficiencies of the prior art and to provide a sports game and interactive sensor and a control method thereof, which integrates the functions of sports, games and playing switches and can persistently store data.
In order to achieve the above object, the present invention provides a motion game and interaction sensor, which comprises a housing, wherein through slots are formed on two sides of the housing, and a control unit is arranged in the housing, and comprises:
the rechargeable battery module is used for supplying power to the whole control unit;
the main controller is used for carrying out Bluetooth communication and data exchange with an external terminal and responding to an operation instruction of an operator to send out a corresponding control signal;
the electric quantity detection module is used for detecting the electric quantity and the charging condition of the rechargeable battery module and sending the electric quantity and the charging condition to the main controller;
the USB charging interface is arranged on one side of the shell and is used for being connected with the rechargeable battery module to charge the rechargeable battery module;
the LED lamp module comprises a red lamp which is turned on during charging, a green lamp which is turned on after the charging, and an indicator lamp group which is used for indicating to flicker;
the first gravity sensor is used for sensing the gravity direction of the shell and sending the gravity direction to the main controller to control the indicating lamp set to flicker correspondingly;
a gravity sensing device; the device comprises a shell, a main controller, a peripheral device and a display screen, wherein the shell is used for collecting the gravity direction of the shell and sending the gravity direction to the main controller to control the peripheral device connected with the Bluetooth of the main controller to perform corresponding indication operation;
the step counting gravity acceleration sensor is used for collecting the number of steps during exercise;
the Bluetooth device is used for transmitting data to other devices through Bluetooth;
the main controller is respectively connected with the electric quantity detection module, the LED lamp module, the first gravity sensor, the gravity sensing device, the step-counting gravity acceleration sensor, the Bluetooth device and the rechargeable battery module, and the rechargeable battery module is further connected with the electric quantity detection module and the USB charging interface.
In order to facilitate the viewing, an LED lamp display window is arranged on the shell.
Preferably, the main controller is further connected with a distance calculator, a calorie calculator and a display module arranged on the surface of the shell.
The invention also discloses a control method of the motion game and the interactive sensor, which comprises the following steps of:
a) the main controller takes a corresponding gravity acceleration direction as a trigger condition for controlling the sensor to finally be a sports bracelet or a remote control bracelet in advance;
b) the main controller detects whether the indicating lamp group in the LED lamp module flashes at intervals of 1S in real time, if yes, the sensor is directly started, and the step e is skipped; does not exist, and keeps the original state;
c) detecting the operation direction of an operator by a first gravity sensor, judging that the electric quantity of a battery is insufficient when no state change still exists in an indicating lamp group in an LED lamp module after the electric quantity is detected to be insufficient or more than 10 minutes, and performing charging treatment; in the charging process, the mutual inductor can light a red light, and can light a green light after being fully charged, otherwise, the step d) is skipped;
d) when the main controller detects that the shell is vertical for 5 seconds and judges that the vertical direction is the specified direction, the main controller controls the indicating lamp group in the LED lamp module to flicker at intervals of 1S, and the inductor is started at the moment; jumping to step e);
e) at the moment, the main controller controls the indicating lamp group in the LED lamp module to finish flashing, and automatically starts the Bluetooth function without the password; at the moment, the connection can be carried out by searching the Bluetooth through the peripheral equipment, and after the connection is finished, the main controller controls the indicating lamp group in the LED lamp module to change from the flash flashing once every 1S to the slow flashing once every 20S;
f) judging as a sport bracelet or a remote control operation bracelet; is a sports bracelet, and jumps to step g); the bracelet is remotely operated, and the step h) is skipped;
g) starting a step-counting gravity acceleration sensor to work; and sending the data to the peripheral equipment connected with the data through Bluetooth;
h) start gravity-feed tank this moment, through the gravity-feed tank in the gravity-feed tank operator's direction: the Bluetooth mobile phone is advanced, retreated, leftwards and rightwards, and is sent to the peripheral equipment connected with the Bluetooth mobile phone by the Bluetooth function, and the peripheral equipment receives the corresponding operation direction and then performs operation control on the peripheral equipment.
Preferably, the name of bluetooth is defined with MYFITVR _ XX, and XX indicates a serial number.
According to the motion game and interaction sensor and the control method thereof, different functions are selected according to needs, so that the motion game and interaction sensor has the integrated functions of motion, game and playing switch, the working efficiency is improved, and data can be stored persistently.
Drawings
FIG. 1 is a schematic diagram of a sports game and an interactive sensor according to embodiment 1;
FIG. 2 is a schematic diagram of a control unit in the sports game and interactive sensor provided in embodiment 1
FIG. 3 is a schematic structural diagram of a sports game and an interactive sensor provided in embodiment 2;
fig. 4 is a schematic structural diagram of a control unit in the sports game and interactive sensor provided in embodiment 2.
In the figure: 1. a housing; 2. installing a through groove; 3. a rechargeable battery module; 4. a main controller; 5. an electric quantity detection module; 6, a USB charging interface; an LED lamp module; 8. a first gravity sensor; 9. a gravity sensing device; 10. a step-counting gravity acceleration sensor; 11. a Bluetooth device; 12, displaying a window by using an LED lamp; 13. a distance calculator; 14. a calorie calculator; 15. and a display module.
Concrete real-time mode
The invention is further illustrated with reference to the following figures and examples.
Example 1:
as shown in fig. 1 and fig. 2, the motion game and interactive sensor provided in this embodiment includes a housing 1, through slots 2 are provided on two sides of the housing 1, and a control unit is provided in the housing 1, and the control unit includes:
the rechargeable battery module 3 is used for supplying power to the whole control unit;
the main controller 4 is used for carrying out Bluetooth communication and data exchange with an external terminal and responding to an operation instruction of an operator to send out a corresponding control signal;
the electric quantity detection module 5 is used for detecting the electric quantity and the charging condition of the rechargeable battery module 3 and sending the electric quantity and the charging condition to the main controller 4;
the USB charging interface 6 is arranged on one side of the shell 1 and is used for being connected with the rechargeable battery module 3 to charge the rechargeable battery module 3;
the LED lamp module 7 comprises a red lamp which is turned on during charging, a green lamp which is turned on after the charging, and an indicator lamp group which is used for indicating to flicker;
the first gravity sensor 8 is used for sensing the gravity direction of the shell 1 and sending the gravity direction to the main controller 4 to control the indicating lamp set to flicker correspondingly;
a gravity sensing device 9; the device is used for acquiring the gravity direction of the shell 1 and sending the gravity direction to the main controller 4 to control peripheral equipment connected with the main controller 4 through Bluetooth to perform corresponding indication operation;
a step-counting gravity acceleration sensor 10 for collecting the number of steps during exercise;
the Bluetooth device 11 is used for transmitting data to other devices through Bluetooth;
the main controller 4 is respectively connected with the electric quantity detection module 5, the LED lamp module 7, the first gravity sensor 8, the gravity sensing device 9, the step counting gravity acceleration sensor 10, the Bluetooth device 11 and the rechargeable battery module 3, and the rechargeable battery module 3 is further connected with the electric quantity detection module 5 and the USB charging interface 6.
For the convenience of viewing, an LED lamp display window 12 is provided on the housing 1.
The embodiment also discloses a control method of the motion game and the interactive sensor, which comprises the following steps of:
a) the main controller 4 takes a corresponding gravity acceleration direction as a trigger condition for controlling the sensor and finally the motion bracelet or the remote control operation bracelet in advance;
b) the main controller 4 detects whether the indicating lamp group in the LED lamp module 7 has a flash condition that the flash is carried out at intervals of 1S in real time, if yes, the inductor is directly started, and the step e) is skipped; does not exist, and keeps the original state;
c) the first gravity sensor 8 detects the operation direction of an operator, and if the state of an indicator lamp group in the LED lamp module 7 is still not changed after the electric quantity is detected to be insufficient or more than 10 minutes, the electric quantity of the battery is judged to be insufficient, and charging processing is carried out; in the charging process, the mutual inductor can light a red light, and can light a green light after being fully charged, otherwise, the step d) is skipped;
d) when the main controller 4 detects that the shell 1 is vertical for 5 seconds and judges that the vertical direction is the specified direction, the main controller 4 controls the indicator lamp group in the LED lamp module 7 to flash every 1S, and the inductor is started at the moment; jumping to step e);
e) at the moment, the main controller 4 controls the indicating lamp group in the LED lamp module 7 to finish flashing, and automatically starts the Bluetooth function without the password; at the moment, the connection can be carried out by searching the Bluetooth through the peripheral equipment, and after the connection is finished, the main controller 4 controls the indicating lamp group in the LED lamp module 7 to change from the flash flashing once every 1S to the slow flashing once every 20S;
f) judging as a sport bracelet or a remote control operation bracelet; is a sports bracelet, and jumps to step g); the bracelet is remotely operated, and the step h) is skipped;
g) at this time, the step-counting gravity acceleration sensor 10 is started to work; and sending the data to the peripheral equipment connected with the data through Bluetooth;
h) the gravity sensing device 9 is activated at this point, sensing the operator's direction by gravity in the gravity sensing device 9: the Bluetooth mobile phone is advanced, retreated, leftwards and rightwards, and is sent to the peripheral equipment connected with the Bluetooth mobile phone by the Bluetooth function, and the peripheral equipment receives the corresponding operation direction and then performs operation control on the peripheral equipment.
Preferably, the name of bluetooth is defined with MYFITVR _ XX, and XX indicates a serial number.
The peripheral devices in this embodiment are devices such as a mobile phone with a bluetooth function, a television, a game machine, and v r glasses.
In this embodiment, first, the mutual inductor is held flatly, the USB charging interface 6 is showing a front view of the mutual inductor for itself, at this time, the USB charging interface 6 is specified to be downward to enable the mutual inductor to serve as a trigger condition of a sports bracelet, the USB charging interface 6 is specified to be upward to enable the mutual inductor to serve as a trigger condition of a remote control operation bracelet, the USB charging interface 6 is specified to be downward to show a downward direction detected by the gravity sensing device 9, and the USB charging interface 6 is specified to be leftward to show a leftward direction detected by the gravity sensing device 9; the USB charging interface 6 indicates a right direction detected by the gravity sensing device 9 towards the right; the USB charging interface 6 is facing upwards indicating an upward direction detected by the gravity sensing device 9.
During working, the gravity sensing device 9 and the step-counting gravity acceleration sensor 10 both process a disconnection state at first until the main controller detects that the corresponding trigger condition is established, and control the corresponding device to be powered on to work.
Example 2:
as shown in fig. 3 and 4, the game and interaction sensor provided by the embodiment is further connected to a distance calculator 13, a calorie calculator 14 and a display module 15 arranged on the surface of the shell 1 on the main controller 4, when the left and right movement bracelet works, the step counting gravity acceleration sensor 10 can count the number of steps when people move, the distance calculator 13 and the calorie calculator 14 convert the number of steps into a distance value and a calorie consumption value, so that the movement effect of people is clearer, and a mobile terminal connected with the distance calculator is sent through bluetooth, so that the lasting maintenance of data is realized, and meanwhile, the display module 15 is additionally arranged, so that the use is more clear.
Variations and modifications to the above-described embodiments may also occur to those skilled in the art, which fall within the scope of the invention as disclosed and taught herein. Therefore, the present invention is not limited to the above-mentioned embodiments, and any obvious improvement, replacement or modification made by those skilled in the art based on the present invention is within the protection scope of the present invention. Furthermore, although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.