Color identification sensor and system

By using optical filter arrays and photodiode arrays to form detection channels in color recognition sensors, and combining analog-to-digital conversion and data processing circuits, high-precision and fast color recognition are achieved, solving the low efficiency of color recognition in the prior art and High cost issue.

CN118882828APending Publication Date: 2024-11-01SHENZHEN XINTU INTELLIGENT SENSE TECH CO LTD

Patent Information

Application Number
CN202410932785.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing color recognition sensors have low color recognition efficiency and high production costs, which are mainly due to the complex configuration of optical filters and photodiodes, resulting in low recognition efficiency and complex circuit structure, which increases production costs.

Method used

Three detection channels are formed using optical filter arrays and photodiode arrays, combining analog-to-digital conversion circuits, data processing circuits and ZQ automatic calibration circuits, so that the accuracy of color recognition is improved through gain adjustment and normalization processing.

Benefits of technology

It realizes high-precision and fast color recognition, reduces production costs, and improves the accuracy and dynamic range of color recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118882828A_ABST
    Figure CN118882828A_ABST
Patent Text Reader

Abstract

The invention relates to a color recognition sensor, which comprises three optical filters and photodiodes arranged corresponding to the optical filters, and is used for forming three detection channels and outputting corresponding voltage signals. The processing unit comprises an analog-to-digital conversion circuit, a data processing circuit, a storage circuit and a ZQ automatic calibration circuit; the analog-to-digital conversion circuit converts the voltage signal of each detection channel into a digital signal; the data processing circuit is used for receiving the digital signal and the gain of each detection channel, carrying out normalization processing and then outputting a detection result; and the ZQ automatic calibration circuit compares the digital signal with a preset ZQ calibration value and outputs a comparison result, so that the analog-to-digital conversion circuit adjusts the gain of the corresponding detection channel according to the comparison result. According to the color recognition sensor provided by the invention, the RGB color recognition channels are integrated on one chip, the optical signal reflected by the target is recognized at the same time, gain self-calibration can be carried out through the data output by each channel, and the color recognition accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of sensor technology and relates to a color recognition sensor, system and method. Background Art

[0002] A color recognition sensor is a sensor used to detect the color of an object. Existing color recognition sensors usually include a light transmitter and a light receiver, wherein the light transmitter includes three light emitting diodes (R, G, and B). The three light emitting diodes emit corresponding light in a time-sharing manner to illuminate the surface of the object to be measured, and then the light is reflected to the light receiver (composed of a photodiode, a phototransistor, a photocell, etc.). The three color light components in the reflected light signal are read out in sequence through the readout circuit of the light receiver, and the output values ​​of the three color channels are calculated and analyzed to determine the color of the object. However, the color recognition efficiency of a color recognition sensor with this configuration is relatively low.

[0003] In order to improve the accuracy of color recognition, the existing technology will measure and compare the three primary colors of RGB while identifying the object to be measured; or use STMicroelectronics high-speed chips to achieve high-precision color recognition through time-sharing. However, the complex circuit structure of this chip leads to a high production cost of the color sensor.

[0004] The contents of the background technology section are merely publicly known technologies and do not necessarily represent the existing technologies in the field. Summary of the invention

[0005] The purpose of the present application is to at least to some extent solve the deficiencies in the prior art. In a first aspect, the present application provides a color recognition sensor, comprising: an optical filter array, comprising three optical filters, for filtering a reflected light signal into three light components; a photodiode array, comprising a plurality of photodiodes, configured to form three detection channels corresponding to the three optical filters to receive the three light components and output corresponding voltage signals; a processing unit, wherein the processing unit comprises an analog-to-digital conversion circuit, a data processing circuit, a storage circuit and a ZQ automatic calibration circuit; the analog-to-digital conversion circuit receives the voltage signal of each detection channel and generates a digital signal; the data processing circuit receives the digital signal and gain of each detection channel and outputs a detection result after normalization; the ZQ automatic calibration circuit compares the digital signal with a preset ZQ calibration value and outputs a comparison result, so that the analog-to-digital conversion circuit adjusts the gain of the corresponding detection channel according to the comparison result.

[0006] In some embodiments, the analog-to-digital conversion circuit includes a gain adjustment subcircuit and an analog-to-digital conversion subcircuit; the gain adjustment subcircuit is used to adjust the gain of the analog-to-digital conversion circuit; the analog-to-digital conversion subcircuit is used to convert the voltage signal output by each detection channel into the digital signal.

