The present invention generally relates to sensors and, more particularly, relates to a sensor, such as a pressure sensor, and method for transmitting multiple sensed characteristics in a pulse width modulated signal.
Pressure sensors and various other sensors are commonly employed in automotive vehicle applications to control and monitor various aspects of the vehicle operation. In particular, pressure sensors are commonly employed in passive occupant detection systems (PODS) which typically employ a fluid-filled bladder connected to the pressure sensor, a belt tension sensor, and an electronic control unit (ECU). The pressure sensor employed in a conventional PODS generally has a three-wire interface, providing supply, ground, and an output voltage. The output voltage generated with the conventional PODS pressure sensor is an analog signal typically operable to sense pressure in the range of about 0 to 2.5 pounds per square inch (psi).
Pressure sensors are generally required to provide an accurate analog voltage output representative of the pressure applied to a sensing element. In automotive applications, the pressure sensor is generally required to be accurate over a large temperature range of approximately −40° to +125° C. throughout the life of the vehicle. In order to compensate for temperature induced variations in the sensor signal, the pressure sensor is equipped with compensation circuitry for compensating for gain and offset due to temperature variations.
In the conventional PODS, the ECU generally include power conditioning circuitry for the pressure sensor and the belt tension sensor, a microprocessor that processes a classification algorithm, and a temperature sensor (thermistor) for temperature compensation of other system components. Additionally, the ECU typically includes serial communication circuitry to communicate passenger occupancy status to a sensing and diagnostic module. The pressure sensor also contains temperature compensation circuitry to correct the gain and offset due to temperature variations. The employment of multiple temperature sensors introduces redundancy and costs to an automotive vehicle. Additionally, the temperature sensors generally require additional electrical circuitry and/or pin configurations to receive the temperature information.
Accordingly, it is therefore desirable to provide for a sensor, such as a pressure sensor, that allows for easy compensation of gain and offset due to temperature variations. In particular, it is desirable to provide for a method of transmitting sensor data, such as pressure and temperature data, to control circuitry in a manner that minimizes circuitry and pin connections.
In accordance with the teachings of the present invention, a sensor and method are provided for transmitting sensor generated output signals in a pulse width modulated output signal. According to one aspect of the present invention, the sensor includes a sensing element for sensing a sensor characteristic and temperature sensing circuitry for sensing a temperature characteristics. The sensor also includes output circuitry for outputting a pulse width modulated signal containing an indication of the sensor characteristic and the temperature characteristic. One of the sensor and temperature characteristics is transmitted as a function of pulse width, such as a duty cycle, of the pulse width modulated signal, and the other of the sensor signal and temperature characteristics is transmitted as a function of frequency of the pulse width modulated output signal.
According to another aspect of the present invention, the sensor includes a first sensing element for sensing a first characteristic and a second sensing element for sensing a second characteristic. The sensor also includes output circuitry for generating a pulse width modulated output signal containing the first and second characteristics. The first characteristic is transmitted as a function of pulse width, such as a duty cycle, of the pulse width modulated output signal, and the second characteristic is transmitted as a function of frequency of the pulse width modulated output signal.
These and other features, advantages and objects of the present invention will be further understood and appreciated by those skilled in the art by reference to the following specification, claims and appended drawings.
The present invention will now be described, by way of example, with reference to the accompanying drawings, in which:
A sensor is shown and described herein as a pressure sensor, according to one embodiment, for sensing pressure in a passenger occupant detection system (PODS). The sensor further transmits the sensed pressure characteristic and a temperature characteristic in a pulse width modulated output signal. The sensor transmits two characteristics, namely pressure and temperature, in a single pulse width modulated output signal. This is achieved, in the embodiment shown, by transmitting the pressure characteristic as a function of pulse width, such as the duty cycle, of the pulse width modulated output signal, and simultaneously transmitting the temperature characteristic as a function of frequency of the pulse width modulated output signal. While temperature and pressure are shown and described herein for transmitting in the pulse width modulated output signal, it should be appreciated that any two sensor characteristics may be transmitted in the pulse width modulated output signal according to the present invention. The sensor shown and described herein is not intended to be limited to the specific embodiment shown.
Referring to
The PODS 10 also includes a sensing and diagnostic module (SDM) 14 for performing sensing, diagnostics, and other processing of the PODS 10 including receipt and processing of the output signal generated by the analog pressure sensor 20. A data bus 16 is provided for communicating data between the analog pressure sensor 20 and the sensing and diagnostic module 14. The data communicated on data bus 16 includes the pressure and temperature characteristics transmitted via a pulse width modulated signal as described herein. One example of the data bus 16 includes a two-wire current modulated data bus. However, other single or multiple wire data buses may be employed.
The sensing and diagnostic module 14 also receives a seat belt pretension signal 18. The seat belt pretension signal 18 is generated with a seat belt pretensioner sensor and is indicative of the pretensioning condition of the seat belt.
Referring to
The temperature compensation circuit 24 may include a conventional compensation circuitry for compensating for sensor offsets at room temperature and temperature dependent sensor offsets. This may be achieved by controlling one or more current sources via a programmed function, such as a lookup table. The one or more current sources generate an electrical current that is dependent upon the temperature of the environment. Additionally, the temperature compensation circuit 24 may include a voltage-to-current converter for converting the differential voltage to a current signal, and a multiplier for compensating for room temperature and temperature dependent gain. The temperature compensation circuit 24 generates an analog voltage VIN indicative of the gain and offset compensated pressure. The voltage VIN is applied to a non-inverting input of comparator 28.
The analog pressure sensor 20 also includes a ramp voltage VRAMP generator 26 for generating a ramp voltage signal VRAMP. The ramp voltage VRAMP is applied to the inverting input (−) of comparator 28. The VRAMP generator generates the ramp voltage VRAMP in response to an input from an oscillator 32. The oscillator 32 generates an oscillation signal as a function of temperature via temperature dependent current sources IA and IB. Accordingly, the oscillator 32 generates a ramp voltage VRAMP having a frequency that is dependent on temperature.
The comparator 28 compares the analog voltage VIN to the ramp voltage VRAMP and generates an output signal OUT at output 30. The output signal OUT is a pulse width modulated output signal that transmits (communicates) the sensed pressure characteristic as a function of the pulse width, and more particularly as a function of the duty cycle, of the pulse width modulated output signal. Additionally, the output signal OUT transmits the sensed temperature characteristic as a function of the frequency of the pulse width modulated output signal. Accordingly, both pressure and temperature characteristics are transmitted in a single pulse width modulated output signal. The duty cycle of the pulse width modulated output signal is defined as the pulse width of the signal divided by the period of the signal. With the temperature characteristic transmitted as a function of frequency of the output signal, the pressure characteristic in the duty cycle is unaffected since it is a ratio of the pulse width to the period.
Referring to
The VRAMP generator 26 includes a pair of transistors Q10 and Q11 coupled between current sources IA and 1B. The junction between transistors Q10 and Q11 is coupled to an inverting input (−) of an op amp 40. The non-inverting input (+) of op amp 40 is coupled to a voltage supply of 2.5 volts. A capacitor C1 is coupled across op amp 40. The op amp 40 generates the ramp voltage VRAMP as its output.
Additionally, the VRAMP generator 26 includes a pair of comparators 42 and 44 and a flip-flop 46. The first comparator 42 compares the ramp voltage VRAMP to an upper voltage of about 4.75 volts, while the second comparator compares the ramp voltage VRAMP to a lower voltage of about 0.25 volts. The outputs of comparators 42 and 44 are supplied to inputs reset R and set S, respectively, of RS flip-flop 46. Flip-flop 46 generates, at its output Q, a binary an output signal UP which in turn is applied to control transistors Q10 and Q11.
The VRAMP generator 26 operates as follows. Initially, assuming the ramp voltage VRAMP is low, the flip-flop output labeled UP is asserted and the second current source IB is switched into the inverting (−) input terminal of op amp 40. The inverting (−) terminal is a virtual ground and all of the current is applied to capacitor C1. The ramp voltage VRAMP begins to rise at a frequency (f) defined by the following equation:
where I equals the input current IB, C is the integrator capacitor C1, and ΔV is the voltage range of the comparator voltage 4.75 volts minus 0.25 volts, which equals 4.5 volts. The ramp voltage VRAMP continues to increase in magnitude until it is greater than 4.75 volts and, at that point, the output of the first comparator 42 is asserted and the reset input R to the RS flip-flop 46 is asserted and its output Q goes low. This, in turn, turns off the second current source IB and turns on the first current source IA. The first current source IA equals the second current source IB and causes the integrator to ramp down at the same frequency set forth in the above equation. The ramp voltage VRAMP continues to ramp down until its voltage is less than 0.25 volts. At that time, the second comparator 44 is asserted and the set input S on RS flip-flop 46 is asserted such that its output Q causes signal UP to be high, thereby starting the process again.
It should be appreciated that the ramp voltage VRAMP continues to oscillate at the frequency described in accordance with the above equation. The frequency is directly proportional to the first and second current sources IA and IB, which are set equal to one another, according to the embodiment shown herein.
Referring to
The output of the current source is equal to current I1 and is applied as a current mirror to generate current I2 and current source IA. Current source IA is the current used in the VRAMP generator circuit 26. An additional current mirror is used to generate the second current source IB, such that current sources IA and IB are the same. The second current source IB is generated similar to the first current source IA, except the second current source IB is coupled to ground, rather than the supply voltage.
The current mirror 50 includes switches SW1 and SW2 and a digital control signal labeled FAST to generate a constant current regardless of temperature. The fast signal is used to produce a desired output frequency that is constant at startup and, thereafter, proportional to temperature following the startup mode. During startup, the FAST signal is asserted, and switch SW1 is switched on and switch SW2 is switched off. The voltage at node N1 moves from ground to voltage Vbg. Voltage Vbg is the band gap voltage and is approximately equal to 1.25 volts, according to one example. The band gap voltage Vbg is generated in an on-chip regulator circuit, according to one embodiment. The voltage at node N2 is equal to voltage Vbg minus Vbe1. Because Vb3 has a minus two (−2) millivolt per degree Celsius (−2 mV/° C.) slope, the voltage on node N2 increases at a rate of two millivolt per degree Celsius (2 mV/° C.), thus producing a positive temperature coefficient (TC) current source. The collectors of transistors Q1 and Q2 are connected together and are applied to current mirror I1. The resistor R1 and R2 are established such that the resultant current source I1, equal to the sum of the negative and positive temperature coefficient current sources, has a zero temperature coefficient output. This generates a current that does not change with temperature.
The output of ramp voltage VRAMP is a triangular waveform with a fifty percent (50%) duty cycle that is controlled by the current sources IA and IB, as shown in
When the FAST input is deasserted, the current source has a known negative temperature coefficient producing a frequency that is inversely proportional to temperature. The resultant output labeled OUT is a pulse width modulated output signal having its duty cycle determined by the pressure output signal VIN. As the pressure sensed output VIN changes, the duty cycle of PWM signal OUT likewise changes.
In the example illustrated in
Referring to
Accordingly, the sensor pressure and temperature characteristics are advantageously transmitted simultaneously in a pulse width modulated output signal without requiring large amounts of additionally circuitry and connecting pins. This advantageously eliminates the need for a separate temperature sensor, such as may be found in the electronic control unit of a passenger occupant detection system, thus resulting in cost savings. Additionally, the resolution of the data is determined by the clock rate of a microprocessor in the passenger occupant detection system electronic control unit. Higher clock rates correlate to more resolution. This allows for enhanced system performance without a modification to the passenger occupant detection system unit, since microprocessors generally have a timer control system, and thus, the circuit interface does not require specialized circuitry.
It will be understood by those who practice the invention and those skilled in the art, that various modifications and improvements may be made to the invention without departing from the spirit of the disclosed concept. The scope of protection afforded is to be determined by the claims and by the breadth of interpretation allowed by law.