System and method for detecting a change on a moving surface

10907987 · 2021-02-02

Assignee

Inventors

Cpc classification

International classification

Abstract

A system is provided for detecting a change on a moving surface, for instance in color and/or texture, comprising: at least one light generating device for generating light to be directed to the moving surface; and at least one light sensor for capturing reflected light from the moving surface; wherein the change on the moving surface, for instance in color and/or texture, is detected based on the reflected light captured by the light sensor.

Claims

1. A system for detecting a change on a moving surface, the system comprising: a first light generating device for generating light to be directed to the moving surface; a first light sensor for capturing reflected light from the moving surface; a further light generating device for generating light to be directed to the moving surface; and a further light sensor for capturing reflected light from the moving surface, wherein: the change on the moving surface is detected based on the reflected light captured by the first light sensor; the first light generating device and the first light sensor are arranged relatively towards each other in that the change is reliably detected for a variable distance within a predetermined range of the system from the moving surface; the change on the moving surface is further detected based on the reflected light captured by the further light sensor; and the change on the moving surface as detected twice in a respective manner is compared for generating further information about the movement of the moving surface.

2. The system of claim 1, further comprising a housing in which the light generating devices, the light sensors, and a processing system are mounted, and wherein at least part of the housing comprises an anti-reflection surface and/or a physical barrier.

3. The system of claim 2, further comprising: at least one bracket for removable attachment of the housing to a mounting surface from where the change on the moving surface is viewable, wherein: the at least one bracket is provided with an adhesive; and the at least one bracket comprises mechanical obstructions that match with a mechanical obstruction on the housing.

4. The system of claim 1, further comprising: a first optical means for focusing light emitted from the first light generating device; and a second optical means for focusing light reflected from the moving surface, wherein: the first optical means is oriented differently from the second optical means; and further to the first light generating device and the first light sensor their corresponding first and second optical means are arranged relatively toward each other in that the change is reliably detected for a variable distance within a predetermined range of the system from the moving surface.

5. The system of claim 4, wherein the first optical means and/or the second optical means are lenses.

6. The system of claim 4, wherein the optical axis of the first optical means is not parallel with the optical axis of the second optical means.

7. The system of claim 4, wherein the first optical means is mounted in the system with its optical axis substantially perpendicular to the moving surface, and at a position such that its distance to the moving surface is comparable or almost equal to the distance between the second optical means and the moving surface.

8. The system of claim 4, wherein at least part of the housing comprises a physical barrier between the first optical means and the second optical means.

9. The system of claim 4, wherein: a particular relation is defined between the positions of the first optical means and the second optical means respectively; and an off-set distance is defined between the optical axis of the first optical means and the central axis of the moving surface being perpendicular to the first optical means' plane.

10. The system of claim 9, wherein the particular relation is further related to the field of view of the light sensor.

11. The system of claim 1, wherein the light generating device is a light-emitting diode or an LED, and/or wherein the light sensor is a phototransistor.

12. A method for detecting a change on a moving surface, the method comprising: transforming reflected light from a moving surface and obtained using the system of claim 1 into an interpretable signal; and processing and conditioning the signal to detect the change on the moving surface.

13. A data processing system comprising: means for carrying out the method of claim 12; optionally, a computer program comprising software code adapted to perform the method of claim 12; and optionally, a computer readable storage medium comprising the computer program.

14. A method for detecting a change on a moving surface, the method comprising: transforming reflected light from a moving surface and obtained using the system of claim 1 into an interpretable signal; processing the signal such that at least two thresholds are automatically generated for detecting the change on the moving surface.

15. A data processing system comprising: means for carrying out the method of claim 14; optionally, a computer program comprising software code adapted to perform the method of claim 14; and optionally, a computer readable storage medium comprising the computer program.

Description

DESCRIPTION OF THE DRAWINGS

(1) FIG. 1 schematically shows the functional diagram of a sensor system in an application set-up in accordance with an embodiment of the present invention.

(2) FIG. 2 illustrates an exploded view of the sensor system according to an embodiment of the present invention.

(3) FIGS. 3 and 4 illustrate the bracket in different views in accordance with an embodiment of the present invention.