[0007] In some embodiments, the preset ZQ calibration value is set according to the output bit number of the analog-to-digital conversion circuit.

[0008] In some embodiments, if the digital signal is greater than a preset ZQ calibration value, the comparison result is a high level, and the analog-to-digital conversion circuit reduces the gain; if the digital signal is less than the preset ZQ calibration value, the comparison result is a low level, and the analog-to-digital conversion circuit increases the gain.

[0009] In some embodiments, the storage circuit stores channel error parameters and / or sensor error parameters corresponding to each detection channel, the channel error parameters include a first gain error and a first signal error; the sensor error parameters include a second gain error and a second signal error. In one embodiment, the data processing circuit is also used to perform normalization processing after superimposing the digital signal and gain value output by each detection channel with the corresponding channel error parameter and / or sensor error parameter. The data processing circuit performs normalization processing according to the maximum value of the gains of the three detection channels.

[0010] In some embodiments, the channel error parameter is determined according to the following method: emitting a white light beam toward a calibration object, wherein the calibration object is a white object; receiving a light signal reflected by the calibration object and outputting a corresponding digital signal through three detection channels; obtaining the digital signal and gain value corresponding to each detection channel, and calculating the channel gain mean and channel signal mean of the three detection channels; and determining the deviation between the digital signal and gain value of each detection channel and the channel gain mean and channel signal mean as the corresponding channel error parameter.

[0011] In some embodiments, the sensor error parameter is determined according to the following method: emitting a white light beam toward a calibration object, wherein the calibration object is a white object; using multiple color recognition sensors to simultaneously receive light signals reflected by the calibration object and output corresponding digital signals through three detection channels; obtaining the digital signals and gain values ​​corresponding to all detection channels, and calculating the sensor gain mean and sensor signal mean of all detection channels; determining the deviation between the digital signal and gain value of each detection channel and the sensor gain mean and sensor signal mean as the corresponding channel sensor error parameter.

[0012] A second aspect of the present application provides a color recognition system, comprising a light source and a color recognition sensor as described in any one of claims 1 to 9; the light source is a white light source, used to emit a white light beam toward a target to be measured; the color recognition sensor receives a light signal reflected by the target and processes it to output a detection result.

[0013] It can be seen from the above-mentioned embodiments of the present application that the color recognition sensor proposed in the present application utilizes three-color optical filters and photodiode configurations to form three detection channels to synchronously acquire three detection data. By integrating the three RGB color recognition channels on a single chip, the light signal reflected by the target is recognized at the same time, and gain self-calibration can be performed through the data output by each channel, thereby improving the accuracy of color recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0015] Figure 1 A schematic diagram of a color recognition sensor provided by one embodiment of the present application; Figure 2 A schematic diagram of a ZQ automatic calibration circuit provided by an embodiment of the present application; Figure 3 A schematic diagram of a flow chart of adjusting gain provided in one embodiment of the present application; Figure 4 A schematic diagram of a normalization process provided for one embodiment of the present application. DETAILED DESCRIPTION

[0016] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0017] In order to solve the problems mentioned in the background technology, the present application proposes a new color recognition sensor.

[0018] Figure 1 1 is a schematic diagram of a color recognition sensor 10 proposed in an embodiment of the present application. The color recognition sensor proposed in the present application integrates three color recognition channels of RGB on a chip, recognizes the light signal reflected by the target at the same time, and can perform gain self-calibration through the data output by each channel, thereby improving the accuracy of color recognition.

[0019] Specifically, the color recognition sensor 10 includes an optical filter array 11, a photodiode array 12 and a processing unit 13. The optical filter array 11 is arranged in front of the photodiode array 12, and includes three different optical filters, namely R, G, and B optical filters, which are used to filter the reflected light into red, green, and blue light signals incident on the photodiode array 12. The photodiode array 12 includes a sensing array composed of multiple photodiodes, which is used to receive the light signal and convert the light signal into a corresponding electrical signal. Figure 1 As shown, the optical filter 111 is configured to filter the R light incident on the photodiode 121 to form a detection channel for detecting the R light component in the reflected light signal; the optical filter 112 is configured to filter the G light incident on the photodiode 122 to form a detection channel for detecting the G light component in the reflected light signal; the optical filter 113 is configured to filter the B light incident on the photodiode 123 to form a detection channel for detecting the B light component in the reflected light signal; therefore, the optical filter array and the photodiode array cooperate to form three detection channels, respectively detecting the three light components of R, G, and B. It can be understood that each detection channel proposed in the present application specifically corresponds to detecting different light components, and each detection channel includes at least one optical filter and at least one photodiode, and any possible arrangement is within the protection scope of the present application.

