Meter driving method

Abstract: A meter driving system receiving pulse signals from a sensor is counting frequencies (F in ) or periods of the input signals. The counted results are weight-averaged to determine an output value (F n ) and a value (F m ) to be indicated. In a weight-averaging process, a weight (α) is varied in response to the frequencies (F in ) of the input signal. Thus, the meter can give a precise indication regardless of varying input frequencies.

Description: BACKGROUND OF THE INVENTION 1. Field of the Invention: This invention relates to a method for driving a meter having a pointer actuated by a magnetic field. 2. Description of the Related Art: The velocity or engine speed of a vehicle is usually indicated by a pointer of a speedmeter or a tachometer. A cross-coil meter is widely used for this purpose. FIG. 2 of the accompanying drawings shows the operation principle of such a cross-coil meter. The cross-coil meter includes a magnet M and two exciting coils Ls and Lc. The coils Ls, Lc generate magnetic fields having intensities according to currents supplied by a driving system (not shown). These two coils are arranged to be perpendicular to each other. A combined magnetic field composed of the magnetic fields of these coils Ls, Lc is controlled by regulating the currents which are applied to these coils. The magnet M is located so as to be actuated by the combined magnetic field. When it is actuated, the magnet M generates torque, angularly moving according to the torque. A non-illustrated pointer is connected to the magnet M to deflect in response to the angular movement of the magnet M. The pointer deflects according to the currents applied to the coils Ls, Lc. Therefore, when the currents to the coils Ls, Lc change in response to the measured vehicle or engine speed, the pointer deflects to indicate the varying vehicle or engine speed. FIG. 3 of the accompanying drawings shows a speedometer for a vehicle. In FIG. 3, a pointer I is connected to the magnet M of FIG. 2. An angle ϑ corresponds to the angle by which the magnet M is moved due to the combined magnetic field generated by the coils Ls, Lc. A pulse output type sensor is usually used for detecting the vehicle or engine speed. Some speed sensors generate pulse signals having different frequencies according to detected speeds. When a cross-coil meter is set in motion by an output from such a sensor, it is necessary to use a counter for counting the frequency of pulses, a modulator for performing the pulse width modulation (PWM) according to the counted results of the counter, a driver for supplying PWM-modulated currents to the coils Ls, Lc, and so forth. To deflect the pointer I by the angle ϑ according to the value detected by the sensor, a ROM or the like should be used to correspond the counted frequencies with the deflection angle ϑ. Usually inputs from the sensor are variable to a certain extent. To operate the cross-coil meter, such variable inputs should preferably be stabilized to prevent unfavorable deflection of the pointer I. For this purpose, the counted frequency of pulses are conventionally averaged in a specified period of time, so that the deflection angle ϑ of the pointer is controlled by a mean value. A frequency Fn at a certain time point is determined by the following formula. Fn = (F in + F n-1 + F n-2 + ... + F n-a )/(a + 1) where a is an integer, F in is an input frequency, F n-1 is a frequency which serves as a base for determining the deflection angle ϑ at the time point n-1, F n-2 is another frequency serving as another base for determining the deflection angle ϑ, and so forth. When this equation is employed, the calculation results (F n-1 to F n-a ) should be obtained until the time point a, which means a slow response. To improve the response, a formula for obtaining a weight average has been studied and in use now. F n = αF n-1 + (1 - α)F in where α is a constant (0 < α < 1). However, even when F n is obtained by using the second formula, the foregoing calculation has to be repeated each time a new frequency is counted by the counter, resulting in too quick a response in some cases, or too slow a response in other cases. For example, when a cross-coil meter is operated by a sensor for outputting high frequency pulses, the number of calculations per unit time is increased to make the pointer I fluctuate extensively. Otherwise, the number of calculations per unit time becomes too few to reduce the pointer's responsiveness. From EP-A-0 379 816 a control circuit is already known to be used, for example, to drive a crossed coils meter. A numeric signal is representative for the signal frequency and a clock frequency is used for determining the value thereof. EP-A-0 413 891 discloses an input circuit to a crossed coils meter. The input frequency is converted to a proportional current for the crossed coils meter. Further, the input current is made independent on the actual frequency in case said frequency is low. From US-A-4 485 452 a speed measurement system is known. A measurement period is exactly related to a count of strobe pulses. In addition, JP-A-5957163 discloses a speed measuring apparatus wherein clocks are applied from a reference signal generation circuit. A processing circuit computes the speed values and a memory circuit memorizes them. SUMMARY OF THE INVENTION It is an object of the invention to provide a method for driving a meter very responsive to any variation in input frequency by simultaneously preventing unnecessary fluctuation of its pointer. According to the meter driving method of the invention the following steps are carried out: measuring the period or the frequency of a sensor signal in order to obtain a first value: calculating an output value on the basis of said first value by combining a preceding output value and said first value, both of them are influenced by a weight such that fluctuation of the output value is suppressed when high sensor signal frequencies are measured, whereas fluctuation of the output value is enhanced when low sensor signal frequencies are measured; calculating an indication value on the basis of said output value and a preceding indication value; and using said indication value in order to drive a meter. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram showing the configuration of a drive meter; FIG. 2 shows the principle of a cross-coil meter; and FIG. 3 shows an example of an indication given by a speed meter. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT FIG. 1 shows a driving system for operating a meter in accordance to the invention. The driving system receives signals from a pulse output type sensor to drive a cross-coil meter 26. Signals from the sensor are firstly counted by a binary counter 10, which recognizes a period of the received signals based on reference clock signals generated by a reference clock generator 12. When the signals from the sensor have the period T in , the binary counter 10 counts the number of pulses generated between the rise and immediate fall of the signals from the sensor. Thus, a half period T in /2 of the sensor signals is detected with specified precision. The binary counter 10 may count the number of reference pulses generated between the fall and immediate rise of the signals from the sensor. The binary counter 10 may also count intervals between falls of the signals from the sensor. The driving system of FIG. 1 can perform these counting operations. A latch 14 latches the counted results of the binary counter 10. Latch timing corresponds to the timing of rise or fall of the signals from the sensor. The rise or fall timing of the signals is selected as the latch timing depending on which of the three foregoing operations is executed by the binary counter 10. The value latched by the latch 14 directly or indirectly represents the period T in of the signals outputted by the sensor. Since the period T in is a reciprocal of a frequency F in , the value latched by the latch 14 is a value of the frequency F in . The reference clock signals are also supplied to a CPU 16 and PWM modulator 22 for synchronization, as described later. The CPU 16 performs the calculations based on the value latched by the latch 14, i.e. data representing the period T in or frequency F in of the signal outputted by the sensor, thereby controlling the indication to be given by the cross-coil meter 26. The CPU 16 performs its control operation according to a preset program. Specifically, the CPU 16 is connected to a ROM 20 for storing the calculation program. The ROM 20 stores not only the calculation program but also various coefficients (such as β and α m ) to be used for the calculations. The CPU 16 executes the control calculations while storing in RAM 18 intermediate aspects or results of the calculations. The CPU 16 controls the indication of the cross-coil meter 26 as follows. Firstly, the CPU 16 reads the data latched by the latch 14. The data represent the period T in or frequency F in of the signals outputted by the sensor as described above. Then, the CPU 16 determines the output value F n based on the period T in or frequency F in . The CPU 16 determines the output value F n by using a response coefficient β. The following formula is used for this purpose. F in = 1/T in (1) α = βF in /(βF in + 1) (2) F n = αF n-1 + (1 - α)F in (3) where β is a constant. The CPU 16 determines the output value F n based on the frequency F in by using the formulas (2) and (3). As can be seen from the formula (2), when the frequency F in of the pulse signals from the sensor is high, the weight α of F n-1 in the formula (3) is approximate to 1, i.e. the weight becomes heavy. On the contrary, the weight (1-α) of the frequency F in becomes light. The output value F n of the CPU 16 tends to deviate from the frequency F in of the pulse signal as the frequency F in becomes high. The CPU 16 stores the output value F n as F n-1 in RAM 18. In other words, F n-1 is renewed in the RAM 18. The CPU 16 also calculates and outputs a value F m to be indicated. The PWM modulator 22 has a register for storing the value F m to be indicated. This register is not shown in FIG. 1. The value F m is calculated by using the weight-averaging formula (4). F m = α m F m-1 + (1 - α m )F n (4) where α m is a constant. The CPU 16 uses the value F m to renew the contents of a register of the PWM modulator 22. The PWM modulator 22 determines a deflection angle ϑ of the cross-coil meter 26 based on the value F m which is calculated by the CPU 16 and stored in the register of the PWM modulator 22. As described above, the period or frequency of the pulse signals from the sensor corresponds to the value detected by the sensor, e.g. speed. Therefore, the CPU 16 calculates the value F m by using the foregoing formulas, determining the deflection angle ϑ of the cross-coil meter 26 so that the detected value of the sensor is indicated by the cross-coil meter 26. The PWM modulator 22 determines the deflection angle ϑ by referring to a table (not shown) in the memory. The PWM modulator 22 generates two kinds of signals, sine and cosine signals, based on the deflection angle ϑ, outputting these signals to a driver 28. The driver 28 operates the cross-coil meter 26 in response to the received sine and cosine signals. Specifically, the PWM modulator 22 supplies the driver 28 with the sine and cosine signals representing the absolute values of sin ϑ and cos ϑ. Then, the driver 28 provides the two coils of the cross-coil meter 26 with currents having effective values corresponding to the two PWM signals, respectively. The driver 28 requires information concerning the signs of sin ϑ and cos ϑ. A steering logic 24 determines the signs of sin ϑ and cos ϑ based on the output value F n and the value F m (to be indicated), thereby supplying them to the driver 28. When the value F m to be indicated is in the first quadrant, both sin ϑ and cos ϑ are positive. Therefore, the steering logic 24 sends the driver 28 the signals denoting that the signals sin ϑ and cos ϑ are positive. Receiving the sine and cosine signals from the PWM modulator 22 and signals representing the signs of these signals, the driver 28 operates the cross-coil meter 26 accordingly. In the foregoing embodiment, the weight coefficient α in the formula (3) is determined according to the frequency F in when the CPU 16 calculates the output value F n . The higher the frequency F in , the less the cross-coil meter 26 is responsive to the input from the sensor so as to indicate the value F m precisely. It is therefore possible to overcome the inconvenience with conventional meters that the higher the input frequency F in , the more extensively the meter 26 tends to deflect its pointer. The lower the frequency F in , the more the meter 26 becomes responsive to the input from the sensor so as to give an accurate indication of the value F m .

