Pointing device with adaptive illumination level
A pointing device and method for operating the same is disclosed. The pointing device includes an illumination system, a camera system, and a controller. The illumination system illuminates a surface over which the pointing device moves. The illumination system generates a light level determined by an illumination control signal. The camera records a plurality of images of the illuminated surface. The controller records first and second images taken by the camera at different times and determines a displacement indicative of the direction and distance the positioning device moved between the two different times. The controller also generates the illumination control signal. The illumination control signal depends on at least one of the images recorded by the camera system. In one embodiment, the surface is characterized by a reflectivity and the light level generated by the illumination system is inversely related to that reflectivity.
The present invention relates to computer pointing devices, and more particularly, to an improved optical mouse.
BACKGROUND OF THE INVENTIONA common form of pointing device for use with computers and the like is referred to as a “mouse”. The computer user moves the device over a surface to move a cursor on the computer screen. The amount of motion and the direction of motion of the mouse are sensed by the device and determine the distance and direction in which the cursor moves on the screen. Inexpensive mice based on a ball that rolls over the surface have been used for some time. The ball turns two cylinders that sense the distance and direction of motion. Unfortunately, the ball picks up grease and other dirt from the surface and transfers this material to the cylinders. The resulting coating on the cylinders interferes with the motion of the cylinders, and hence, the devices must be cleaned periodically. The cleaning operation is awkward and time consuming.
Mice based on optical sensing avoid this problem. Originally, such mice had to be moved over a special pad that had grid lines that were sensed by the device. The need to use this special pad made these devices less attractive than the mechanical mice discussed above. Recently, optical mice that do not require such pads have been developed. These mice include a light source that illuminates the surface under the mouse at a shallow angle, which accentuates the structural details of the surface. An image sensor in the mouse records an image of the illuminated surface periodically. By comparing two successive images, the displacement of the mouse between the times at which the images were taken can be determined.
Wireless optical mice are particularly attractive since the user is not constrained by a cable connecting the pointing device to the computer. Battery life is an important consideration in such systems both from the standpoint of operating cost and convenience. Hence, systems with reduced power demands are of particular value.
SUMMARY OF THE INVENTIONThe present invention includes a pointing device and method for operating the same. The pointing device includes an illumination system, a camera system, and a controller. The illumination system illuminates a surface over which the pointing device moves. The illumination system generates a light level determined by an illumination control signal. The camera records a plurality of images of the illuminated surface. The controller records first and second images taken by the camera at different times and determines a displacement indicative of the direction and distance the positioning device moved between the two different times. The controller also generates the illumination control signal. The illumination control signal depends on at least one of the images recorded by the camera system. In one embodiment the surface is characterized by a reflectivity, the light level generated by the illumination system is inversely related to that reflectivity. In another embodiment, the illumination system includes an LED and a variable current circuit that adjusts the current flowing through the LED in response to the illumination control signal. In another embodiment, the variable current circuit includes a current mirror for controlling current in the LED. In yet another embodiment, the illumination system has a first illumination setting for providing a first level of accuracy in the determined displacement and a second illumination setting for providing a second level of accuracy that is greater than the first level of accuracy. The second illumination setting requires more power than the first illumination setting.
BRIEF DESCRIPTION OF THE DRAWINGS
The manner in which the present invention provides its advantages can be more easily understood with reference to
When the mouse is moved relative to the surface, the image shifts on sensor 21. If images are taken sufficiently close together in time, each successive image will contain a portion of the previous image. Hence, by comparing two successive images, mouse 10 can determine the offset between the images. For example, mouse 10 can compute the correlation of the first image shifted by various amounts with the second image. The shift that provides the highest correlation is assumed to be the displacement of the mouse during the period of time that elapsed between the times at which the two images were taken. In the embodiment shown in
The present invention is based on the observation that the power consumed by the LED in the light source is the greatest power drain, and hence, a more efficient illumination system would provide increased battery life. Prior art devices utilize a fixed LED current regardless of the reflectivity of the surface over which the pointing device moves. In general, the tracking performance of an optical mouse on dark surfaces is less than the performance on light surfaces, as the system requires a longer exposure time to capture the underlying images. Hence, the frame rate on surfaces having low reflectivity is lower than the frame rate on surfaces having higher reflectivity. Accordingly, the LED current in prior art devices is set sufficiently high to provide a satisfactory frame rate even on dark surfaces. This further taxes the available battery life in wireless systems.
The present invention overcomes this flaw by utilizing an adaptive LED current source that automatically determines the optimum light intensity level based on the real-time surface image information captured by the imaging system. That is, surfaces with higher reflectivity are illuminated with a lower light level than surfaces with lower reflectivity. As a result, the power utilized on high reflectivity surfaces is reduced. Refer now to
The light level generated by LED 104 is determined by the current flowing through LED 104. This current is set by an LED drive circuit 110. Drive circuit 110 includes a variable current source 101 whose output is determined by a control signal generated by controller 120. The current from variable current source 101 is applied to transistors 102 and 103 that are connected in a current mirror configuration. Accordingly, the current flowing through transistor 103, and hence, LED 104, is proportional to the current generated by variable current source 101.
In one exemplary embodiment, controller 120 sets the current through LED 104 by examining the contrast obtained in the images from image detector 130. In the simplest embodiment, controller 120 measures the average light intensity received across all of the pixels in the image formed by image detector 130. If the average intensity is less than a first predetermined threshold value, the light level generated by LED 104 is increased by increasing the output current of variable current source 101. Similarly, if the average intensity is greater than a second predetermined threshold, the light intensity generated by LED 104 is reduced.
Other algorithms for setting the current level through LED 104 can be utilized. For example, controller 120 can compare the intensities of the brightest and weakest pixels in the images from image detector 130, and adjust the current to provide a predetermined ratio between the brightest and weakest pixel values.
In yet another example, the current level through the LED is set by comparing the results of the image comparisons. As noted above, optical mouse 100 operates by comparing successive images to determine the direction and amount of motion that has occurred between the successive images. This comparison is typically carried out by computing the correlation of a first image with a second image after the second image has been displaced with respect to the first image. When the magnitude and direction of the displacement matches that of the optical mouse on the surface, the correlation will have a maximum value. The magnitude of the maximum correlation value is a measure of the certainty of the displacement measurement. This maximum value, in general, depends on the contrast in the images from image detector 130, which, in turn, depends on the light output from LED 104. In general, the performance of the tracking algorithm will not improve substantially after the correlation value reaches some threshold value. Hence, the current through LED 104 can be set to provide a correlation value that is greater than some predetermined threshold value.
The above-described embodiments utilize a variable current source to set the current in one branch of a current mirror. Variable current sources are known in the art, and hence, will not be discussed in detail here. For the purposes of this discussion, it is sufficient to note that such a source can be constructed by connecting a plurality of transistors in parallel and selectively setting the transistors that are held in the conducting state. Refer now to
When a current transistor is in the conducting state, the current supplied by that transistor is proportional to the width of the channel region of the transistor. Hence, if all of the transistors have the same width, the current supplied on line 221 will be K times the current supplied by one transistor, where K is the number of current transistors in the conducting state. The arrangement shown in
The above-described embodiments of the present invention have utilized a particular current driver design for varying the current through the LED in the optical mouse. However, the present invention is not limited to this particular form of driving circuit. Any circuit that allows the controller to vary the light level generated by the illumination subsystem of the optical mouse can be utilized.
The above-described embodiments have been described in terms of regulating the light output of the illumination sub-system to provide an optimal level of performance. However, embodiments in which the optical mouse has two modes requiring different power levels can also be constructed. In this case, the first mode is a low power “economic mode” that provides longer battery life, while the second mode is a “high performance” mode that requires a higher power level but provides increased performance. The second mode, for example, would be better suited to the inputting of graphical information, which often requires a higher degree of precision and faster tracking times. The specific mode that is operative at any given time is preferably determined by a control signal supplied by a user. The control signal can be generated by the driver on the device utilizing the pointing device or by a switch on the pointing device itself. For example, the controller shown in
The above-described embodiments of the present invention have utilized an illumination source based on an LED; however, other light sources can be utilized. For example, the surface can be illuminated by a laser diode, infra red light source, or incandescent light source.
Various modifications to the present invention will become apparent to those skilled in the art from the foregoing description and accompanying drawings. Accordingly, the present invention is to be limited solely by the scope of the following claims.
Claims
1. A pointing device comprising:
- an illumination system that illuminates a surface over which said pointing device moves, said illumination system generating a light level determined by an illumination control signal;
- a camera system that records a plurality of images of said illuminated surface; and
- a controller that records first and second images taken by said camera at different times and determines a displacement indicative of the direction and distance said positioning device moved between said two different times, said controller further generating said illumination control signal, said illumination control signal depending on at least one of said images recorded by said camera system.
2. The pointing device of claim 1 wherein said surface is characterized by a reflectivity and wherein said light level generated by said illumination system is inversely related to said reflectivity.
3. The pointing device of claim 1 wherein said illumination system comprises a laser and variable current circuit that adjusts the current flowing through said laser in response to said illumination control signal.
4. The pointing device of claim 1 wherein said illumination system comprises an LED and variable current circuit that adjusts the current flowing through said LED in response to said illumination control signal.
5. The pointing device of claim 4 wherein said variable current circuit comprises a current mirror for controlling current in said LED.
6. The pointing device of claim 1 wherein said illumination system has a first illumination setting for providing a first level of accuracy in said determined displacement and a second illumination setting for providing a second level of accuracy that is greater than said first level of accuracy, said second illumination setting requiring more power than said first illumination setting, said illumination setting being determined by a control signal supplied by a user of said pointing device.
7. A method for determining the displacement of said pointing device on a surface, said method comprising:
- illuminating said surface with a light level determined by an illumination control signal;
- recording a plurality of images of said illuminated surface; and
- comparing first and second images taken at different times to determine a displacement indicative of the direction and distance said positioning device moved between said two different times, said illumination control signal depending on at least one of said recorded images.
8. The method of claim 7 wherein said surface is characterized by a reflectivity and wherein said light level is inversely related to said reflectivity.
9. The method of claim 7 wherein said surface is illuminated by an LED having a bias current determined by a variable current circuit that adjusts the current flowing through said LED in response to said illumination control signal.
10. The method of claim 9 wherein said variable current circuit comprises a current mirror for controlling current in said LED.
11. The method of claim 7 wherein said light level is also determined by a control signal that is input by a user of said pointing device.