Control method of color sensor using reflection intensity to determine color and material

By using a color sensor with a laser light source and an adjustable focus lens, the color and material are determined by the difference in reflective intensity and distance. This solves the shortcomings of existing sensors in sensing distance and color judgment, and achieves high-precision and long-distance recognition.

CN115200710BActive Publication Date: 2025-11-11ZHONGSHAN KEWEI PHOTOELECTRIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210849904.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-19
Publication Date
2025-11-11
Estimated Expiration
2042-07-19

AI Technical Summary

Technical Problem

Existing color sensors can only accurately determine colors when the sensing distance is short and constant, and cannot adapt to patterns, graphics, and QR codes, and have poor ability to distinguish similar colors.

Method used

Using a laser light source and an adjustable focus lens, the color and material are determined by adjusting the lens position and distance differences and utilizing the intensity of reflected light. Combined with the processor, AD value sampling and filtering are performed to achieve color difference and material recognition.

Benefits of technology

It improves the accuracy and sensing distance of color and material recognition, can recognize most colors and materials, adapts to patterns, designs and QR codes, and has high positioning accuracy and high repeatability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115200710B_ABST
    Figure CN115200710B_ABST
Patent Text Reader

Abstract

The application discloses a control method of a color sensor for judging color and material by using reflection intensity, and the control method comprises the following steps: adjusting the position of an upper lens by a screw rod to change the laser intensity of a light path projected on an upper receiving diode and a lower receiving diode, and setting a certain distance as the minimum distance difference identification precision; setting the distance difference by a button, so that a processor obtains the current AD value of the upper receiving diode and the lower receiving diode of the light path formed after the position of the upper lens is adjusted in the S1 step; during detection, the processor respectively performs real-time AD value sampling and filtering processing; the processor compares and calculates the real-time upper and lower AD values to realize sensing distance positioning, and calculates the size difference of the upper AD value to realize color difference judgment, realizes the set distance color identification, and outputs the calculated detection object reflection surface distance signal through a signal output module, so that the positioning precision is high, the repeated precision is higher, and the sensing distance is far.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This invention relates to a control method for a color sensor that uses reflective intensity to determine color and material. [Background Technology]

[0002] Existing color sensors use RGB or RGB mixed white light, which requires all three light sources to fall on the same color being detected. Therefore, focusing is necessary, resulting in a short sensing distance. They also require balancing three sets of proportions for judgment, but their ability to distinguish similar colors is relatively poor. The biggest weakness of existing color sensors is that the detected color must be a single pure color; otherwise, the three sets of reflection proportions will become chaotic and unable to be judged. They are completely unsuitable for patterns, graphics, QR codes, etc., and require a completely fixed distance, without the ability to set tolerance for actual distance fluctuations, resulting in relatively poor usability. [Summary of the Invention]

[0003] This invention overcomes the shortcomings of the above-mentioned technologies and provides a control method for a color sensor that uses reflective intensity to determine color and material.

[0004] To achieve the above objectives, the present invention adopts the following technical solution:

[0005] A control method for a color sensor that uses reflective intensity to determine color and material properties is described. The color recognition sensor includes a housing; a lower inner part of the housing houses an emitting tube for emitting laser light and a lower lens through which the laser light passes and exits; an upper inner part of the housing houses an upper lens through which reflected laser light passes; and upper and lower receiving diodes located behind the upper lens for receiving and detecting the intensity of the reflected laser signal. A screw on the housing controls the up-and-down movement of the upper lens. Inside the housing is a PCB board connected to the upper and lower receiving diodes, which calculates the distance to the reflecting surface based on the difference in reflected laser signal intensity. The PCB board is connected to the emitting tube. A button on the housing, connected to the PCB board, interacts with a processor on the PCB board to determine the intensity of the emitted light signal at a specific distance. A signal output module is located on the PCB board. The control method steps are as follows:

[0006] S1. By adjusting the position of the upper lens with a screw, the intensity of the laser light projected onto the upper and lower receiving diodes is changed, and a certain distance is set for the upper and lower receiving diodes as the minimum distance difference recognition accuracy.

[0007] S2. By setting the distance difference through the button, the corresponding color difference tolerance and material reflectivity difference tolerance within the distance difference range are realized, so that the processor can obtain the current AD values ​​of the upper receiving diode and the lower receiving diode of the optical path formed after adjusting the position of the upper lens in step S1.

[0008] S3. During detection, the upper receiving diode and the lower receiving diode receive the reflected laser light from the object being detected, and the processor performs real-time AD value sampling and filtering respectively.

[0009] S4. The processor calculates the real-time comparison of the upper and lower AD values ​​to realize the sensing distance positioning, and calculates the difference between the upper and lower AD values ​​to realize the color difference judgment. The color difference judgment combined with the distance positioning realizes the color recognition at the set distance. The calculated distance signal of the detected object's reflective surface is output through the signal output module.