(4) FIG. 5 illustrates the hold position of the bracket according to an embodiment of the present invention.

(5) FIG. 6 illustrates the pressed position of the bracket according to an embodiment of the present invention.

(6) FIG. 7 illustrates one side the assembling part of the housing in accordance with an embodiment of the present invention.

(7) FIG. 8 illustrates the other side of assembling part of the housing provided with PCB and connector in accordance with an embodiment of the present invention.

(8) FIG. 9 illustrates the assembling part of the housing in accordance with an embodiment of the present invention.

(9) FIG. 10 shows detail of the undercut snap depicted in FIG. 9.

(10) FIG. 11 illustrates the cover of the housing according to an embodiment of the invention.

(11) FIGS. 12 (a), (b), and (c) illustrate the optical concept according to the present invention.

(12) FIG. 13 illustrates the lens plate and its lenses according to an embodiment of the present invention.

(13) FIG. 14 illustrates the optical alignment of emitter and receiver according an embodiment of the present invention.

(14) FIG. 15 illustrates the dip detection and determination of thresholds in accordance with an embodiment of the present invention.

(15) FIG. 16 illustrates the modulated LED light sources according to an embodiment of the invention.

(16) FIG. 17 is a schematic representation of a Chebyshev bandpass filter used according to an embodiment of the invention.

(17) FIGS. 18 illustrates (a) front and (b) backside of an alignment tool used for positioning the brackets according to an embodiment of the invention.

DETAILED DESCRIPTION

(18) A sensor system is designed to be mounted on an electricity meter or its cabinet and optically detect the rotations of the meter disc. Rotations are detected by directing the light of two LEDs on the disc, and detecting the occurrence of the black or red mark on the disc by the sharp change or decrease in reflected light it causes, captured by two phototransistors. Two sets of LED and phototransistor are used to make the sensor system able to detect not only the rotations of the disc but also its rotation direction.

(19) The sensor system processes the data from the phototransistors internally to obtain the necessary information about the rotation of the meter disc. Once a rotation has been detected, a pulse is sent to the meter module. A register of the total number of rotations is also kept internally so that a meter module system can consult it if necessary.

(20) Each part of the sensor system is described in detail below:

(21) Fixation mechanism

(22) Housing

(23) Optical system

(24) PCB and components

(25) Algorithms and processing

(26) Moreover, installation and use of the sensor system is particularly described in subsequent paragraphs.

(27) Finally, an overview is given of the challenges overcome by means of the present invention.

DETAILED DESCRIPTION OF THE DRAWINGS

(28) According to an embodiment of the invention, the device consists of a number of different parts, as depicted in FIG. 1. This figure is a functional diagram of the sensor system 100, mounted on the meter cabinet 103 of a watt-hour meter 102, comprising a rotating disc 101. The meter cabinet 103 is for instance a transparent or translucent closet made of poly methyl methacrylate (PMMA), polycarbonate or a regular glass type. More into detail, the sensor system 100 as being attached onto the outside meter cabinet wall 103, comprises of components and functionalities as indicated further within the dashed lines. For instance, a fixation mechanism 105 is provided in order to fulfill the attachment of the sensor system housing 130 onto the cabinet wall 103. Within the housing 130, a PCB 120 and its electronic components is provided, as well as an optical system 142, comprising lenses 140 optionally including filters, and light emitters 144 and light receivers 145. The signal as captured by a light receiver 145and also in connection with the PCB 120, is transmitted for signal conditioning by a signal conditioning element 124 and further processing by means of a central processing unit or CPU 123. The CPU 123 is also in direct relation with a driver 121 connected with the PCB 120, for powering the light emitters 144 under control of the CPU 123. A bidirectional communication interface 126 connected with the PCB 120 and in direct relation to the CPU 123 allows the retrieval of information from the sensor system 100, like for instance power consumption or power production as well as to send information to the sensor module as for instance configuration parameters or upgrading the application of the CPU 123, with an externally connected device 104, also referred to as meter module. Pictures and more detailed schematics will be referred to later on, when discussing specific parts of this diagram.

