The present invention relates to a gravity sensor, and especially to a contactless gravity sensor to overcome a wear problem.
The prior art position sensor in a joystick generally comprises a contact-type varistor controller. As shown in
However, the electro brushes 67 and 67′ and varistors 68 and 68′ may suffer from wear after long-term use. The contact-type varistor controller 60 is degraded and thus has a shorter work life.
It is an object of the present invention to provide a gravity sensor to overcome a wear problem by using a photo interrupter instead of a contact-type varistor.
It is another object of the present invention to provide a gravity sensor to calibrate a horizontal direction and to detect an inclined angle for a joystick or machine.
It is still another object of the present invention to measure an inclined angle of a test object by calculating relative movement between a photo interrupter and a gravity wheel.
It is still another object of the present invention to provide a plurality of gravity sensors to determine an inclined direction of a test object in a plurality of dimensions.
To achieve the above objects, the present invention provides a gravity sensor described as comprising the following. A photo interrupter includes a housing, a cavity in the housing, a light emitter on one side of the housing and a light detector on another side of the housing. A gravity wheel points in the direction of gravity and comprises a pivot which is at center thereof, and which is pivotally arranged on the housing, a plumb arranged at one edge of the gravity wheel and a plurality of through holes annularly arranged on the gravity wheel. The gravity wheel is partially located in the cavity. The light emitter is an infrared LED. The light detector has two photo transistors on a light receiving plane thereof.
The foregoing aspects and many of the attendant advantages of this invention will be more readily appreciated as the same becomes better understood by reference to the following detailed description, when taken in conjunction with the accompanying drawings, wherein:
The gravity sensor has extensive application. For example, the gravity sensor can be used in a joystick to detect an inclined angle of the joystick. With reference to FIGS. 3 to 8, the gravity sensor according to the present invention mainly comprises a photo interrupter 1 and a gravity wheel 2. The photo interrupter 1 comprises a housing 10, a cavity 11 in the housing 10, a light emitter 12 on one side of the housing 10 and a light detector 13 on the other side of the housing 10. The light emitted from the light emitter 12 will be directly detected by the light detector 13 if there is no obstacle which is present in the cavity 11. Alternatively, the output of the light detector 13 will change if there is an obstacle which is present in the cavity 11. In a preferred embodiment of the present invention, the light emitter 12 can be an infrared light emitting diode (LED), and the light detector 13 comprises two photo transistors S1 and S2 on a light receiving plane thereof to generate a serial phase signal. The housing 10 further comprises two slots 14 and 14′ in two lateral topsides of the cavity 11.
The gravity wheel 2 comprises a pivot 21 at center thereof, a plurality of through holes 22 annularly arranged in the gravity wheel 2 and a plumb 23 arranged at one edge of the gravity wheel 2. The pivot 21 is pivotally arranged in the slots 14 and 14′. The pitch between adjacent through holes 22 can be adjusted according to a desired resolution. The plumb 23 keeps pointing in the direction of gravity during movement of the photo interrupter 1 as shown in
When the two photo transistors S1 and S2 detect light emitted from the light emitter 12 and passing through the through holes 22, corresponding serial phase signals are generated. More particularly, two photo transistors S1 and S2 generate an ON signal when receiving a light, and generate an OFF signal when not receiving the light. The forward and backward inclined angles can be calculated with reference to the serial phase signals and number of the through holes 22.
Moreover, the resolution of the gravity sensor can be adjusted to control the precision of a detected rotation angle Δθ.
Moreover, the light detector 13 can be connected to a controller (not shown) for use in horizontal correction for a machine.
To sum up, the present invention has the following advantages:
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 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.