The foregoing and other objects, features, and advantages of the invention will be apparent from the following more particular description of preferred embodiments of the invention, as illustrated in the accompanying drawings in which like reference characters refer to the same parts throughout the different views.
The present invention relates to an attitude-sensing device for sensing the attitude of an object and a motion-sensing device for sensing changes in the attitude of the object. The attitude- and motion-sensing device includes a three-axis magnetic field sensor and a two- or three-axis accelerometer. More particularly, the attitude- and motion-sensing device uses a three-axis magnetic compass and a two- or three-axis accelerometer, to generate input signals for determining the attitude of the object, e.g., the attitude- and motion-sensing device itself.
The attitude of a rigid object 10 in space can be described by three angles: yaw, pitch, and roll (see
According to the prior art, three-axis magnetic field sensors, e.g., gyroscopes, can be adapted to measure the magnetic field strength about an X-, a Y-, and a Z-axis, respectively, Mx, My/Mz, while three-axis accelerometers can be adapted to measure acceleration in the X-, Y-, and Z-axis, respectively, Ax, Ay, Az. Thus, the pitch of the object 10 in space is calculated by the formula:
φ=sin−1(−Ax/g) (1)
and the roll of the object 10 in space is calculated by the formula:
θ=sin−1[Ay/(g·cos φ)] (2)
where g refers to the acceleration of gravity. Accordingly, one can determine both pitch and roll without a magnetic field sensor, using a two- or a three-axis accelerometer to provide Ax and Ay measurements.
Calculation of yaw is slightly more involved and requires measurement data from both the accelerometer and the magnetic field sensor. More particularly, yaw can be calculated using the following equations:
M
xh
=M
x·cos φ+My·sin θ·sin 100 +Mz·cos θ·sin φ
M
yh
=M
y·cos θ−Mz·sin θ
α=tan−1(Myh/Mxh) (3)
where Mxh refers to the magnetic field strength about the X-axis in the local magnetic plane and Myh refers to the magnetic field strength about the Y-axis in the local magnetic plane. Angular velocity associated with pitch, roll, and yaw can be obtained by calculating the time derivative of the angle change using, respectively, the following equations:
where ωx, ωy, ωz correspond to the angular velocities of the object's rotation about the X-, Y-, and Z-axis, respectively.
Gyroscopes, traditionally, have been a critical part of inertial attitude sensing systems, providing yaw. However, the present inventors have found that yaw and angular velocity of yaw rotation can be detected using a magnetic compass.
Advantageously, in contrast with gyroscopes, a magnetic compass can sense yaw, pitch, and roll angular rate as well as inertial attitude position. Indeed, gyroscopes do not provide absolute angular position information, but, rather, only provide the relative change of angular position information.
Gyroscopes also tend to be relatively large in comparison with magnetic compasses. For example, a three-axis magnetic compass can be manufactured to be as small or smaller than about 0.2 in.×0.2 in.×0.04 in. (about 5 mm×5 mm×1.2 mm). Three-axis gyroscopes with similar capabilities will be significantly larger.
The six magnetic field strength and acceleration parameters are transmitted to a processing unit 25, which can be integrated into one or more of the sensing devices 22, 24 or which can be a separate, local or remote electronic device. The processing unit 25 includes signal and data processing units to process the measured parameter data. For example, the processing unit 25 can include an analog-to-digital (A/D) converter 26 for A/D conversion, a data processing unit 28 for processing data, and the like.
More specifically, the data processing unit 28 can be adapted to use equations (1), (2), (3), and (4) above, to calculate attitude angles, α, Φ, θ, and angular velocities, ox, ωy, ωz. These data can then be input into a translator unit 29 that is adapted to translate the data into an input signal 27. The translated input signal 27 is then transmitted to an electronic processing device 21 that includes an application or driver program for manipulating the translated attitude angle and angular velocity data into motion status.
Even in conditions of non-zero gravity, roll and pitch and roll and pitch angular rotation can be calculated using the tilt of the accelerometer in X- and Y-directions and using Equations (1) and (2) above.
An application of a magnetic compass in a cellular telephone 30 is shown in
With a magnetic compass as a magnetic field sensing device, however, direction-arrow buttons are not needed. More specifically, with a magnetic compass, as the cellular telephone 30 is rotated, the pitch, roll, and yaw (α, Φ and θ) are obtained. These sensor signals can be processed to provide attitude angles (α, Φ and θ) and angular velocities (ωx, ωy, ωz). The attitude angles and angular velocities can be input into the translator 29, which translates the attitude angles and angular velocities into appropriate input signals 27 to the application program 21.
In short, input signal 27 generation does not require direction-arrow buttons; but, rather, one simply changes the attitude of the cellular telephone 30 to produce sensor signals, e.g., Mx, My, Mz, Ax, Ay, and Az. When the application program is a 3D map application, map rotation about three axes is possible. Advantageously, the panel surface area that would be needed for the conventional navigation buttons is not needed. Consequently, the surface area that otherwise would have been used for navigation buttons can be used for another purpose and/or the cellular telephone 30 can be made smaller.
An application for a flight simulator game executable on a portable game machine 40 is shown in
A conventional game machine for controlling the attitude of an airplane requires numerous input devices, e.g., buttons, on the surface of the game device or, alternatively, a joystick that is operatively coupled to the gaming device. In contrast, according to the present invention, with a combination of a magnetic compass and an accelerometer, rotating the gaming machine itself along one or more of its X-, Y-, and/or Z-axis generates airplane attitude input signals that can be used to control the airplane's attitude.
Having described systems for motion- and attitude sensing and portable electronic devices having such systems, methods for providing attitude and change in attitude input signals to an application program; for determining the inertial attitude and change in inertial attitude of an object and for changing an operation performed on an application program executed by the object; and for generating input signals to an application program that is executable on a portable electronic device will now be described. Referring to the flow chart in
The first set of signals produced by the two- or three-axis accelerometer (STEP 2A) correspond to accelerations and/or changes in acceleration in the X-, Y-, and Z-directions, Ax, Ay, Az, which are proportional to changes in the inertial attitude of the portable electronic device. Similarly, the second set of signals produced by the three-axis magnetic field sensor (STEP 2B) correspond to the magnetic field strength and/or changes in the magnetic field strength about the X-, Y-, and Z-axes, Mx, My, Mz, which also are proportional to changes in the inertial attitude of the portable electronic device.
The first and second sets of signals are then processed (STEP 3), which can include, without limitation, converting analog signals to digital signals using an A/D converter. The digital signals can then be processed, e.g., through a processing unit, to calculate one or more of pitch, yaw, roll, which is to say, the inertial attitude of the device and/or changes thereto, and the angular rotation about the X-, Y-, and/or Z-axis (STEP 4) and/or changes thereto.
The calculated pitch, yaw, roll, and/or angular rotations are then translated into input signals that are compatible with an application program being executed on or executable by the portable electronic device (STEP 5). More particularly, the calculated pitch, yaw, roll, and/or angular rotations are translated into input signals that change an operation on the application program.
For example, in use in conjunction with 3D image manipulation, the accelerations and magnetic field strengths can first be calculated and then be adapted to describe the 3D image's movement and displacement along and or rotation about the X-, Y- and/or Z-axis. Thus, when the portable electronic device is rotated about one or more of its inertial axes, some or all of the accelerations and magnetic field strengths will be changes, which translates into changes in pitch, yaw, roll, and/or in angular rotation. When these changes are translated and input into the application program being executed on the portable electronic device, the 3D image is moved proportional to the input signals from the rotated portable electronic device.
Application of the present invention, however, is not limited to portable devices. Indeed, the present invention is applicable to any electronic device, whether portable or not, having a human-machine, i.e., user, interface. For example, those of ordinary skill in the art can adapt the pitch, yaw, and roll functions of the present invention for use with a mouse to generate input signals to a personal computer; a remote controller to generate signals to a host device, such as, without limitation, a television, a radio, a DVD player, a stereo system or other multi-media device and an electronic instrument, e.g., an electronic piano or organ.
The foregoing description is not intended to be exhaustive or to limit the invention to the precise form disclosed. The embodiment was chosen and described to provide the illustration of principles of the invention and its application. Modification and variations are within the scope of invention.
Priority of Provisional Patent Application No. 60/819,735 dated Jul. 10, 2006, entitled “Yaw Rate Sensing by Using Magnetic Field Sensor(Compass)—Replacing Gyro Function with a Compass”, and Provisional Patent Application No. 60/906,100 dated Mar. 9, 2007, entitled “Motion and Attitude Sensing for Portable Electronic Devices” is claimed.
Number | Date | Country | |
---|---|---|---|
60819735 | Jul 2006 | US | |
60906100 | Mar 2007 | US |