[0020] The processing unit 13 is used to receive the voltage signals output by different detection channels and perform data processing and normalization to obtain the color information of the target to be measured. The processing unit 13 includes an analog-to-digital conversion circuit 131, a data processing circuit 132, and a storage circuit 133. In an embodiment of the present application, the analog-to-digital conversion circuit 131 is set corresponding to the detection channel, and is used to process the voltage signal output by each detection channel and convert it into a digital signal. The data processing circuit 132 is used to obtain the digital signal output by each detection channel and the gain value of each channel, and perform normalization processing based on the gain value and the digital signal to obtain the color information of the target to be measured. The storage circuit 133 is used to store the various signals generated for storage. Optionally, the storage circuit 133 may be a dynamic random access memory (DRAM) circuit. It should be understood that the storage circuit may also be other types of storage circuits, such as other random access memory (RAM) circuits or read-only memory (ROM) circuits, and the present application embodiment does not impose any limitation on this.

[0021] In some embodiments, the analog-to-digital conversion circuit 131 includes a gain adjustment subcircuit and an analog-to-digital conversion subcircuit; the gain adjustment subcircuit is used to adjust the gain value of the analog-to-digital conversion circuit itself; the analog-to-digital conversion subcircuit is used to convert the analog voltage signal output by the detection channel into a digital signal. In the color recognition sensor proposed in the present application, a ZQ automatic calibration circuit 134 is also provided, which is used to compare the value output by the analog-to-digital conversion circuit 131 with the preset ZQ calibration value to output a comparison result, so that the analog-to-digital conversion circuit 131 can adjust its own gain value according to the comparison result to obtain a more suitable output value. Among them, the preset ZQ calibration value can be set according to the output bit number of the analog-to-digital conversion circuit 131. For example, in one embodiment, the output range of the 10-bit analog-to-digital converter is 0-1023, and the ZQ value can be set to an intermediate value of 512.

[0022] Figure 2 It is a schematic diagram of a ZQ automatic calibration circuit proposed in an embodiment of the present application. The gain adjustment subcircuit adjusts the size of the gain in the analog-to-digital conversion circuit through a multi-bit register. The ADC_gain<4:0> of the analog-to-digital conversion circuit shown in the figure is a 5-bit, 00000 has the smallest gain, and 11111 has the largest gain. For a 10-bit output analog-to-digital conversion circuit, the settable ZQ calibration value is 512. In practical applications, the preset calibration value can be larger, but it should not be too large to avoid the final value of the ZQ calibration being only 00000. Because the larger the ZQ calibration value, when the input value of the analog-to-digital converter is larger, the ZQ calibration ends up at 00000 and 00001, and finally locks at gain 00000.

[0023] For the analog-to-digital conversion circuit, under the same input voltage, the greater the gain, the greater the output value, and the strength of the reflected light signal affects the input voltage of the analog-to-digital conversion circuit. Therefore, the gain is adjusted to compensate for the influence of the strength of the reflected light signal on the output value of the analog-to-digital conversion circuit. For example, when the reflected light signal received by a certain channel is weak, the value output by the analog-to-digital conversion circuit is very small, and the output of the analog-to-digital conversion circuit can be increased by increasing the gain; conversely, when the reflected light signal received by a certain channel is strong, the output value of the analog-to-digital conversion circuit is very large, and the output of the analog-to-digital conversion circuit can be reduced by reducing the gain. Through this gain self-calibration strategy, the appropriate gain multiple of the analog-to-digital conversion circuit can be found in a shorter time, ensuring that the output value of the analog-to-digital conversion circuit can always be within a reasonable value range, avoiding the influence of the strength of the reflected light signal on the output value, and thus achieving high precision, high dynamic range and fast color recognition.