(29) An exploded view of an embodiment of the sensor system 200 is presented in FIG. 2, as well as a meter 202 or meter cabinet 203 onto which the sensor system 200 can be mounted. This sensor system 200 as illustrated in FIG. 2 comprises of the following parts: a cover 210 as part of the housing 130, a PCB 220 and mounted thereon a connector 222 and cable 225 to the meter module 104, an assembling part 230 of the housing 130, a lens plate 240, fixation brackets 250, and screws 260. Nor the driver 121, nor the light emitters 144 and light receivers 145 are depicted here, but are mounted onto and connected with the PCB 220.

(30) Fixation Mechanism

(31) In accordance with an embodiment of the invention, the sensor system 100, 200 can be placed on any meter 102, 202 or meter cabinet 103, 203 presenting a flat transparent or translucent surface 103 that is large enough for the sensor system in front of the meter disc 101. The fixation mechanism 105 developed for this sensor system 100, 200 presents multiple advantages. It allows positioning the sensor system 100, 200 on a meter 102, 202 or meter cabinet 103, 203 without requiring any additional tool. It also makes it possible for a user to remove the sensor system 100, 200 while leaving the brackets 250 in their position. This allows an easy reading of the meter index without the sensor system 100, 200 being in the field of view. It is afterwards easy to put the sensor system 100, 200 back in place on the four brackets 250 that were left on the meter 102, 202 or the cabinet 103, 203. According to an alternative embodiment, for example in case there is limited view of the disc 101 within the meter 102, 202 or meter cabinet 103, 203, making alignment of the sensor system 100, 200 with the disc 101 difficult or rather impossible, a further tool 1800 as shown in FIG. 18, comparable with a housing cover in shape and size, and comprising a centralized cross-shaped viewing window 1801 is provided which holds the brackets 250 and allows them to be aligned with the disc 101. While FIG. 18 (a) is depicting the front side of the tool 1800, i.e. further away from the meter cabinet 103, 203 onto which the brackets 1850 are mounted, FIG. 18 (b) illustrates the backside of the tool 1800, meaning closer to the meter cabinet 103, 203, and moreover showing square-shaped parts of double-sided tape 1856, provided onto the brackets 1850 and being used to fix the brackets 1850 onto the meter cabinet 103, 203.

(32) The fixation mechanism 105 consists of four brackets 250, 350, 450, of which different views are illustrated in FIGS. 3 and 4. The brackets 250, 350, 450 are held inside the housing 130, more particularly inside the assembling part 230 of the sensor system 100, 200 using a kind of snaps or clicking mechanism 351 with bumps and notches. Double-sided Very High Bond tape 456 is used to fix the brackets 250, 350, 450 onto the transparent surface 103, and to maintain these brackets 250, 350, 450 in their positions, as shown in FIG. 4. According to an embodiment of the invention, the surface provided with dual-sided tape, is not completely arbitrary, but well-chosen, including the number of attached bracket surfaces are part of the design. It appears to be that a particular surface for attachment is better divided into four respective smaller mounting areas rather than concentrating the attachment surface to a single large area. In a first instance, the brackets 250, 350, 450, 550 are held in position within the housing's assembling part 230, 530and enabled by means of a pin 531as described in FIG. 5. This allows the user to move the sensor system 100, 200 on the surface 103, 503 where it will be placed without having the tape 456 come into contact with the surface. Once the sensor system 100, 200 is in correct position, the brackets 250, 350, 450, 550, 650 can be pressed against the surface 103, 603, as shown in FIG. 6. This makes the double-sided tape 456 on the bracket 250, 350, 450 come into contact with the meter 102, 202 or the meter cabinet 103, 203.

