Angle sensor using a multi-pixel optical device

Abstract: An angle sensor (10) for detecting the angular position of a rotating body (12). The angle sensor (10) includes a plurality of digital patterns (30,32) positioned on a surface (18,22) that rotates with a rotating body (12). A source of light (26) illuminates the patterns (30,32), and a multi-pixel optical device (24) receives light from the patterns (30,32) and converts the light into electrical signals. A processing circuit (24) receives the electrical signals and identifies the illuminated patterns (30,32).

Description: The present invention relates to a angle sensor for determining the angular position of a rotating body, and particularly to an angle sensor that implements a multi-pixel optical device. BACKGROUND OF THE INVENTION In many situations, it is desirable to know the angular position and/or the angular rotation of a rotating body. For example, in the automotive vehicle, it is desirable to know the position of the steering wheel so that high-level performance features can be implemented such as variable assist power steering and adaptive suspension systems. As such, angle sensors to determine the angular position of a rotating body have been developed in the past. These prior art sensors typically rely on either mechanical (involving physical contact), magnetic, or optic sensors to sense the movement of the rotating body. Although such prior art sensors have functioned relatively well in the past, they suffer from a multitude of problems. One such problem is that the prior art sensors have not been able to resolve differences in angular positions of less than 1 degree. This limitation in resolution renders the prior art devices incapable of meeting the needs of complex modern devices which now require resolutions approaching .1 degree. Another problem is that the prior art angle sensors tyoically have multiple sensors and connections which require a complicated and precise set-up. As such, the prior art sensors are generally difficult and expensive to manufacture. Furthermore, the complicated nature of the sensors makes them difficult to maintain as well. Thus, an improved angle sensor is needed that does not suffer from the above-mentioned problems. JP-A-06 347 292 discloses an optical absolute rotary decoder in which light emitted from a light emitting element is formed into a linear image with a cylindrical lens and is irradiated onto a rotary disc. The light is transmitted through slits in tracks of the rotary disc and slits of a fixed disc or plate and impinges onto a photodetecting surface of a CCD element. The CCD element consists of a plurality of photoelectric transducers and the intensity of light received with the individual photoelectric transducers is outputted as pulse amplitude changes of a time-series pulse output signal. The time-series pulse output signal is decoded with a decoding circuit and the position of the rotation of the disc is detected as an absolute value. DE-A- 44 08 623 discloses a magnetic position sensor for detecting the angular position of a crank shaft in a combustion engine. Two parallel tracks of magnetic and non-magnetic segments are positioned on a carrier, such that a magnetic segment in one track is opposite to a non-magnetic element in the other track and vice versa. Each track has associated therewith a sensor element for detecting a magnetic field. The redundant output signals of both sensor elements are evaluated so as to detect the angular position. EP-A-0 825 420 discloses an absolute angle encoder including a rotation sensor having a binary encoded target wheel and a pair of magnetoresistive sensors disposed about the target wheel periphery. One of the sensors provides a signal indicative of the passage of regular angular intervals of the target wheel and the other of the sensors provided binary states corresponding to the regular angular intervals. US-A-5,646,523 discloses an apparatus for determination of an absolute angular position of a steering wheel rotatable though several revolutions, including a fine code disk non-rotatably attached to the steering column and provided with circumferentially distributed code elements and circumferentially distributed code element sensors for sensing the code elements to generate fine signals which repeat after each revolution of the steering wheel and are indicative of a relative steering wheel angular position during each revolution; and a coarse code disk provided with at least three code tracks and at least three code track sensors for sensing respective code tracks to generate a progressive 3-bit coded signal indicative of the absolute steering wheel angular position over the several revolutions. The apparatus also includes a gear device for rotatably driving the coarse code disk with the fine code disk having a predetermined gear reduction ratio and a microcontroller for logically combining and evaluating the coarse and fine signals to determine the absolute steering wheel angular position. US-A-4,786,870 relates to a magnetic sensor for magnetically detecting the position of a movable body. The magnetic position sensor comprises a rotary magnetic recording medium which is movable with a movable body the position of which is to be detected. The rotary magnetic recording medium is divided into plural channels, each of which includes two tracks. A magnetic sensor is disposed to face the magnetic recording medium with a predetermined air gap therebetween and includes two sets of magnetoresistive elements spaced by a predetermined distance for each channel. Each set of magnetoresistive elements includes two elements wherein the first elements of the two sets face one of the tracks of a channel and the second elements of the other of the two sets faces the other track and the first and second elements of the two sets are formed as one body with adjacent ends of the first and second elements coupled with each other. JP-A-01 318 920 discloses an absolute encoder in which a first and a second track having an absolute pattern and an inverted pattern are provided as tracks on a code plate. First and second magnetoresistive element sensors of a detector are assigned to the tracks, respectively. The patterns of the first and second tracks are read synchronously by the detector. Signals appearing at output terminals of the two sensors are subjected to differential amplification in a differential amplifier of a signal processing circuit, and a signal shaped substantially in a rectangular wave is obtained at an output end. This signal is converted into a rectangular wave at a prescribed comparison level by a comparator. Then, a signal of a rectangular waveform having sharp edges is obtained at an output terminal of the circuit, and this signal is taken as an encoder signal. DE-A-40 13 936 relates to a programmable optical absolute encoder for digital determination of angular increments of rotating parts. Finally, EP-A-0 466 209 relates to an absolute encoder of the multirotation type. Each slit track of the disk of an optical type absolute encoder is divided into a group corresponding to an area to which a LED can emit light. A reference track of only a transparent portion is provided in this group. In the case of converting a detection signal into square waves, the detection signal is converted into a square wave output by using the output signal of the reference track as an index. The present invention provides an improved angle sensor which meets all of the above-identified needs. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a perspective view of a preferred embodiment of the angle sensor of the present invention. Figure 2 shows a sample of a pattern comprised of digital black and white binary markings. Figure 3 shows a close-up of a pattern used in a preferred embodiment of the present invention. Figure 4 shows a close-up of a pattern used in an alternate embodiment of the present invention. Figures 5 and 6 show a window that is viewed by the multi-pixel sensor used in the present invention. Figure 7 is the flow diagram for the programming of the microprocessor of a preferred embodiment of the present invention. Figure 8 is a plan view of an indexing wheel used in a preferred embodiment of the present invention. Figure 9 shows a close-up of a pattern used in a preferred embodiment of the present invention. Figure 10 shows a sample of a pattern used in an alternative embodiment of the present invention. DETAILED DESCRIPTION OF THE INVENTION The angle sensor of the present invention can be implemented in any device or situation in which the sensing of the angular position of a rotating body is required or beneficial, including, but not limited to, vehicular steering wheel systems, robotics arm controls, rotational limit switches, crankshaft angle positioning, the alignment of platforms for optical or microwave systems, and positioning tracking antennas. The following description focuses on the present invention's application within a vehicular steering wheel system for the purposes of explanation only. Referring first to Figure 1, shown is a preferred embodiment of the angle sensor of the present invention in a vehicular steering wheel system 10. System 10 includes a conventional steering column shaft 12 having a top end 14 that is connected in a conventional fashion to a steering wheel (not shown). Shaft 12 rotates around an axis of rotation 16 when the steering wheel is turned by an operator of the vehicle. Shaft 12 has an outer surface 18 around the circumference of which is securely positioned a disc-like code wheel 20. Code wheel 20 can be made of virtually any substantially rigid material, but preferably is made from light weight plastic, such as polycarbonate, that maintains consistent dimensions over broad ranges of temperature and humidity. Although code wheel 20 may be one of many sizes, it is 3 inches (7.6 centimeters) in diameter in a preferred embodiment of the present invention. Code wheel 20 includes an outer circumferential surface 22 on which is positioned a plurality of patterns or code symbols, as described in more detail below. Also shown is a optical device 24 and an illuminating device 26 that are facing and positioned in proximity to surface 22 of code wheel 20. In the preferred embodiment, optical device 24, illuminating device 26, and, at a minimum, surface 22 are all enclosed in a housing (not shown) within the steering column of the vehicle in order to prevent dust and dirt buildup thereon, for reasons described below. Preferably, the housing is made from a light weight plastic material. Optical device 24 includes an active or passive multi-pixel sensor that operates similar to a miniature video camera. Such an optical device can be purchased from a variety of vendors, and typically has an operation and structure such as that disclosed in U.S. Patent Nos. 5,625,210 and 5,471,515. Briefly, multi-pixel sensors include a plurality of horizontal and vertical arranged pixels, each of which takes in a portion of the light emanating from a selected target area and generates an electrical signal representative thereof. In this manner, useful information can be obtained regarding the visual appearance of the target. For reasons discussed in more detail below, optical device 24 preferably includes a multi-pixel sensor having at least 57 vertical pixels and 256 horizontal pixels. Although current commercially available multi-pixel sensors may be larger than these preferred dimensions, an algorithm or other method may be implemented in a manner known to one of ordinary skill in the art in order to "window" a larger sensor down to the preferred dimensions. The difference between an active pixel sensor and a passive pixel sensor is the type of electrical signals that are generated by the pixels. In an active pixel sensor, an analog-to-digital conversion is performed at the pixel level such that digital signals are output from the sensor. In contrast, a passive pixel sensor produces purely analog electrical signals that must be converted via an external analog-to-digital converter if digital signals are needed. Although either can be implemented in the present invention, a passive multi-pixel sensor is presumed for the purposes of explanation. Optical device 24 faces surface 22 of code wheel 20 so as to "read" the patterns thereon in the manner described above. As code wheel 20 rotates, a different segment of the pattern is viewed by optical device 24. In the preferred embodiment, optical device 24 is positioned 2.5 centimeters away from surface 22. Positioned as such, optical device 24 also includes a lens 28 (preferably wide-angle) in order to focus the light from the patterns onto the pixels of the multi-pixel sensor. It should be recognized that the distance between optical device 24 and surface 22, which dictates the appropriate lens 28 to be used, may be dependent on the amount of space that is available in the vicinity of the steering wheel mechanism in a particular vehicle. In the preferred embodiment, optical device 24 also includes logic and memory that are used to process the electrical signals generated by the plurality of pixels of the multi-pixel sensor. Alternatively, such logic and memory may be located outside of device 24 in another part of the vehicle. The logic and memory are used to, amongst other things, compare the electrical signals to threshold values whereby quantification of the light entering each pixel is achieved. In this manner, the angular position of code wheel 20, and thus the steering wheel, can be determined, as described below. Although the logic and memory may be hardwired, it preferably is comprised of a microprocessor that executes the required analysis via appropriate programming, as described below in connection with Figure 7. In alternative embodiments, a DSP (digital signal processor) may be combined with, or used in place of, the microprocessor in order to accommodate higher performance algorithms. Furthermore, optical device 24 preferably implements CMOS technology whereby the logic/memory and the multi-pixel sensor can be combined on a single chip in order to simplify the manufacturing process. Illuminating device 26 is positioned in any one of a variety of locations in order to illuminate surface 22 of code wheel 20 so that optical device 24 can read the patterns thereon. Illuminating device 26 can be any type of lighting means, including, but not limited to, incandescent lighting, infrared lighting, or LED lighting. In the preferred embodiment, illuminating device 26 comprises two standard LEDs, and is electrically connected in a conventional manner (not shown) to the logic of optical device 24 which controls the functioning thereof, as described below. The plurality of patterns on surface 22 of code wheel 20 are comprised of any type of markings which are readable by optical device 24. In the preferred embodiment, the patterns are comprised of digital black and white binary markings, a sample of which is shown in Figure 2. Figure 3 shows a close-up of a pattern used in the preferred embodiment of the present invention, with the markings boxed and with spacing inserted therebetween solely for the purpose of clarifying the following description. As shown, the patterns are comprised of rows of six black and white marks (reference numeral 30) that alternate with rows of seven white and black marks (reference number 32). In the preferred embodiment, the leftmost marking of "code" rows 32 is always black and is used as a reference mark, for reasons discussed below. The remaining six rightmost markings in pattern rows 32 are able to identify one of 64 unique binary numbers which are used to uniquely identify each rotational position of code wheel 20. As described in more detail below, rows 30 are "checking" rows which function as an error checking mechanism that helps ensure the integrity of information read by optical device 24. In the preferred embodiment described herein, checking rows 30 are in inverse relationship to code rows 32 whereby each of the six markings therein are of the opposite color of the marking thereabove in code row 30. Recognizing that surface 22 is capable of 360 degrees of positional rotation, each pattern row 32 can thus identify a segment of code wheel 20 covering slightly more than 5.6 degrees (360 divided by 64 equals approximately 5.6). In the preferred embodiment, each mark of rows 30 and 32 is approximately 4 millimeters high and 12 millimeters wide. With these preferred dimensions, pattern rows 30 and 32 completely encompass the outer circumferential surface area 22 of code wheel 20 having a diameter of approximately 3 inches (approximately 7.6 centimeters). In the preferred embodiment, the patterns are printed on a polycarbonate sheet having an adhesive backing which enables it to be wrapped around surface area 22. Although polycarbonate material is preferred because of the low amount of glare that is reflected back to optical device 24 and because the material is dimensionally stable over the operating temperature and humidity ranges, it should be recognized that any sheet material can be used, including any plastic such as vinyl. Preferably, such a sheet material is insert molded, and includes an alignment notch for proper positioning thereof on surface 22. Furthermore, it is recognized that many other means of providing such patterns are available and within the scope of the present invention, such as printing or engraving the patterns directly on surface 22 of code wheel 20. In the preferred embodiment, after the patterns are positioned on surface 22, a sheet of clear plastic or polymer material is laid over the patterns, thus encasing the patterns therebetween. The plastic or polymer material is advantageous in that it prevents the patterns from being scratched off of surface 22, and facilitates the removal of dust and dirt from the patterns (such as with a damp cloth) during maintenance of the angle sensor so that the patterns can be accurately viewed by optical device 24. As mentioned above, optical device 24 reads the patterns of surface 22. Figures 5 and 6 show a window 34 of pattern rows that is viewed by the multi-pixel sensor which, in the preferred illustrated embodiment, includes at least 57 vertical pixels and 256 horizontal pixels, as mentioned above. As shown, window 34 covers enough of surface 22 so as to be capable of viewing at least one "code" row 32 and one "checking" row 30. In the most preferred embodiment, 57 of the at least 57 vertical pixels are used to view each grouping of one code row and one checking row so that a resolution of .1 can be achieved, as described below. Through analysis of window 34 via the multi-pixel sensor and associated logic, the angular position of code wheel 20 can be determined, as described below. Shown in Figure 7 the flow diagram for the programming of the microprocessor in the preferred embodiment of the present invention. This programming controls the analysis by optical device 24 of the patterns on surface 22. The flow diagram begins with block 100 which signifies the beginning of the program. Next, block 102 causes the multi-pixel sensor to "grab", or read, the image within window 34 from surface 22 of code wheel 20. Block 104 then makes a general analysis of the read image to determine if the sum of electrical signals from all of the pixels falls below a minimum preset threshold value (stored in memory) indicating that surface 22 must not be illuminated sufficiently. Such a situation would indicate that a lighting problem exists with illuminating device 26 which, as mentioned above, consists of two standard LEDs in the preferred embodiment. In this preferred embodiment, only one of the LEDs is operating at any particular time, with the other held in reserve. If block 104 determines that the entire image is black, then block 106 causes the program to proceed to block 108 that causes the reserve (previously unlit) LED to be turned on, and the program loops back to block 102 which is discussed above. If block 106 determines that the lighting is sufficient, the program proceeds to block 1 10. Block 110 sets the threshold level (against which the light entering each pixel is compared) for evaluating whether each mark of rows 30 and 32 is black or white. Such a threshold level may vary over time based on the ambient temperature and the age of the LEDs. Block 110 is included only in the embodiment in which a passive multi-pixel sensor is used where there is no automatic analog-to-digital conversion. Next, block 112 analyzes the line of at least 57 vertical pixels located at the horizontal midpoint of the reference mark (leftmost mark) of row 32 in order to determine the transition point between the black of the reference mark (of code row 32) and the white of the checking row 30. This line of pixels (designated with reference numeral 36) is shown in Figures 5 and 6 as a solid black line. Block 112 uses this determined transition point to determine the vertical midpoints, and thus position, of both code row 32 and checking row 30. Next, the program proceeds to block 114 in which the horizontal line of 256 pixels extending across the vertical midpoint of code row 32 (designated with reference numeral 38 in Figure 6) is analyzed to determine the color (black or white) of each of the six markings. This analysis includes the comparison of electrical signals to the threshold value established in block 110. By determining the color of each of the six markings, the pattern, or digital binary "value", of code row 32 is then identified which serves to uniquely identify a rotational position of code wheel 20. Block 114 also analyzes the horizontal line of 256 pixels extending across the vertical midpoint of checking row 30 (designated with reference numeral 40 in Figure 6) in order to determine the color of each of the six markings and thus the digital "value" of the row. As mentioned above, checking row 30 is for error checking purposes, with markings that are in inverse relationship to the corresponding markings in code row 32. This inverse relationship is taken into account when calculating the value of checking row 30 such that the value thereof is the same value of code row 32 in the normal situation where no error exists. Next, block 116 determines if the value of code row 32 matches the value of checking row 30. If so, then a "good" (non-error) reading is presumed, and the program proceeds to block 122 which is described below. If not, indicating that an error exists that is probably due to dust or dirt buildup on surface 22, the program proceeds to block 118 which determines if the correct code value for this particular mismatch has been already determined via block 120 during previous execution cycles of the program. If not, the program proceeds to block 120 which determines the correct value of code row 32 based on the memorized sequence of code row values that have been read as code wheel 20 has rotated. By looking at the code row values that have been calculated for rotational positions both before and after the rotational position corresponding to the mismatch, the sequence thereof indicates which of the mismatched code row value and the checking row value should be correct. Once the correct value is determined, it is saved in memory to be retrieved if the same mismatch appears later in the execution of the program, and the program loops back to block 102 which is discussed above. If block 118 determines that the correct code value for the particular mismatch has already been determined, then the correct code value is read from the memory of the microprocessor, and the program proceeds to block 122. Block 122 calculates and stores the precise angle of rotation of code wheel 20, and thus the angle of rotation of the steering wheel, based on the value of the code row and the position of the transition point of the reference mark. As mentioned above, each of the code row values uniquely identifies a section of code wheel 20 covering approximately 5.6 degrees, with the memory of the microprocessor storing the angular displacement of code wheel 20 corresponding to each code row value. The position of the transition point of the reference mark enables the angle sensor of the present invention to realize increased resolution within this 5.6 degree framework. By determining the location of the transition point within the 57 vertical pixels that are used to view each code row/checking row grouping in window 34 of the described preferred embodiment, each 5.6 degree section can be further divided by 57, thus enabling a resolution of .1 to be achieved when calculating the angle of rotation of code wheel 20. After block 122, block 124 calculates the angular velocity of code wheel 20 based on the change between the current angle of rotation and the previous (stored) angle of rotation in view of the elapsed time therebetween. This calculation of angular velocity is included in the preferred embodiment of the present invention since it provides additional useful information that can be used in the vehicle. However, the calculation of angular velocity is not needed for the basic operation of the angle sensor. After block 124, the program proceeds to block 126 which causes the angle and angular velocity information to be transmitted to appropriate devices that can make use of such information. In a vehicle, such devices include the power steering control and the suspension control systems. After block 126, the program loops back to block 102 which is discussed above. Although the patterns and markings shown in Figure 2 are preferred, it should be recognized that many variations are possible and within the scope of the present invention. For example, any type of digital markings may be used in place of binary (for example, ternary), and any distinguishable colors or shades may be used. However, such modifications to the markings would require more complex logic functions for analysis (since more threshold values would be required), and may make it harder to detect images that have been corrupted due to dust or dirt buildup on surface 22. In addition, depending on the size and diameter of code wheel 22, the rows of patterns can be vertically spaced apart by varying distances. Furthermore, the markings themselves can be of virtually any shape instead of square, and can be variably sized as well depending on lens 28 and the size of optical device 24. However, an important consideration with respect to the size of the markings is to choose a size that is large enough such that most particles of dust or dirt would be smaller than the markings, thereby preventing small quantities of particles of dust or dirt from affecting the reading of the markings by optical device 24. In many applications for the angle sensor of the present invention, the rotational body may be capable of more than one complete revolution. For example, many vehicular steering systems enable the steering wheel to be turned two complete revolutions in either direction, meaning that the determined angular position could be in any one of four revolutions of code wheel 20. In these situations, it often is desirable to enable the angle sensor to determine which revolution the rotating body is in (its "revolution count") so as to add meaning to the angular position thereof. Figure 1 shows a revolution counter of the present invention comprising an indexing wheel 80 which includes a plurality of recesses 82 (Figure 8). Indexing wheel 80 is not in physical contact with the upper surface of code wheel 20, but instead is connected to, and rotates with, a separate rotatable shaft 84 having an upper surface 85 that is rotatably attached to any secure structure within the steering mechanism assembly. On the outer surface area 83 of indexing wheel 80, opposite that of recesses 82, is positioned a pattern that is readable by optical device 24, as described in more detail below. In the preferred embodiment, the pattern includes a black, triangular shaped portion surrounded by white, a close-up view of which is shown in Figure 9. Also shown is a tooth or projection 86 that rotates with code wheel 20 and shaft 14. Projection 86, for ease of manufacture and installation, preferably is an integral part of code wheel 20. Indexing wheel 80 and projection 86 are in operative relationship with one another whereby the complete rotation of projection 86 in either direction (corresponding to one complete revolution of code wheel 20) causes the engagement of projection 86 with one of recesses 82 of indexing wheel 80. This engagement causes indexing wheel 80 to be incremented (rotated in step fashion) in a direction of rotation that is opposite that of projection 86. In a preferred embodiment in which indexing wheel 80 includes four recesses 82 (as shown in Figure 8), the four revolution range of motion of the steering wheel corresponds to five segments of the triangular pattern on indexing wheel 80, with the four recesses providing for the movement between these five segments. The range of motion is divided into five segments on indexing wheel 80 so that projection 86 is not in contact with indexing wheel 80 when the vehicle is travelling straight ahead. In this preferred embodiment including the revolution counter, the window 34 of optical device 24 is horizontally extended (preferably by adding additional horizontal pixels in order to retain the same resolution) so that the patterns on both code wheel 20 and indexing wheel 80 are viewed. Each incrementation of indexing wheel 80 then causes a different section of the triangular pattern thereon to be viewed by optical device 24. The position of indexing wheel 80 can be processed via the programming of the microprocessor. Similar to the reading of rows 30 and 32 discussed above, a horizontal line of pixels such as line 38 or 40 (Figure 6) is selected, and the portion corresponding to the view of indexing wheel 80 is analyzed. Based on the readings of these pixels (light or dark), the width of the section of the black triangular pattern that is in the field of view of optical device 24 is determined. The calculated width is then compared to values stored in the memory of the microprocessor which encompass the range of widths that are viewable by optical device 24 for each revolution count. In this manner, the actual revolution count of code wheel 20 can be determined. The revolution count can then be transmitted to an appropriate device to supplement the calculated angular position information, thereby providing the position of the steering wheel in its complete range of motion. The mechanical design of the revolution counter discussed above is preferred because operation thereof is not dependent upon continued electrical power-up of the vehicle. As such, the proper revolution count information will be immediately available to optical device 24 at all times. Furthermore, the design of the revolution counter discussed above is advantageous in that physical contact between indexing wheel 80 and projection 86 is limited to only once every revolution of code wheel 20. As such, the longevity of the mechanism is increased, and less loose particles are produced (via rubbing) that could contaminate the patterns used in the present invention. However, during the time that indexing wheel 80 is not engaged by projection 86, indexing wheel 80 may be subject to external forces, such as vibration, that can cause unwanted movement thereof. Therefore, in a preferred embodiment of the present invention, one variety of a Geneva mechanism is implemented in a fashion known to one of ordinary skill in the art in order to prevent unwanted movement of indexing wheel 80. In alternative embodiments of the present invention, the patterns positioned on surface 22 of code wheel 20 in Figure 1 can be positioned on any surface that enables the patterns to rotate as the rotating body rotates, with minor modifications to the set-up of the rest of the angle sensor. For example, the patterns can instead be positioned on a surface that is perpendicular to the axis of rotation of the rotating body. As such, with respect to Figure 1, the patterns could be positioned on upper surface 21 of code wheel 20 (assuming that the revolution counter was not used, or was positioned elsewhere). In such an embodiment, the patterns could be circular in shape, with a geometric center at the axis of rotation 16 of shaft 12. A sample of such a polar or circular pattern is shown in Figure 10. Preferably, such a pattern would include the digital black and white markings discussed above and shown in Figures 2 and 3 in connection with the preferred embodiment, although any one of a variety of patterns could of course be used. Optical device 24 and illuminating device 26 in this alternative embodiment would be positioned differently than that shown in Figure 1 to enable them to appropriately interact with the differently positioned pattern. Otherwise, the structure and operation of this embodiment would be the same as discussed above. The decision as to the placement of the patterns (and the corresponding positioning of optical device,24 and illuminating device 26) is dependent on the amount and configuration of the space in the vicinity of the rotating body. As discussed above, the preferred embodiment of the present invention includes a disc-like code wheel 20 (having patterns thereon) which is positioned on surface 18 of shaft 12 (Figure1). Such a code wheel is preferred since, by modifying the inner diameter thereof, it enables the present invention to easily be installed on rotating bodies of various outer diameters. However, it should be recognized that the present invention can be implemented without such a code wheel. In these alternative embodiments, the patterns would instead be positioned directly on the rotating body itself in any manner, such as those described above for placing the patterns on surface 22. In Figure 1, this would involve the placement of the patterns on surface 18 along the circumference of shaft 12. Alternatively, as shown in Figure 11, shaft 12 could include a cut-out section 90 that creates a surface 92 that is perpendicular to the axis of rotation and on which the circular or polar pattern could be positioned. The pattern could then be read by optical device 24, as discussed above. In addition to the checking row 30 of the preferred embodiment discussed above, alternative embodiments of the present invention can implement error checking by the inclusion of a parity bit to code row 32 (to make the number of markings even or odd), as is known to one of ordinary skill in the art. In an alternative embodiment of the present invention, illuminating device 26 can be positioned to shine light through a pattern as opposed to reflecting light of the pattern (as is shown in Figure 1). Although there are many such ways of structuring such an alternative embodiment, one way would consist of a code wheel 20 having transparent material for surface 22, with an illuminating device positioned behind surface 22 (within wheel 20) and shining light through an opaque pattern and towards optical device 24. In applications where the angle sensor of the present invention is not in an enclosed environment, it is recognized that the angle sensor could function without an illuminating device, instead relying on ambient light. As an alternative to the code row/checking row pattern shown in Figure 3, the checking row can be on the same row as (and next to) the code row, as shown in Figure 4, or the markings for each can be intermingled (alternating) on the same row. Although several patterns have been set forth as patterns that will function in the angle sensor of the present invention, it should be realized that multi-pixel sensors can work with and analyze virtually any type of pattern, simple or complex. As such, many diverse variations in pattern type can be implemented and are within the scope of the present invention without departing from the wording of the claims. The above description is considered that of the preferred embodiments only. Modifications of the invention may occur to those skilled in the art and to those who make or use the invention. Therefore, it is to be understood that the embodiments shown in the drawings and described above are merely for illustrative purposes and are not intended to limit the scope of the invention, which is defined by the following claims as interpreted according to the principles of patent law, including the doctrine of equivalents.

