This disclosure generally relates to the calibration of sensors and more specifically providing a user a graphical interface to facilitate calibration.
The development of microelectromechanical systems (MEMS) has enabled the incorporation of a wide variety of sensors into mobile devices, such as cell phones, laptops, tablets, gaming devices and other portable, electronic devices. Non-limiting examples of such sensors include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, a microphone, a proximity sensor, an ambient light sensor, an infrared sensor, and the like. Further, sensor fusion processing may be performed to combine the data from a plurality of sensors to provide an improved characterization of the device's motion or orientation. However, due to the nature of electronics and mechanics, MEMS-based sensors may be prone to having bias (offset) and sensitivity errors. These errors may drift and or change due to temperature, humidity, time, assembly stress and other changes in peripheral conditions. In turn, inaccurate bias may result in decreased quality of sensor data and may complicate the sensor fusion process used to estimate parameters such as attitude (e.g., pitch, roll, and yaw), heading reference and the like which are dependent on the precision of the sensors' outputs. For example, when integration of raw data output by the sensor is used to determine velocity from acceleration or orientation angle from the rate of angular change, the bias drift problem may be significantly magnified.
In light of these characteristics of MEMS sensors, it may be desirable to perform a sensor calibration operation to characterize the bias or sensitivity error, enabling a correction of the sensor data. A sensor calibration operation may employ mathematical calculations to deduce various motion states and the position or orientation of a physical system. A sensor bias may be produced by the calibration operation, which may then be applied to the raw sensor data and calibrate the sensor. As will be appreciated, the calibration operation may be performed during manufacture or may be performed periodically while the device is being used to account for changes that may occur over time.
Accordingly, performing a calibration operation may be used to improve the quality of data obtained from the sensor. Depending on the characteristics of the sensor being calibrated, the calibration operation may be facilitated by positioning the device in one or more specific orientations or moving the device in a particular pattern of motion. However, even if a user has knowledge of the orientations or patterns, it may be difficult to accurately reproduce them. Further, a user may not be aware when a calibration operation has been successfully completed. To address these needs, this disclosure is directed to systems and methods for guiding a user during a calibration process to position the device in one or more desired orientations or to move the device in a desired pattern of motion and to provide feedback regarding when the desired orientation or movement has been achieved and calibration has been completed.
This disclosure is directed to a method for calibrating a motion sensor of a device and may include generating a virtual three dimensional environment, displaying a first visual cue to a user with respect to the virtual three dimensional environment configured to guide the user to position the device in a first desired orientation and providing an indication to the user when the device is positioned in the first desired orientation. The virtual environment may be updated in response to the user moving the device to the first desired orientation. At least a second visual cue may also be displayed to guide the user to move the device from the first desired orientation to a second desired orientation. Accordingly, a plurality of visual cues may be configured to guide the user to position the device in a sequence of desired orientations and the sequence of desired orientations may result in a desired pattern of motion.
In one aspect, the desired pattern of motion may result from complete rotations in three degrees of freedom.
In one embodiment, the motion sensor may be an accelerometer and the desired pattern of motion may incorporate relatively slow rotation around at least two axes of the device with periodic periods of motionlessness.
In one embodiment, the motion sensor may be a magnetometer and the desired pattern of motion may incorporate rotation around at least two axes of the device.
In one embodiment, the motion sensor may be a gyroscope and the desired pattern of motion may include a period of motionlessness in the first desired orientation. Alternatively or in addition, the desired pattern of motion may incorporate rotation around three axes of the device with periods of motionlessness.
In one embodiment, an indication may be provided to the user when the device is sufficiently calibrated.
In one embodiment, the virtual three dimensional environment may be a panorama.
In one embodiment, the first visual cue may be a target object within the virtual three dimensional environment.
In one embodiment, the first visual cue may be an object within the virtual three dimensional environment that moves in response to an orientation of the device.
This disclosure also includes a sensor system, such that the system includes a device having at least one motion sensor and a guidance module configured to generate a virtual three dimensional environment, display a first visual cue to a user with respect to the virtual three dimensional environment configured to guide the user to position the device in a first desired orientation and provide an indication to the user when the device is positioned in the first desired orientation. The guidance module may update the virtual environment in response to the user moving the device to the first desired orientation. The guidance module may also display at least a second visual cue to guide the user to move the device from the first desired orientation to a second desired orientation. The guidance module may also display a plurality of visual cues configured to guide the user to position the device in a sequence of desired orientations. The sequence of desired orientations may result in a desired pattern of motion.
In one aspect, the desired pattern of motion may result from complete rotations in three degrees of freedom.
In one embodiment, the motion sensor may be an accelerometer and the desired pattern of motion may incorporate relatively slow rotation around at least two axes of the device with periodic periods of motionlessness.
In one embodiment, the motion sensor may be a magnetometer and the desired pattern of motion may incorporate rotation around at least two axes of the device.
In one embodiment, the motion sensor may be a gyroscope and the desired pattern of motion may include a period of motionlessness in the first desired orientation. Alternatively or in addition, the desired pattern of motion may incorporate rotation around three axes of the device with periods of motionlessness.
In one embodiment, the guidance module may provide an indication to the user when the device is sufficiently calibrated.
In one embodiment, the virtual three dimensional environment may be a panorama.
In one embodiment, the first visual cue may be a target object within the virtual three dimensional environment.
In one embodiment, the first visual cue may be an object within the virtual three dimensional environment that moves in response to an orientation of the device.
At the outset, it is to be understood that this disclosure is not limited to particularly exemplified materials, architectures, routines, methods or structures as such may vary. Thus, although a number of such options, similar or equivalent to those described herein, can be used in the practice or embodiments of this disclosure, the preferred materials and methods are described herein.
It is also to be understood that the terminology used herein is for the purpose of describing particular embodiments of this disclosure only and is not intended to be limiting.
The detailed description set forth below in connection with the appended drawings is intended as a description of exemplary embodiments of the present disclosure and is not intended to represent the only exemplary embodiments in which the present disclosure can be practiced. The term “exemplary” used throughout this description means “serving as an example, instance, or illustration,” and should not necessarily be construed as preferred or advantageous over other exemplary embodiments. The detailed description includes specific details for the purpose of providing a thorough understanding of the exemplary embodiments of the specification. It will be apparent to those skilled in the art that the exemplary embodiments of the specification may be practiced without these specific details. In some instances, well known structures and devices are shown in block diagram form in order to avoid obscuring the novelty of the exemplary embodiments presented herein.
For purposes of convenience and clarity only, directional terms, such as top, bottom, left, right, up, down, over, above, below, beneath, rear, back, and front, may be used with respect to the accompanying drawings or chip embodiments. These and similar directional terms should not be construed to limit the scope of the disclosure in any manner.
In this specification and in the claims, it will be understood that when an element is referred to as being “connected to” or “coupled to” another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being “directly connected to” or “directly coupled to” another element, there are no intervening elements present.
Some portions of the detailed descriptions which follow are presented in terms of procedures, logic blocks, processing and other symbolic representations of operations on data bits within a computer memory. These descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. In the present application, a procedure, logic block, process, or the like, is conceived to be a self-consistent sequence of steps or instructions leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, although not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer system.
It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussions, it is appreciated that throughout the present application, discussions utilizing the terms such as “accessing,” “receiving,” “sending,” “using,” “selecting,” “determining,” “normalizing,” “multiplying,” “averaging,” “monitoring,” “comparing,” “applying,” “updating,” “measuring,” “deriving” or the like, refer to the actions and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.
Embodiments described herein may be discussed in the general context of processor-executable instructions residing on some form of non-transitory processor-readable medium, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types. The functionality of the program modules may be combined or distributed as desired in various embodiments.
In the figures, a single block may be described as performing a function or functions; however, in actual practice, the function or functions performed by that block may be performed in a single component or across multiple components, and/or may be performed using hardware, using software, or using a combination of hardware and software. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. 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 disclosure. Also, the exemplary wireless communications devices may include components other than those shown, including well-known components such as a processor, memory and the like.
The techniques described herein may be implemented in hardware, software, firmware, or any combination thereof, unless specifically described as being implemented in a specific manner. Any features described as modules or components may also be implemented together in an integrated logic device or separately as discrete but interoperable logic devices. If implemented in software, the techniques may be realized at least in part by a non-transitory processor-readable storage medium comprising instructions that, when executed, performs one or more of the methods described above. The non-transitory processor-readable data storage medium may form part of a computer program product, which may include packaging materials.
The non-transitory processor-readable storage medium may comprise random access memory (RAM) such as synchronous dynamic random access memory (SDRAM), read only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), FLASH memory, other known storage media, and the like. The techniques additionally, or alternatively, may be realized at least in part by a processor-readable communication medium that carries or communicates code in the form of instructions or data structures and that can be accessed, read, and/or executed by a computer or other processor. For example, a carrier wave may be employed to carry computer-readable electronic data such as those used in transmitting and receiving electronic mail or in accessing a network such as the Internet or a local area network (LAN). Of course, many modifications may be made to this configuration without departing from the scope or spirit of the claimed subject matter.
The various illustrative logical blocks, modules, circuits and instructions described in connection with the embodiments disclosed herein may be executed by one or more processors, such as one or more motion processing units (MPUs), digital signal processors (DSPs), general purpose microprocessors, application specific integrated circuits (ASICs), application specific instruction set processors (ASIPs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. The term “processor,” as used herein may refer to any of the foregoing structure or any other structure suitable for implementation of the techniques described herein. In addition, in some aspects, the functionality described herein may be provided within dedicated software modules or hardware modules configured as described herein. Also, the techniques could be fully implemented in one or more circuits or logic elements. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of an MPU and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with an MPU core, or any other such configuration.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one having ordinary skill in the art to which the disclosure pertains.
Finally, as used in this specification and the appended claims, the singular forms “a, “an” and “the” include plural referents unless the content clearly dictates otherwise.
In the described embodiments, a chip is defined to include at least one substrate typically formed from a semiconductor material. A single chip may be formed from multiple substrates, where the substrates are mechanically bonded to preserve the functionality. A multiple chip includes at least two substrates, wherein the two substrates are electrically connected, but do not require mechanical bonding. A package provides electrical connection between the bond pads on the chip to a metal lead that can be soldered to a PCB. A package typically comprises a substrate and a cover. Integrated Circuit (IC) substrate may refer to a silicon substrate with electrical circuits, typically CMOS circuits. MEMS cap provides mechanical support for the MEMS structure. The MEMS structural layer is attached to the MEMS cap. The MEMS cap is also referred to as handle substrate or handle wafer. In the described embodiments, an electronic device incorporating a sensor may employ a motion tracking module also referred to as Motion Processing Unit (MPU) that includes at least one sensor in addition to electronic circuits. The sensor, such as a gyroscope, a compass, a magnetometer, an accelerometer, a microphone, a pressure sensor, a proximity sensor, or an ambient light sensor, among others known in the art, are contemplated. Some embodiments include accelerometer, gyroscope, and magnetometer, which each provide a measurement along three axes that are orthogonal relative to each other referred to as a 9-axis device. Other embodiments may not include all the sensors or may provide measurements along one or more axes. The sensors may be formed on a first substrate. Other embodiments may include solid-state sensors or any other type of sensors. The electronic circuits in the MPU receive measurement outputs from the one or more sensors. In some embodiments, the electronic circuits process the sensor data. The electronic circuits may be implemented on a second silicon substrate. In some embodiments, the first substrate may be vertically stacked, attached and electrically connected to the second substrate in a single semiconductor chip, while in other embodiments, the first substrate may be disposed laterally and electrically connected to the second substrate in a single semiconductor package.
In one embodiment, the first substrate is attached to the second substrate through wafer bonding, as described in commonly owned U.S. Pat. No. 7,104,129, which is incorporated herein by reference in its entirety, to simultaneously provide electrical connections and hermetically seal the MEMS devices. This fabrication technique advantageously enables technology that allows for the design and manufacture of high performance, multi-axis, inertial sensors in a very small and economical package. Integration at the wafer-level minimizes parasitic capacitances, allowing for improved signal-to-noise relative to a discrete solution. Such integration at the wafer-level also enables the incorporation of a rich feature set which minimizes the need for external amplification.
In the described embodiments, raw data refers to measurement outputs from the sensors which are not yet processed. Motion data refers to processed raw data. Processing may include applying a sensor fusion algorithm or applying any other algorithm. In the case of a sensor fusion algorithm, data from one or more sensors may be combined to provide an orientation of the device. In the described embodiments, a MPU may include processors, memory, control logic and sensors among structures.
As will be described more fully below, this disclosure provides techniques for guiding a user through a calibration operation for a mobile device having a motion sensor. The user may receive one or more visual cues to facilitate positioning the device in one or more desired orientations or producing one or more patterns of motion. The visual cues may be with respect to a virtual three dimensional environment that is responsive to a determined orientation of the device.
Details regarding one embodiment of a mobile electronic device 100 exhibiting features of this disclosure are depicted as high level schematic blocks in
In some embodiments, device 100 may be a self-contained device that includes its own display and sufficient computational and interface resources to generate and display the virtual three dimensional environment. However, in other embodiments, device 100 may function in conjunction with another portable device, such as one of those noted above, or a non-portable device such as a desktop computer, electronic tabletop device, server computer, etc., either of which can communicate with device 100, e.g., via network connections. Device 100 may be capable of communicating via a wired connection using any type of wire-based communication protocol (e.g., serial transmissions, parallel transmissions, packet-based data communications), wireless connection (e.g., electromagnetic radiation, infrared radiation or other wireless technology), or a combination of one or more wired connections and one or more wireless connections.
Therefore, device 100 may include at a minimum one or more motion sensors that may be calibrated such that the virtual three dimensional environment may be responsive to movements and orientations of device 100. Other functions associated with this disclosure that will described in more detail below, such as generating and updating the virtual three dimensional environment, displaying the virtual three dimensional environment, interfacing with the calibration operation, as well as others, may be implemented either in device 100 or an additional device as desired and depending on the relative capabilities of the respective devices. As an example, device 100 may be configured as a wearable device, such as a watch, wrist band, ring, pedometer, anklet or the like, and may be used in conjunction with another device, such as a smart phone or tablet, which may be used to provide the display for representing the virtual three dimensional environment. Thus, as used herein, the term “sensor system” means either a self-contained device or a device used in conjunction with another device.
Returning to the exemplary embodiment shown in
In this embodiment, MPU 102 is shown to include sensor processor 112, memory 114 and internal sensor 116. Memory 114 may store algorithms, routines or other instructions for processing data output by sensor 116 or sensor 108 as well as raw data and motion data. Internal sensor 116 may include one or more sensors, such as accelerometers, gyroscopes, magnetometers, pressure sensors, microphones and other sensors. Likewise, external sensor 108 may include one or more sensors, such as accelerometers, gyroscopes, magnetometers, pressure sensors, microphones, proximity, and ambient light sensors, and temperature sensors among others sensors. As used herein, an internal sensor refers to a sensor implemented using the MEMS techniques described above for integration with an MPU into a single chip. Similarly, an external sensor as used herein refers to a sensor carried on-board the device that is not integrated into a MPU. In the context of this disclosure, at least one of the internal or external sensors is a motion sensor, such as a gyroscope, an accelerometer or a magnetometer. For example, a typical implementation may feature a gyroscope, an accelerometer and a magnetometer configured as internal sensors 116 and each providing data output corresponding to three orthogonal axes which may utilize a sensor fusion operation to generate a 9-axis attitude (three different sensors for each of the three axes).
In some embodiments, the sensor processor 112 and internal sensor 116 are formed on different chips and in other embodiments; they reside on the same chip. In yet other embodiments, a sensor fusion algorithm that is employed in calculating orientation of device is performed externally to the sensor processor 112 and MPU 102, such as by host processor 104. In still other embodiments, the sensor fusion is performed by MPU 102. More generally, device 100 incorporates MPU 102 as well as host processor 104 and host memory 106 in this embodiment.
As will be appreciated, host processor 104 and/or sensor processor 112 may be one or more microprocessors, central processing units (CPUs), or other processors which run software programs for device 100 or for other applications related to the functionality of device 100. For example, different software application programs such as menu navigation software, games, camera function control, navigation software, and phone or a wide variety of other software and functional interfaces can be provided. In some embodiments, multiple different applications can be provided on a single device 100, and in some of those embodiments, multiple applications can run simultaneously on the device 100. Multiple layers of software can be provided on a computer readable medium such as electronic memory or other storage medium such as hard disk, optical disk, flash drive, etc., for use with host processor 104 and sensor processor 112. For example, an operating system layer can be provided for device 100 to control and manage system resources in real time, enable functions of application software and other layers, and interface application programs with other software and functions of device 100. A motion algorithm layer can provide motion algorithms that provide lower-level processing for raw sensor data provided from the motion sensors and other sensors, such as internal sensor 116 and/or external sensor 108. Further, a sensor device driver layer may provide a software interface to the hardware sensors of device 100.
Some or all of these layers can be provided in host memory 106 for access by host processor 104, in memory 114 for access by sensor processor 112, or in any other suitable architecture. For example, in some embodiments, host processor 104 may read instructions and data from calibration module 118 in host memory 106 to perform a calibration operation for at least one of internal sensor 116 or external sensor 108. Further, in this embodiment, host memory 106 also includes guidance module 120 configured to generate the virtual three dimensional environment used for prompting the user to move and position device 100 as desired and to interface with calibration module 118. A system that utilizes calibration module 118 and guidance module 120 in accordance with the present disclosure may take the form of an entirely hardware implementation, an entirely software implementation, or an implementation containing both hardware and software elements. In one implementation, calibration module 118 and/or guidance module 120 may be implemented in software, which includes, but is not limited to, application software, firmware, resident software, microcode, etc. Furthermore, calibration module 118 and/or guidance module 120 may take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. For the purposes of this description, a computer-usable or computer-readable medium may be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
Device 100 may also include display 122 adapted to represent the virtual three dimensional environment generated by guidance module 120. Device 100 may also include any suitable mechanisms for effecting input and/or output to a user, such as audio speakers, buttons, switches, a touch screen, a joystick, a trackball, a mouse, a slider, a knob, a printer, a scanner, a camera, or any other similar components. Further, device 100 may include one or more communication modules for establishing a communications link, which may employ any desired wired or wireless protocol, including without limitation WiFi®, cellular-based mobile phone protocols such as long term evolution (LTE), BLUETOOTH®, ZigBee®, ANT, Ethernet, peripheral component interconnect express (PCIe) bus, Inter-Integrated Circuit (I2C) bus, universal serial bus (USB), universal asynchronous receiver/transmitter (UART) serial bus, advanced microcontroller bus architecture (AMBA) interface, serial digital input output (SDIO) bus and the like.
As indicated above, a calibration operation may benefit from placing device 100 in a desired orientation or by moving device 100 through a defined pattern of movement. For the purposes of illustration and not limitation, one of skill in the art will appreciate that the following different types of calibration operations that are performed for different sensors may benefit from specific orientations and movements. Calibrating the bias of an accelerometer may be facilitated by performing slow rotations of device 100 along at least two axes with periodic periods of motionlessness. By providing movement on at least two axes, deviation from a single plane of reference may be achieved. Calibrating the hard iron bias of a magnetometer may be facilitated by rotation along at least two axes. Calibrating the soft iron bias of a magnetometer may be facilitated by movement that results in a reference from the device projected into space and covering a sphere surrounding the device, essentially resulting from moving device 100 through complete rotations with three degrees of freedom. Other calibration operations involving other sensors may also benefit from this pattern of motion. Calibrating the bias of a gyroscope may be facilitated by slow rotation or by motionlessness. Calibrating the sensitivity of a gyroscope may be facilitated by slow rotation, such as approximately 90°, along three axes. Likewise other calibration operations involving the same or other sensors may benefit from other orientations or patterns.
Given a desired orientation or pattern of movement that may be configured to facilitate a particular calibration operation, guidance module 120 may be used to generate a virtual three dimensional environment that may be represented to a user via display 122 in response to an orientation of device 100 as determined using one or more of internal sensor 116 and/or external sensor 108. Generation of animated virtual three dimensional environments may be achieved as known in the art, for example by using techniques that have been developed for computerized gaming, including genres such as first-person shooters or flight simulators. Accordingly, the generated virtual three dimensional environment may be used to provide the user a visual cue that results in device 100 being positioned in a desired orientation. Once device 100 has been positioned in the desired orientation, guidance module 120 may provide an indication to the user of successful orientation in any suitable manner. For example, the virtual three dimensional environment may be updated to provide a visual indication, or an auditory or tactile (e.g., vibration) may be used.
As noted, the virtual three dimensional environment may be responsive to a determined orientation of device 100, such as by updating the visual on display 122 to reflect any change in orientation. Thus, after successful positioning with respect to a first desired orientation, guidance module 120 may provide one or more additional visual cues associated with one or more additional desired orientations. By providing a plurality of visual cues in an appropriate order, any desired pattern of motion may be recreated.
In a further aspect, calibration module 118 may interface with guidance module 120 during the calibration operation. For example, the choice and sequence of visual cues may be prompted by calibration module 118 according to the operation being performed and the type of sensor being calibrated. Additionally, indications of quality and/or progress may be conveyed from calibration module 118 to guidance module 120, allowing guidance module 120 to adapt the sequence of visual cues in an appropriate manner. For example, if a given stage of the calibration operation is identified as having poor quality, guidance module 120 may be configured to repeat a portion of the visual cues. Likewise, once calibration module 118 determines the sensor has been successfully calibrated, it may convey that information to guidance module 120 which may then terminate the routine. The interface between calibration module 118 and guidance module 120 may also be configured to give the user an indication of how closely the desired orientation or pattern of motion was matched, thereby providing feedback that may allow the user to improve.
To help illustrate aspects of this disclosure, an exemplary routine for guiding a user during calibration of device 100 is represented by the flowchart shown in
Any number of virtual three dimensional environments may be employed to implement the techniques of this disclosure and the following material discusses embodiments that are intended to indicate currently-envisioned possibilities and should not be considered limiting.
One suitable embodiment of a virtual three dimensional environment is depicted in reference to
Another suitable embodiment of a virtual three dimensional environment is depicted in reference to
Yet another suitable embodiment of a virtual three dimensional environment is depicted in reference to
Another exemplary embodiment may be described in the context of
Although the present invention has been described in accordance with the embodiments shown, one of ordinary skill in the art will readily recognize that there could be variations to the embodiments and those variations would be within the spirit and scope of the present invention. Accordingly, many modifications may be made by one of ordinary skill in the art without departing from the spirit and scope of the present invention.