[0010] The control method for a color sensor that uses reflectivity to determine color and material, as described above, is characterized in that: a sensing window for stabilizing the output signal is set in the processor in S4.

[0011] The control method for a color sensor that uses reflective intensity to determine color and material, as described above, is characterized in that: the lower lens is a lens with adjustable focus to change the size of the light spot.

[0012] The control method for a color sensor that uses reflective intensity to determine color and material, as described above, is characterized in that a light-transmitting plate is provided on one side of the housing.

[0013] The control method for a color sensor that uses reflective intensity to determine color and material, as described above, is characterized in that: the outer casing is provided with a mounting base, and the emitting tube, lower lens, and upper lens are all mounted on the mounting base.

[0014] The control method for a color sensor that uses reflectivity to determine color and material, as described above, is characterized in that: the signal output module is an output transistor.

[0015] The beneficial effects of this invention are:

[0016] This invention first determines the distance using a screw, then subdivides and controls the distance in the program, assigning different distances to different reflectivity differences. It classifies the reflectivity of various colors and materials, and controls the tolerance of reflectivity differences by controlling the distance difference. It can identify most colors and has higher positioning accuracy, higher repeatability, and longer sensing distance than traditional color sensors. [Image Description]

[0017] Figure 1 This is a schematic diagram of the photoelectric sensor structure of the present invention;

[0018] Figure 2 This is one of the exploded views of the photoelectric sensor of the present invention;

[0019] Figure 3 This is the second exploded view of the photoelectric sensor of the present invention;

[0020] Figure 4 This is a flowchart illustrating the principle of the present invention. [Detailed Implementation]

[0021] The technical solutions in the embodiments of the present invention will now be clearly and completely described in conjunction with the accompanying drawings.

[0022] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of the components in a specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly. Furthermore, descriptions involving "preferred," "second-best," etc., in this invention are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "preferred" or "second-best" may explicitly or implicitly include at least one of those features.

[0023] like Figure 1-4 As shown, a control method for a color sensor that uses reflective intensity to determine color and material is described. The color recognition sensor includes a housing 1, an emitting tube 2 for emitting laser light and a lower lens 3 for the emitted laser light to pass through and outwards on the lower inner side of the housing 1, an upper lens 4 for the reflected laser light to pass through on the upper inner side of the housing 1, and an upper receiving diode 51 and a lower receiving diode 52 located behind the upper lens 4 for receiving and detecting the intensity of the reflected laser signal. A screw 6 on the housing 1 controls the up-and-down movement of the upper lens 4. Inside the housing 1 is a PCB board 7 connected to the upper and lower receiving diodes 51 and 52 respectively, which calculates the distance to the reflecting surface based on the difference in the intensity of the reflected laser signal. The PCB board 7 is connected to the emitting tube 2. A button 8 on the housing 1, connected to the PCB board 7, interacts with the processor in the PCB board 7 to obtain the intensity value of the emitted light signal at a specific distance. The PCB board 7 has a signal output module. The control method steps are as follows:

[0024] S1. Adjust the position of the upper lens 4 by screw 6 to change the intensity of the laser light projected onto the upper receiving diode 51 and the lower receiving diode 52, and set a certain distance between the upper receiving diode 51 and the lower receiving diode 52 as the minimum distance difference recognition accuracy.

[0025] S2. Set the distance difference by button 8 to achieve the corresponding color difference tolerance and material reflectivity tolerance within the distance difference range, so that the processor can obtain the current AD values ​​of the upper receiving diode 51 and the lower receiving diode 52 of the optical path formed after adjusting the position of the upper lens 4 in step S1.

[0026] S3. During detection, the upper receiving diode 51 and the lower receiving diode 52 receive the reflected laser light from the object being detected, and the processor performs real-time AD value sampling and filtering respectively.

[0027] S4. The processor calculates the real-time comparison of the upper and lower AD values ​​to realize the sensing distance positioning, and calculates the difference between the upper and lower AD values ​​to realize the color difference judgment. The color difference judgment combined with the distance positioning realizes the color recognition at the set distance. The calculated distance signal of the detected object's reflective surface is output through the signal output module. The signal output module can stably output the signal by setting the sensing window.

[0028] In this case, after the position is determined by the screw, a distance relative to the determined distance is taken as the distance accuracy difference that can be stably identified, and this accuracy is used as the identification accuracy of color and material reflectivity difference.