Claims: An angle sensor (10) for determining the angular position of a rotating body (12), comprising: a plurality of digital patterns (30,32) positioned on a surface (18,22) that rotates with said rotating body (12); a source of light (26) for illuminating a section (34) of said digital patterns (30,32) at a fixed reference area; a multi-pixel optical device (24) positioned at said fixed reference area, said optical device (24) receiving light from said section (34) of said digital patterns (30,32) and converting the light into a plurality of electrical signals; and a processing circuit (24) connected to said multi-pixel optical device (24) and receiving said electrical signals, said processing circuit (24) including logic and memory for analyzing said electrical signals and identifying said digital patterns (30,32) at said fixed reference area, wherein said plurality of digital patterns (30,32) comprises a set of first patterns (32) and a set of second patterns (30), each of said second patterns (30) corresponding to one of said first patterns (32) and being in inverse relationship to said corresponding first pattern (32), and wherein said processing circuit (24) compares the electrical signals from each of said first patterns (32) to the electrical signals from its corresponding second pattern (30) to determine if an error exists. The angle sensor (10) of claim 1 wherein said digital patterns (30,32) are black and white binary markings arranged in rows (30,32) and representing unique binary numbers. The angle sensor (10) of claim 1 wherein said plurality of digital patterns (30,32) is positioned on an outer surface (18) of the rotating body (12). The angle sensor (10) of claim 1 further comprising a disc-like code wheel (20) positioned on the rotating body (12) and rotating therewith, and wherein said plurality of digital patterns (30,32) is positioned on an outer surface (22,21) of said code wheel (20). The angle sensor (10) of claim 4 wherein said plurality of patterns (30,32) is positioned on the outer circumferential surface (22) of said code wheel (20). The angle sensor (10) of claim 4 wherein said plurality of patterns (30,32) is circular in shape and is positioned on a surface (21) of said code wheel (20) that is perpendicular to the axis of rotation of the rotating body (12). The angle sensor (10) of claim 5 further including a revolution counter (80,82,83,84,85,86), said revolution counter (80,82,83,84,85,86) comprising: a projection (86) that rotates with the rotating body (12); a rotatable shaft (84); and an indexing wheel (80) connected to said rotatable shaft (84) and having a pattern positioned on a first portion (83) of the circumferential surface of said indexing wheel (80) in physical proximity to said fixed reference area, said indexing wheel (80) having a plurality of recesses (82) positioned within a second portion of the circumferential surface of said indexing wheel (80), said recesses (82) and said projection (86) in operative relationship such that one of said recesses (82) is engaged by said projection (86) upon each complete revolution of said rotating body (12), said engagement rotating said indexing wheel (80) in step fashion; and wherein said source of light (26) illuminates a section of said indexing wheel pattern at said fixed reference area, said multi-pixel optical device (24) receiving light from said section of said indexing wheel pattern and converting the light into electrical signals, and said processing circuit (24) analyzing said electrical signals and identifying the stepped position of said indexing wheel (80). The angle sensor (10) of claim 7 wherein said indexing wheel pattern comprises a triangular shape positioned such that the width of said section of said indexing wheel pattern illuminated by said source of light (26) is different for each stepped rotation of said indexing wheel (80). The angle sensor (10) of claim 2 wherein said multi-pixel optical device (24) includes a two dimensional grid of pixels (34), and wherein said processing circuit (24) analyzes the electrical signals from a line of vertical pixels (36) within said grid (34) and identifies the transition point between said rows (30,32). The angle sensor (10) of claim 6 wherein said processing circuit (24) uses said transition point to determine the vertical midpoint of a row (30,32), said processing circuit (24) analyzes the line of horizontal pixels (38,40) at said vertical midpoint to calculate the binary value of said row (30,32), and said processing circuit (24) uses the binary value and said transition point to determine the precise angle of rotation of the rotating body (12). The angle sensor (10) of claim 2 wherein each of said rows (30,32) of binary markings includes a parity marking, and wherein said processing circuit (24) uses said parity marking to determine if an error exists. The angle sensor (10) of claim 1 wherein said source of light (26) is positioned such that said optical device (24) receives light that is reflected off of said section (34) of said digital patterns (30,32). The angle sensor (10) of claim 5 wherein said outer circumferential surface (22) of said code wheel (20) is comprised of transparent material, portions of said plurality of digital patterns (30,32) is comprised of opaque material, and said source of light (26) is positioned within said code wheel (20) such that said optical device (24) receives light that travels through said section (34) of said digital patterns (30,32). The angle sensor (10) of claim 1 wherein said source of light (26) comprises an incandescent lighting device. The angle sensor (10) of claim 1 wherein said source of light (26) comprises an infared lighting device. The angle sensor (10) of claim 1 wherein said source of light (26) comprises an LED. The angle sensor (10) of claim 1 wherein said source of light (26) is ambient light. The angle sensor (10) of claim 1 wherein said multi-pixel optical device (24) includes a lens (28) to focus the light received from said section (34) of said digital patterns (30,32).

Inventors: ALMAJED ZEYAD MOHAMMED, BRIGGS ROGER JAMES, CHEN CHEE GREG, SIMON MARC RAYMOND, ALMAJED, ZEYAD MOHAMMED, BRIGGS, ROGER JAMES, CHEN, CHEE GREG, SIMON, MARC RAYMOND
Applicants: EATON CORP, EATON CORPORATION
Application year: 1998
Main classification: G01D5
IPC codes: H03M1, G01D5