(33) Further referring to FIG. 3, the brackets 350 are for example provided with at least two bumps 352, 354 and adjacent notches 353, 355 in a longitudinal bracket rod 356. Referring again to FIG. 5, the system's housing assembling part 530 is for instance provided with a pin 531 matching in shape and size with either of the notches 553, 555 in the bracket 550. Hence, the bracket 550 can be retained in at least two positions: a first hold position of the housing's pin 531 in a first notch 555 can be used to facilitate correct positioning of the system 100, 200 to the mounting surface 503, illustrated in FIG. 5, whereas a second hold position of the housing's pin 631 in a second notch 653 can be used for pressing the bracket 650 against the mounting surface 603, as shown in FIG. 6. Furthermore, when the pressing surface of the bracket 650 is provided with an adhesive such as dual-sided tape, the bracket 650 can be fixed to the mounting surface 603. According to an embodiment of the invention, the bumps and notches may differ in size and/or shape. As depicted for example in FIG. 6, a thick large bump 654 is particularly chosen from pressing the bracket 650 against the mounting surface 603, applying a rather significant force to perform this; a small bump 652 is particularly designed to hold a certain position but also enable easy removal and re-attachment of the housing's assembling part 630 onto the bracket 650.

(34) Housing

(35) While referring again to FIGS. 1 and 2, according to an embodiment of the invention, the housing 130 of the sensor system 100, 200 consists of two main parts. A first black part 230 on the side of the meter 102, 202 holds the lenses 140, provided within a lens plate 240, the PCB 120, 220 and the four brackets 250. This assembling part 230 needs to be black to avoid internal reflections of the light from the light emitters 144, such as for instance LEDs to the light receivers 145 e.g. phototransistors, which could have a negative influence on the correct interpretation and functioning of the sensor system 100, 200. The second part or cover 210 is on the backside of the sensor system 100, 200 and mainly serves to close the sensor system housing 130, required to achieve the IP51 standard for the sensor system 100, 200 (related e.g. to water drops and dust free applications).

(36) FIGS. 7-10 show the assembling part 230, 730, 930 of the housing 130 in accordance with an embodiment of the invention. FIG. 7 depicts the inner side of the assembling part 730 onto which the PCB is held in position by the snaps 701, particularly attaching, and the pins 702, particularly positioning. As clearly shown in FIG. 2, the inner side of the assembling part 230 is particularly oriented towards the housing's cover 210. A baffle 703 between the LEDs 144 and the phototransistors 145 is provided as physical barrier in order to reduce or eliminate internal reflections. The assembling part 730 provided with PCB 820 and connector 822 mounted thereon is shown in FIG. 8. FIG. 9 shows the so-called outer side of the assembling part 930, i.e. the side that is oriented to the meter disc 101. By means of a snap 901 the lens plate 240 as illustrated in FIG. 2 is positioned and fixed. This is shown in a more detailed way in FIG. 10, wherein the lens plate 1040 is mounted onto the assembling part 1030 and moreover fixed by means of the snap 1001. A perspective view of the cover part 1110 is presented in FIG. 11, for ensuring a water drops free and dust free system. Both housing parts are attached to each other using four screws 260 as described above referring to the exploded view of FIG. 2.

(37) Optical System

(38) According to an embodiment of the invention, the main challenge in the design of the optical system 142 is to provide all good signal quality over a distance d with big variable distance range from 0.5 cm up to 10 cm between the sensor system 1200 mounted onto the outer cabinet surface 1203 and the meter 1202 itself, without any adjustment to be made during installation, as depicted in FIG. 12 (b). Further in this Figure, a dashed line is drawn, being the perpendicularleaving the disc centre Xto the disc peripheral edge part that is to be measured, and dividing the sensor system 1200 is a Left side and a Right side respectively. FIG. 12 (c) is giving more detail (not drawn to scale) of the Right side of the optical system, particularly regarding the light emitters and light receivers, their corresponding optical elements and corresponding emitted and/or reflected light beams. Similar optics detail may be understood for the Left side of the sensor system. While referring also to FIG. 12 (c), the meter 1202, or more particularly the meter plate, for instance made of metal, may be provided with a meter glass 1202 put in front it, at a distance A measured from the meter plate, or at a distance 6 taken from the disc 1201 protruding from the meter plate. Hence, a distance d is given here as being the distance with big variable distance range between the cabinet surface 1203 onto which the sensor system 1200 may be mounted, and the meter glass 1202 from the meter 1202 itself. The distances and are both variable. The distance may be smaller than the distance meaning that the disc 1201 is protruding from the meter plate, but according to another embodiment, the disc 1201 may be located more inwards in the meter 1202, and therefor it is possible also that the distance becomes equal or larger than the distance . The meter glass 1202 and/or the cabinet surface 1203 may be made of an optical medium such as PMMA or polycarbonate, possibly coloured or darkened, or otherwise treated. The refraction of light passing such an optical medium is negligible as compared to the throughput beam of the emitted and reflected light. Although there is a particular loss of signal due to the existence of an optical medium, this will eventually not effect the interpretation of the resulting signal by the sensor system. The disc 1201 with the mark 1212 and center X can vary in reflective property from very shiny over matt to corrugate. The designed optical system can cope with all these influences without any adjustments.

