Abstract:
A fiber optic detector head senses a light reflective or transmissive pattern on an encoder disk rotated by an engine shaft. The pattern results in four different light levels which are translated by a detector into an electrical pulse train having four different voltages including a reference or background voltage. One light level is reserved for an index mark, another level for cylinder position marks and still another level for finer measurement of position and speed between the cylinder marks. Patterns encoded into the single pulse train are decoded by a microprocessor to provide specific engine cylinder position information as well as engine speed information.

Description:
FIELD OF THE INVENTION 
     This invention relates to apparatus for obtaining information on shaft position and particularly to electro-optical apparatus for sensing engine speed and cylinder position. 
     BACKGROUND OF THE INVENTION 
     Electronic control of machines frequently requires information about the machine operation to be furnished to the control circuit. The absolute angular position of a rotating shaft and the shaft speed are data which are used in many control methods. In particular, ignition or fuel injection control of internal combustion engines makes use of information about the engine speed, even on an instantaneous basis, and the cylinder position. Then it is possible for the fuel or ignition circuit to apply fuel or ignition voltage to the proper cylinder at the precise time for optimum performance. 
     It is known to use magnetic pickups with a gear or other toothed wheel to sense the rotation of an engine shaft such as a cam shaft or crank shaft, and to use a special index tooth or a separate pickup to establish the shaft position once each revolution. Similar arrangements using optical pickups with optical encoder disks are also known. Such disks have tracks of black and white patterns or transparent and opaque patterns to furnish binary data. Optical encoder disks with many tracks furnish several bits of digital information which makes accurate position information possible. This requires many optical detectors, as well, thereby making such a system expensive. Such a device is shown in the U.S. Pat. No. 3,757,755 to Carner which is applied to engine control. A simpler apparatus is shown in U.S. Pat. No. 4,604,725 to Davies et al; a code track and a timing track are used along with two, or preferably four, fiber optic pickups to obtain position information only. Both of these patent disclosures specify binary codes on the encoder disk. This is the usual case since binary codes are easy to read and traditionally are thought to be readily interfaced with digital control circuitry. On the other hand binary codes using &#34;1&#34; and &#34;0&#34; as information bits are limited in the amount of information content. 
     The need for sufficient information for accurate control purposes has led to complex designs as discussed above, yet it is generally acknowledged that simple designs are superior, if they accomplish the required function, because they are generally less expensive, more trouble free, and easier to maintain. In this invention it is recognized that by departing from binary codes, information may be compacted so that a single encoded track carries both speed and angular position information, and yet traditional binary digital circuitry can decode the information quickly and efficiently. Decoding the information will require processing, usually by a microprocessor shared by other functions such as engine spark and fuel control, and thus it is highly desirable that the processor burden be minimized. 
     SUMMARY OF THE INVENTION 
     It is therefore an object of the invention to provide an optical and electronic apparatus for sensing engine speed and cylinder position using only a single optical pickup. It is a further object to provide such an apparatus for any shaft speed sensor and position detector. Still another object is to provide such an apparatus which requires minimal processing to render useful data. 
    
    
     DESCRIPTION OF THE DRAWINGS 
     The above and other advantages of the invention will become more apparent from the following description taken in conjunction with the accompanying drawings herein like references refer to like parts and wherein: 
     FIG. 1 is a schematic diagram of an engine speed and position detector according to the invention; 
     FIG. 2 is a front view of an encoder disk for the apparatus of FIG. 1 showing the encoder pattern according to the invention; 
     FIG. 3 is a cross section view taken along lines 3--3 of FIG. 2 showing a section of the disk and sensing head according to the invention; 
     FIG. 4 is a cross section view like that of FIG. 3 showing an alternative form of the encoder disk and sensing head; 
     FIG. 5 is a detector output voltage wave form graph; 
     FIG. 6 is a flowchart of the decoding logic used by the detector of FIG. 1; and 
     FIG. 7 is another embodiment of an encoder disk having a different encoder pattern according to the invention. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     FIG. 1 shows a shaft speed and position detector applied to an automotive engine 8 comprising a encoder disk 10 mounted on a cam shaft 12 for rotation with the shaft, an optical sensing head 14 closely spaced from the disk 10, the head 14 comprising a pair of optical fibers 16 and 18 respectively coupled to an LED light source 20 and a photodiode detector 22, and a decoder circuit 24 connected to the output of the detector 22. The LED provides light to the head 14 which illuminates a spot on the encoder disk and light reflected from the spot is picked up by the fiber 18 which transmits the light to the detector 22 where the received light intensity is translated into an output voltage. While the encoder disk 10 is coupled to the cam shaft 12, it can be driven instead by another engine shaft such as the crank shaft 13, or the distributor shaft (not shown). The detection scheme as described thus far is well known and further detail is not deemed to be necessary except as described below. On the other hand, the particular encoding arrangement is new and provides advantages not heretofore realized in shaft sensor systems. 
     As shown in FIGS. 2 and 3, the face of the encoder disk 10 incorporates a plurality of spaced reflective segments 30 of equal size arranged in a circular track 32 on a nonreflective or absorbing background 34. The track is aligned with the sensor head 14 so that light from the head illuminates a spot 36 on the track 32 and light is reflected to the head 14 in accordance with the reflectivity at the illuminated spot. The segments 30 are equally spaced so that as the shaft and the disk 10 rotate the light reflected from the disk to the sensor head 14 will be in the form of pulses which mark the passage of the segments 30. The pulses then provide information on the rotation of the shaft or its relative position. The time interval between the pulses is an inverse function of the shaft speed. Absolute position information, however, is provided by special characteristics of selected index segments 30a and 30b at disk angular positions corresponding to given shaft positions. 
     A primary index segment 30a, indicated as black, has the greatest reflectivity of all the segments so that it will produce the highest pulse amplitude when sensed by the detector 22. This segment is arranged on the wheel at a position corresponding to cylinder number one. Thus, whenever the highest pulse is received that cylinder position is identified. Secondary index segments 30b (crosshatched) are positioned at 90  degree intervals from the index segment 30a and have light reflectivity midway between the index segment 30a and that of the ordinary segments 30 (single hatched) to produce voltage pulses of intermediate amplitude. The ordinary segments 30, spaced between the index segments 30a and 30b, have a higher reflectivity than the light absorbing background and produce small pulses while the background (shown as white) yields a substantially zero or a low voltage at the detector output. Thus, including the background, the disk has four different reflectivities and four different voltages are produced by the detector 22 for analysis by the decoder circuit 24. 
     A transmissive encoding scheme as shown in FIG. 4 is an alternative to the reflective arrangement discussed above. Each segment 30&#39; is a filter so that light is transmitted from the fiber 16 and passes through the segment 30&#39; to the fiber 18 and the light modulation received at the detector is equivalent to the reflective case. 
     The detector 22 voltage pattern is shown in FIG. 5 which displays voltage versus shaft angle. Each pulse corresponds to a reflective segment and has a voltage which exceeds a first threshold level TH-1. In the case of segments 30b the corresponding pulse 30b&#39; amplitude exceeds a second higher threshold TH-2. The primary index segment 30a produces a pulse 30a&#39; greater than a threshold TH-3. Each pulse is separated from its neighbor by a voltage lower than TH-1. That lower voltage may be zero if the absorbing background of the disk 10 reflects no light. However it is necessary only that the separating voltage be lower than the threshold TH-1 for then it, as well as the other voltage levels, can be recognized by the decoder circuit 24. It will be apparent as the description proceeds that it is essential that at least four voltage levels be provided to encode both the speed and position information on the single pulse train. It is not essential that the zero or low voltage represent the space between the pulses, i.e., the track 32 can use a highly reflective spacer or background and lower or different reflective levels for the segments. The decoder logic can be adjusted to accommodate any such variations on the principle. The important consideration is that the ordinary segments 30 and the index segments 30a and 30b yield unique identifiable voltage amplitudes and that the speed information be preserved in the code. 
     To decode the voltage pattern the decoder circuit 24 is provided with threshold detectors 26 to detect the voltage levels in the pulse train and a logic circuit in the form of a microprocessor 28 to analyze the pulse sequence of pulse amplitudes and correlate the shapes to shaft positions. Internal memory locations in the microprocessor 28 are designated as counters. The microprocessor is programmed in accordance with the functions of the flow chart of FIG. 6. 
     The flow chart is described according to the functions shown in each block, the reference numeral in angle brackets referring to the block for the particular function. After START, the sensor voltage is read &lt;50&gt; and is compared to the threshold TH-1 &lt;52&gt;. If the voltage is lower than TH-1 the program returns to START but if it is higher the time of the pulse is recorded and the time interval since the last pulse is computed &lt;54&gt;. This time interval is an inverse function of the shaft speed. Then the voltage V is compared to the second threshold TH-2 &lt;56&gt; to determine whether a index segment has been detected. If not, a counter 1 is incremented &lt;58&gt; to count the number of regular pulses subsequent to any index pulse. If the voltage is greater than TH-2, the pulse is an index pulse and the counter 1 is reset &lt;60&gt;. Following that, the pulse amplitude is tested against TH-3 to determine if the third threshold has been exceeded &lt;62&gt;. If it has then a primary index pulse 30a&#39; has been received and the counter 2 is reset to zero &lt;64&gt;, indicating the cylinder number 1 position &lt;66&gt;. If the voltage is not greater than TH-3 &lt;62&gt;, the counter 2 is incremented &lt;68&gt;. Then the counter 2 contents is tested &lt;70&gt; and &lt;72&gt; to determine which cylinder position is signaled by the encoded data. The counter 1 indicates the shaft position with respect to the last identified cylinder position and is used as an accurate timing mark for fuel injection or spark firing. 
     The above description applies specifically to a four cylinder engine having the encoder disk driven by the cam shaft so that each encoder position is uniquely related to the engine position. The same encoder disk could be driven by the crank shaft of an eight cylinder engine and then each of the four index segments would correspond to a pair of cylinders. Of course the disk and the decoder logic can be modified for six cylinder or other engines for operation either by the crank shaft or the cam shaft. 
     As described above, the system must identify the primary index before determining the cylinder position since the primary segment 30a is the only unique position indicator, resulting in a delay of up to one revolution of the shaft before cylinder position is known. However more than one unique index can be provided so that the cylinder position is established as soon as any unique index is sensed. A simple example of this is an encoder disc with one primary index segment and one secondary index segment mounted on the crankshaft of a four cylinder engine to sense cylinder pairs. As soon as either index segment is sensed a cylinder pair position is identified, thus requiring only a maximum delay of one quarter engine cycle. Another example is shown in FIG. 7 which shows an encoder pattern like that of FIG. 2 except that each of the four index segments 30a, 30b, 30c and 30d have a unique and different reflectivity or transmission level thus yielding electrical pulses of different amplitudes. Of course additional threshold detectors are required to detect the additional levels and the logic circuit will be modified to define the cylinder position for each index segment. When that encoder disk is driven by the cam shaft an absolute position will be detected for each cylinder as soon as its respective segment is sensed. 
     It will thus be seen that the encoder arrangement and the decoder logic combine to provide a simple and accurate apparatus for determining engine speed and cylinder position. The particular code disclosed here is not the only one which may be devised within the spirit of the invention. Especially the index position may be represented not only by the highest pulse amplitude but also by any unique voltage amplitude. Thus the highest amplitude could represent any of the types of segments or the background itself. 
     The different reflectivity of the respective areas of track 32 can be provided in various ways. For example, if disk 10 is a steel disk paints having different reflectivities can be used. Further, if disk 10 is a steel disk, the different reflectivity of the respective areas or segments can be provided by roughening or abrading respective areas to different degrees of roughness. Further, the different reflectivities can be provided by polishing areas or segments to different degrees of polish.