The present invention relates to a power-saving method for an optical navigation device and, more particularly, to a power-saving method, which controls the image capture frame rate of a sensor and makes use of a motion detector like a mechanical motion trigger to wake up the optical navigation device from the sleeping mode.
Along with continual popularity of computers, the demand for the quality of peripherals thereof increases gradually. The mouse is an inevitable peripheral of computer. Because of the high accuracy of motion of optical navigation devices, they have been widely used in this industry. An optical navigation device captures consecutive images in the known time interval from the captured image frame rate to calculate the movement and determine a horizontal displacement of a parallel axis (x-axis) and a vertical displacement of a vertical axis (y-axis) of this optical navigation device and then outputs the displacements data to a computer.
As shown in
The shorter the time for capturing the consecutive first and second images in Steps S1 and S2 is, the faster moving speed can be detected, and the shorter exposure time of the image sensor can be used. Therefore, a larger power is required to drive the LED light source and the processor. On the contrary, the slower the motion, the more power-saving. This period of time is the image capture frame rate. In other words, the higher the capture frame rate, the more power consuming. In Step S3, when the first image equals to the second image, the horizontal displacement and the vertical displacement are zeros, i.e., there is no motion. If there is no motion detected after a specific time, a power-saving mode is entered. The power-saving mode of the optical navigation device mainly comprises the steps of:
In Step S30, the sensor will still capture images to detect the displacement of the mouse in the first waiting period. If the optical navigation device is still in the static state after the first waiting period, the second waiting period is entered. Meanwhile, the sensor will stop for a period of time to save power after work is finished each time. In Step 31, the sensor will still capture images for comparison after stopping for a period of time. If the mouse is still in the static state after the second waiting period, the sleeping mode is entered. When entering the sleeping mode, the sensor will stop for a longer time to save power. After this fixed time, the sensor will capture images to make sure whether the optical navigation device moves or not (S32). On the contrary, the optical navigation device will enter the intermittent mode. Meanwhile, the sensor will capture images to make sure whether the optical navigation device moves or not (S34) after a fixed time. The fixed time of the intermittent mode is shorter than the fixed time of the sleeping mode.
Therefore, the conventional optical navigation device only enters the power-saving mode when it doesn't move at all. However, no matter it is in the intermittent mode or the sleeping mode, a current will be generated after a fixed time to drive the sensor to capture an image. The longer this fixed time, the more power-saving, and the more difficult it will be awaken to monitor whether the optical navigation device moves or not. Although an intermittent time is used to control the sensor to capture an image, the optical navigation device is still very power-consuming. Due to gradual maturity of the Bluetooth technology, the control in current becomes more important for lengthening the usable time of a wireless optical position device.
Accordingly, the present invention aims to propose a novel power-saving method for an optical navigation device to solve the above problems in the prior art.
The primary object of the present invention is to provide a power-saving method for an optical navigation device, wherein the image capture frame rate of a sensor is controlled according to the variations of a horizontal and a vertical moving speed through comparison of images. When the variations of the horizontal displacement Δx and the vertical displacement Δy are smaller than a lower threshold, the image capture frame rate of the sensor is decreased. When the variations of the horizontal displacement Δx and the vertical displacement Δy are larger than an upper threshold, the image capture frame rate of the sensor is increased. The image capture frame rate of the sensor is controlled according to the moving speed of the optical navigation device instead of fixing the image capture frame rate of the sensor, hence accomplishing the power-saving object.
Another object of the present invention is to provide a power-saving method for an optical navigation device, wherein a motion detector (e.g., a mechanical motion trigger) is used to generate an interrupt signal to wake up this device from the sleeping mode. Moreover, it is not necessary to generate any current for driving the sensor to detect whether the optical navigation device moves or not during the sleeping mode. The displacement detector can be used to generate an interrupt signal to wake up this device from the sleeping mode to drive the sensor to capture images.
To achieve the above objects, in the power-saving method for an optical navigation device of the present invention, the image capture frame rate of the sensor is controlled according to the moving speed of the optical navigation device. The image capture frame rate is determined based on the variations of a horizontal displacement and a vertical displacement of the optical navigation device. Because a user usually moves the optical navigation device slowly, the power of the optical navigation device can be saved. Moreover, it is not necessary to generate a current to drive the sensor to detect whether the optical navigation device moves or not when the optical navigation device is in the sleeping mode. A displacement detector can be used to generate a interrupt signal to wake up this device from the sleeping mode to accomplish the power-saving object.
The various objects and advantages of the present invention will be more readily understood from the following detailed description when read in conjunction with the appended drawing, in which:
The present invention aims to solve the problem of large power consumption of a conventional optical navigation device. The moving speed of the optical navigation device is exploited to control the image capture frame rate of a sensor. In the prior art, the image capture frame rate of the optical navigation device is a fixed value. Regard of the moving speed, the same image capture frame rate is kept to accomplish the power-saving object.
As shown in
In Step S10, the first image is the image captured before the optical navigation device, while the second image is the image captured after the predefined frame rate. A digital signal processor is used to compare the first and second images to obtain the relative horizontal and vertical displacements Δx and Δy. When the variations of the horizontal displacement and vertical displacement Δx and Δy are larger than an upper threshold, the image capture frame rate of the sensor is increased. When the variations of the horizontal displacement and vertical displacement Δx and Δy are smaller than a lower threshold, the image capture frame rate of the sensor is decreased. When the variations of the horizontal displacement and vertical displacement Δx and Δy are smaller than the upper threshold and larger than the lower threshold, the image capture frame rate of the sensor is kept. The image capture frame rate of the sensor is controlled according to different speeds of the optical navigation device to save power. In the prior art, no matter what the moving speed of the optical navigation device is, the image capture frame rate of the sensor is a fixed value.
Moreover, as shown in
In Steps S22 and S23, if the first image is equal to the second image, it represents that the optical navigation device hasn't moved. In the first waiting period, the sensor will be driven periodically to capture images, and a digital signal processor will be used to calculate whether the optical navigation device moves or not. If the optical navigation device hasn't moved yet, the second waiting period will be entered. In the second waiting period, the sensor will be driven periodically with a longer period to capture images, and the digital signal processor will be used to calculate whether the optical navigation device moves or not. Generally speaking, because the optical navigation device will enter an intermittent mode in the second period, the period of driving the sensor to capture images in the second waiting period will be larger than that of driving the sensor to capture images in the first waiting period. If the optical navigation device is still in the static state in the second waiting period, the sleeping mode will be entered (Step S24). At this time, there will be no instruction to drive the sensor to capture images, hence wasting no power.
In the present invention, the optical navigation device will completely enter the sleeping mode. It is not necessary to drive the sensor to capture images every a fixed time, hence accomplishing the power-saving object. The present invention makes use of a displacement detector to detect the state of the optical navigation device in the sleeping mode. Therefore, when the user moves the optical navigation device again, a current will be inputted to break off the sleeping mode and drive the sensor to directly capture images (Step S25).
Finally,
The present invention will be illustrated in detail with the following example:
For instance, if Δx, Δy/F<2, the frame rate will be decreased. If Δx, Δy/F>8, the frame rate will be increased.
From the above table, the relative displacement of Δx and Δy will vary according to the moving speed and the frame rate. Therefore, the optimum frame rate can be set from the Δx and Δy value.
Although the present invention has been described with reference to the preferred embodiment thereof, it will be understood that the invention is not limited to the details thereof. Various substitutions and modifications have been suggested in the foregoing description, and other will occur to those of ordinary skill in the art. Therefore, all such substitutions and modifications are intended to be embraced within the scope of the invention as defined in the appended claims.