(39) This is achieved by the optical concept as illustrated in FIG. 12 (a), (b) and (c) in accordance with an embodiment of the present invention. The light source chosen is a LED 1207. The LED 1207 is projecting light to the disc 1201 in a parallel beam 1209 by means of a first type of lens 1205. The beam 1209 is perpendicular to the meter 1202, meter glass 1202 or meter cabinet surface 1203, to avoid reflections on the (glass) window of the meter 1202 or meter cabinet 1203 directly into the receiving phototransistor 1206. The light reflected 1211 by the peripheral edge of the disc 1201 is captured by a phototransistor 1206 after having passed a second type of lens 1204, having a field of view 1210 characterized by an angle . According to an embodiment of the invention, this phototransistor lens 1204 only manipulates the beam in a vertical direction, i.e. along a direction perpendicular to the meter disc 101. Hence with the horizontal plane or within a certain horizontal range of measurement, the angle is not transformed by the lens 1204 and thus angle may be considered equal to angle characterising the field of the phototransistor 1206 itself. Moreover, while referring to Left side and Right side of the sensor system, two LED lenses 1205 and two phototransistor lenses 1204 are installed with corresponding LEDs 1207 and phototransistors 1205. More particularly, one LED lens 1205 and one phototransistor lens 1204 are on the Left side, and one of each are provided on the Right side, including corresponding light emitters 1207 and receivers 1206. This specific optical set-up with a LED/phototransistor Left side and a LED/phototransistor Right side respectively is chosen in order to not only measure a change or mark 1212 on the moving disc 1201, but also enabling the sensor system 1200 to detect the direction of rotation of the moving disc 1201. The distances L1 and L2 in FIG. 12 (a) and (c) are measured from the perpendicular line of the center of the disc peripheral edge part to be measured, i.e. the dotted line outgoing the disc center X, towards the center of the LED 1207 or towards the center of the phototransistor 1206 respectively.

(40) Considering the field of view of the phototransistor lenses 1204, and/or of the phototransistors 1206, the distances L1 and L2 are optimized to capture a good signal despite all the variables such as distance range, disc diameter and thickness, disc reflective properties, transparency and color of the meter cabinet without any adjustment required. The peripheral edge of the disc 1201 may be ribbed, or either a glossy surface. In this latter case, the reflected beam will be stronger and more directed, and hence the positioning of the lenses, or in other words the accuracy of the distances L1 and L2 becomes more critical.

(41) According to an embodiment of the invention, there is a particular relation between the distance of the LED L1, and the distance of the phototransistor L2 to the perpendicular from the disc centre X on one hand, and the field of view characterizing angle of the phototransistor lens, and the field of view characterizing angle of the phototransistor on the other hand, such that there is always an overlap between the LED spots and the field of view of the phototransistor. Whereas within a horizontal range as mentioned above, further referring to FIG. 12 (c), the following formula may be applied:
(L2L1)tan .Math.(d++d.sub.lp); with 15 cmd0.2 cm, preferably 10 cmd0.5 cm; and 5 cm0 cm, preferably 1 cm0.1 cm and d.sub.lp being the distance between the meter cabinet 1203 and the lens plate 1220 of the sensor system 1200, whereas for example 15 mmd.sub.lp1 mm, preferably 10 mmd.sub.lp2 mm and L1 is approximately 5 mm, given the diameter of the LED lens is about 15 mm, and the width of the phototransistor lens is about 12 mm.

