1. Field of the Invention
The present invention relates to a technique for object sensing, and more particularly, to a near-surface object sensing device and a near-surface object sensing method.
2. Description of Related Art
The evolution of input interfaces and output methods of electronic devices changes with advanced technology, from the earliest pinhole plotter that was used as an input program, then the text-based user interface of using keyboard inputs and screen displays, to the recent window operating system of Graphical User Interface, GUI. A GUI represents the information and actions available to a user through graphical icons and visual indicators as opposed to text-based interfaces, typed command labels or text navigation. The downside is that GUIs are restricted to the scope of two-dimensional display with the resolutions able to describe generic information, and the actions are usually performed through direct manipulation of the graphical elements, and thus they require configurations of keyboards, mouse and display screens as well as users' manipulation of keyboard input and mouse. As such, new user interfaces have been continuously proposed for users to interact more naturally and instinctively for utmost convenience, such as tangible user interface, TUI. However, conventional tangible user interfaces are based on two-dimensional surface touch technology, and although the manipulation of three-dimensional interfaces by using computer vision technology or traditional electromagnetic sensing technology without a touch display screen is readily available, the computer vision technology is easily blocked and affected by occlusion and results in dead angles. On the other hand, while low frequency electromagnetic sensing technology can avoid interference of occlusion to sense objects, portability of such technology is compromised by the object to be sensed as it would require a power supply and the heavyweight transmitter for signal processing. Moreover, the conventional electromagnetic sensing technology also would have difficulties in recognizing tilting, hovering and rolling motions of an external magnetic object.
Therefore, it is highly desirable to propose a novel near-surface object sensing device and sensing method capable of accurately sensing six-dimensional coordinates locations of an external object to overcome the drawbacks as encountered in prior techniques, thereby allowing users to have a more diversified, spontaneous and instinctive manipulation which is occlusion-free, near-surface, compact-and-light-weight high portability and easy installation.
The invention provides a near-surface object sensing device, including a printed circuit board; a plurality of magnetic sensors arrayed on the printed circuit board to sense the magnetic field of an external magnetic object and generate a plurality of magnetic sensing signals; a multiplexer electrically connected to the magnetic sensors to select a magnetic sensing signal to be output, and a microprocessor electrically connected to the multiplexer for receiving the magnetic sensing signal, wherein the microprocessor includes a sampling algorithm module for converting the magnetic sensing signal into a magnetic field distribution image, and a six-dimensional coordinates-calculating module for calculating six-dimensional coordinates of the external magnetic object.
The present invention further provides a near-surface object sensing device, including a printed circuit board electrically connected to at least an electronic device; a plurality of magnetic sensors arrayed on the printed circuit board to sense the magnetic field of an external magnetic object and generate magnetic sensing signals; a multiplexer electrically connected to each of the magnetic sensors to select the magnetic sensing signals to be output, and a microprocessor electrically connected to the multiplexer for receiving the magnetic sensing signals, converting the signals into a magnetic field distribution image and transmitting the magnetic field distribution image to the electronic device, wherein the electronic device includes a six-dimensional coordinates-calculating module for calculating six-dimensional coordinates of the external magnetic object according to the magnetic field distribution image.
The present invention further provides a near-surface object sensing method, including the steps of (1) sensing the magnetic field of an external magnetic object to generate magnetic sensing signals by a plurality of magnetic sensors arrayed on the printed circuit board; (2) converting the magnetic sensing signals into a magnetic field distribution image having north-polarity parts and south-polarity parts and determining first magnetic field intensity images in the magnetic field distribution image corresponding to the external magnetic object; (3) calculating the center of the first magnetic field intensity images to obtain positions of the external magnetic object on a plane on which the magnetic sensors are configured, and calculating the height of the external magnetic object with respect to the plane according to the magnetic field intensity corresponding to the first magnetic field intensity images; (4) obtaining second magnetic field intensity images by filtering out the magnetic field intensity that is higher than a predetermined threshold value and then comparing polarities and locations in the second and first magnetic field intensity images to determine whether the external magnetic object is a tiltable or a rollable object, wherein when the external magnetic object is a tiltable object, the second magnetic field intensity images are within the first magnetic intensity images and have the same polarities as those in the first magnet field intensity images, and when the external magnetic object is a rollable object, the second magnetic field images have two adjacent and different polarities, and the distance between the second magnetic field images of the rotated object is smaller than a predetermined value; (5) when the external magnetic object is a tiltable object, calculating the center of the second magnetic field intensity images to form a first vector by the center of the first magnetic field intensity images and the center of the second magnetic field intensity images, and obtaining a pitch angle and a yaw angle of the external magnetic object according to the first vector; and (6) when the external magnetic object is a rollable object, calculating the center of the second magnetic field intensity images to form a second vector and using the center point of the second vector as a center of a circle to obtain a roll angle of the external magnetic object according to the direction of the second vector.
Compared to conventional techniques, the sensing device and the sensing method of the present invention provide magnetic sensors arrayed on a printed circuit board, and thus have compact structures and low energy consumption. In the present invention, the external magnetic object can use a permanent magnetic material for a signal source without requiring an additional power supply. Further, the sensing device and the sensing method of the invention have a six-dimensional coordinates-calculating module capable of calculating accurately three-dimensional positions (x, y, z) to provide three-dimensional direction information (roll, pitch and yaw angles), thereby providing users with a convenient and intuitive user interface within a near-surface space.
The present invention can be more fully understood by reading the following detailed description of the preferred embodiments, with reference made to the accompanying drawings, wherein:
The following illustrative embodiments are provided to illustrate the disclosure of the present invention, these and other advantages and effects can be understood by persons skilled in the art after reading the disclosure of this specification. Note that the structures, proportions, sizes depicted in the accompanying figures merely serve to illustrate the disclosure of the specification to allow for comprehensive reading without a limitation to the implementation or applications of the present invention, and does not constitute any substantial technical meaning.
According to a first preferred embodiment of the present invention,
The printed circuit board 10 can be electrically connected to an external electronic device 14 which may be, for instance, a smart phone, a tablet computer, a notebook computer, a laptop computer, a hand-writing board or game machine etc., wherein the printed circuit board 10 may be attached to an external electronic device 14 (as shown in 1B), or operable as two separate units connected to each other via a cable or wirelessly to transmit data generated (as shown in 1C).
The magnetic sensors 11 are arrayed and disposed on the printed circuit board 10 and electrically connected to the printed circuit board 10 to sense the magnetic field of an external magnetic object and generate a magnetic sensing signal.
In one embodiment, the magnetic sensors 11 are of Hall-effect sensors.
In another embodiment, a protective layer 16 is disposed on the magnetic sensors 11 for protecting the sensors from being damaged.
The multiplexer 12 is electrically connected to each of the magnetic sensors 11 to select the magnetic sensing signal to be output. In one embodiment, the near-surface object sensing device 1 further includes an analog-to-digital conversion module 17 that is electrically connected to the multiplexer 12 for converting the sensing signals.
The microprocessor 13 is electrically connected to the multiplexer 12 for receiving the magnetic sensing signal, and includes a sampling algorithm module 131 for converting the magnetic sensing signal into a magnetic field distribution image, as well as a six-dimensional coordinates-calculating module 132 for calculating six-dimensional coordinates of the external magnetic object 15. In one embodiment, the sampling algorithm module 131 performs sampling by means of oversampling of Bicubic interpolation. In another embodiment, the six-dimensional coordinates calculated by the six-dimensional coordinates-calculating module 132 include the three-dimensional coordinates of a rectangular coordinate system as well as a pitch angle, a yaw angle and a roll angle of the external magnetic object 15.
In S31, a magnetic sensing signal is generated by using a plurality of magnetic sensors 11 that are arrayed on the printed circuit board 10 to sense the magnetic field of an external magnetic object 15, wherein non-magnetic spacers 18 are disposed under portions of the external magnetic object 15 for the object 15 to be tiltedly disposed on the printed circuit board 10, as shown in
In S32, the magnetic sensing signal is converted into a magnetic field distribution image having north-polarity parts and south-polarity parts, and first magnetic field intensity images Ci in a magnetic field distribution image corresponding to an external magnetic object 15 is determined, as shown in
In this embodiment, before determining the first magnetic field intensity images Ci in the magnetic field distribution image corresponding to the external magnetic object 15, S32 further includes filtering out noise signals that have a magnetic field intensity lower than the predetermined threshold value in the magnetic field distribution image.
In S33, the center Oi of the first magnetic field intensity images Ci is calculated to obtain information on positions of the external magnetic object 15 on a plane on which the magnetic sensors 11 are configured, and the height of the external magnetic object 15 with respect to the plane according to the magnetic field intensity corresponding to the first magnetic field intensity images Ci.
In S34, the magnetic field intensity in the first magnetic field intensity images C, Cis, Cin that is higher than a predetermined threshold value is filtered out to obtain second magnetic field intensity images Ci′, and the polarities and locations of the second and first magnetic field intensity images Ci′, Ci are compared to determine whether the external magnetic object 15 is a tiltable object or a rollable object. When the external magnetic object 15 is a tiltable object, the second magnetic field intensity images Ci′ are within the first magnetic intensity images Ci and have the same polarities as those in the first magnet field intensity images Ci. When the external magnetic object 15 is a rollable object, the second magnetic field images Ci′ has two adjacent but different polarities, and the distance between the second magnetic field images Ci′ is smaller than a predetermined value.
In S35, When the external magnetic object 15 is a tiltable object, the center Oi′ of the second magnetic field intensity images Ci′ is calculated, a first vector {right arrow over (v)}1=O′i{right arrow over (-)}Oi is formed by the center Oi of the first magnetic field intensity images Ci and the center Oi′ of the second magnetic field intensity images Ci′, and a pitch angle and a yaw angle of the external magnetic object 15 are obtained according to the value and direction of the first vector, as shown in
In S36, the centers Oi′N and Oi′S of the two different polarities in the second magnetic field intensity images Ci′N and Ci′S of the rollable object are obtained to form a second vector {right arrow over (v)}2=O′iS{right arrow over (-)}O′iN, and the center point of the second vector is used to be the center of the circle to obtain a rolling angle of the external magnetic object 15 according to the direction of the second vector, as shown in
Accordingly, in the sensing device and the sensing method of the invention, a plurality of magnetic sensors are integrated and arrayed on a printed circuit board so as to have high portability, low energy consumption, occlusion-free near-surface interactions and easy installation. Further, the sensing device and the sensing method of the invention include a sampling algorithm module and a six-dimensional coordinates-calculating module to accurately calculate three-dimensional positions of the external magnetic object and provide the three-dimensional direction information (roll, pitch and yaw angles), thereby providing users with a natural and convenient user interface.
It will be understood that the invention may be embodied in other specific forms without departing from the spirit or central characteristics thereof. The present examples and embodiments, therefore, are to be considered in all respects as illustrative and not restrictive, and the invention is not to be limited to the details given herein.
Number | Date | Country | Kind |
---|---|---|---|
102102422 | Jan 2013 | TW | national |