None.
Not applicable.
Not applicable.
Position sensors are used in many items of technology. Sometimes Hall-effect sensors are used to sense a magnetic field that changes in intensity based on a relative position of the Hall-effect sensor and some other item of interest. For example, a permanent magnet may be located in an edge of a display of a laptop computer, and a Hall-effect sensor may be located in a base of the laptop such that when the display is closed, the magnet and Hall-effect sensor are close to each other. The Hall-effect sensor thus can detect when the magnet is close (when the laptop is closed) and output a corresponding signal that can be used by the laptop to trigger turning off the display and possibly triggering other power saving activities.
In an embodiment, a position sensor is disclosed. The sensor comprises a Hall-effect sensor and an adaptation electronic stage coupled to the Hall-effect sensor that outputs a comparison threshold signal based on peak detecting an output of the Hall-effect sensor using a long term adjustment and resetting the long term adjustment to a current output of the Hall-effect sensor in response to a short term adjustment. The sensor further comprises a switch electronic stage coupled to the Hall-effect sensor and to the adaptation electronic stage that switches to output a logic active value in response to the output of the Hall-effect sensor exceeding the comparison threshold output.
In another embodiment, a method of determining a position of a device using a Hall-effect sensor is disclosed. The method comprises receiving a magnetic input by a Hall-effect sensor, outputting a signal by the Hall-effect sensor that represents the magnetic input, receiving the signal output by the Hall-effect sensor by an adaptation component, and storing a peak value of the received signal by the adaptation component. The method further comprises detecting a reset pattern in the received signal by the adaptation component, resetting the peak value stored by the adaptation component in response to detection of the reset pattern by the adaptation component, outputting the stored peak value by the adaptation component, and generating a threshold output that is less than but proportional to the stored peak value output by the adaptation component. The method further comprises receiving the threshold output by a switch component, receiving the signal output by the Hall-effect sensor by the switch component, and switching to output a logic active value by the switch component on the event of the received signal output by the Hall-effect sensor exceeding the received threshold output.
In yet another embodiment, an electronic device incorporating a magnet and a Hall-effect sensor to determine a location of a portion of the electronic device is disclosed. The device comprises a permanent magnet mechanically coupled to a first portion of the electronic device and a Hall-effect sensor coupled to a second portion of the electronic device where the first portion and the second portion are moveable with reference to each other and where Hall-effect sensor receives a magnetic field of the permanent magnet in at least some working configurations of the electronic device. The device further comprises an adaptation electronic stage coupled to the Hall-effect sensor that outputs a comparison threshold signal based on peak detecting an output of the Hall-effect sensor using a long term adjustment and resetting the long term adjustment to a current output of the Hall-effect sensor in response to a short term adjustment and a switch electronic stage coupled to the Hall-effect sensor and to the adaptation electronic stage that switches to output a logic active value in response to the output of the Hall-effect sensor exceeding the comparison threshold output.
These and other features will be more dearly understood from the following detailed description taken in conjunction with the accompanying drawings and claims.
For a more complete understanding of the present disclosure, reference is now made to the following brief description, taken in connection with the accompanying drawings and detailed description, wherein like reference numerals represent like parts.
It should be understood at the outset that although illustrative implementations of one or more embodiments are illustrated below, the disclosed systems and methods may be implemented using any number of techniques, whether currently known or not yet in existence. The disclosure should in no way be limited to the illustrative implementations, drawings, and techniques illustrated below, but may be modified within the scope of the appended claims along with their full scope of equivalents.
The present disclosure teaches a Hall-effect position sensor that features an adaptive threshold. As a magnet approaches the Hall-effect sensor, the Hall-effect sensor output increases in amplitude. As the Hall-effect sensor exceeds a threshold, a switch that receives an output of the Hall-effect sensor transitions from a logic inactive state to a logic active state. This logic active state may be used by other processing as a signal that an object containing the magnet is close to the Hall-effect sensor. In an embodiment, the logic active signal could mean that a laptop is closed. In an embodiment, the logic active signal could mean that a battery door is closed. The threshold may be set initially for a first magnetic field strength. Later, the magnetic field strength sensed by the Hall-effect sensor may change, even when the object to which the magnet is coupled approaches just as close to the Hall-effect sensor. The location or position of the magnet may have been moved due to a collision of the system the magnet is coupled to, the magnetic field emitted by the magnet may change due to temperature changes or due to a mechanical shock the magnet may have received. As an alternative example, the magnetic field strength sensed by the Hall-effect sensor may vary across individual units of mass-produced products due to manufacturing tolerances and assembly variations and/or due to variations in the magnets provided by suppliers. The present disclosure teaches detecting the peak output of the Hall-effect sensor and adapting the threshold based on that peak to compensate for variations in the interactions between the Hall-effect sensor and the magnet. More particularly, the threshold is adapted slowly as the peak output of the Hall-effect sensor changes gradually over many cycles of position sensing and is adapted rapidly in response to the peak output of the Hall-effect sensor exhibiting a jump in value.
Turning now to
When the output of the Hall-effect sensor 106 is greater than the coupled threshold signal, the switch stage 112 outputs a logic active signal, for example a logic HI value. When the output of the Hall-effect sensor 106 drops sufficiently below the coupled threshold signal (in an embodiment, the switch stage 112 introduces a switching hysteresis), the switch stage 112 outputs a logic inactive signal, for example a logic LO value. It is understood that in a different embodiment, the polarity of active versus inactive logic may be reversed, so a logic active signal may correspond to a logic LO value and a logic inactive signal may correspond to a logic HI value.
The threshold adaptation 108 is configured to detect and hold the peak value of the output of the Hall-effect sensor 106. The threshold adaptation 108 slowly decreases its output over time to continue to track the peak value of the output of the Hall-effect sensor 106 if that peak value decreases slowly. On the other hand, the threshold adaptation 108 rapidly follows any increase in the peak value (this is what is meant by “tracking and holding” the peak). This may be referred to as long-term adjustment or long-term adaptation of the threshold adaptation stage 108. The threshold adaptation 108 is further configured to detect when the peak value of the output of the Hall-effect sensor 106 decreases significantly over a relatively short period of time, for example over two minimum-to-peak-to-minimum cycles, over five minimum-to-peak-to-minimum cycles, over eight minimum-to-peak-to-minimum cycles, or some other number of cycles. It is observed that in this example, the term “relatively short period of time” is expressed not in clock time but in terms of minimum-to-peak cycles. The criteria for what is a significant decrease in the peak may be a predefined value. As an example, a peak value that is less than about 66% of the established peak may be the criteria for significant decrease in the peak, a peak value that is less than about 50% of the established peak may be the criteria for significant decrease in the peak, a peak value that is less than about 33% of the established peak may be the criteria for significant decrease in the peak, a peak value that is less than about 25% of the established peak may be the criteria for significant decrease in the peak, or a different criteria may be predefined. When the threshold adaptation 108 detects a significant change in the peak output of the Hall-effect sensor 106 over a relatively short period of time, the threshold adaptation 108 resets its peak hold value (for example, sets the peak hold value to 0 or to a current value of the output of the Hall-effect sensor 106) and sets a new peak value based on the next peak cycle of the output of the Hall-effect sensor 106. This feature can quickly adjust to a change in the function of the position sensor 104, for example, if the magnet 102 has been moved due to damage to the system 100 or if the field strength of the magnet 102 has been altered due to a mechanical shock to the magnet 102.
Turning now to
When the display panel 142 is closed on the base 144 (when the “lid” of the laptop is closed), the position sensor 104 may determine that a peak of the magnetic field emitted by the magnet 102 is sensed by the Hall-effect sensor 106 and generate a logic active output, as described above. This logic active output can be used by processing in the base 144, for example by a program being executed by a microprocessor of the base 144, to remove power from the graphics display, thereby conserving battery power. The program may take further actions in response to the transition to a logic active output of the position sensor 104.
It is understood that the position sensor 104 may be used in different use cases and in different applications. For example, the position sensor 104 and magnet 102 may be disposed on a battery cover and the base 144 of the laptop 140 such that when the battery cover is removed, the sensor 104 outputs a logic active signal (in this case the logic polarity may be reversed). This battery cover removed logic active output may be used by processing to save current state of the laptop 140 and perform a controlled shutdown in anticipation of electrical power being abruptly removed from the laptop 140. The position sensor 104 may be used in yet other use cases.
Turning now to
At block 208, a peak value of the received signal is stored by the adaptation component. For example, the adaptation component 108 detects or samples and holds the peak value of the received signal. At block 210, a reset pattern is detected in the received signal by the adaptation component. For example, the adaptation component 108 detects a pattern that comprises a plurality of minimum-to-maximum-to-minimum cycles of the output of the Hall-effect sensor 106 where the peak value of the output of the Hall-effect sensor 106 is further determined to be significantly less than the tracked and hold peak value stored by the adaptation component 108. This pattern is consistent with a condition where the peak of the Hall-effect sensor 106 has shifted significantly lower, and in this circumstance, the threshold coupling output of the coupling 110 ought to be reset to reflect this shifted peak level rather than waiting for the slow adaptation function to ramp this down over an extended period of time.
At block 212, the peak value stored by the adaptation component is reset in response to detection of the reset pattern by the adaptation component. For example, the adaptation component 108 resets the peak value of the output of the Hall-effect sensor 106 that it is holding and recaptures the current value and/or peak. At block 214, the stored peak value is output by the adaptation component (this may be the reset value of the stored peak). At block 216, a threshold output that is less than but proportional to the stored peak value output is generated by the adaptation component. At block 218, the threshold output is received by a switch component, for example by the switch stage 112. At block 220, the signal output is received by the Hall-effect sensor by the switch component, for example by the switch stage 112. At block 222, a logic active value is switched to output by the switch component on the event of the received signal output by the Half-effect sensor exceeding the received threshold output.
Tuning now to
Under normal operating conditions (e.g., the peak output value of the Hall-effect sensor 106 does not change suddenly, abruptly, and/or rapidly), the peak and hold stage 162 may capture and hold the peak value of an output of the amplifier 160. The output of the Hall-effect sensor 106 may be very low, for example, in the microvolt (μV) range, hence it may be desirable to amplify that low amplitude signal. The output of the amplifier 160 is tracked and held by the peak and hold stage 162. The output of the peak and hold stage 162 is voltage divided across the threshold coupling stage formed by the resistors 164, 166, 168. A first voltage V1 is present at the node between the first resistor 164 and the second resistor 166. This first voltage V1 may be referred to as a coupled threshold output and is provided as a comparison threshold to the switch stage 112. The output of the amplifier 160 is also provided to the switch stage 112. When the value of the output of the amplifier 160 sufficiently exceeds the coupled threshold output, the switch stage 112 switches to output an active logic level. When the value of the output of the amplifier 160 falls sufficiently below the coupled threshold output (the switch stage 112 may implement a hysteresis function), the output of the switch stage 112 switches to output an inactive logic level. In normal operations, the output of the switch stage 112 reflects the magnet 102 being close or being distant from the Hall-effect sensor 106, for example reflects when the display panel 142 of the laptop 140 is closed or when the display panel 142 of the laptop 140 is open.
Under an abnormal condition, however, the peak magnetic field amplitude sensed by the Hall-effect sensor 106 changes abruptly, for example, because the laptop 140 is dropped and the magnet 102 is moved or the mechanical shock alters the magnetic properties of the magnet 102. In case of abrupt and significant change in the peak of the output of the amplifier 160, the first comparator 170, the counter 172, and the reset signal generation stage 174 may generate a reset signal that causes the peak hold/decrement register 182 to immediately reset and capture the current output of the amplifier 160 as the current peak and track the peak output going forwards. In an embodiment, the function of the first comparator 170, the counter 172, and/or reset signal generation stage 174 may be disabled while the output of the switch stage 112 continues to transition. For example, every transition of the output of the switch stage 112 may zero the counter 172.
When allowed to operate (e.g., the switch stage 112 is not transitioning), however, the first comparator 170 may switch at the substantially lower peak output of the amplifier 160. The first comparator 170 receives a threshold signal that is the voltage V2 of the node between the second resistor 166 and the third resistor 168. One skilled in the art recognizes that the V1 voltage is higher than the V2 voltage. In an embodiment, the values of the resistors 164, 166, and 168 may be selected so the threshold coupling output provided to the switch stage 112 is about 75% of the output of the peak hold/decrement register 182 (the analog conversion of the digital output of the peak hold/decrement register 182) and the voltage V2 is about 20% of the output of the peak hold/decrement register 182. Thus, the first comparator 170 will switch in response to lowered peak values of the output of the amplifier 160. On each switch output of the first comparator 170, the counter 172 increments. As the output of the counter 172 exceeds a predefined value X, the reset signal generation stage 174 sends a reset signal to the peak hold/decrement register 182, causing it to zero its held peak value and therefore to recapture a new peak value immediately. This way the position sensor 104 can rapidly adapt to abrupt changes in peak output of the Hall-effect sensor 106. In an embodiment where the position sensor 104 is used in a laptop, a user may simply open and close the laptop 140 several times to cause the position sensor 104 to reset and capture a new peak value, in the event of an abrupt change in the interaction between the magnet 102 and the Hall-effect sensor 106.
While several embodiments have been provided in the present disclosure, it should be understood that the disclosed systems and methods may be embodied in many other specific forms without departing from the spirit or scope of the present disclosure. The present examples are to be considered as illustrative and not restrictive, and the intention is not to be limited to the details given herein. For example, the various elements or components may be combined or integrated in another system, or certain features may be omitted or not implemented.
Also, techniques, systems, subsystems, and methods described and illustrated in the various embodiments as discrete or separate may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the present disclosure. Other items shown or discussed as directly coupled or communicating with each other may be indirectly coupled or communicating through some interface, device, or intermediate component, whether electrically, mechanically, or otherwise. Other examples of changes, substitutions, and alterations are ascertainable by one skilled in the art and could be made without departing from the spirit and scope disclosed herein.
Number | Name | Date | Kind |
---|---|---|---|
4914387 | Santos | Apr 1990 | A |
5650719 | Moody et al. | Jul 1997 | A |
5729130 | Moody | Mar 1998 | A |
6191576 | Ricks et al. | Feb 2001 | B1 |
6211670 | DeWilde | Apr 2001 | B1 |
6727689 | Furlong et al. | Apr 2004 | B1 |
6759843 | Furlong | Jul 2004 | B2 |
6967477 | Murdock et al. | Nov 2005 | B1 |
7199579 | Scheller | Apr 2007 | B2 |
8089270 | Scheller et al. | Jan 2012 | B2 |
20040227407 | Nagai | Nov 2004 | A1 |
20070089311 | Amundson | Apr 2007 | A1 |
20090051174 | Ho | Feb 2009 | A1 |
20100207621 | Yano | Aug 2010 | A1 |
20130320970 | Foletto | Dec 2013 | A1 |
20150057050 | Park et al. | Feb 2015 | A1 |
20160187928 | Zeng | Jun 2016 | A1 |
20170082458 | Zhu | Mar 2017 | A1 |
Number | Date | Country |
---|---|---|
107404313 | Nov 2017 | CN |
1850143 | Oct 2007 | EP |
2093583 | Aug 2009 | EP |
3246721 | Nov 2017 | EP |
0017901 | Mar 2000 | WO |
Entry |
---|
Europe Patent Application No. 17171178.1, Extended European Search Report, dated Oct. 24, 2017, 8 pages. |
Number | Date | Country | |
---|---|---|---|
20170336832 A1 | Nov 2017 | US |