(42) According to an embodiment of the present invention, the lens plate is a single PMMA (e.g. Plexiglas) piece, made by means of injection molding, that includes four separate lenses: two for the LEDs 1207 and two for the phototransistors 1206. The PMMA material is for instance chosen because of the compromise or trade off between manufacturability and functionality. FIG. 13 shows the lens plate 1300, with the indicated lenses 1304, 1305. The central, cylindrical lenses 1305 are for the LEDs 1207 while the outside ones 1304 are for the phototransistors 1206. Snap recesses 1301 are foreseen in the lens plate 1300 to be positioned beneath the snaps of the housing, whereas openings 1302 between outer lenses 1304 and the rest of the plate 1300 are made to avoid internal reflection of LED light to the phototransistor lenses 1304.

(43) Each lens 1304, 1305 is specifically designed for a sensor system 1200 (see also 100, 200 in FIGS. 1 and 2) according to the present invention. The LED lenses 1305 are cylindrical lenses that lead to a focused light beam creating a circular spot of 8-10 mm diameter. These lenses 1305 are designed as Fresnel lenses to avoid having a plastic part too thick to mold without issue. The small opening angle of the emitted light beam from the LEDs 1207 allows the sensor system 1200 to be used at a distance d or d with large variable range to the meter, whereas the size of the spot does not change significantly with the distance. The phototransistor lenses 1304, also designed as Fresnel lenses, focus the field of view of each phototransistor 1206 to a horizontal line of a certain thickness or ellipse-alike view, as shown in FIG. 14. For this picture, the phototransistors 1206 are replaced by red colored LEDs to provide a visualization of the optical alignment between emitter and receiver, as illustrated by the dashed line. The indicated spots 1401 are red colored. The lenses 1304 for the phototransistors 1206 are oriented or pivoted slightly towards the center of the disc, maximizing the amount of LED light reflected to the phototransistors. In FIG. 1 this is schematically illustratedyet in an exaggerated wayby the outer lines drawn within the box representing the lenses 140 of the sensor system 100.

(44) The LED light spots are not focused on the disc 1201 itself but at infinity and the emitted beams 1209 are parallel to each other and perpendicular to the meter 1202. This creates two spots of constant size, independent of the distance between the sensor system 1200 and the disc 1201, further enabling the sensor system 1200 to be used at over a large distance range from 0.5 to 10 cm from the meter 1202.

(45) PCB and Components

(46) The PCB and its components rely on state-of-the-art existing and standard available material, i.e. not adapted or customized, although particular components, such as the LEDs and the phototransistors for example are particularly chosen according to an embodiment of the invention.

(47) Algorithms and Processing

(48) Due to the large number of operations to be described in this section, each step will be described in the logical order for the signal processing. In accordance with an embodiment of the invention, the steps of Signal generation up to Mark detection as mentioned below, are performed in both signal channels independently, whereas each signal is captured by one of the phototransistors in a predetermined way, i.e. Left signal is captured by Left side phototransistor, and Right signal is captured by Right side phototransistor. The step of Rotation detection requires the results of both signals (Left and Right) processed together to perform correctly.

(49) Signal Generation

(50) According to an embodiment of the invention, the LEDs are for example selected as emitting light within the visible spectrum, except using e.g. the color red while the mark on a watt-hour meter disc is often colored red (instead of common black). In particular, infrared LED light is not preferred, whereas existing coatings in the field often reflect infrared light, and therefor may cause disturbing noise on the signals captured by the sensor system. As a result, the signal is for instance generated by two blue LEDs projecting light onto the meter disc. Each LED is modulated at a frequency of 1 kHz, for example for a 25% on and 75% off status. The blue light was chosen to ensure that it is absorbed by all black and red marks or stripes on the meter disc. The modulation frequency was selected to make a clear distinction between the intended LED light and the unwanted ambient light coming from many possible types of light sources present in households, such as for instance incandescent light bulbs, LED lamps, halogen lamps, neon tubes, fluocompact lamps and HID lamps. This method is also used to make a clear distinction between the intended LED light and the unwanted light originating from exposure to sunlight. Moreover, light sources of 300 400 Hz may cause flicker due to on/off pulsation, whereas modulated or pulsed light is generally preferred for avoiding noise and disturbances. A frequency significantly above the 300-400 Hz range is chosen in order to avoid flicker, and therefor the LED is modulated at 1 kHz frequency.