[0024] The ZQ calibration circuit receives the digital signal generated by each detection channel output by the analog-to-digital conversion circuit, and compares it with the preset ZQ calibration value, and then outputs the comparison result and feeds it back to the analog-to-digital conversion circuit for gain adjustment. If the digital signal output by the analog-to-digital conversion circuit corresponding to a certain detection channel is greater than the ZQ calibration value, the ZQ calibration circuit outputs a high-level signal, and the gain adjustment subcircuit in the analog-to-digital conversion circuit reduces the gain value after receiving the high-level signal; conversely, if the digital signal output by the analog-to-digital conversion circuit corresponding to the channel is less than the ZQ calibration value, the ZQ calibration circuit outputs a low-level signal, and the gain adjustment subcircuit in the analog-to-digital conversion circuit increases the gain value after receiving the low-level signal; through continuous adjustment, so that the digital signal output by the analog-to-digital conversion circuit is close to the ZQ calibration value, the gain value of the analog-to-digital conversion circuit is determined. It can be understood that in actual applications, a deviation range can be preset, and when the difference between the digital signal output by the analog-to-digital conversion circuit and the ZQ calibration value meets the deviation range, that is, the digital signal output by the analog-to-digital conversion circuit described in the embodiment of the present application is close to the ZQ calibration value, the deviation range can be set according to information such as the actual application scenario, the sensor circuit structure, etc., and no specific restrictions are made here.

[0025] Figure 3 This is a flowchart of gain adjustment proposed in an embodiment of the present application. In the present application, the idea of ​​gain adjustment is similar to the binary search principle. The analog-to-digital conversion circuit is set with an initial gain value. For example, the initial gain value is set to the middle value x1 of the gain range (the gain range is ab). The ZQ calibration circuit receives the digital signal (ADC_OUT) generated by a corresponding detection channel, and determines the size of the digital signal and the ZQ calibration value to output high and low levels. For example, if it is greater than the ZQ calibration value, a high level is output (CMP_OUT=1). After receiving the high-level signal, the gain adjustment subcircuit lowers the gain value. Preferably, the gain value is adjusted to the middle value of [a, x1]. If it is less than the ZQ calibration value, a low level is output (CMP_OUT=0). After receiving the low-level signal, the gain adjustment subcircuit increases the gain value. Preferably, the gain value is adjusted to the middle value of [x1, b]. And so on, until the comparison is reached to the output high and low levels that will eventually go back and forth between the two gain values, then the final gain value is determined. Preferably, a smaller gain value is selected as the gain value. For example Figure 3 In the embodiment shown, the initial gain value is set to 2b1 0000, and the output ADC_OUT is greater than the calibration value and a high level is output. The gain value is reduced until it is 2b0 0100, and the output is less than the calibration value and a low level is output. The gain is adjusted to 2b0 0110, and the adjustment is continued until the appropriate gain value is determined when the output is high and low levels back and forth between the two gain values.

[0026] In some embodiments, if the digital signal is still greater than the ZQ calibration value when the gain is adjusted to the minimum value, the minimum gain is determined to be the appropriate gain value. Similarly, if the digital signal is still less than the gain calibration value when the gain is adjusted to the maximum value, the maximum gain is determined to be the appropriate gain value.

[0027] In an embodiment of the present application, three color channels are integrated into the same chip for simultaneously detecting reflected light signals. There may be differences in photoelectric conversion and readout circuits among the three channels, resulting in channel errors between the channels, which may affect the accuracy of detection.

[0028] Therefore, the present application also proposes a channel error correction method for obtaining channel error parameters of each detection channel in the sensor, which can be applied to the chip mass production process, and the obtained channel error parameters are stored in the color recognition sensor for correcting the channel error when the object color is recognized. Specifically, a white light beam is emitted toward the calibration object, and the calibration object is a white object. The light beam reflected by the calibration object is incident on the color recognition sensor, and the red, green and blue primary light components in the reflected light beam are respectively incident on different detection channels of the color recognition sensor to generate electrical signals, and the corresponding digital signals are generated through the analog-to-digital conversion circuit of the corresponding channel. The data processing circuit obtains the gain value corresponding to each detection channel, and the digital signal corresponding to each detection channel, and calculates the channel gain mean and channel signal mean of the three detection channels. Further, the channel error parameters of each channel are calculated, and the channel error parameters include a first gain error and a first signal error. The specific process is: the deviation between the gain value of each channel and the channel gain mean is calculated as the first gain error, and the error between the signal value of each channel and the channel signal mean is calculated as the first signal error. The channel error parameters are stored in the storage circuit to facilitate channel error correction in the subsequent color recognition process.

