Abstract:
A speed and direction detector for rotating bodies such as gears (10) including a pair of spaced sensors (14) mounted adjacent the gear teeth (12) to develop phase-shifted alternating signal waveforms, and a decoder (20) to develop a sequence of output signal conditions (S0-S3) depending upon the relation between the alternating waveform values. Signal stage memories (26, 28, 30, 32, 34, 36) utilizing flip-flops and gates connect the decoder outputs to an up/down counter (42, 44) which is incremented or decremented according to gear rotation direction only if a complete signal condition sequence occurs.

Description:
DESCRIPTION 
     TECHNICAL FIELD 
     This invention relates to systems for detecting the speed and direction of motion of a moving part by performing logic functions on signal level transitions which are generated as portions of the part travel past a sensor. The system is capable of distinguishing between signals which result from substantially continuous motion of the part and signals which result from intermittent motion reversals or &#34;jitter&#34;. 
     BACKGROUND ART 
     It is known to determine the motion of a part such as a rotating gear, wheel, or shaft by generating a signal exhibiting alternately opposite transitions between two discrete signal levels as a surface of the part travels past a sensor. Such a signal may be generated by locating a magnetic pickup adjacent the periphery of a gear such that an electrical signal of varying amplitude is produced in the pickup as the gear teeth rotate. The speed of rotation may be readily determined as a function of rate of occurrence of the signal transition. See for example U.S. Pat. No. 4,028,686, issued June 7, 1977 to Michael A. Wilson et al and the prior art cited therein. 
     In a system of the type described above, signal transitions can result not only from continuous rotation of the gear past the magnetic pickup but also from &#34;jitter&#34;; i.e., intermittent rotation in alternately opposite directions wherein a given gear tooth simply moves back and forth past the magnetic pickup. To distinguish between continuous motion and &#34;jitter&#34; the aforementioned patent to Wilson et al teaches the use of multiple sensors to generate a plurality of phase-shifted signals each representing motion of the same part and the logical combination of those signals to produce a sequence of related signal quantities. True continuous motion is indicated only by the occurrence of a complete sequence of the related signals, a partial sequence being taken as the result of &#34;jitter&#34;. 
     The system of Wilson et al described above exhibits the disadvantage of requiring three or more sensors each with its attendant signal paths and magnetic pickup means. Moreover, the system of Wilson et al does not yield information identifying the direction of part motion or the net travel of a part moving for a significant period of time in one direction and later reversing to move for a significant period of time in the opposite direction. 
     The U.S. Pat. No. 4,142,152, issued Feb. 27, 1979 to Fincher teaches that the direction of movement of a rotating part can be obtained using only two sensors. However, the rotating part must itself be specially constructed so as to exhibit magnetic sections of precise circumferential length such that the two spaced sensors can be simultaneously actuated by a single magnetic section. 
     The present invention is directed to overcoming one or more of the problems as set forth above. 
     DISCLOSURE OF INVENTION 
     In one aspect of the invention a system is provided for monitoring the motion of a conventional dynamic part such as a rotating gear by generating two phase-shifted signals exhibiting transitions between discrete signal levels. The system distinguishes between continuous motion and &#34;jitter&#34;, and, in addition, yields information pertaining to the direction of motion. In general, this is accomplished in a system which comprises sensor means for generating first and second phase-shifted signals which vary cyclically between opposite signal levels at a rate dependent upon the speed of part motion, decoder means connected to receive the first and second phase-shifted signals for generating a sequence of discrete output quantities representing different relationships between the input signal levels, an up/down counter, and logic means interconnecting the output of the decoder means to the counter in such a fashion as to count up when the decoder output sequence occurs in one order, to count down when the decoder output sequence occurs in the opposite order, and to refrain from counting at all unless and until a complete sequence of decoder outputs occurs. 
    
    
     BRIEF DESCRIPTION OF DRAWINGS 
     FIG. 1 illustrates an embodiment of the present invention in a system for monitoring the speed and direction of a rotating gear. 
     FIG. 2 is a schematic circuit diagram of a preferred signal generating means for use in the embodiment of FIG. 1. 
     FIG. 3 illustrates the preferred waveforms which are produced in the embodiment of FIG. 1. 
     FIG. 4 is a truth table for the decoder which is employed in the embodiment of FIG. 1. 
    
    
     BEST MODE FOR CARRYING OUT THE INVENTION 
     FIG. 1 illustrates an embodiment of the invention which monitors the speed and direction of rotation of a gear 10 having peripheral teeth 12. The system comprises a pair of magnetic sensors 14a  and 14b which are disposed closely adjacent the gear teeth 12 to generate respective first and second signals which alternate between discrete signal levels as the gear teeth 12 rotate past the sensors 14a and 14b. Line A of FIG. 3 illustrates the preferred signal waveform produced by the sensor 14a and line B of FIG. 3 illustrates the preferred waveform of the sensor 14b. The phase-shifted relationship between the signals appearing in FIG. 3 is the result of the physical spacing between the sensors 14a and 14b measured along a line tangent to the direction of motion of the gear teeth 12. 
     The signal output of sensor 14a is connected through a signal shaping network 16 and a low pass filter 18 to the A input of a two-to-four line decoder 20 such as CD 4555. Similarly, sensor 14b is connected through signal shaping network 22 and low pass filter 24 to the B input of decoder 20. The low-pass filters 18 and 24 protect against high frequency noise. Shaping networks 16 and 22 square up the more sinusoidal signals from the pickup coils of sensors 14a and 14b. Decoder 20 responds to the levels of the waveforms applied to the A and B inputs thereof and to the relationship between said levels to produce a sequence of four discrete output signals identified in FIG. 1 as S0, S1, S2 and S3. Assigning the discrete levels of the waveforms at the A and B inputs of decoder 20 binary signal values of &#34;1&#34; and &#34;0&#34;, the output state of the decoder 20 is as represented in the truth table of FIG. 4. 
     The outputs S0 through S3 of decoder 20 are connected through appropriate conductors to logic means which interpret the decoder outputs as well as the order in which said outputs occur to determine the speed and direction of rotation of the gear 10 relative to the sensors 14. This logic means comprises a first state memory including NOR gates 26 and 28 which are cross-connected to form a bistable circuit, a middle state memory comprising flip-flops 30 and 32 and a third state detector comprising AND gates 34 and 36 and a third state clock memory including NOR gates 38 and 40 which are cross-connected to form a bistable circuit. Middle state memory flip-flops 30 and 32 may be implemented using integrated circuits CD 4013 and the combination of gates 34, 36 and 38 may be implemented using half of integrated circuit CD 4085. The output of gate 40 is connected to the clock input of counters 42 and 44, each of which may be implemented using a CD 4029 integrated circuit. Counters 42 and 44 are &#34;up/down&#34; counters, meaning that they may be incremented or decremented in accordance with the state of a signal applied to the U/D inputs of said counters by middle state memory flip-flop 30 as hereinafter described. 
     Eight outputs of counters 42 and 44 are connected by means of bus 46 to a processor 48 which is programmed to generate read commands and to interpret the 8-bit counter contents word to determine the net rotational displacement of gear 10. Processor 48 determines the net direction of rotation by the state of &#34;signbit&#34; inverter 114 and the speed of rotation as a function of the binary number represented by the 8 bits of counters 42 and 44 in a given time period. Processor 48 produces counter read signals on line 50, said signals being applied to the PE (preset) inputs of counters 42 and 44 by way of line 54 to reset the counters 42 and 44 to their initial state after reading. Counter 42 has the &#34;carry-out&#34; pin connected via inverter 121 to the &#34;carry-in&#34; pin of counter 44. The carry-out of counter 44 is connected directly to the carry-in of counter 42. 
     It will be appreciated that the output of a conventional magnetic coil sensor does not exhibit a sharp square waveform of the type preferred for digital circuit operation. Rather, it is sinusoidal in character and contains noise of a higher frequency super-imposed thereon. Signal shapers 16 and 22 square off the sensor waveforms in accordance with a comparison to a DC reference. These square up waveforms still contain unwanted noise pulses of very short duration, such noise pulses being filtered out by circuits 18 and 24. 
     The detailed interconnections between the components of the embodiments of FIG. 1 will now be described. The S3 output of decoder 20 is used as an initialization signal and is connected by way of line 56 to the reset input of each of the middle state memory flip-flops 30 and 32 to ensure that these flip-flops are reset whenever an input signal condition of &#34;00&#34; occurs. The S3 output is also connected by way of line 58 to one of the inputs of third state memory 38 and 40. The occurrence of a high signal value at S3 thus terminates any previous clock signal and ensures a low output from gate 40 to prevent a clock signal pulse from reaching either of the counters 42 and 44. 
     The S0 output is connected by way of line 60 to an input of NOR gate 26 and by way of line 62 to an input of AND gate 36. The S2 signal is connected by way of line 64 to an input of NOR gate 28 and by way of line 66 to an input of AND gate 34. Finally, the S1 output of decoder 20 is connected commonly by way of line 68 to the clock inputs of flip-flops 30 and 32 and also by way of line 70 to an input of NOR gate 40. In addition to being cross-coupled as previously mentioned, NOR gates 26 and 28 have their outputs connected to the data inputs of flip-flops 32 and 30 respectively to set those flip-flops in accordance with which of the S 0  and S 2  signals occur first after the S 3  signal, the order of occurrence of these two signals being determinative of the direction of gear rotation. Flip-flop 30 will be high if S 0  occurs after S 3  indicating forward motion and low if S 2  occurs. The output of flip-flop 30 is connected by way of line 72 to the count direction inputs of counters 42 and 44 and also to one of the inputs of AND gate 34 in the third state detector. The output of flip-flop 32 is connected to an input of AND gate 36, the other inputs to both gates 34 and 36 having been previously described. The outputs of AND gates 34 and 36 are connected as inputs to NOR gate 38, which acts as a latch circuit, since the output of NOR gate 40 is connected back by way of line 74 to the third input of NOR gate 38. The three inputs to NOR gate 40 comprise S 1 , S 2 , and the inverted value of its own output via line 74 and gate 38. The output of NOR gate 40 is connected to the clock inputs of counters 42 and 44. Thus the clock goes high on state S 1  if and only if S 0  or S 2  has followed S 3 . 
     The read output signal line 50 is connected through inverter 76 and R/C time delay circuit 78, 80 to one input of NOR gate 82, and to decoder 20 through inverter 52. An uninverted read signal is connected to the other input of gate 82. The output of gate 82 is connected by way of line 54 to the preset enable input of each of the counters 42 and 44 to preset them a time delay after the read has occurred. 
     A preferred implementation of the signal generating sensor 14 is shown in FIG. 2 to comprise an oscillator 90 having a tank circuit 106 in the form of a conductor which is linked through a magnetic core 98 imbedded in a plastic sensor body 102. As is further and more fully described in copending application, U.S. Ser. No. 150,252 filed Feb. 4, 1980, entitled &#34;Velocity Sensing System&#34;, movement of the gear teeth 12 past the sensor body 102 varies the quantity of flux from permanent magnet source 100 which links the core 98 and hence tunes and detunes the tank circuit 106 of oscillator 90 to produce a recurring and alternating frequency shift between high and low frequency levels. The output of oscillator 90 is connected to an input of phase detector 92 along with a center frequency signal from voltage controlled oscillator 94. The high and low frequency components from oscillator 90 occur on opposite sides of the center frequency from voltage controlled oscillator 94 and hence produce a substantially digital signal output from phase detector 92; i.e., a signal having substantially the waveform shown in either of lines A or B of FIG. 3. The output waveform is shaped by shaping circuit 96 to form a square wave or rectangular wave signal which may be applied directly to the A input of decoder 20 as shown in FIG. 1. Core 98 is the counterpart of sensor 14a in FIG. 1 and adjacent core 104 is the counterpart of sensor 14b in FIG. 1, it being understood that the line shown linking core 104 forms the tank circuit for a second oscillator 108, phase detector 110, and shaping network 112 and VCO 113 which produce a second waveform in accordance with the circuit description already given. 
     INDUSTRIAL APPLICABILITY 
     The operation of the circuit of FIG. 1 will now be described with reference to application in determining the speed and direction of rotation of a motor drive gear in an hydraulic motor unit for a heavy offroad vehicle. Rotation of gear 10 in one direction represents forward motion of one side of the vehicle and rotation of the gear 10 in the opposite direction represents reverse movement of that same side of the vehicle. Track vehicles which are steered by different rates and/or directions of rotation of independent left and right drive motors comprise two systems of the type described herein, one on each side of the vehicle. 
     Assuming rotation of motor gear 10 in a forward direction, the waveforms illustrated in FIG. 3 of the drawings result. These waveforms are shaped and filtered by circuits 16, 18, 22 and 24 and applied as input signals to the A and B inputs of decoder 20. Whenever the &#34;00&#34; conditions results, output S3 goes high applying a reset signal to both flip-flops 30 and 32. In addition, an input is applied to gate 40 to reset the clock memory and prevent the clock signal from reaching either of the counters 42 and 44. From state S3 decoder may either advance to S0 or regress to state S2. Assuming forward motion the output of decoder 20 advances to state S0 setting the output of gate 28 to a &#34;1&#34;. This applies a data signal of &#34;1&#34; to the input of flip-flip 30 and &#34;0&#34; to the data input of flip-flop 32. A &#34;1&#34; also appears at one of the inputs to AND gate 36 but has no effect since each of the middle state flip-flops 30 and 32 are temporarily reset. Again no clock is passed to the counters 42 and 44 since the block memory (38 and 40) is reset. 
     Assuming continued rotation of gear 10, the decoder advances to state S1. Note that if &#34;jitter&#34; is occurring the decoder would regress to state S3 and the flip-flops 30 and 32 would simply be reset. However, advancing to state S1 clocks the data through flip-flop 30 applying a signal to the direction input (U/D) of counters 42 and 44 by way of line 72. 
     At this point decoder output S0 may reoccur holding all flip-flops 30, 32, 26 and 28 in their previous condition. In addition, gate 34 now has both inputs high to cause the clock memory (38 and 40) to become set. A high signal is transmitted from 40 to the clock inputs of each of the counters 42 and 44. This causes the counters to increment upwardly since the signal on line 72 is still high. 
     The low order counter 44 counts on each pulse whereas the high order counter 42 counts only when the carry-in (CI) input is low; i.e., when there is a &#34;carry-out&#34; indicated by a low on carry-out (CO) of counter 44. Counter 44 is prevented from counting when the counters 42 and 44 are full, by 121. The maximum count at the circuit output is thus represented by the binary number &#34;01111111&#34;, with the high bit inverted by 114. 
     The sequence for a downcount is the opposite of the sequence for an upcount. S2 following S3 arms flip-flop 32 rather than flip-flop 30 and the transition from decoder output state S2 to S1 causes the output of flip-flop 32 to become a &#34;1&#34; while the output of flip-flop 30 remains at zero. This sets the output counters 42 and 44 to the downcount mode by holding the signal on line 72 to the low condition when a transition to decoder output state S0 produces a count signal. 
     To read the counters 42 and 44 it is necessary to disable the counters to the extent of preventing a count change. Therefore, whenever a read occurs indicated by the output on line 50 going high, the decoder 20 is disabled due to the enable input via inverter 52 going high and all outputs S0 through S3 go low. This prevents any of the flip-flops from changing state and prevents any clock signals from being transmitted to the counters 42 and 44. When the signal on line 50 goes low, both inputs to gate 82 are low for a time period determined by the time constant of resistor 78 and capacitor 80 causing the output of gate 82 to pulse high. This presets the counters 42 and 44 to &#34;1000 0000&#34; and the circuit output to &#34;0000 0000&#34;, the first digit being inverted by inverter 114. The maximum forward count is &#34;0111 1111&#34; and the maximum reverse count is &#34;1000 0000&#34;. No counts will be lost during a read operation provided that it occurs rapidly enough to prevent a transition of more than one state from the decoder during the period that line 50 is high. 
     A net direction change can be obtained by eliminating the preset function from gate 82, if only a fixed plus and minus travel of gear 10 is anticipated such that counter overflow will now occur. 
     The circuit which has been described above is susceptible of application to areas other than vehicle speed and direction determination. It will be readily apparent to those skilled in the art that the system may be applied in any industrial application wherein the position of a gear, shaft or other angularly or linearly translating body must be accurately monitored and wherein it is important to distinguish between substantially continuous movement and &#34;jitter&#34;. Examples include position control systems for mass transit vehicles, elevators and similar devices, conveyors, robots, machine tools and article handling systems. In addition, it will be apparent to the skilled artisan that the hardwired circuit of FIG. 1 can be alternatively implemented using a microprocessor with sufficient memory and computational capability to perform the storage and logic functions of the process described herein. 
     Other aspects, objects and advantages of this invention can be obtained from a study of the drawings, the disclosure and the appended claims.