(51) Further referring to the presence of two LEDs, it is mentioned that their on/off status schedules differ amongst each other. As shown in FIG. 16, the pulse interval of both LEDs doesn't coincide, but the pulse of LED2 appears one time interval later than the pulse of the LED1 sequence. According to an embodiment of the invention, a particular symmetry and synchronization between both LED light pulses is applied for an improved working of the sensor system. Both LED1 and LED2 signals are identical in shape but are shifted over 2t in time (4t being the period of the signal). Crosstalk is herewith avoided.

(52) Signal Acquisition

(53) The signals used for the rest of the processing are the ones obtained by phototransistors, and a 24-bit ADC at a sampling frequency of 24 kHz. While respecting the Nyquist formula, this implies that for every signal channel 24.000 measuring points per second are generated, whereas each sample point corresponding with particular amplitude is translated and stored into a 24-bit representation within the central processing unit or CPU. Due to the 24-bit representation, a total of 2.sup.24 possible values or levels can be identified for the analysis of amplitude spectra of the captured signals, and hence considering the environmental light many different light signals on different levels of e.g. brightness, and/or intensity can be added, even though they are not important, and will eventually not effect the final result. The resolution of the ADC was chosen to ensure a sufficient resolution in all situations from dark environments to direct sunlight.

(54) Although the signal is AC coupled, a 10-bit ADC is used to sample the operating point of the phototransistor, after making use e.g. its sensitivity curve in order to transfer all captured signal parts to a sort of leveling out while bringing them on a curve with comparable signal strength. This allows for gain compensation of the phototransistor with respect to ambient light intensity, effectively suppressing signal level variations of the measured LED light intensity, hence providing a more robust and reliable system. A correction for normalization of the signal is thus performed. The 10-bit is chosen arbitrary, meaning that other logical variants are also possible to consider.

(55) Signal Conditioning

(56) The signal obtained from the 24-bit ADC is processed through the following steps: 1. The signal is fed through a digital Chebyshev bandpass filter, centered at the 1 kHz modulation frequency as illustrated in FIG. 17 wherein c is e.g. 5 Hz. By doing so, the intended LED light is retrieved and distinguished from the ambient light sources. 2. The filtered signal is compensated for changes in sensitivity of the phototransistor due to ambient light fluctuations, using the also-sampled operating point. A calibration curve was measured and is saved on the controller. 3. After compensation, the signal is rectified and the envelope gets detected. In this process, the signal sampling frequency is also lowered, to for instance 200 Hz, in order to reduce the processor load, while still having enough critical data or signal information for performing an accurate measurement analysis.

(57) Mark Detection

(58) Once the envelope of the signal has been computed, the occurrence of the mark on the disc in front of the sensor system can be detected as a dip in the signal intensity, created by the higher absorption of light by the black or red mark compared to the rest of the disc. The mark detection is performed using two thresholds 1501, 1502 as illustrated in FIG. 15, the signal having to pass under the lower one and come back above the higher one for a mark to be detected. The thresholds are defined during the calibration procedure as described below. According to an embodiment, absolute minimum 1503 and local dip 1504 are determined for defining the thresholds 1501, 1502 to be used for mark detection and signal calibration. As an example, the first threshold 1501 is e.g. chosen at 45% below the local dip 1504, whereas the second threshold 1502 is e.g. defined as 45% above the absolute minimum 1503. Hence the range between both threshold values 1501, 1502 represents the left over 10%. The thresholds are constantly updated to keep up with any change in signal amplitude due to temperature changes and component degradation.

(59) Rotation Detection

(60) To define whether a pulse must be sent out to the meter module, signaling a full rotation of the disc, the algorithm makes full use of the marks detected by the two sensors. A pulse is only accounted for once a mark has been detected by both sensors: a positive pulse (energy consumption is larger than possible energy production) if a mark is detected on the left phototransistor subsequently followed by the right phototransistor and a negative pulse (energy production is larger than energy consumption) in the inverse case.

