The invention discloses a digital absolute code optical
liquid level sensor, comprising an incidence
optical fiber, an emergence
optical fiber, a shell, an optical base, a
light source outside the shell, a photosensitive unit and a SBC
signal processing unit, wherein, the incidence
optical fiber and the emergence optical
fiber stretches into the shell and are respectively arranged in pair at the two ends of the optical base with a groove; a float component moves upwards and downwards followed by the change of the liquid level; a convex baffler of the float component, which is corresponding tothe groove of the optical base, follows the liquid level to move and stretches into the groove of the optical base for keeping off the incidence
ray of the liquid level incidence optical
fiber, thus the emergence optical
fiber gets a variation
gray code liquid level
signal. The resolution and the precision of the invention are decided by the spacing of the optical fiber pair, the physical dimension of the baffler and the form of the coding. The invention can measure the liquid level of various mainly transparent liquid with high precision, and
resist electromagnetic interference; the liquid level height information adopts the absolute coding, and no zero-calibration is needed to revert to the measurement after the outage reversion. The invention is particularly applicable to the
liquid level measurement of the sloshing liquid surface and under the changeable environment.