B5WC Built- In Color Sensor User's Manual ( E612- E1- 01) 14
<Specific examples of usage>
(Example 1) Lubricant color change detection
A conceptual image of the installation is shown below.
- Install the color sensor so that the lens surface
of the sensor contacts closely to the transparent
container. The recommended size range for
transparent containers is 20 to 50mm. Attach the
reflector so that it contacts closely to the
container as well.
- When lubricant enters the container, the color
sensor outputs the RGB voltage values. By
reading these values via the I
2
C bus and
identifying the amount of change in the RGB
ratio, changes in lubricant color can be detected.
* Select the material of the transparent container according to the type of lubricant. The shape of the
container can be either rectangular or cylindrical, but the structure should be such that the positional
relationship between the container, sensor, and reflector is fixed.
* Select a reflector that can ensure the received light intensity of the color sensor. For reference, OMRON
uses a reflector of "SUS430/surface polished (#240 or #320 equivalent)".
(Example 2) Cup color detection in drink dispensers
A conceptual image of the installation is shown below.
- Install the color sensor so that the lens surface
of the sensor faces the cup to be detected.
- The recommended distance range between the
sensor lens surface and the cup is about 30 to
50mm. Within this range, the fluctuation of the
RGB output voltage values are relatively small,
even taking into account the shift of the cup's
placement position.
- When a cup is placed, the color sensor outputs
the RGB voltage values. By reading these
values via the I
2
C bus and comparing with the
RGB ratio for each cup recorded beforehand,
the cup color can be judged. By presetting the
corresponding drink for each cup color, different
types of drinks are served in each cup.
* The cup itself can be detected by comparing the output voltage of the color sensor in the absence of a
cup and in the presence of a cup of each color. However, if the color of the cup is dark and the RGB
output voltages themselves are small, there is a possibility of detecting "no cup" even though there is a
cup, or "cup present" even though there is no cup due to ambient light, so sufficient evaluation is required
for each application. It is recommended that the cup detection method be provided separately from the
color sensor, if possible.
Conceptual image of installation
Conceptual image of installation
Reflector
ASTM reagent
Transparent
container
Color sensor
MCU
50mm
MCU