(61) The algorithm is also robust against a missed mark in either signal, correcting itself automatically by adding two pulses if required.

(62) Changes of direction caused by the transition from consumption to production or reciprocally are also correctly detected thanks to the algorithm taking both signals into account before making a decision on the pulse to be sent out.

(63) Installation and Use

(64) Installation by Technician

(65) The first step during installation of the sensor system is the correct positioning of the sensor system in front of the meter disc. This can be done using the two LED spots. These spots must be focused on the disc and placed symmetrically left and right of the center of the disc. Once the position has been determined using the LED light spots, the four brackets can be pressed against the cabinet, and hence fixed as described above.

(66) Calibration

(67) The sensor system calibration is related to the definition of the thresholds as described above. This calibration is performed automatically after powering on of the sensor system. Hence, this means both after an installation by the installer and as recovery method after a power down of the sensor system. Note that the following detail about the procedure is independently executed for each signal channel.

(68) The calibration method comprises two parts: a bootstrap algorithm providing a first rough version of the thresholds, and a refinement phase, refining and/or updating these thresholds to get the highest possible immunity to noise and signal drift. According to an embodiment, the refinement phase never ends, i.e. it continues adapting the thresholds during the life of the sensor system.

(69) 1. Bootstrap Phase

(70) On sensor system start-up, no valid thresholds are known. To come to a first version of these thresholds, the algorithm keeps track of the minimum and the average of the signal. The thresholds are continuously redefined between these two evolving measurements. At the same time, these thresholds are used to detect dips in the signal. When a dip is detected, its minimum is recorded. When the last five recorded minima are close enough together and rather far away from all the other measured points, the bootstrap phase is considered to be successful and the controller continues with the refinement phase. Numerous extra checks are in place to prevent premature bootstrapping on a disc that is not moving.

(71) 2. Refinement Phase

(72) In the refinement phase, the minimum of every dip and the minimum between two dips are measured and subsequently used to each update and exponential moving average. These slowly-adapting versions are used to update the thresholds. This way, the thresholds evolve along with any drift due to aging or thermal influences.

(73) The sensor provides feedback to the external metering module and hence to the installer after a successful calibration.

(74) Removal and Repositioning

(75) The sensor can easily be removed from the meter, leaving only the four brackets in place. This allows for an easier reading of the meter index. The sensor system is robust against such use and will continue working normally and as before, once put back in clicked mounted position.

(76) List of Challenges Overcome with the Present Invention

(77) Large distance range (0.5-10 cm) Optical design with parallel beams and light sensors or phototransistors with a large field of view due to lenses focusing the light beams to circular spots of about 8 to 10 mm diameter and focusing the light sensors' fields of view to a horizontal line, avoiding noise and reflections from around the disc Positioning centered with respect to disc, no other requirement or tuning necessary. The design of the optical system including lenses, LEDs and phototransistors is such that it allows for a mm-range misalignment (e.g. up to 2-4 mm) in both directions perpendicular to the plane of the meter disc (above and below). This contributes directly to ease of installation of the sensor system.

(78) Variables Meter Properties Works with all meter discs (red or black mark, polished or corrugated disc) Works through all meter cabinets Works when directly placed on meter if sufficiently large area to place the sensor system Automatic and autonomous calibration, no input required

(79) Variable Environmental Conditions Robustness to any sort of ambient light due to modulated LED light and bandpass filtering of the signals Robustness to temperature changes (day versus night, season, light . . . ) due to continuous monitoring of thresholds compared to signal levels

(80) Installation must be possible very quickly, e.g. in 5 min Easy fixation mechanism, only requirement is having both light spots symmetrically on the meter disc Automatic and autonomous calibration, no input required One size fits all, no tuning required based on meter, environment etc. . . .

(81) It Must be Possible to Read the Meter Index Fixation mechanism makes it easy to remove the sensor system to consult the meter index. The sensor system will continue working once clicked back in position on the brackets

(82) Meters Where Both Consumption and Production is Possible Concept with two detection spots; makes it possible to determine the direction of the disc rotation