The invention relates to the technical field of dice, in particular to an intelligent dice.
With the improvement of people's material living standards, the pursuit of spiritual entertainment has become more diversified. In various forms of party games, dice are common entertainment props, such as group running games, table games, etc. However, during the epidemic period, online interactions have replaced offline gatherings. Traditional dice require users to manually judge the figures on the dice. The dice itself cannot recognize the figures displayed upward after being thrown. The entertainment method of uploading dice figures to the Internet by the user is not only inconvenient, but also cannot guarantee the fairness of the game.
Therefore, it is necessary to provide a dice to avoid the need for a user to manually judge the figure of dice in the remote interactive entertainment, thereby improving the convenience and fairness of the game.
The purpose of the invention is to provide a dice to avoid the need for a user to manually judge the figure of dice in the remote interactive entertainment, thereby improving the convenience and fairness of the game.
On the one hand, the invention provides an intelligent dice, comprising:
Preferably, a space coordinate system is established with the first direction as any axis; each of the surfaces displaying the figure is mapped to the corresponding coordinate interval in the space coordinate system;
Preferably, a space coordinate system [X, Y, Z] is established with the first direction as the Z axis, and the vector coordinates of the second direction satisfy the relational expression:
R=[R
x
, R
y
, R
z];
wherein, R is the vector coordinate of the second direction in the space coordinate system [X, Y, Z], Rx is the coordinate parameter of the projection of the second direction on the X-axis, Ry is the coordinate parameter of the projection of the second direction on the Y-axis, and Rz is the coordinate parameter of the projection of the second direction on the Z-axis;
N=[N
x
, N
y
, N
z];
wherein, N is the coordinate interval of the space coordinate system [X, Y, Z] mapped by any of the surfaces displaying the figure, Nx is the coordinate parameter of the projection of the surface on the X axis, Ny is the coordinate parameter of the projection of the surface on the Y axis, and Nz is the coordinate parameter of the projection of the surface on the Z axis;
Preferably, the intelligent dice further comprises:
Preferably, the intelligent dice further comprises:
Preferably, the intelligent dice further comprises:
Preferably, the intelligent dice further comprises:
Preferably, the intelligent dice further comprises:
Preferably, the intelligent dice further comprises:
Preferably, the inner filling layer is made of transparent material; the light emitted by the LED lamp is emitted to the outside of the shell through the inner filling layer and the digital display layer in sequence.
The invention has the following advantageous effects:
In order to avoid the need for the user to manually judge the figure of dice in the remote interactive entertainment, an acceleration sensor is provided in the shell; the vector data of gravitational acceleration is collected by the acceleration sensor, so that the relative positions of the second direction relative to each surface are calculated based on the relative positions of the second direction relative to the first direction, with the first direction as a reference, each surface with a fixed position relative to the first direction as another reference, so as to judge the figure information facing upward displayed by the intelligent dice, thereby improving the convenience and fairness of the game.
In order to calculate the figure information according to the collected vector data, a space coordinate system is established by taking the first direction as any axis; each of the surfaces displaying the figure is mapped to the corresponding coordinate interval in the space coordinate system; according to the coordinate interval in which the vector coordinates of the second direction in the space coordinate system fall, the figure information displayed on the dice corresponding to the coordinate interval is acquired. Therefore, the relative positional relationship between the first direction, the second direction and each surface is quantified in the space coordinate system to calculate accurate data, thereby accurately judging the figure information.
In order to prevent the user from manually uploading the figure information of the dice, an antenna is provided on the casing, so that the figure information of the dice is automatically uploaded to the Internet to realize remote mutual entertainment.
In order to accurately obtain the real-time figure information of the dice, a chip is provided in the shell, so that the figure information is calculated in real time, which improves the real-time performance of remote interactive entertainment and the accuracy of data.
In order to avoid the lack of battery life due to the small size of the intelligent dice, a battery and wireless charging coils are provided in the shell, so that the user can throw the intelligent dice on the wireless charging device to realize charging while playing, which improves the battery life.
In order to improve the entertainment of throwing dice, an LED lamp is provided in the shell, so that users can obtain a richer entertainment experience; the light-transmitting material is integrally formed on the surface of the shell to display the figures, so that the light of the LED lamp can fully illuminate the displayed figures.
In order to prevent the impact force of throwing from damaging electronic components such as circuit boards and acceleration sensors inside the shell, an internal filling layer is provided in the shell to wrap the LED lamp and the circuit board to play a buffering role.
A transparent material is used as the inner filling layer, so that the light of the LED lamp can reach the digital display layer.
In order to explain the embodiments of the invention or the technical solutions in the prior art more clearly, the drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced hereinafter. Obviously, the drawings in the following description are only some embodiments of the invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
In the drawings, 100 refers to the intelligent dice; 10 refers to the shell; 11 refers to the surface; 20 refers to the acceleration sensor; 21 refers to the vector data; F1 refers to the first direction; F2 refers to the second direction; 22 refers to the figure information; 30 refers to the circuit board; 40 refers to the antenna; 50 refers to the chip; 61 refers to the battery; 62 refers to the wireless charging coil; 70 refers to the LED lamp; 81 refers to the digital display layer; 82 refers to the inner filling layer; 200 refers to the intelligent interconnection system; 210 refers to the user control terminal; 300 refers to the computer readable storage medium; 410 refers to the memory; 420 refers to the processor.
In order to facilitate understanding of the invention, the invention will be described more fully hereinafter with reference to the drawings. Preferred embodiments of the invention are shown in the drawings. However, the invention may be embodied in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that a thorough and complete understanding of the disclosure is provided.
It should be noted that when an element is referred to as being “fixed” to another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being “connected” to another element, it can be directly connected to the other element or intervening elements may also be present. The terms “vertical”, “horizontal”, “left”, “right” and similar expressions are used herein for illustrative purposes only.
Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this invention belongs. The terms used herein in the description of the invention are for the purpose of describing specific embodiments only, and are not intended to limit the invention. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items.
An intelligent dice, comprising:
In order to avoid the need for the user to manually judge the figure of dice in the remote interactive entertainment, an acceleration sensor is provided in the shell; the vector data of gravitational acceleration is collected by the acceleration sensor, so that the relative positions of the second direction relative to each surface are calculated based on the relative positions of the second direction relative to the first direction, with the first direction as a reference, each surface with a fixed position relative to the first direction as another reference, so as to judge the figure information facing upward displayed by the intelligent dice, thereby improving the convenience and fairness of the game.
Some embodiments of the application will be described in detail hereinafter with reference to the drawings. The embodiments described hereinafter and features in the embodiments may be combined with each other without conflict.
With reference to
Specifically, the shell 10 is formed with a plurality of surfaces 11 displaying the figures.
Specifically, the acceleration sensor 20 is provided in the shell 10 and used for collecting vector data 21 of gravitational acceleration.
Specifically, when the acceleration sensor 20 is in the zero acceleration state, the direction corresponding to the gravitational acceleration is the first direction F1, and when the intelligent dice 100 is thrown and in a static state, the direction corresponding to the gravitational acceleration is the second direction F2; according to the relative position of the first direction F1 and the second direction F2, and the relative position of the first direction F1 and each of the surface 11 displaying the figure, the figure information 22 facing upward displayed by the intelligent dice 100 can be calculated.
Accordingly, in order to avoid the need for the user to manually judge the figure of dice in the remote interactive entertainment, an acceleration sensor 20 is provided in the shell 10; the vector data 21 of gravitational acceleration is collected by the acceleration sensor 20, so that the relative positions of the second direction F2 relative to each surface 11 are calculated based on the relative positions of the second direction F2 relative to the first direction F1, with the first direction F1 as a reference, each surface 11 with a fixed position relative to the first direction F1 as another reference, so as to judge the figure information 22 facing upward displayed by the intelligent dice 100, thereby improving the convenience and fairness of the game.
Preferably, a space coordinate system is established with the first direction F1 as any axis. Each of the surface 11 displaying the figure is mapped to the corresponding coordinate interval in the space coordinate system. According to the coordinate interval in which the vector coordinates of the second direction F2 in the space coordinate system fall, the figure information 22 displayed on the dice corresponding to the coordinate interval is acquired.
Accordingly, in order to calculate the figure information 22 according to the collected vector data 21, a space coordinate system is established by taking the first direction F1 as any axis. Each of the surface 11 displaying the figure is mapped to the corresponding coordinate interval in the space coordinate system. According to the coordinate interval in which the vector coordinates of the second direction F2 in the space coordinate system fall, the figure information 22 displayed on the dice corresponding to the coordinate interval is acquired. Therefore, the relative positional relationship between the first direction F1, the second direction F2 and each surface 11 is quantified in the space coordinate system to calculate accurate data, thereby accurately judging the figure information 22.
Preferably, a space coordinate system [X, Y, Z] is established with the first direction F1 as the Z axis, and the vector coordinates of the second direction F2 satisfy the relational expression:
R=[R
x
, R
y
, R
z];
wherein, R is the vector coordinate of the second direction F2 in the space coordinate system [X, Y, Z], Rx is the coordinate parameter of the projection of the second direction F2 on the X-axis, Ry is the coordinate parameter of the projection of the second direction F2 on the Y-axis, and Rz is the coordinate parameter of the projection of the second direction F2 on the Z-axis;
N=[N
x
, N
y
, N
z];
wherein, N is the coordinate interval of the space coordinate system [X, Y, Z] mapped by any of the surfaces 11 displaying the figure, Nx is the coordinate parameter of the projection of the surface 11 on the X axis, Ny is the coordinate parameter of the projection of the surface 11 on the Y axis, and Nz is the coordinate parameter of the projection of the surface 11 on the Z axis;
Specifically, the circuit board 30 is provided in the shell 10. The antenna 40 is provided on the shell 10 and is electrically connected to the circuit board 30; the antenna 40 sends the figure information 22 to a user control terminal 210.
Accordingly, in order to prevent the user from manually uploading the figure information 22 of the dice, an antenna 40 is provided on the casing 10, so that the figure information 22 of the dice is automatically uploaded to the Internet to realize remote mutual entertainment.
Specifically, the chip 50 is provided on the circuit board 30 and is electrically connected to the circuit board 30; the chip 50 calculates vector coordinates corresponding to the vector data 21 according to the vector data 21 collected by the acceleration sensor.
Accordingly, in order to accurately obtain the real-time figure information 22 of the dice, a chip 50 is provided in the shell 10, so that the figure information 22 is calculated in real time, which improves the real-time performance of remote interactive entertainment and the accuracy of data.
Specifically, the battery 61 is provided in the shell 10 and is electrically connected to the circuit board 30. The wireless charging coils 62 are provided in the shell 10 and are electrically connected to the battery 61.
Accordingly, in order to avoid the lack of battery life due to the small size of the intelligent dice 100, a battery 61 and wireless charging coils 62 are provided in the shell 10, so that the user can throw the intelligent dice 100 on the wireless charging device to realize charging while playing, which improves the battery life.
Specifically, the LED lamp 70 is provided in the shell 10 and is electrically connected to the circuit board 30.
Accordingly, in order to improve the entertainment of throwing dice, an LED lamp 70 and the like are provided in the shell 10, so that users can obtain a richer entertainment experience.
Specifically, the digital display layer 81 is integrally formed on the surface 11 with a light-transmitting material to display the figure; the light emitted by the LED lamp 70 is emitted to the outside of the shell 10 through the digital display layer 81.
More specifically, the material of the digital display layer 81 is:
liquid crystal polymer LCP+tritan.
The material of the shell 110 is:
tritan+(C11H12O3)n+Fiberglass+liquid crystal polymer LCP
Accordingly, the light-transmitting material is integrally formed on the surface 11 of the shell 10 to display the figures, so that the light of the LED lamp 70 can fully illuminate the displayed figures.
Specifically, the inner filling layer 82 which is filled in the shell 10 and wraps the acceleration sensor 20, the LED lamp 70, and the circuit board 30; the inner filling layer 82 is made of transparent material; the light emitted by the LED lamp 70 is emitted to the outside of the shell 10 through the inner filling layer 82 and the digital display layer 81 in sequence.
Accordingly, in order to prevent the impact force of throwing from damaging electronic components such as circuit boards 30 and acceleration sensors 20 inside the shell 10, an internal filling layer 82 is provided in the shell 10 to wrap the LED lamp 70 and circuit board 30 to play a buffering role. Meanwhile, by using a transparent material as the inner filling layer 82, the light of the LED lamp 70 can reach the digital display layer 81.
More specifically, the material of the inner filling layer 82 may satisfy the following chemical formula:
(CH)+Polyurethane+(C11H12O)+SiO+PEEK+Graphene+Fe2O3+Polymer nickel (2%-5%)+SiO2*22%+[(Na2O+MgO+B2O3+CaO*2%]+(Al2O3*8%)+(SiO2*12%)
Accordingly, the inner filling layer 82 satisfying the above chemical formula can keep the circuit system of the battery 61 working normally at −40° C. -+85° C.
The embodiment further provides an intelligent interconnection system 200, comprising the above intelligent dice 100, and the system further comprises:
The embodiment further provides a method for calculating the figure of the intelligent dice 100, wherein the method comprises the steps of:
S10: collecting the vector data 21 of the gravitational acceleration when the intelligent dice 100 is in a zero acceleration state through the acceleration sensor 20, and taking the direction corresponding to the gravitational acceleration as the first direction F1.
Specifically, a space coordinate system [X, Y, Z] is established with the first direction F1 as the Z axis;
N=[N
x
, N
y
, N
z];
wherein, N is the coordinate interval of the space coordinate system [X, Y, Z] mapped by any of the surfaces 11 displaying the figure, Nx is the coordinate parameter of the projection of the surface 11 on the X axis, Ny is the coordinate parameter of the projection of the surface 11 on the Y axis, and Nz is the coordinate parameter of the projection of the surface 11 on the Z axis.
Specifically, the vector coordinates of the second direction F2 satisfy the relational expression:
R=[R
x
, R
y
, R
z];
wherein, R is the vector coordinate of the second direction F2 in the space coordinate system [X, Y, Z], Rx is the coordinate parameter of the projection of the second direction F2 on the X-axis, Ry is the coordinate parameter of the projection of the second direction F2 on the Y-axis, and Rz is the coordinate parameter of the projection of the second direction F2 on the Z-axis;
More specifically, the embodiment provides a specific calculation example:
In the space coordinate system, each axis of X, Y, and Z is perpendicular to the three directions of the dice. The vector R is the vector detected by the accelerometer, which is the result of the inertial force in the example above.
RX, RY, RZ are the projections of the vector Ron X-axis, Y-axis, and Z-axis.
Note the following relationships:
R
2
=R
X
2
+R
Y
2
+R
Z
2 (Formula 1)
This formula 1 is equivalent to the three-dimensional space Pythagorean theorem. The digital accelerometer can obtain information through I2C, SPI or USART, while the output of the analog accelerometer is a voltage value within a predetermined range, which needs to be converted into a digital value with an ADC (analog to digital) module. For example, the output value of a 10-bit ADC module ranges from 0 to 1023.
Supposing that the following three axes of data are obtained from the 10-bit ADC module:
AdcRx=208;
AdcRy=485;
AdcRz=865;
Each ADC module has a reference voltage, assuming that it is 3.3V. To convert a 10-bit ADC value to a voltage value, the following formula is used:
VR x=AdcRx*VR/1023
Substitute the values of the 3 axes into the above formula to get:
VRx=208*3.3/1023=0.671V
VRy=485*3.3/1023=1.565V
VRz=865*3.3/1023=2.790V
Each accelerometer has a voltage value of zero acceleration, which corresponds to an acceleration of 0 g. A signed voltage value can be obtained by calculating the offset from the 0 g voltage. For example, the 0 g voltage value V0 g=1.650V, the offset relative to the 0 g voltage can be obtained in the following way:
DVRx=0.671V−1.650V=−0.979V
DVRy=1.565V−1.65V=−0.085V
DVRz=2.790V−1.65V=1.140V
The final conversion also needs to introduce the sensitivity of the accelerometer, usually in mV/g. For example, the sensitivity of the accelerometer is Sensitivity=500 mV/g=0.5 V/g. To get the final acceleration in g, the following formula is used:
R
X=DVRx/Sensitivity
R
X=−0.979V/0.5V/G=−1.958 g
R
Y=−0.085V/0.5V/G=−0.17 g
R
Z=1.140V/0.5V/G=2.28 g
R
x=(AdcRx*VR/1023−V0G)/Sensitivity (Formula 2)
R
y=(AdcRy*VR/1023−V0G)/Sensitivity
R
z=(AdcRz*VR/1023−V0G)/Sensitivity
Now the three components of the inertial force vector are obtained, and the device is not affected by any external force except gravity, it can be considered that this direction is the direction of the gravity vector. If you want to calculate the inclination of the device relative to the ground, you can calculate the angle between this vector and the Z axis. This result can be divided into two components: the inclination of the X-axis and the Y-axis, which can be obtained by calculating the angle between the gravity vector and the X and Y-axes.
The required angle is the angle between the vector R and the X, Y, Z axes, then taking these angles as Axr, Ayr, Azr.
cos (Axr)=Rx/R, similarity:
cos (Ayr)=Ry/R
cos (Azr)=Rz/R
From formula 1, it can be deduced that R=SQRT (Rx2+Ry2+Rz2)
The required angle can be calculated by the arccos ( ) function:
Axr=arccos (Rx/R)
Ayr=arccos (Ry/R)
Azr=arccos (Rz/R)
The accelerometer will indicate the direction of the XZY axes corresponding to the physical chip 50 or device.
The following example is used to determine that the output of the accelerometer corresponds to RateAxz.
First keep the device level. The XY axes output of the accelerometer will be a zero acceleration voltage.
Rotate the device around the Y-axis, at this time, the acceleration output values of X and Z axis will change while that of the Y-axis remains unchanged.
When rotating the device at a constant speed, observe which channel of the accelerometer changes the output value, other outputs should remain unchanged.
When the accelerometer rotates around the Y axis, the channel where the output value changes is AdcGyroXZ, which is used to calculate RateAxz.
As the final step, confirm whether the RateAxz value needs to be reversed.
Repeat the test above, rotating the device around the Y axis.
The same method can be used to test RateAy: by rotating the device around the X axis, you can measure which output of the totalizer corresponds to RateAyz and whether it needs to be reversed. Once InvertAyz is determined, RateAyz can be calculated using the following formula:
RateAyz=InvertAyz*(AdcGyroYZ*VR/1023−VzeroRate)/Sensitivity
Based on the above algorithm, static gravitational acceleration can be measured in tilt detection applications. The device offers several special detection functions. The activity and inactivity detection function detects the presence or absence of motion by comparing the acceleration on any axis with a set threshold. The tap detection function can detect single and double vibrations in any direction. Free fall detection can detect if the device is falling. These functions can be independently mapped to one of the two interrupt output pins. Therefore, all directions of the dice can be detected at all times, and then wirelessly transmitted to the user's mobile phone.
The embodiment further provides a computer readable storage medium 300, which stores computer programs. When the computer program is executed by the processor 420, the processor 420 executes the above calculation method of the figures of the intelligent dice 100.
The embodiment further provides a chip 50, comprising a memory 410 and a processor 420. The memory 410 stores computer programs. When the computer program is executed by the processor 420, the processor 420 executes the above calculation method of the figures of the intelligent dice 100.
Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program. The program in the embodiment may be stored in a non-volatile computer readable storage medium, and when the program is executed, the program may include the processes of the method in the foregoing embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. As an illustration rather than limitation, RAM is available in various forms such as SRAM, DRAM, SDRAM, DDRSDRAM, ESDRAM, SLDRAM, RDRAM, DRDRAM, RDRAM, etc.
Whereby, in order to avoid the need for the user to manually judge the figure of dice in the remote interactive entertainment, an acceleration sensor 20 is provided in the shell 10; the vector data 21 of gravitational acceleration is collected by the acceleration sensor 20, so that the relative positions of the second direction F2 relative to each surface 11 are calculated based on the relative positions of the second direction F2 relative to the first direction F1, with the first direction F1 as a reference, each surface 11 with a fixed position relative to the first direction F1 as another reference, so as to judge the figure information 22 facing upward displayed by the intelligent dice 100, thereby improving the convenience and fairness of the game. In order to calculate the figure information 22 according to the collected vector data 21, a space coordinate system is established by taking the first direction F1 as any axis. Each of the surface 11 displaying the figure is mapped to the corresponding coordinate interval in the space coordinate system. According to the coordinate interval in which the vector coordinates of the second direction F2 in the space coordinate system fall, the figure information 22 displayed on the dice corresponding to the coordinate interval is acquired. Therefore, the relative positional relationship between the first direction F1, the second direction F2 and each surface 11 is quantified in the space coordinate system to calculate accurate data, thereby accurately judging the figure information 22. In order to prevent the user from manually uploading the figure information 22 of the dice, an antenna 40 is provided on the casing 10, so that the figure information 22 of the dice is automatically uploaded to the Internet to realize remote mutual entertainment. In order to accurately obtain the real-time figure information 22 of the dice, a chip 50 is provided in the shell 10, so that the figure information 22 is calculated in real time, which improves the real-time performance of remote interactive entertainment and the accuracy of data. In order to avoid the lack of battery life due to the small size of the intelligent dice 100, a battery 61 and wireless charging coils 62 are provided in the shell 10, so that the user can throw the intelligent dice 100 on the wireless charging device to realize charging while playing, which improves the battery life. In order to improve the entertainment of throwing dice, an LED lamp 70 is provided in the shell 10, so that users can obtain a richer entertainment experience; the light-transmitting material is integrally formed on the surface 11 of the shell 10 to display the figures, so that the light of the LED lamp 70 can fully illuminate the displayed figures. In order to prevent the impact force of throwing from damaging electronic components such as circuit boards 30 and acceleration sensors 20 inside the shell 10, an internal filling layer 82 is provided in the shell 10 to wrap the LED lamp 70 and circuit board 30 to play a buffering role. Meanwhile, by using a transparent material as the inner filling layer 82 , the light of the LED lamp 70 can reach the digital display layer 81.
The above embodiments only represent several embodiments of the invention, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the patent application. It should be pointed out that for those of ordinary skill in the art, several modifications and improvements can also be made without departing from the concept of the invention, which all belong to the protection scope of the invention. Therefore, the protection scope of the patent of the invention should be subject to the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
202210527264.7 | May 2022 | CN | national |