Background of the Invention
The present invention relates to a method of calibrating sensors and more particularly to a method of calibrating a potentiometric sensor used for sensing the position of a clutch pedal in a microprocessor controlled transmission system.
Commonly owned copending application Ser. No. 07/710,360 entitled Transmission Speed Matching control, discloses a microprocessor controlled off-road vehicle transmission wherein a clutch pedal is mechanically linked to a sensing potentiometer so that the voltage output from the potentiometer may be sensed to determine the position of the clutch pedal. The analog voltage output of the potentiometer is digitized by the microprocessor and compared with stored threshold values to determine when the clutch pedal is fully depressed, or when it is depressed below an intermediate threshold point or released above an intermediate threshold point.
Because there is a lack of uniformity between sensors and between linkages which mechanically link a clutch pedal to a sensor, the sensor in each system has to be individually calibrated after being initially installed. Furthermore, tolerances, aging, wear and other variations in a sensor and any associated linkage results in a lack of sensor calibration and periodic recalibration is required to insure that the sensor output signal accurately reflects the condition sensed. The recalibration procedure is not easily carried out by the average individual and, of course, requires special electrical test equipment.
Summary of the Invention
An object of the present invention is to provide a novel method and apparatus for automatically calibrating a sensor.
Another object of the invention is to provide a method and apparatus for automatically calibrating a potentiometric sensor each time the output of the sensor is sensed for a control purpose.
A further object of the invention is to provide a novel method and apparatus for calibrating a clutch pedal position sensing potentiometer, the calibration being automatically carried out while a vehicle is in use.
In accordance with the principles of the present invention, two range limit values are stored in a non-volatile memory at locations MIN.sub.-- NVM and MAX.sub.-- NVM so that they are not lost when power is turned off. When the system in which the sensor is located is turned on, MIN.sub.-- NVM and MAX.sub.-- NVM are retrieved from the memory, a constant DEC is subtracted from the value from MAX.sub.-- NVM and added to the value from MIN.sub.-- NVM to obtain range limit values which are saved at locations MAX and MIN, respectively. During subsequent operation of the system in which the sensor is located, each time the output of the sensor is sensed for a control purpose, it is digitized to obtain a clutch position value VAL. VAL is then compared with MAX and MIN. If VAL is greater than MAX then VAL is saved at MAX and the new value of MAX is transferred to the non-volatile memory location MAX.sub.-- NVM. If VAL is less than MIN then VAL is saved at MIN and the new value of MIN is transferred to the non-volatile memory location MIN.sub.-- NVM. If VAL is neither greater than MAX nor less than MIN then calibration is not required. When either MAX or MIN is changed any intermediate threshold point may be recalculated using constants stored in the non-volatile memory.
Other objects and advantages of the invention and its mode of implementation will become apparent upon consideration of the following description and the accompanying drawings.
Brief Description of the Drawings
FIG. 1 schematically represents a microprocessor controlled transmission system;
FIG. 2 illustrates a routine executed by the microprocessor to calibrate a clutch pedal position sensor; and
FIG. 3 is a diagram useful in understanding the operation of the invention.
Detailed Description of the Invention
For purposes of illustrating a preferred embodiment of the invention, FIG. 1 shows a microprocessor controlled transmission system for an off-road vehicle and including microprocessor 10, a transmission 12, a clutch pedal 14 and a sensor in the form of a potentiometer 16. One end of the potentiometer is connected to the microprocessor which supplies a reference voltage VREF to the potentiometer. The other end of the potentiometer is connected to ground. Clutch pedal 14 is linked to the wiper arm 18 of the potentiometer by a schematically represented conventional mechanical linkage 20. The wiper arm is connected to an analog input channel of the microprocessor 10. A further mechanical linkage 22 links the clutch pedal to a modulating valve (not shown) in the transmission 12.
The microprocessor 10 may be an 8061 program-controlled processor of the type used for automotive control purposes in products of the Ford Motor Company and includes conventional ROM and RAM memories and an analog input channel for sampling the voltage present at the wiper arm 18 and converting it to a digital value VAL. The microprocessor also includes a non-volatile memory 24 for saving values even though the vehicle ignition is turned off.
The transmission 12 as well as the features of the microprocessor 10 are described in the above-referenced copending application, the disclosure of which is incorporated herein by reference. As explained in that application, the transmission 12 includes synchronized couplers which are mechanically shifted via linkages 28 by shift levers included in operator controls 26. The transmission 12 also includes electro-hydraulic powershift clutches which are energized by signals from microprocessor 10 when the operator either shifts a lever or operates powershift controls included in the operator controls 26. Because of the manner in which the powershift clutches are automatically selected upon movement of a shift lever, special means are provided which permits an operator to depress the clutch pedal, shift a lever, change his mind and return the shifted lever to its original position before the clutch pedal is fully released, and have the transmission in the same gear that was in effect at the time the clutch pedal was depressed. This feature permits an operator to change his mind provided that the clutch pedal has not moved more than about 55% of the distance from its fully depressed position toward its released position. To determine if the clutch pedal has travelled about 55% of the distance from the fully depressed position to the released position a value PCLUTCH.sub.-- THR is stored in a RAM memory and compared with the digitized output of the clutch pedal potentiometer. It is therefore important that the output of potentiometer 16 accurately reflect the position of the clutch pedal 14. In the transmission system described in the above-mentioned patent application, at least one electro-hydraulic powershift clutch is located between the transmission input shaft and the shiftable couplers. The position of the clutch pedal is sensed and, when the clutch pedal is within 12% of its full scale travel distance from the fully depressed position, the fluid is dumped from the powershift clutches. This insures that the transmission is not driven at the time mechanical shifting takes place and thus reduces synchronizer wear. A digital value FCLUTCH.sub.-- THR stored in memory defines the 12% point. At certain times in its control program the microprocessor senses the output of potentiometer, digitizes it, and compares the digitized value with FCLUTCH.sub.-- THR to determine when the hydraulic fluid is released from the powershift clutches.
From the foregoing description it is obvious that if the clutch pedal linkage 20 shown in FIG. 1 should wear, or its adjustment is changed during servicing, or if the resistance of the potentiometer 16 should change, the wrong powershift gear might be selected or the transmission might be disconnected from the input drive shaft too soon or too late. In accordance with the principles of the present invention the microprocessor 10 periodically calibrates the potentiometer 16 and establishes new values FCLUTCH.sub.-- THR and PCLUTCH.sub.-- THR in a manner that is transparent to the operator.
FIG. 2 illustrates those portions of a program executed by the microprocessor to carry out the calibration. When the ignition is turned on, the microprocessor executes a power-up reset and initialization routine as is conventional. As part of the initialization the microprocessor, at step 40, retrieves two values MIN.sub.-- NVM and MAX.sub.-- NVM from the non-volatile memory 24. These values electrically define, in digital form, the initial depressed and fully released positions of the clutch pedal. As will be evident from the following description, MIN.sub.-- NVM and MAX.sub.-- NVM were values representing the fully depressed (MIN) and fully released (MAX) positions, respectively, of the clutch pedal at the time power to the system was turned off.
At step 42, the range is reduced by adding a value DEC to MIN.sub.-- NVM and subtracting the value DEC from MAX.sub.-- NVM to obtain two range limits MIN and MAX, respectively. Referring to line A of FIG. 3 it is seen that this reduces (electrically) the effective range of the clutch pedal to a small degree on the order of about 2%. The microprocessor 10 is now ready to calibrate the potentiometer.
After step 42 is executed, the microprocessor 10 begins execution of routines as described in the aforementioned application to control the powershift clutches in the transmission according to actuation of the operator controls 26. At various points in these routines the microprocessor must sample the output voltage of potentiometer 16 and digitize it to determine the clutch pedal position, i.e. depressed or released. The sampling and digitizing operations take place at step 43. After the output of the potentiometer is sensed and digitized to produce a value VAL indicating the clutch pedal position, step 44 compares VAL with MIN.
If step 44 shows that VAL is less than MIN, step 45 is executed to set MIN equal to VAL and then set MIN.sub.-- NVM equal to MIN. The routine then executes step 46 to calculate and store new threshold values PCLUTCH.sub.-- THR and FCLUTCH.sub.-- THR. For FCLUTCH THR this is accomplished by subtracting MIN from MAX, multiplying the difference by a constant K1, (12%) and adding MIN to the product. The new value of PCLUTCH.sub.-- THR is computed in a similar manner except that a constant K2 (55%) is used. The constants K1 and K2 are stored in a ROM so that they are not lost when power is turned off.
If the test at step 44 proves false, VAL is compared with MAX at step 47. If VAL is greater than MAX, step 48 is executed to transfer VAL to MAX and then MAX to MAX.sub.-- NVM. The routine then executes step 46 to calculate and store new values of PCLUTCH.sub.-- THR and FCLUTCH.sub.-- THR.
If the tests at step 44 and 47 both prove false, recalibration of the potentiometer is not required and PCLUTCH.sub.-- THR and FCLUTCH.sub.-- THR do not require correction. After step 46 or 47, the microprocessor proceeds with its normal control routine and makes the decision which required it to sense the potentiometer output at step 43.
The next time the microprocessor requires knowledge of the position of the clutch pedal it repeats that portion of the routine represented by steps 43-48. The potentiometer is thus repeatedly calibrated during normal operation without requiring any special action to be taken by the operator. Since the latest range end values are always saved at MIN.sub.-- NVM and MAX.sub.-- NVM in the non-volatile memory, they are available even after the ignition system is turned off and later turned on.
Although the sensor range is initially decreased at start-up (step 42) by a small amount, the extremes quickly expand back out to the actual values if a change in the range of the potentiometer output has not occurred.
FIG. 3 graphically depicts the recalibration. The fully physically released position of the clutch pedal is represented by the digitized value MAX. However, MIN defines the electrically fully depressed state of the clutch pedal. As is evident by comparing lines (B) and (C) of FIG. 3, the clutch pedal may be physically depressed beyond MIN. Step 46 of the routine shown in FIG. 2 recalculates the values FCLUTCH.sub.-- THR and PCLUTCH.sub.-- THR so that the distance from MIN to FCLUTCH.sub.-- THR is 12% of the distance from MIN to MAX and the distance from MIN to PCLUTCH.sub.-- THR is 55% of the distance from MIN to MAX.
While a specific preferred embodiment of the invention has been described by way of illustration, it will be understood that the present invention is not limited to the calibration of potentiometers. The basic principles of the invention are equally applicable to other types of sensors, or to sensors for sensing conditions other than clutch pedal position. It is intended therefor to be limited only by the scope of the appended claims.