[0029] During the error correction process, if the result of comparing the digital signal output by any of the three detection channels with the ZQ calibration value does not meet the preset deviation range, the ZQ calibration circuit will output a level signal to adjust the analog-to-digital conversion circuit to start the gain self-calibration function until a reasonable gain value is obtained and then calculate the channel error parameters. The process of gain self-calibration is described in detail in the following sections. Figure 2 and Figure 3 The description of the illustrated embodiment will not be repeated here.

[0030] It is understandable that, in error correction, the brightness of the white light source can be adjusted to an appropriate value so that the voltage signal output by the photodiode will not be too large or too small, which is not conducive to channel deviation correction.

[0031] In some embodiments, there are differences between chips due to the influence of the production process, that is, for the same white object to be measured, the results measured by different chips may be biased. In order to reduce this bias, the present application also proposes a method for correcting the bias between sensors, which can be applied in the chip mass production process, and the obtained sensor error parameters are stored in the color recognition sensor to improve the accuracy of color recognition when performing object color recognition.

[0032] Specifically, a white light beam is emitted toward a calibration object, which is a white object, and the light beam reflected by the calibration object is incident on a plurality of color recognition sensors to be calibrated. Each color recognition sensor respectively identifies and processes the red, green and blue primary light components in the reflected light beam and outputs detection data corresponding to three detection channels, and the detection data includes a gain value and a digital signal. For example, the first color recognition sensor outputs the first R channel detection data, the first G channel detection data and the first B channel detection data; the second color recognition sensor outputs the second R channel detection data, the second G channel detection data and the second B channel detection data. When the deviation between sensors is corrected, first, the sensor mean is obtained by calculating the mean value according to the detection data output by the first color recognition sensor and the second color recognition sensor, that is, the gain values ​​output by all channels are averaged to obtain the sensor gain mean, and the digital signals output by all channels are averaged to obtain the sensor signal mean. Secondly, the deviation between the detection data of the three channels output by each color recognition sensor and the sensor mean is calculated, which is the sensor error parameter corresponding to each channel, and the sensor error parameter includes the second gain error and the second signal error. Specifically, the deviation between the gain value of each channel and the sensor gain mean is calculated as the second gain error, and the error between the signal value of each channel and the sensor signal mean is calculated as the second signal error. The sensor error parameter corresponding to each channel in each color recognition sensor is stored in the storage circuit for subsequent color recognition.

[0033] In a preferred embodiment, the gain value and digital signal of each detection channel are first added to the first gain error and the first signal error of each channel and output as the detection data (including gain value and digital signal) of each channel, and then the sensor error parameter calculation is performed based on the three-channel detection data output by different color recognition sensors.

[0034] The present application also proposes a color recognition system, including a light source and the color recognition sensor proposed in the above embodiment. Among them, the light source is a white light source, which emits a white light beam toward the object to be measured; the light signal reflected by the object to be measured is incident on the color recognition sensor; the different color components of R, G, and B in the reflected light signal are respectively incident on the corresponding detection channel output voltage signal. The analog-to-digital conversion circuit in the color recognition sensor converts the voltage signal of each channel to generate a corresponding digital signal, and the digital signal is input to the ZQ calibration circuit for comparison, and the comparison result is fed back to determine whether to start the gain self-calibration function. Among them, the processing flow of the gain self-calibration function refers to the above embodiment, and will not be repeated here. After obtaining the appropriate gain value and digital signal, the data processing circuit normalizes the digital signal output by each channel and outputs the final detection result. Figure 4 It is a schematic diagram of the normalization process. In one embodiment of the present application, the normalization process is performed according to the maximum gain value to output the detection result.

[0035] In some embodiments, after obtaining a suitable gain value and a digital signal, the data processing circuit is further used to add the detection data output by each detection channel to the channel error parameter of each channel as accurate detection data to perform subsequent normalization processing.

[0036] In some embodiments, after obtaining the appropriate gain value and digital signal, the data processing circuit is further used to add the detection data output by each detection channel to the sensor error parameter of each channel as accurate detection data to perform subsequent normalization processing.

[0037] In some embodiments, after obtaining the appropriate gain value and digital signal, the data processing circuit is also used to add the detection data output by each detection channel to the channel error parameters and sensor error parameters of each channel as accurate detection data to perform subsequent normalization processing.

