Disclosure of Invention
Based on the above reasons, the present inventors have proposed a control method, apparatus, computer device and storage medium for an intelligent balance board, which aim to realize interaction between the balance board and a user, and perform display of light, music and vibration effects by detecting the angle of the balance board and the number of times the balance board swings on the basis of maintaining the original functions and texture of the balance board. The design greatly improves playability and interactivity. Thereby improving the interest of the user to the balance board and the viscosity of the user, improving the strength, the flexibility and the balance feeling carelessly when playing, and being beneficial to the growth and development of children.
In order to meet the above requirements, a first object of the present invention is to provide a control method of an intelligent balance board.
The second object of the invention is to provide a control device of the intelligent balance board.
A third object of the present invention is to provide a computer device.
A fourth object of the present invention is to provide a storage medium.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
In one aspect, the invention provides a control method of an intelligent balance board, which is applied to the intelligent balance board and comprises the following steps:
receiving a lamp marking request, and enabling the appointed part of the lamp of the intelligent balance plate to display marking colors;
Executing a lamp display command to enable the intelligent balance board lamp to display a first color from the middle point to the point position, located in the vertical line, of the lamp swing;
If the average swinging angle of the intelligent balance plate reaches the included angle of the current designated part relative to the vertical line of the intelligent balance plate in the threshold time, the color of the lamp changes and music or vibration is displayed.
In one possible embodiment, the method further comprises, if the average rocking angle during the Q rocking times does not reach the angle of the currently designated location relative to the centerline of the intelligent balance board, changing the color of the light fixture and displaying music or vibration.
In a possible embodiment, the step of changing the color includes changing the position of the lamp in whole or in part to a color different from the color of the mark.
In a possible implementation manner, a plurality of lamp beads or lamp strips are used for forming the lamp, and the lamp beads or the lamp strips are numbered;
When the lamp beads representing any one or a group of numbers of the designated parts display the marking color, the angle of each swing is obtained, the lamp part corresponding to the angle of each swing displays the second color, and if the second color reaches the marking color position, the whole lamp displays the marking color and music or vibration are displayed.
In one possible embodiment, if the second color does not reach the marker color position, the light fixture is displayed as a third color as a whole and corresponding music or vibration is displayed.
In a possible implementation manner, the method further comprises the steps of obtaining the swinging times Q and the swinging angles of the intelligent balance plate each time, and setting the swinging times threshold value and the initial value of the swinging state angle of the intelligent balance plate;
When the value of Q is detected to reach the threshold value of the swinging times, if the average swinging angle in the period of swinging Q times reaches the swinging state angle, triggering the preset light effect and sound effect, replacing the swinging state angle with the current average swinging angle, increasing the threshold value of the swinging times to the threshold value of the next-stage swinging times, and circularly executing detection and playing the preset different light effect and sound effect until the swinging state angle reaches the limit angle.
In a possible implementation manner, the step of setting the threshold of the number of times of swinging and the initial value of the swinging state angle of the intelligent balance board further comprises setting the threshold of the number of times of swinging of a plurality of grades.
In a possible implementation manner, the step of setting the threshold value of the number of times of swinging and the initial value of the swinging state angle of the intelligent balance board further comprises setting several light effects and sound effects.
In a possible implementation manner, the intelligent balance board is in data communication with a remote server or mobile terminal device, and receives a swing number threshold and a numerical change requirement of a swing state angle.
In one possible implementation, the intelligent balance board sends the average swing angle during Q, the swing Q times, and the current swing state angle to a remote server or mobile end device presentation.
In a possible implementation manner, an initial swing state angle of the intelligent balance plate is set to be + -theta 1, a left-right extending angle of a lamp strip of the intelligent balance plate is set to be + -alpha, and when the swing angle of the intelligent balance plate reaches + -theta 1, the lamp effect change of the lamp strip is triggered, wherein in the initial state, theta 1 is less than or equal to alpha.
In one possible implementation, the intelligent balance board stores or transmits the average swing angle during Q, the swing Q times, and the swing state angle of each stage locally to a remote server or mobile end device.
In a second aspect, the present invention provides a control device for an intelligent balance board, comprising the following units:
The color marking unit is used for receiving a lamp marking request and enabling the appointed part of the lamp of the intelligent balance plate to display marking colors;
The lamp display unit enables the intelligent balance board lamp to display a first color from the middle point to a point position, located in a vertical line, of the lamp swing;
and the detection execution unit is used for changing the color of the lamp and displaying music or vibration if the average swinging angle in the Q swinging periods reaches the included angle of the current designated part relative to the vertical line of the intelligent balance plate.
In a third aspect, the present invention also provides a computer device, including a memory, a processor, and a control program of an intelligent balance board stored in the memory and running on the processor, where the control program of the intelligent balance board, when executed by the processor, implements a control method of the intelligent balance board according to any one of the above methods.
In a fourth aspect, the present invention also proposes a non-transitory computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, implements a method for controlling an intelligent balance board according to any of the above methods.
Compared with the prior art, the method has the beneficial effects that the marking color is displayed at the appointed position of the lamp of the intelligent balance plate by receiving the lamp marking request, when the average swinging angle in a swinging period reaches the included angle of the current appointed position relative to the vertical line of the intelligent balance plate, the mean swinging angle reaches the triggering condition, at the moment, the color of the lamp changes, music or vibration can be displayed, the good interaction between the intelligent balance plate and a user is realized, the lamplight swinging effect is realized, namely, the lamp part cutting the vertical line is lighted in real time, the playability of the balance plate is greatly improved, the interest and viscosity of the user on the balance plate are improved, and the strength, the flexibility and the balance feel are carelessly improved during playing.
The invention is further described below with reference to the drawings and specific embodiments.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic application scenario diagram of a control method of an intelligent balance board according to an embodiment of the present invention. Fig. 2 is a flow chart of a control method of an intelligent balance board according to an embodiment of the present invention. As shown in the figure, the control method of the intelligent balance board is applied to a server, the method is executed by a computer program installed in the server, the server communicates with at least one user terminal, and the user terminal can be a terminal device with an information receiving function and an information sending function, for example, the intelligent balance board, a desktop computer, a notebook computer, a tablet computer or a smart phone. The server is used as a back end to provide background service, and the user end is used as a front end to provide an operation interface for interaction with a user. The control method of the intelligent balance board provided by the embodiment of the invention can realize the control of the intelligent balance board through the cooperation of the server and the user side so as to improve the user experience.
As shown in fig. 2, the invention provides a control method of an intelligent balance board, which is applied to the intelligent balance board and comprises the following steps:
Step S101, receiving a lamp marking request, and enabling a specified part of a lamp of the intelligent balance board to display marking colors;
step S102, executing a lamp display command to enable the intelligent balance board lamp to display a first color from the middle point to a point position, located in a vertical line, of the lamp swing;
In this embodiment, the swing effect of the light is intended to be achieved, so as to increase the interactive experience of the user.
Step S103, judging whether the average swing angle of the intelligent balance plate reaches the included angle of the current designated part relative to the vertical line of the intelligent balance plate in the threshold time;
In this embodiment, the threshold time is a preset value, and the sensor inside the intelligent balance plate counts the swing angle during this period, and calculates the average swing angle.
Step S104, changing the color of the lamp into a second color;
wherein the second color can swing along with the swing of the intelligent balance board.
In this embodiment, the intelligent balance board may also display music or vibration.
Step S105, the color of the lamp is changed into a third color;
Wherein, the third color can swing along with the swing of the intelligent balance board. In this embodiment, the intelligent balance board may also display music or vibration. Specifically, the step of color change includes the step of changing the position of the lamp, in whole or in part, to a color different from the color of the indicia.
In an embodiment, a plurality of lamp beads or lamp bars are used for forming the lamp, the lamp beads or lamp bars are numbered, when any one of the designated parts or a group of numbered lamp beads are represented for displaying the marking color, the swinging times Q and the swinging angles of the intelligent balance plate are counted, the lamp part corresponding to the swinging angles of each time is made to display the second color, and if the second color reaches the marking color position, the lamp is integrally displayed as the marking color, and music or vibration is displayed. And if the second color does not reach the position of the marked color, displaying the whole lamp as a third color and displaying corresponding music or vibration. Specifically, taking a lamp as an example, the lamp consists of 60 lamp bars, the number is 1-60, and when a lamp marking request is received, any random part or any continuous parts of the lamp refer to any number of lamp bars or any number of lamp bars with continuous numbers. When the lamp with any number displays a green light, the balance plate starts to swing, the lamp bar corresponding to the angle of each swing displays a yellow lamp, when the yellow lamp is overlapped with the green light, the whole lamp displays green, music sounds to indicate that the swing reaches a preset value, and otherwise, the whole lamp displays red to indicate that the swing does not reach the preset value.
In another embodiment, the intelligent balance board does not need to count the number of sways when executing the above embodiment, but only needs to count the sum of the sways in a period of time, and calculates the average sways in a unit time according to the time. When the judging stage of any step is executed, whether the current swinging strength reaches the requirement of the current mode can be known according to the average swinging angle, and when the requirement is met, different colors, music and vibration can be displayed. The requirements of users on different movement modes of the intelligent balance board can be met, if the strength of the users is not very strong, the mode with smaller threshold value can be selected, and excessive movement burden can not be caused to the users.
In another embodiment, the intelligent balance board can receive remote control instructions from intelligent devices such as a mobile phone of a user, so as to adjust the average swing angle threshold value, and further achieve the purpose of changing the mode.
As shown in fig. 3, the invention provides a control method of an intelligent balance board, which is applied to the intelligent balance board and comprises the following steps:
Step S201, setting a swing frequency threshold value of the intelligent balance plate and an initial value of a swing state angle;
in this embodiment, the step of setting the swing number threshold and the initial value of the swing state angle of the intelligent balance board further includes setting the swing number threshold of several levels, for example, the first time of triggering is 100, and the subsequent level is 120, 150, 80, 60, etc.
In this embodiment, the step of setting the threshold number of times of swinging of the intelligent balance board and the initial value of the swinging state angle further includes setting a plurality of light effects, sound effects and vibration effects. The light effect, the sound effect and the vibration effect correspond to different levels of swinging frequency thresholds.
In this embodiment, an initial swing state angle of the intelligent balance plate is set to be ±θ1, a left-right extending angle of a lamp strip of the intelligent balance plate is set to be ±α, and when the swing angle of the intelligent balance plate reaches to be ±θ1, a lamp effect change of the lamp strip is triggered, wherein θ1 is less than or equal to α in the initial state.
Step S202, obtaining the swinging times Q and the swinging angles of the intelligent balance plate each time;
in this embodiment, the data may be acquired by using a sensor of the intelligent balance board, so as to facilitate the judgment of the subsequent method.
Step S203, judging whether the swing state angle reaches a limit angle;
specifically, in this example, the swing state angle is an index for triggering the next mode, and an excessive swing angle of the intelligent balance plate may cause danger to the user, so when the swing angle reaches the limit angle, the swing angle cannot be continuously lifted, and the user is prevented from being stimulated to continuously lift the swing angle.
Step S204, judging whether the value of Q reaches a swing frequency threshold value;
in this embodiment, when the value of Q reaches the threshold number of wobbles, it indicates that one motion cycle has been completed.
Step S205, judging that the average swing angle in the period of swinging Q times reaches a swing state angle;
Specifically, in one cycle, only the instantaneous swing angle is determined, and the movement frequency of the user cannot be known, so that the accuracy is greatly improved in one cycle.
Step S206, replacing the current average swing angle with the swing state angle;
Step S207, the swing frequency threshold is increased to the next swing frequency threshold.
The above steps are cyclically performed as shown in fig. 3, and when one cycle is completed, the next cycle is naturally started.
This step may be run synchronously or separately from the above-described steps S101-S105.
In a possible implementation manner, the intelligent balance board is in data communication with a remote server or mobile terminal device, receives the requirement of changing the value of the swing frequency threshold and the swing state angle, and can realize the mode switching of the balance board only. The intelligent balance board sends the average swing angle and the current swing state angle in the Q and the Q times of swing to the remote server or the mobile terminal equipment for display, or the intelligent balance board locally stores or sends the average swing angle in the Q and the Q times of swing and the swing state angle of each stage to the remote server or the mobile terminal equipment, so that the display on the remote server or the mobile terminal equipment can be realized, the display is convenient for storage, and the intelligent balance board is also suitable for multi-user use.
Fig. 4 is a schematic block diagram of a control device of an intelligent balance board according to an embodiment of the present invention. As shown in fig. 4, the invention further provides a control device of the intelligent balance board, corresponding to the control method of the intelligent balance board. The control device comprises a unit for executing the control device method, and the system can be configured in a desktop computer, a tablet computer, a portable computer, and the like. Specifically, referring to fig. 4, the control device 300 includes a color marking unit 301, a lamp displaying unit 302, and a detection executing unit 303:
the color marking unit 301 is configured to receive a light marking request, so that a designated part of a light of the intelligent balance board displays marking color;
The lamp display unit 302 displays the first color between the midpoint of the intelligent balance board lamp and the point position of the vertical line in the lamp swinging
The detection execution unit 303 is configured to change the color of the lamp and display music or vibration if the average swing angle during the Q times of swing reaches the angle of the current designated portion relative to the vertical line of the intelligent balance board.
It should be noted that, as a person skilled in the art can clearly understand, the specific implementation process of the control device 300 and each unit of the intelligent balance board may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, the description is omitted here.
The control means 300 of the intelligent balance board described above may be implemented in the form of a computer program which can be run on a computer device as shown in fig. 5.
Referring to fig. 5, fig. 5 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 400 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster formed by a plurality of servers.
With reference to FIG. 5, the computer device 400 includes a processor 402, a memory, and a network interface 405, which are connected by a system bus 401, wherein the memory may include a non-volatile storage medium 403 and an internal memory 404.
The non-volatile storage medium 403 may store an operating system 4031 and a computer program 4032. The computer program 4032 includes program instructions that, when executed, cause the processor 402 to perform the control method of the present application.
The processor 402 is used to provide computing and control capabilities to support the operation of the overall computer device 400.
The internal memory 404 provides an environment for the execution of a computer program 3032 in the non-volatile storage medium 403, which computer program 4032, when executed by the processor 402, causes the processor 402 to perform the control method of the present application.
The network interface 405 is used for network communication with other devices. It will be appreciated by those skilled in the art that the architecture shown in fig. 5 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting of the computer device 400 to which the present inventive arrangements may be implemented, and that a particular computer device 400 may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
Wherein the processor 402 is configured to execute a computer program 4032 stored in the memory to implement the steps of:
The method comprises the steps of receiving a lamp marking request to enable a specified part of a lamp of an intelligent balance plate to display marking colors, executing a lamp display command to enable the lamp of the intelligent balance plate to display first colors between points, located in vertical lines, of the lamp swinging from the middle point to the lamp, and enabling the colors of the lamp to change and display music or vibration if the average swinging angle of the intelligent balance plate reaches the included angle of the current specified part relative to the vertical lines of the intelligent balance plate within a threshold time. And
When the value of Q is detected to reach the swing frequency threshold, if the average swing angle in the period of swing Q times reaches the swing state angle, triggering preset light effects and sound effects, replacing the swing state angle with the current average swing angle, increasing the swing frequency threshold to the next-stage swing frequency threshold, and circularly executing detection and playing preset different light effects and sound effects until the swing state angle reaches the limit angle.
It should be appreciated that in embodiments of the present application, the processor 402 may be a central processing unit (CentralProcessing Unit, CPU), the processor 402 may also be other general purpose processors, digital signal processors (DIGITALSIGNAL PROCESSOR, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), off-the-shelf Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program comprises program instructions, and the computer program can be stored in a storage medium, which is a computer readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above. Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. The program instructions, when executed by the processor, cause the processor to perform the steps of:
The method comprises the steps of receiving a lamp marking request to enable a specified part of a lamp of an intelligent balance plate to display marking colors, executing a lamp display command to enable the lamp of the intelligent balance plate to display first colors between points, located in vertical lines, of the lamp swinging from the middle point to the lamp, and enabling the colors of the lamp to change and display music or vibration if the average swinging angle of the intelligent balance plate reaches the included angle of the current specified part relative to the vertical lines of the intelligent balance plate within a threshold time. And
When the value of Q is detected to reach the swing frequency threshold, if the average swing angle in the period of swing Q times reaches the swing state angle, triggering preset light effects and sound effects, replacing the swing state angle with the current average swing angle, increasing the swing frequency threshold to the next-stage swing frequency threshold, and circularly executing detection and playing preset different light effects and sound effects until the swing state angle reaches the limit angle.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.