The embodiments of our invention provide an optical fluid level encoder for measuring a level of fluid in a container.
A light pipe 150 is arranged at an angle in the container. The light pipe 150 includes a light source 110, e.g., a LED, a light sensor 120, e.g., a photo detector. It should be noted that the positions of the source and sensor can be reversed.
The light pipe also includes one or more optical conduits 130. In this embodiment, the two optical conduits are separated by a gap 135. A length of the optical conduits and gap(s) can be precisely controlled. In the preferred embodiment, the optical conduits are constructed of cylindrical transparent acrylic rods of different lengths. The diameter of the rods is about 5 mm.
In the preferred embodiment, the diameter of the rod is made the same as the diameter of the LED 110 and the phototransistor 120 to facilitate assembly of the encoder, see
As an advantage, any light beam entering the conduits at one end exits the conduits at the opposite end due to total internal reflection. Total internal reflection occurs when light beam is refracted at the medium boundary of the conduit to effectively reflect all of the light back into the conduit. Therefore, the conduits can be curved, see
Optional means 160 for indicating or measuring a light intensity is connected to the light sensor. The encoded output value can be “0” (off) or “1” (on), or some continuous value as described below. The artisan skilled in the art will recognize that the means 160 can be any measurement component, e.g., electrical, optical, and mechanical. It should also be noted that the sensor 120, can be passive, a translucent rod that is visible. In this case, the light beam will be visible in the sensor as long as the light beam penetrates the sensor.
The optical conduits is arranged between the light source and the light sensor along a path of the light beam, such that at least one part of the light beam passes through the optical conduit, and at least an other part of the light beam passes through the fluid when the container holds the fluid. It should be noted that the light beam can be any optical signal including visible light, infrared, ultraviolet, or in the form of a laser beam.
As shown in
As shown in
As shown in
By precisely cutting the lengths of the optical conduits, it is possible to construct a fluid level encoder that can maintain the fluid level over a small range of values, e.g., only the values where the fluid level is in the gap.
During operation, as the fluid level rises, the level indicator can be incremented each time a gap is reached, and as the fluid level falls, the level indicator can be decremented. Thus, the configuration shown in
The fluid level encoder will always be on when the container is almost empty in
Stacked Light Pipes
In another embodiment of the invention as shown in
Gray Code
A Gray code provide an encoding of 2n binary numbers such that only one bit changes from one value to the next. As an advantage, Gray codes are useful encoding fluid levels because a slight position change in the fluid level only affects one bit. In a conventional binary code, up to n bits can change as the fluid level rises or falls across a single dividing line, and a slight misalignments of the measuring device can cause extremely incorrect level readings.
For example, moving from level 7 to level 8, i.e., that is, 0111 to 1000 in binary, can result in any of the 16 possible results from 0000 to 1111 as an intermediate state, depending on the slightest misalignment in the individual detectors for a 0 and a 1 in each of the four channels. Because a Gray code changes only one bit at a time, the worst case error is a single count in either direction, and that error only exists for the maximum permitted assembly misalignment of the assembly during manufacture.
A binary-reflected Gray code for n bits can be constructed by taking a Gray code for n-1 bits, and repeating it in reverse order, then prepending a zero to all values in the first half of the new code and a 1 to all values in the second half of the new code.
It should be understood that other types of codes can also be encoded; the codes need not be absolute codes such as binary or Gray codes. Quadrature codes can be used, as can virtual absolute codes, where a quadrature code provides high resolution, and a third code line provides a unique sequencing signature. As the fluid level changes slightly, the state of the unique sequencing code line yields a unique sequence that can only occur in one position, thus giving an absolute level with only three channels of data.
Direct Digital Reading Fluid Level Device
Other embodiments are also possible as shown in
Irregularly Shaped Containers
As an advantage, the fluid level encoder as described herein can also be used with irregular shaped containers as shown in
Although the invention has been described by way of examples of preferred embodiments, it is to be understood that various other adaptations and modifications can be made within the spirit and scope of the invention. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention.