Patent Document

CROSS-REFERENCE TO RELATED APPLICATIONS 
     This application is related to the following U.S. application filed contemporaneously herewith, of common assignee, the contents of which are incorporated herein in their entirety by reference: 
     “Position Encoder Utilizing Fluxgate Sensors,” invented by J. Thomas Fowler U.S. patent application Ser. No. 09/315,205. 
    
    
     STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH 
     Not Applicable. 
     REFERENCE TO MICROFICHE APPENDIX 
     Not Applicable 
     FIELD OF THE INVENTION 
     The present invention relates to oscillating driver circuits, and more particularly to oscillating driver circuits for driving inductive components, such as magnetic fluxgate sensors within position encoders. 
     BACKGROUND OF THE INVENTION 
     In general, position encoders are devices which determine the instantaneous physical position of a movable object with respect to a fixed reference point, and translate such position information into a form that can be utilized by a processing, analytical or other type, tool. A position encoder typically transforms position information into an electrical signal, and provides the electrical signal to an analog or digital signal processor. Position encoders may determine angular position, as in the case of a rotatable shaft or toroidal structure (e.g., an automobile tire), or they may determine linear position, as in the case of a slidable control actuator. An ideal position encoder produces an output signal that is a linear function of the position of the movable object. An improved position encoder is described and claimed in my copending application, U.S. patent application Ser. No. 09/315,205, filed contemporaneously herewith, and assigned to the present assignee (Attorney Docket No. ADL-091). Instantaneous position information, sampled over time, may be used to determine higher derivatives of position such as velocity and acceleration. 
     Typical position encoders operate either mechanically, optically or magnetically. A mechanical encoder relies upon physical contact with the movable object; actuators on the movable object physically interact with an electro-mechanical transducer to produce an electrical signal. An optical encoder receives light reflected from illuminated markings associated with the movable object and translates variations in the received light into an electrical signal. Magnetic encoders typically utilize either fluxgate sensors or Hall effect sensors. A fluxgate sensor magnetic encoder uses fluxgate sensors to detect the magnetic field generated by magnetic elements attached to the movable object, and translates aspects of the magnetic field such as magnitude and direction into an electrical signal corresponding to the position of the object. A Hall effect sensor magnetic encoder translates the Hall effect of a magnetic field on a current carrying conductor to produce a signal corresponding to the position of the object. Fluxgate position encoders are several orders of magnitude more sensitive than Hall effect position encoders and are thus preferred in applications where it may be difficult to have the sensors in close proximity of the magnetic element producing the magnetic field. For example, in an application to determine the angular position of an automobile tire, the close proximity a Hall effect sensor requires is difficult to maintain because of the harsh environment created by road dirt, oil, grease, ice and snow. 
     A fluxgate sensor includes one or more turns of an electrical conductor wound about a core, which is disposed along a sensing axis. The core may be any material, including air, although high permeability materials such as iron or nickel are usually preferred. An external driving circuit alternately drives the sensor into saturation in one polarity and then into the opposite polarity. The external driving circuit drives current through the windings in one direction until the core saturates. Once the core saturates, the driving circuit reverses current in the windings until the core saturates in the opposite polarity. In the absence of an external magnetic field, the amount of time the driving circuit drives current in each direction is the same; i.e., the current waveform through the windings as a function of time is symmetrical. The presence of an external magnetic field “helps” (i.e., enhances) the saturation of the core in one polarity, while the external magnetic field impedes the saturation of the core in the opposite polarity. Thus, in the presence of an external magnetic field, the waveform of the current through the windings as a function of time is asymmetrical, since saturation occurs more quickly for the polarity of the saturation enhanced by the external field. The amount of asymmetry may be used to determine characteristics of the external magnetic field, such as magnitude and direction. 
     The amount of current necessary to drive an inductor coil into saturation varies with the number of windings, the core material, etc. However, for a typical flux gate sensor, the amount of current necessary to drive the sensor into saturation will be on the order of tens of mA. Since this current is entirely supplied by the driver circuit, the input power requirements of such a driver circuit are defined by the saturation current of the fluxgate sensor. For example, U.S. Pat. No. 4,859,944, “Single Winding Magnetometer With Oscillator Duty Cycle Measurement,” invented by Spencer L. Webb, discloses a driver circuit which essentially alternately connects a positive voltage source and a negative voltage source across an inductor coil. A few tens of mA is not generally considered a large amount of current. However, in low power applications, such as portable electronic systems which operate from a battery power source, current requirement goals are typically in the micro-ampere range. 
     It is an object of this invention to provide a position encoder that substantially overcomes or reduces the aforementioned disadvantages while providing other advantages which will be evident hereinafter. 
     SUMMARY OF THE INVENTION 
     The present invention is a system for cyclically driving an electrical current through an inductor in alternating directions so as to produce a substantially periodic current waveform, and for producing an output signal representative of the current waveform. In one aspect of the invention, the output signal corresponds to the strength of an external magnetic field in the presence of the inductive component. The system includes a first capacitor and a second capacitor electrically coupled in series. The first capacitor is coupled between a voltage source and a junction node, and the second capacitor is coupled between the junction node and a system ground. A first terminal of the inductor is electrically coupled to the junction node, and the junction node has an associated junction voltage. The system further includes a switching network for alternately interconnecting the first capacitor, the second capacitor and the inductor in a first state and a second state. The first state is characterized by the inductor and the first capacitor being electrically coupled in parallel, and the second state is characterized by the inductor and the second capacitor being electrically coupled in parallel. The system also includes a controller for configuring the switching network to the first state for a first time interval until the inductor saturates, thereupon configuring the switching network to the second state for a second time interval until the inductor saturates, such that the switching network cyclically alternates between the first state and the second state. The system further includes a signal processor with an input terminal that is electrically coupled to the junction so as to receive the junction voltage. The signal processor also has an output terminal that produces the output signal. The output signal is a function of the first time interval and the second time interval. 
     In another embodiment, the inductor includes at least one flux gate sensor. 
     In another embodiment, the inductor includes at least two fluxgate sensors electrically coupled in series opposition. 
     In yet another embodiment, the switching network includes a digital driver having a totem-pole output architecture electrically coupled between the voltage source and the system ground. 
     In another embodiment, the system further includes a current source having an output terminal electrically coupled to the junction and providing a feedback current to the junction, the feedback current having a magnitude being a function of the output signal. 
     In another embodiment, the controller further includes a sense element for sensing the inductor current so as to produce a current sense signal representative of the current magnitude, a comparator for comparing the current sense signal to a first saturation value while the inductor current flows in a first direction, and for comparing the current sense signal to a second saturation value while the electrical current flows in a second direction opposite to the first direction. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The foregoing and other objects of this invention, the various features thereof, as well as the invention itself, may be more fully understood from the following description, when read together with the accompanying drawings in which: 
     FIG. 1 illustrates a schematic view of one preferred embodiment of an improved oscillating driver circuit according to the present invention; 
     FIG. 2A illustrates a first state of the oscillating driver circuit of FIG. 1; 
     FIG. 2B illustrates a second state of the oscillating driver circuit of FIG. 1; 
     FIG. 3 shows a graphical representation of the current through-the inductor of the oscillating driver circuit of FIG. 1 in the absence of an external magnetic field; 
     FIG. 4 shows a graphical representation of the current through the inductor of the oscillating driver circuit of FIG. 1 in the presence of an external magnetic field; 
     FIG. 5A shows a more detailed representation the oscillating driver circuit of FIG. 1; 
     FIG. 5B shows an alternate embodiment of the circuit of FIG. 5A; 
     FIG. 6 illustrates the “totem-pole” output structure of a complementary emitter-follower output stage from the prior art; 
     FIG. 7 shows a more detailed representation the oscillating driver circuit of FIG.  5 . 
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     The invention is directed to an improved oscillating driver circuit for cyclically driving current through non-linear (i.e., saturable) inductive components such as magnetic fluxgate sensors. FIG. 1 illustrates a schematic view of one preferred embodiment of an improved oscillating driver circuit according to the present invention, including an inductor  102 , a resistor  103 , a first capacitor  104 , a second capacitor  106 , a switching network  108 , a controller  110  and a signal processor  112 . The first capacitor  104  and the second capacitor  106  are electrically coupled in series, such that the first capacitor  104  is electrically coupled between a voltage source  114  of V volts and a junction node  116 , and the second capacitor  106  is electrically coupled between the junction node  116  and system ground  118 . The inductor  102  is electrically coupled in series with the resistor  103 , and the inductor/resistor pair is electrically coupled between the junction node  116  and the switching network  108 . The junction node  116  is also electrically coupled to an input of the signal processor  112 . The signal processor  112  thus receives the voltage V J  that exists at junction node  116  and produces an output signal V OUT  corresponding to some function of V J . In one preferred embodiment, the output signal V OUT  corresponds to a time-average of the junction voltage V J  over some predetermined time interval, and then linearly scaled by a constant scaling factor and/or offset by a constant bias value. 
     The function performed by the first capacitor  104  and the second capacitor  106  may be performed in other embodiments by a single capacitive node capable of storing energy. In general, the capacitive node provides a location that may be alternately filled and emptied of energy, such that the transferred energy passes through the non-linear inductor as electrical current. 
     The switching network  108  is operative to cyclically interconnect the inductive component  102 , the first capacitor  104  and the second capacitor  106  so as to alternately produce one of two states. In the first state, shown explicitly in FIG. 2A, the inductor  102  and the first capacitor  104  are electrically coupled in parallel. In the second state, shown explicitly in FIG. 2B, the inductor  102  and the second capacitor  106  are electrically coupled in parallel. The controller  110  provides an actuating input  119  to the switching network  108  and causes the switching network  108  to alternate between the first state and the second state. The actuating input  119  from the controller  110  to the switching network  108  is dependent upon the magnitude and direction of the current through the inductor  102 . In the first state, as long as the inductor  102  operates in its linear region (i.e., it is not saturated), the inductor current I increases linearly, as shown by region  150  of FIG. 3, because the voltage across the inductor  102  is substantially constant. Note that in FIG. 3, current toward the junction node  116  is depicted as positive and current flowing away from the junction node  116  is depicted as negative. The linear increase in the current I is due to the          v   l     =     L               i   l            t                                
     relationship between the voltage v I  across an inductor, and the current i I  through the inductor, while the inductor operates in its linear region. In the first state, the inductor current I flows through the inductor  102  towards the junction node  116 . As the current I increases, the magnetic field intensity increases, eventually causing the inductor core material to saturate. When the inductor  102  saturates, the current no longer increases linearly and “spikes,” i.e., increases rapidly as shown by region  152  of FIG. 3, even though the voltage across the inductor  102 /resistor  103  pair is still substantially constant. Thus, the behavior of the current I is indicative of whether or not the inductor  102  has saturated. The controller  110  monitors the inductor current I via sensor  120 , which is electrically coupled to the controller  110  from sensor path  122 . The controller  110  maintains the switching network  108  in the first state until the inductor current I, measured via sensor  120 , exceeds a first saturation threshold value  154 . When the controller  110  detects that the inductor current I exceeds the first threshold value  154 , the controller  110  changes the state of the switching network  108  from the first state to the second state. In the second state, the voltage across the inductor  102  is substantially opposite in polarity than that of the first state; consequently, the inductor  102  ceases to be saturated and the current I begins to decrease linearly at a relatively constant rate as shown in FIG.  3 . Eventually, as the current I continues to decrease, the current I reverses direction and flows away from the junction node  116  as shown in FIG. 2 b . The current I subsequently increases linearly in magnitude, but in a direction away from the junction node  116  until the inductor current I (measured via sensor  120 ) exceeds a second threshold value  156 . When the controller  110  detects that the inductor current I exceeds the second threshold value  156 , the controller  110  changes the state of the switching network  108  from the second state to the first state. As the voltage across the inductor  102  again switches polarity, the inductor  102  ceases to be saturated and the magnitude of the current I again begins to decrease as shown in FIG. 3, and the cycle repeats. 
     In the absence of an external magnetic field, the current waveform shown in FIG. 3 will be symmetrical about the horizontal axis, provided the core material of the inductor  102  is magnetically “soft”, i.e., exhibits low residual flux (B r ). Such a material thus does not make a good permanent magnet. Ideally, the material will exhibit low coercivity and high permeability. However, in the presence of an external magnetic field, the component of the external field in the direction of the magnetic field induced by the inductor current I enhances the saturating of the inductor core in one direction and impedes saturation in the other direction. This “magnetic bias” causes an asymmetry in the inductor current waveform of FIG. 3 about the horizontal axis. FIG. 4 illustrates such an asymmetry corresponding to an external field enhancing saturation of the core from current flowing in the direction of the junction node  116 . During each cycle, the amount of time T1 that the current flows through the inductor  102  toward the junction node  116  is less than the time T2 that the current I flows away from the junction node  116 . 
     Because the voltage V across the two capacitors  104  and  106  is constant (i.e., the potential of voltage source  114  with respect to system ground  118 ), the current I flowing through the inductor  102  represents a transfer of energy from one of the capacitors ( 104  or  106 ) to the other. This is true because otherwise, if the current I originated from an external source, energy would be added to the pair of capacitors, and the overall voltage across them would increase. In one embodiment of the invention, shown in FIG. 1, an additional capacitor  124  is included across the series connected pair of capacitors  104  and  106  to provide a low impedance source of current to the circuit and to maintain and reinforce the constant voltage at the voltage source  114  with respect to system ground  118 . One capacitor ( 104  or  106 ) functions as a current source and the other capacitor functions as a current sink, thus the voltage V, at junction node  116  must vary as the current is exchanged. This is because of the          i   c     =     C               v   c            t                                
     relationship between the current i c  into (or out of) a capacitor and the voltage v, across the capacitor. If the inductor current waveform of FIG. 3 is symmetric about the horizontal axis, then the time-average voltage {overscore (V)} J  measured at junction node  116  remains at {(voltage source)−(system ground)}/2, or more simply at V/2, assuming that voltage source  114  is at V volts and system ground  118  is zero volts. If the inductor current waveform is asymmetric about the horizontal axis as shown in FIG. 4, then the time-average voltage {overscore (V)} J  measured at junction node  116  will be offset somewhat from V/2, either towards V or towards system ground. 
     The junction node  116  is electrically coupled to an input of the signal processor  112  such that the signal processor receives the voltage V J  present at junction node  116 . In one preferred embodiment of the invention, the signal processor  112  determines the time-average {overscore (V)} J  of the junction node voltage V J  and then scales {overscore (V)} J  to produce V OUT . 
     In one preferred embodiment shown in FIG. 5A, the sensor  120  includes a sense resistor R S  electrically coupled in series between the inductor  102  and the junction node  116 . R S  should be as low as is practical to reduce losses in the circuit. The switching network  108  and the controller  110  are combined to include a comparator  160 , a first input resistor R I1 , a second input resistor R I2 , and a hysteresis resistor R H . The comparator  160  includes an output terminal  162 , an inverting input terminal  164  and a non-inverting input terminal  166 . The comparator  160  should exhibit fast switching characteristics and low propagation time. Such comparators are well known to those in the art and are readily available commercially. For example, one preferred embodiment of the invention includes the MAX942 comparator, manufactured by Maxim Integrated Products, Sunnyvale, Calif. In a preferred embodiment, the output of the comparator  160  is a low impedance buffer that switches between the voltage source  114  and system ground  118 , so as to accomplish the switching function of the switching network  108 . Thus, the comparator may exist in one of two states as defined for the switching network  108 . For example, FIG. 6 illustrates the bipolar “totem-pole” output structure of a complementary emitter-follower output stage, which is one prior art architecture that may be used to accomplish the specified switching function of the switching network  108 . In a complementary emitter-follower output stage, either the top transistor Q 1  is conducting while the bottom transistor Q 2  is an open circuit, or the bottom transistor Q 2  is conducting while the top transistor Q 1  is an open circuit, depending upon the state of the input V I . This is essentially the functionality depicted for the switching network  108  in FIG.  1 . 
     In one preferred embodiment, the output structure may include complementary MOSFET components rather than the bipolar components shown in FIG.  6 . The saturation voltages associated with bipolar components may introduce bias errors that MOSFET architectures do not exhibit. 
     As shown in FIG. 5A, the inductor current passes through the sense resistor R S , indicated at  103 , and thus produces a sense voltage V S  across the sense resistor R S . In order to reduce I 2 R losses, the value of R S  should be relatively small; in one preferred embodiment R S  includes a 10 ohm resistor, although other low resistance values of R S  may also be used. The comparator  160  receives the sense voltage V S  through input resistors R I1  and R I2 , which are both resistors with relatively large values so as to match the high input impedance of the comparator  160 . In a preferred embodiment of the invention, the input resistors R I1  and R I2  both include 10,000 ohm resistors, although other high resistance values may also be used. The hysteresis resistor R H  is electrically coupled between the output  162  of the comparator  160  and the non-inverting input  166  of the comparator  160 , so as to provide feedback from the output to the input of the comparator  160 . The effect of this feedback is to produce one of two threshold levels (corresponding to either the first threshold value  154  or the second threshold value  156  of FIG.  3 ), dependent upon the state of the comparator output  162 , with which to compare the sense voltage V S . When the comparator is in the first state, i.e., when the current is flowing toward the junction node  116 , the threshold used by the comparator  160  corresponds to the first threshold value  154 . When the comparator is in the second state, the threshold used by the comparator  160  corresponds to the second threshold value  156 . 
     FIG. 5A is an example of a series half-bridge version of the present invention. FIG. 5B is a simplified example of a full bridge (i.e., voltage doubler) embodiment of the present invention, which includes a second switching network  180  that works with the first switching network  108  to alternate the voltage polarity applied across the inductor  102  and a single capacitor  182 . The value of the single capacitor  182  in FIG. 5B is twice the value of each of the capacitors in FIG.  5 A. 
     In a preferred embodiment shown in FIG. 7, the signal processor  112  includes the constituent components of a first bridge resistor R B1 , a second bridge resistor R B2 , an input resistor R I3 , an operational amplifier  170 , and a feedback capacitor C F . The operational amplifier  170  includes a non-inverting input terminal  174 , an inverting input terminal  176  and an output terminal  178 . The feedback capacitor C F  is electrically coupled between the output terminal  178  and the inverting input terminal  176 . The input resistor R I3  is electrically coupled between the junction node  116  and the inverting input terminal  176 . The first and second bridge resistors R B1  and R B2  are electrically coupled in series between the voltage source  114  and the system ground  118 , so as to form a resistive voltage divider. The voltage V B  at the bridge junction node  172  between the two resistors R B1  and R B2  is well known to be            V   B     =     V        (       R   B2         R   B1     +     R   B2         )         ,                          
     where V is the voltage across the series connected bridge resistors (i.e., assuming that voltage source  114  is at V volts and system ground  118  is zero volts). The bridge resistors R B1  and R B2  are preferably equal in value so that the voltage V B  at the bridge junction node  172  is one half of the voltage across the bridge resistors, i.e., V B =V/2. The bridge junction node  172  is electrically coupled to the non-inverting input terminal  174  of the operational amplifier  170 . R B1  and R B2  establish a reference voltage V B  which functions as a virtual ground within the signal processor  112 . It is well known in the art that the configuration of the operational amplifier  170 , the feedback capacitor C F  and the input resistor R I3  as shown in FIG. 7 forms an analog integrator. Electrically coupling the non-inverting input  174  of the amplifier to the constant voltage V B  introduces a bias of V B  volts to the output  178 . Thus, the output signal V OUT  at the output terminal  178  is the integral of the voltage V J  at the junction node  116 , offset by a V B  volts. 
     As shown in FIG. 7, the output  178  of the operational amplifier  170  is electrically coupled to junction node  116  through a feedback resistor  179 . This connection causes the operational amplifier  170  to drive feedback current into, or remove current from, the junction node  116  when the output  178  of amplifier  170  is non-zero. The feedback current flowing into or out of the junction node  116  varies the average voltage {overscore (V)} J  at node  116 . When the average voltage {overscore (V)} J  of the junction node  116  is V B , the integral of the voltage V J  offset by V B /2, is zero. The operational amplifier  170  configured as an integrator supplying a feedback current to the junction node  116  thus functions to drive the junction node to V B  volts, which is exactly ½ of the voltage across capacitors  104  and  106 . 
     The feedback current from the operational amplifier output  178  creates a null balance condition in the inductor  102  that effectively creates a “zero gauss” condition within the inductor core, improving linearity and reducing the disturbing effect of the magnetic core in adjacent channels. The flux B canceled within the inductor is given by:          B   =       μ                 H     =       μ                 Ni     L         ,                          
     where μ is the permeability of the flux path (effectively 1.0 in air), N is the number of turns of inductor windings, I is the inductor current in amperes, L is the length of the coil in meters and B is the magnetic field in Teslas. 
     The primary utility of the embodiment of the invention shown in FIG. 7 lies in the fact that the inductor current I flowing from capacitor  104  to capacitor  106  and vice versa can be many times the current supplied to the overall circuit via voltage source  114 . The current supplied by the voltage source  114  needs to only be enough to replace energy lost due to lossy components in the inductor current path. The maximum field strength of the external field which can be detected by the invention is limited by the maximum current through the inductor. Thus, the higher the Q of the circuit (i.e., the more lossless the individual components), the greater the detectable external field strength for a given input supply current from voltage source  114 . 
     Another significant utility of the present invention is its ability to drive multiple non-linear inductive loads simultaneously. For example, my co-pending U.S. patent application Ser. No. 09/315,205, filed on the same day as the present application, attorney docket number ADL-091, describes a pair of flux gate sensors electrically coupled in series opposition so as to reject magnetic fields that are common to both sensors. Many prior art systems handle such multiple inductive loads by sequentially driving each load separately then combining the results. Driving multiple loads simultaneously allows a more accurate measurement of magnetic fields, since the measurements made by the different sensors will be contemporaneous. 
     The invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are therefore to be considered in respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of the equivalency of the claims are therefore intended to be embraced therein.

Technology Category: g