1. Field of the Invention
The present invention relates to identification technique for magnetic units, and, more particularly, to a system and a method using magnetic force sensing technique for recognizing or analyzing the position or direction of shielded magnetic units.
2. Description of Related Art
In recent years, a new human-computer interaction is constantly being raised, so that users can interact with electronic devices in a more intuitive operation manner. In the existing human-computer interaction techniques, in addition to allowing users to receive full visual feedback effects from the screen display, physical object can be used to operate digital information in the screen, such that users can get rich tactile feedback effects.
In the conventional human-computer interaction, technical means of analyzing the magnetic field information of a magnet to determine the position of the magnet has been known. However, when a plurality of magnets are concurrently placed in the same plane for performing analysis, such technique may cause a problem of interference and difficult identification since the magnetic attraction and repulsion between respective magnets lead the merge or cancellation of magnetic fields. According, user operation is obstructed.
Therefore, it has been an issued desired to be solved that how to provide an identification system and method for magnet to effectively detect a plurality of magnets, while further providing identification codes for respective magnets, so as to solve above deficiencies of interference and difficult identification.
In order to solve the aforementioned deficiencies of prior art, an objective of the present invention is to provide an identification system for a shielded magnetic unit, comprising: at least one magnetic unit having at least one shield disposed therein, wherein the shield includes at least one magnet and a shielding element disposed at periphery of the magnet; a magnetic field sensor constructed by a plurality of magnetic sensing units arranged in an array form, wherein the magnetic field sensor senses a magnetic field of the magnet of the shield to generate a magnetic sensing signal; and a computing unit, comprising: a characteristic database storing a plurality of sets of characteristic data curves, wherein the plurality of sets of characteristic data curves are established according to shields corresponding to different polarities and intensities, respectively and each of the plurality of sets of characteristic data curves has an identification code different from one another; a curve establishing module for converting the magnetic sensing signal into a data curve to be identified; and an identifying module for selecting one most similar to the data curve to be identified from the plurality of sets of characteristic data curves, such that the identification code of the one most similar to the data curve to be identified is defined as an identification code of the magnetic unit.
Another objective of the present invention is to provide a method of identifying a shielded magnetic unit, comprising steps of: a) obtaining a bitmap image of magnetic field of a shield in a magnetic unit; b) applying a plurality of intensity threshold values of the magnetic field for magnetic fields of an N pole and an S pole in the bitmap image of the magnetic field to obtain at least one contour of different intensities of the magnetic fields of the N pole and S pole; c) calculating area values each representing an area enclosed by each of the plurality of contours, such that a characteristic data curve of the shield is drawn by using the area values and corresponding intensity threshold values of the magnetic field as two-dimensional coordinates; and d) selecting one most similar to the characteristic data curve of the shield from at least one set of characteristic data curves with defined identification codes, such that the identification code of the one most similar to the characteristic data curve of the shield is defined as an identification code of the magnetic unit.
A further objective of the present invention is to provide a method of identifying a shielded magnetic unit, comprising steps of: a) obtaining bitmap images of a magnetic field of each of a plurality of shields in a magnetic unit; b) applying at least one intensity threshold values of the magnetic field for magnetic fields of an N pole and an S pole in each of the bitmap images of the magnetic field to obtain at least one contour of different intensities of the magnetic fields of the N pole and the S pole in each of the bitmap images of the magnetic field; c) calculating an area value representing an area enclosed by the contour in each of the bitmap images of the magnetic field, such that characteristic data curves of the shields are drawn by using the area values and corresponding intensity threshold values of the magnetic field as two-dimensional coordinates, respectively; d) selecting ones most similar to the characteristic data curves of the shields from a plurality of sets of characteristic data curves with defined identification codes, respectively, such that the identification codes of the ones most similar to the characteristic data curves of the shields are defined as identification codes of the shields, respectively; and e) defining an identification code of the magnetic unit by an equation.
As compared with the prior art, the present invention provides an identification system and method for shielded magnetic units. Since a shielding element is disposed at periphery of a magnet in a shield of the magnetic unit, the magnetic line of the magnet is directed back inside the shield to reduce the interference occurred while simultaneously detecting a plurality of magnetic units. Moreover, a plurality of sets of characteristic data curves are established in advance, such that a data curve to be identified of the shield can be compared with the plurality of sets of data curves to select the most similar one, so as to define an identification code of the most similar one in the plurality sets of data curves as an identification code of the magnetic unit. Accordingly, effective identification information of respective magnetic units is provided for recognition, which solves the problem of the difficult identification that may occur while simultaneously detecting a plurality of magnet units.
The following illustrative embodiments are provided to illustrate the disclosure of the present invention, these and other advantages and effects can be apparently understood by those in the art after reading the disclosure of this specification, and can be performed or applied by other different specific embodiments.
Please referring to
In an embodiment, the magnet 11 is fixed the central bottom of the magnetic unit 1 with a laser cutting acrylic. The magnet 11 may also employ other kinds of fixing means, such as adhesion to adhesive material. Also the magnet 11 can be fixed at other positions of the magnetic unit 1, such as the central top and the like. Further, the number of the magnet 11 is at least one or more, but the present invention is not limited thereto. The shielding element 12 surrounds the magnet 11, and the shape of the shielding element may be circular as shown in
As shown in
The characteristic database 21 of the computing unit 2 stores a plurality of sets of characteristic data curves which are established in advance and have different identification codes, respectively. The so-called identification code is used to identify the polarities and intensities of magnets in different shields, for example, the identification code 10 is expressed as S poles with the magnetic field intensity of 10 gauss, and the identification code 20 is expressed as N pole with field intensity of 20 gauss, etc. Therefore, the plurality of sets of characteristic data curves that are stored by the characteristic database 21 are established by shields corresponding to different polarities and intensities in advance, and the plurality of characteristic data curves must be obtained through multiple sampling and the calculation of the mean and standard deviation. The plurality sets of characteristic data curves can serve as a basis of comparison.
The curve establishing module 22 of the computing unit 2 is utilized to convert the magnetic sensing signals generated by the magnetic sensor 3 to data curves to be identified. Specifically, the magnetic sensing signal is a bitmap image of magnetic field comprising intensity distribution information of magnetic fields of the N pole and S pole. After a plurality of intensity threshold values of magnetic field are applied to the N pole and S pole magnetic fields of the bitmap image of magnetic field, a plurality of contours of different intensities of the magnetic fields of the N pole and S pole are obtained. As shown in
After a plurality of intensity threshold values of magnetic field are applied to the bitmap image of magnetic field to obtain a plurality of contours, the data curves to be identified can be drawn. The method of drawing the data curves to be identified is calculating an area value which represents an area enclosed by the contour, such that the data curves to be identified are drawn by using the area values and corresponding intensity threshold values of magnetic field as two-dimensional coordinates, respectively. For example, data curves to be identified corresponding to the bitmap image of magnetic field A can be presented as connections of area-intensity characteristic points a1, a2, a3 ; and data curves to be identified corresponding to the bitmap image of magnetic field B can be presented as connections of area-intensity characteristic points b1, b2, b3, b4, and b5. In an embodiment, the bitmap image of magnetic field can only apply one magnetic field intensity threshold value to obtain one contour, the present invention is not limited thereto.
Above describes the data curves to be identified, while the characteristic data curves stored in the characteristic database 21 are also drawn by the abovementioned manner, and thus the same description content will not be repeated herein. However, the characteristic data curves can only obtained through several times (e.g., 1000 times) of sampling and the calculation of mean and standard deviation thereof, so the accuracy of the characteristic data curve is higher than the data curve to be identified, and thus the characteristic data curve can serve as the basis of comparison. The characteristic data curve contains information of mean and standard deviation of the curves.
The identifying module 23 of the computing unit 2 is used to identify the data curve to be identified, where the identification method selects one most similar to the data curve to be identified from the plurality sets of characteristic data curves stored in the characteristic database 21. After the one most similar to the characteristic data curve to be identified, the identification code corresponding to the most similar one of the characteristic data curves is defined as an identification code of the magnetic unit 1 corresponding to the data curve to be identified.
In an embodiment, the method of selecting the most similar one performs comparison respectively based on regions of the magnetic field intensity threshold values. Referring again to
Above-mentioned embodiment is directed to a magnetic unit having only one shield 10 for illustration, while the magnetic unit 1 of the present invention can further have two or more shields disposed therein. Please refer to
When the magnetic element 1 only has a single shield 10, the position thereof on the magnetic field sensor 3 is directly based on the shield 10, as shown in
Also, the magnetic unit with two or more shields disposed therein can also provide direction information. The magnetic unit 6 of
where ID is the identification code of the magnetic unit, k is a number of all the shields disposed in the magnetic unit, N is a number of IDs that a shield can provide, and B is each of the identification codes corresponding to the shields defined by the identifying module. The magnetic unit 5 of
In another embodiment, the equation may be:
where ID is the identification code of the magnetic unit, k is a number of all the shields disposed in the magnetic unit, and B is each of the identification codes corresponding to the shields defined by the identifying module. The magnetic unit 5 of
With the above-described equations, definition of an identification code of a magnetic unit having two or more shields therein can be efficiently established on the basis of the established plural sets of characteristic data curves of a single shield. However, it should be appreciated that above-described equations are provided for exemplary purpose for different embodiments, and the present invention is not limited thereto.
Please refer to
In step S 51, a bitmap image of magnetic field of a shield in a magnetic unit is obtained.
In step S 52, at least one magnitude threshold values of magnetic field is applied for magnetic fields of N pole and S pole in each of the bitmap images of magnetic field to obtain at least one contour of different intensities of the magnetic fields of the N pole and S pole in each of the bitmap images of magnetic field. This contour represents that the magnetic field intensity of each point in the contour is identical.
In step S 53, an area value which represents an area enclosed by the contour is calculated, such that the area value and corresponding intensity threshold values of magnetic field can be obtained.
In step S 54, characteristic data curve of the shield is drawn by using the area values and corresponding intensity threshold values of magnetic field as two-dimensional coordinates, respectively. In an embodiment, the intensity threshold value of magnetic field can be plural, such that the obtained contour is also plural and the characteristic data curve is accordingly drawn.
In step S 55, an identification code of the magnetic unit is defined and provided to the system for identification. The method of defying selects one most similar to the characteristic data curve of the shield from at least one set of characteristic data curves with defined identification code, respectively, such that the identification code of the one most similar to the characteristic data curve of the shield is defined as an identification code of the shield. The steps S 51 to S 54 are repeated for a plurality of times to obtain a plurality of characteristic data curves of the shield, so as to calculate a mean and a standard deviation of the characteristic data curves of the shield, such that the at least one set of characteristic data curve with defined identification code including information of the mean and standard deviation of the characteristic data curves is obtained.
Please refer to
In step S 61, respective bitmap images of magnetic field of the plurality fields in a magnetic unit are obtained, where a central position of the magnetic unit is defined by a center of inscribed circles of the shields. In addition, one of the respective shields is selected as a target shield, and the direction information that the magnetic unit can provided is defined by a directional vector from the center of the inscribed circle (i.e., the central position of the magnetic unit) to the center of the target shield.
In step S 62, at least one magnitude threshold value of magnetic field is applied for magnetic fields of N pole and S pole in each of the bitmap images of magnetic field to obtain at least one contour of different intensities of the magnetic fields of the N pole and S pole in each of the bitmap images of magnetic field.
In step S 63, area values which represent areas enclosed by the contours of the respective bitmap images of magnetic field are individually calculated.
In step S 64, characteristic data curves of the respective shields are drawn by using the area values and corresponding intensity threshold values of magnetic field as two-dimensional coordinates, respectively. In an embodiment, the intensity threshold value of magnetic field can be plural, such that the obtained contour is also plural and the characteristic data curve is accordingly drawn.
In step S 65, ones most similar to the respective characteristic data curves of the shields are selected from a plurality of sets of characteristic data curves with defined identification codes, respectively, such that the identification codes of the ones most similar to the characteristic data curves of the shields are defined as identification codes of the shields, respectively.
In step S 66, an identification code of the magnetic unit is defined by an equation. For example, in an embodiment, the equation may be:
where k is a number of all the shields disposed in the magnetic unit, N is a number of IDs that a shield can provide, B is each of the identification codes corresponding to the shields, and ID is the identification code of the magnetic unit. In another embodiment, the equation may be:
k is a number of all the shields disposed in the magnetic unit, and B is each of the identification codes corresponding to the shields defined by the identifying module. It should be appreciated that above-described equations are provided for exemplary purpose for different embodiments, and the present invention is not limited thereto.
Given abovementioned identification system and method for shielded magnetic units according to the present invention, since a shielding element is disposed at periphery of a magnet in a shield of the magnetic unit, the magnetic line of the magnet is directed back inside the shield to reduce the interference occurred while simultaneously detecting a plurality of magnetic units. In addition, a plurality of sets of characteristic data curves are established in advance, such that a data curve to be identified of the shield can be compared with the plurality of sets of data curves to select the most similar one, so as to define an identification code of the most similar one in the plurality sets of data curves as an identification code of the magnetic unit. Accordingly, effective identification information of respective magnetic units is provided for recognition, which solves the problem of the difficult identification that may occur while simultaneously detecting a plurality of magnet units.
In practical application, the present invention can be utilized in the chessboard game. For example, a screen of a tablet can display the chessboard. In use of a plurality of magnetic units and a magnetic field sensor, user is allowed to play a chessboard game on the chessboard of the screen using the magnetic units as tokens. The design of the identification code and position information of the magnetic unit allows the identification system for the magnetic unit to effectively recognize respective magnetic units, such that the respective magnetic units can represent different tokens, and the positions thereof on the chessboard can be further recognized For the magnetic unit having a plurality of shields therein, such magnetic unit can be utilized in a real-time music control system. For example, the magnetic unit serves as a button for adjusting volume of the music by using the direction information provided by the magnetic unit to determine whether the magnetic unit rotates. In addition, the present invention can be further utilized to achieve more interactions, and thus the present invention is not limited to above applications.
The above embodiments only exemplarily specify the concept and effect of the invention, but not intend to limit the invention. Any person skilled in the art can perform modifications and adjustments on the above embodiments without departing the spirit and category of the invention. Accordingly, all modifications and variations completed by those with ordinary skill in the art should fall within the scope of present invention defined by the appended claims. Thus, the present invention should fall within the scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
104100498 | Jan 2015 | TW | national |