[0038] It can be understood that the channel error parameter and the sensor error parameter are data pre-stored in the storage circuit, and the specific acquisition process can refer to the above embodiment.

[0039] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0040] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0041] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0042] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0043] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0044] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0045] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A color recognition sensor, characterized in that: include: An optical filter array, comprising three optical filters, for filtering the reflected light signal into three light components; A photodiode array, comprising a plurality of photodiodes, configured to form three detection channels corresponding to the three optical filters to receive the three light components and output corresponding voltage signals; A processing unit, the processing unit comprising an analog-to-digital conversion circuit, a data processing circuit, a storage circuit and a ZQ automatic calibration circuit; The analog-to-digital conversion circuit receives the voltage signal of each detection channel and generates a digital signal; The data processing circuit receives the digital signal and gain of each detection channel and performs normalization processing and then outputs the detection result; The ZQ automatic calibration circuit compares the digital signal with a preset ZQ calibration value and outputs a comparison result, so that the analog-to-digital conversion circuit adjusts the gain of the corresponding detection channel according to the comparison result.

2. The color recognition sensor according to claim 1, wherein the analog-to-digital conversion circuit comprises a gain adjustment subcircuit and an analog-to-digital conversion subcircuit; The gain adjustment subcircuit is used to adjust the gain of the analog-to-digital conversion circuit; The analog-to-digital conversion subcircuit is used to convert the voltage signal output by each detection channel into the digital signal. 3 . The color recognition sensor according to claim 1 , wherein the preset ZQ calibration value is set according to the output bit number of the analog-to-digital conversion circuit.

4. The color recognition sensor according to claim 1, if the digital signal is greater than a preset ZQ calibration value, the comparison result is a high level, and the analog-to-digital conversion circuit reduces the gain; If the digital signal is less than the preset ZQ calibration value, the comparison result is a low level, and the analog-to-digital conversion circuit increases the gain.

5. The color recognition sensor according to claim 1, wherein the storage circuit stores channel error parameters and / or sensor error parameters corresponding to each detection channel, the channel error parameters include a first gain error and a first signal error; the sensor error parameters include a second gain error and a second signal error.

6. The color recognition sensor according to claim 5, wherein the data processing circuit is further used to perform normalization processing after superimposing the digital signal and gain value output by each detection channel with the corresponding channel error parameter and / or sensor error parameter. 7 . The color recognition sensor according to claim 6 , wherein the data processing circuit performs normalization processing according to a maximum value among the gains of the three detection channels.

8. The color recognition sensor according to claim 5, wherein the channel error parameter is determined according to the following method: emitting a white light beam toward a calibration object, wherein the calibration object is a white object; receiving the optical signal reflected by the calibration object and outputting corresponding digital signals via three detection channels; Obtain the digital signal and gain value corresponding to each detection channel, and calculate the channel gain mean and channel signal mean of the three detection channels; The deviation between the digital signal and gain value of each detection channel and the channel gain mean and the channel signal mean is determined as a corresponding channel error parameter.

9. The color recognition sensor according to claim 5, wherein the sensor error parameter is determined according to the following method: emitting a white light beam toward a calibration object, wherein the calibration object is a white object; Using multiple color recognition sensors to simultaneously receive the light signal reflected by the calibration object and output corresponding digital signals through three detection channels; Obtain the digital signals and gain values ​​corresponding to all detection channels, and calculate the sensor gain mean and sensor signal mean of all detection channels; The deviation between the digital signal and gain value of each detection channel and the sensor gain mean value and the sensor signal mean value is determined as the corresponding channel sensor error parameter.

10. A color recognition system, characterized in that: Comprising a light source and a color recognition sensor as described in any one of claims 1 to 9; The light source is a white light source, which is used to emit a white light beam toward the target to be measured; The color recognition sensor receives the light signal reflected by the target and processes it to output a detection result.

Citation Information

Patent Citations

  • Multiple-channel analog-digital converter

    CN102118167A

  • Method for microwave photon link based on full light spectrum utilization and post-compensation technology

    CN102983911A

  • TIADC system mismatch error calibration system and method based on GA optimization

    CN113872599A

  • Analog-to-digital conversion circuit, gain adjustment method, chip and electronic equipment

    CN116599534A

  • Time-interleaved analog-to-digital conversion system and calibration method

    CN117955496A

Cited By

  • Color sensor system and color detection method

    CN122282110A

  • Color sensor system and color detection method

    CN122282110B