Claims: A meter driving method comprising the steps of: measuring the period (T in ) or the frequency (F in ) of a sensor signal in order to obtain a first value; calculating an output value (F n ) on the basis of said first value by combining a preceding output value (F n-1 ) and said first value, both of them are influenced by a weight (α) such that fluctuation of the output value (F n ) is suppressed when high sensor signal frequencies are measured, whereas fluctuation of the output value (F n ) is enhanced when low sensor signal frequencies are measured; calculating an indication value (F m ) on the basis of said output value (F n ) and a preceding indication value (F m-1 ); and using said indication value (F m ) in order to drive a meter (26, 28). The meter driving method as claimed in claim 1, characterized in that the output value (F n ) is calculated by using the following formula: F n = αF n-1 + (1 - α) F in wherein F n-1 is the preceding output value, F in the sensor signal frequency and α the weight. The meter driving method as claimed in claim 2, characterized in that the weight (α) is determined by the following formula: α = β · F in / (βF in + 1 ) wherein F in is the sensor signal frequency and β is a constant. The meter driving method as claimed in one of the claims 1 to 3, characterized in that said indication value (F m ) is calculated by weight-averaging the preceding indication value (F m-1 ) and said output value (F n ). The meter driving method as claimed in claim 4, characterized in that the indication value (F m ) is calculated by using the following formula: F m = α m F m-1 + (1-α m ) F n wherein F m-1 is the preceding indication value, F n is the output value and α m is a constant. The meter driving method as claimed in one of the claims 1 to 5, characterized in that for measuring the frequency or the period of the sensor signal reference clock signals having a predetermined reference period are counted within a predetermined number of the periods of said sensor signal. The meter driving method as claimed in one of the claims 1 to 6, characterized in that the indication value (F m ) is used to determine a deflection angle (Θ) of a pointer (1) of said meter (26, 28). The meter driving method as claimed in claim 7, characterized in that in accordance to the determined deflection angle (Θ) effective values of exciting currents for a plurality of exciting coils (Ls, Lc) are calculated. The meter driving method as claimed in claim 8, characterized in that signs of the exciting currents are determined in accordance to the determined deflection angle (Θ).

Inventors: MURASE HIROSHI C O ROHM CO LTD, MURASE, HIROSHI, C/O ROHM CO.,LTD.
Applicants: ROHM CO LTD, ROHM CO., LTD.
Application year: 1992
Main classification: G01D3
IPC codes: G01R7, G01P3, G01D13, G01R5, G01R15