[0029] The distance is subdivided, and the same distance corresponds to different reflectivity differences of different colors or materials. That is, at the same distance, the color being detected is identified using the recognition accuracy determined above. The set distance difference corresponds to the reflectivity difference of color or material, and different distances correspond to different reflectivity differences. This is the distance fluctuation tolerance for judging the same color, as well as the grayscale accuracy for judging different shades of the same color, and the standard for identifying and excluding different colors. The distance range can then be set by buttons to realize the recognition of color or material within the distance range.

[0030] By using a small, single-color light source, such as a laser light source, it is possible to recognize most single pure colors and accurately locate the color. Because a single-color laser light source is used, the positioning accuracy is much higher than that of an RGB single-color light source or a three-color mixed white light source, and the sensing distance is also much longer.

[0031] On the other hand, for combinations of colors, patterns, or QR codes, the light spot can be appropriately enlarged using an adjustable lower lens so that the light spot completely covers the color, pattern, or QR code being detected. Using the aforementioned method, the object being detected can be identified through light intensity, thereby enabling the judgment of the color, pattern, or QR code.

[0032] For materials unrelated to color, the same method described above can be used for material identification, accuracy setting, and difference tolerance confirmation.

[0033] This invention focuses on providing a method for analyzing color and material properties solely based on intensity, without relying on proportional relationships. The positioning method is not limited to the mechanical screw provided in the embodiments; it can also utilize similar push rods or other positioning methods. The mechanical screw is merely a relatively simpler and more practical positioning means.

[0034] The above are merely preferred embodiments of the present invention and do not limit the patent scope of the present invention. All equivalent structural transformations made using the contents of the present invention's specification and drawings under the inventive concept of the present invention, or direct or indirect applications in other related technical fields, are included within the patent protection scope of the present invention.

Claims

1. A control method for a color sensor that uses reflective intensity to determine color and material, the color sensor comprising a housing (1), an emitting tube (2) for emitting laser and a lower lens (3) for passing through and projecting the emitted laser on the lower inner side of the housing (1), an upper lens (4) for passing through the reflected laser and an upper receiving diode (51) and a lower receiving diode (52) for receiving and detecting the intensity of the reflected laser signal located behind the upper lens (4), a screw (6) for controlling the up-down movement and adjustment of the upper lens (4) on the housing (1), a PCB board (7) connected to the upper receiving diode (51) and the lower receiving diode (52) for calculating the distance of the reflecting surface based on the difference in the intensity of the reflected laser signal inside the housing (1), the PCB board (7) and the emitting tube (2), a button (8) connected to the PCB board (7) for interacting with the processor in the PCB board (7) to obtain the intensity of the emitted light signal at a specific distance, and a signal output module on the PCB board (7), the control method steps of which are as follows: S1. Adjust the position of the upper lens (4) by screw (6) to change the intensity of the laser light projected onto the upper receiving diode (51) and the lower receiving diode (52) of the light path, and set a certain distance between the upper receiving diode (51) and the lower receiving diode (52) as the minimum distance difference recognition accuracy. S2. Set the distance difference by button (8) to achieve the color difference tolerance and material reflection difference tolerance within the distance difference range, so that the processor can obtain the current AD value of the upper receiving diode (51) and lower receiving diode (52) of the optical path formed after adjusting the position of the upper lens (4) in step S1. S3. During detection, the upper receiving diode (51) and the lower receiving diode (52) receive the reflected laser light from the object being detected, and the processor performs real-time AD value sampling and filtering respectively. S4. The processor calculates the real-time comparison of the upper and lower AD values ​​to realize the sensing distance positioning, and calculates the difference between the upper and lower AD values ​​to realize the color difference judgment. The color difference judgment combined with the distance positioning realizes the color recognition at the set distance. The calculated distance signal of the detected object's reflective surface is output through the signal output module.

2. The control method for a color sensor that uses reflectivity to determine color and material according to claim 1, characterized in that: In the processor of S4, a sensing window is set to stabilize the output signal.

3. The control method for a color sensor that uses reflectivity to determine color and material according to claim 1, characterized in that: The lower lens (3) is a lens with adjustable focus to change the size of the light spot.

4. The control method for a color sensor that uses reflectivity to determine color and material according to claim 1, characterized in that: A light-transmitting plate (9) is provided on one side of the outer shell (1).

5. The control method for a color sensor that uses reflectivity to determine color and material according to claim 1, characterized in that: The outer casing (1) is provided with a mounting base (10), and the transmitting tube (2), lower lens (3) and upper lens (4) are all mounted on the mounting base (10).

6. The control method for a color sensor that uses reflectivity to determine color and material according to claim 1, characterized in that: The signal output module is an output transistor.

Citation Information

Patent Citations

  • Displacement sensor, spectral characteristic measuring apparatus and method, color measuring apparatus and method, planar measured object quality monitoring apparatus and displacement measuring method

    CN103727880A

  • Multifunctional sensor and sensing method

    CN109100739A