Nothing Special   »   [go: up one dir, main page]

CN112097910A - Intelligent RGB digital color sensor circuit system - Google Patents

Intelligent RGB digital color sensor circuit system Download PDF

Info

Publication number
CN112097910A
CN112097910A CN201910522302.8A CN201910522302A CN112097910A CN 112097910 A CN112097910 A CN 112097910A CN 201910522302 A CN201910522302 A CN 201910522302A CN 112097910 A CN112097910 A CN 112097910A
Authority
CN
China
Prior art keywords
circuit
signal
electrically connected
module
electronic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910522302.8A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Heyi Technology Co ltd
Original Assignee
Guangzhou Heyi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Heyi Technology Co ltd filed Critical Guangzhou Heyi Technology Co ltd
Priority to CN201910522302.8A priority Critical patent/CN112097910A/en
Publication of CN112097910A publication Critical patent/CN112097910A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J3/00Spectrometry; Spectrophotometry; Monochromators; Measuring colours
    • G01J3/46Measurement of colour; Colour measuring devices, e.g. colorimeters

Landscapes

  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

The embodiment of the application provides an intelligent RGB digital color sensor circuit system, including processor module, input/output module, RGB light source control module, signal processing module and for the power module of above-mentioned each module power supply, input/output module RGB light source control module signal processing module respectively with processor module electric connection, signal processing module include RGB light intensity feedback circuit, with RGB light intensity feedback circuit output electric connection's sampling unit, with sampling unit input electric connection's detected signal selection unit. The intelligent RGB digital color sensor circuit system improves the detection automation degree of the color sensor and improves the detection precision.

Description

一种智能型RGB数字颜色传感器电路系统An intelligent RGB digital color sensor circuit system

技术领域technical field

本发明涉及颜色传感器技术领域,具体是一种智能型RGB数字颜色传感器电路系统。The invention relates to the technical field of color sensors, in particular to an intelligent RGB digital color sensor circuit system.

背景技术Background technique

现有的RGB颜色传感器电路系统中,通过RGB光源控制模块对传感器进行光源控制后,采用手动调节对内部或者外部检测头进行选择以确定检测模式,确定检测模式后再进行放大倍数的调节,由于内部检测模式和外部检测模式之间具有较大的放大倍数差异,导致现有的 RGB颜色传感器在检测模式确定和放大倍数调节过程中存在较大的人为因素影响,进而导致检测精度降低。In the existing RGB color sensor circuit system, after the sensor is controlled by the RGB light source control module, manual adjustment is used to select the internal or external detection head to determine the detection mode, and after the detection mode is determined, the magnification is adjusted. There is a large difference in magnification between the internal detection mode and the external detection mode, which causes the existing RGB color sensor to have a large influence of human factors in the process of detection mode determination and magnification adjustment, which in turn leads to a decrease in detection accuracy.

公开于该背景技术部分的信息仅仅旨在增加对本发明的总体背景的理解,而不应当被视为承认或以任何形式暗示该信息构成已为本领域一般技术人员所公知的现有技术。The information disclosed in this Background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person of ordinary skill in the art.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于解决上述问题,提供了一种智能型RGB数字颜色传感器电路系统,其能通过内部、外部检测头信号电路确定检测模式,并根据检测模式选取对应的信号放大倍数,使得传感器自动化程度提高,减少人为因素的影响,提高检测精度。The purpose of the present invention is to solve the above problems and provide an intelligent RGB digital color sensor circuit system, which can determine the detection mode through the internal and external detection head signal circuits, and select the corresponding signal amplification according to the detection mode, so that the sensor can be automated Improve the level, reduce the influence of human factors, and improve the detection accuracy.

为实现上述目的,本发明提供了一种智能型RGB数字颜色传感器电路系统,包括处理器模块、输入输出模块、RGB光源控制模块、信号处理模块以及为上述各模块供电的电源模块,所述输入输出模块、所述RGB光源控制模块、所述信号处理模块分别与所述处理器模块电性连接,所述信号处理模块包括RGB光强度反馈电路、与所述RGB光强度反馈电路输出端电性连接的采样单元、与所述采样单元输入端电性连接的检测信号选择单元。In order to achieve the above purpose, the present invention provides an intelligent RGB digital color sensor circuit system, including a processor module, an input and output module, an RGB light source control module, a signal processing module, and a power supply module for supplying power to the above modules. The output module, the RGB light source control module, and the signal processing module are respectively electrically connected to the processor module, and the signal processing module includes an RGB light intensity feedback circuit, which is electrically connected to the output end of the RGB light intensity feedback circuit. A connected sampling unit, and a detection signal selection unit electrically connected to the input end of the sampling unit.

优选地,所述检测信号选择单元包括主机内部检测头信号电路、外部检测头信号电路、和与所述主机内部检测头信号电路输出端、所述外部检测头信号电路输出端电性连接的信号放大电路,所述主机内部检测头信号电路包括光电接收管RX和反相输入端与所述光电接收管RX的正极电性连接、同相输入端与电阻(R28、R29)电性连接的放大器OP2,所述电阻(R28、R29)产生的分压为所述放大器OP2的基准电压,所述放大器OP2与所述信号放大电路的输入端电性连接,所述外部检测头信号电路通过电阻R32与所述处理器模块电性连接、通过电阻R31与所述信号放大电路的输入端电性连接。Preferably, the detection signal selection unit includes a mainframe internal detection head signal circuit, an external detection head signal circuit, and a signal electrically connected to the output terminal of the mainframe internal detection head signal circuit and the output terminal of the external detection head signal circuit Amplifying circuit, the internal detection head signal circuit of the host includes a photoelectric receiving tube RX and an amplifier OP2 whose inverting input terminal is electrically connected to the positive pole of the photoelectric receiving tube RX, and the non-inverting input terminal is electrically connected to the resistors (R28, R29). , the voltage division generated by the resistors (R28, R29) is the reference voltage of the amplifier OP2, the amplifier OP2 is electrically connected to the input end of the signal amplifying circuit, and the external detection head signal circuit is connected to the signal amplifier OP2 through the resistor R32. The processor module is electrically connected to the input end of the signal amplifying circuit through a resistor R31.

优选地,所述外部检测头信号电路的输入端连接有与所述处理器模块电性连接的外部检测头电压控制电路,所述外部检测头电压控制电路包括复合三极管Q12、复合三极管Q13、复合三极管Q14,所述复合三极管Q12和/或复合三极管Q13和/或复合三极管Q14为两个互相连接的NPN三极管,当两个NPN三极管的输入端均输入低电平时,输出为高电平,两个NPN三极管的输入端有一个或两个输入高电平时,输出为低电平。Preferably, the input end of the external detection head signal circuit is connected with an external detection head voltage control circuit electrically connected to the processor module, and the external detection head voltage control circuit includes a composite triode Q12, a composite triode Q13, a composite triode The triode Q14, the composite triode Q12 and/or the composite triode Q13 and/or the composite triode Q14 are two interconnected NPN triodes. When the input end of each NPN transistor has one or two input high level, the output is low level.

优选地,所述主机内部检测头信号电路输出端、所述外部检测头信号电路输出端与所述信号放大电路之间连接有选择电子开关,所述主机内部检测头信号电路通过所述放大器OP2的输出端与所述选择电子开关连接,所述外部检测头信号电路通过电阻R31、滤波电容C30 与所述选择电子开关电性连接。Preferably, a selection electronic switch is connected between the output terminal of the internal detection head signal circuit of the host, the output terminal of the external detection head signal circuit and the signal amplification circuit, and the internal detection head signal circuit of the host passes through the amplifier OP2 The output end of the sensor is connected to the selection electronic switch, and the external detection head signal circuit is electrically connected to the selection electronic switch through the resistor R31 and the filter capacitor C30.

优选地,所述信号放大电路包括输出端与所述采样单元电性连接的主信号二级放大电路、与所述主信号二级放大电路输入端电性连接的放大倍数切换电子开关,所述放大倍数切换电子开关通过选择电子开关与所述主机内部检测头信号电路输出端、所述外部检测头信号电路连接,当外部检测头接入时,所述处理器模块切断内部检测头信号采样并选择外部检测头信号进行采样。Preferably, the signal amplifying circuit includes a main signal secondary amplifying circuit whose output terminal is electrically connected to the sampling unit, and an amplification factor switching electronic switch that is electrically connected to an input terminal of the main signal secondary amplifying circuit. The magnification switching electronic switch is connected with the output end of the signal circuit of the internal detection head of the host and the signal circuit of the external detection head through the selection electronic switch. When the external detection head is connected, the processor module cuts off the sampling of the signal of the internal detection head and makes the signal sampling of the external detection head. Select the external sensor head signal for sampling.

优选地,所述主信号二级放大电路的输出端与所述采样单元之间连接有防干扰单元,所述防干扰单元为肖特基二极管。Preferably, an anti-interference unit is connected between the output end of the main signal secondary amplifier circuit and the sampling unit, and the anti-interference unit is a Schottky diode.

优选地,所述采样单元包括并联连接的AD电子采样控制开关1 和AD电子采样控制开关2,所述AD电子采样控制开关1、所述AD电子采样控制开关2分别与所述处理器模块电性连接,以进行信号的传递,所述AD电子采样控制开关1的输入端与所述RGB光强度反馈电路电性连接,所述AD电子采样控制开关2的输入端与所述检测信号选择单元的输出端电性连接。Preferably, the sampling unit includes an AD electronic sampling control switch 1 and an AD electronic sampling control switch 2 connected in parallel, the AD electronic sampling control switch 1 and the AD electronic sampling control switch 2 are respectively electrically connected to the processor module. For signal transmission, the input terminal of the AD electronic sampling control switch 1 is electrically connected to the RGB light intensity feedback circuit, and the input terminal of the AD electronic sampling control switch 2 is electrically connected to the detection signal selection unit The output terminal is electrically connected.

优选地,所述AD电子采样控制开关1的输出端连接有电阻R41 并通过所述电阻R41与所述处理器模块电性连接、所述AD电子采样控制开关2的输出端连接有电阻R42并通过所述电阻R42与所述处理器模块电性连接。Preferably, the output terminal of the AD electronic sampling control switch 1 is connected with a resistor R41 and is electrically connected to the processor module through the resistor R41, and the output terminal of the AD electronic sampling control switch 2 is connected with a resistor R42 and is electrically connected to the processor module. It is electrically connected to the processor module through the resistor R42.

优选地,所述主信号二级放大电路与所述AD电子采样控制开关2电性连接,所述AD电子采样控制开关1的输入端还连接有与所述 RGB光强度反馈电路并联设置的所述防干扰单元。Preferably, the main signal secondary amplifying circuit is electrically connected with the AD electronic sampling control switch 2, and the input end of the AD electronic sampling control switch 1 is also connected with the RGB light intensity feedback circuit arranged in parallel. the anti-jamming unit.

优选地,该种系统还包括与所述处理器模块电性连接的人机接口电路,所述人机接口电路与所述电源模块电性连接。Preferably, the system further includes a human-machine interface circuit electrically connected to the processor module, and the human-machine interface circuit is electrically connected to the power supply module.

根据本发明的智能型RGB数字颜色传感器电路系统,通过检测信号选择单元确定检测传感器电路中是否有外部检测头信号电路的接入或者确定外部检测头是否接好,进而选择检测模式,并根据传感器自动检测确定的检测模式进行放大倍数的调节,减少人为因素在传感器检测中造成的影响,提高检测精度。According to the intelligent RGB digital color sensor circuit system of the present invention, the detection signal selection unit determines whether the detection sensor circuit has access to the signal circuit of the external detection head or whether the external detection head is connected well, and then selects the detection mode, and according to the sensor The detection mode determined by the automatic detection can adjust the magnification, reduce the influence of human factors in the sensor detection, and improve the detection accuracy.

进一步地,通过采样单元对RGB光强度反馈电路输出的信号和主检测信号的采样时间进行控制,提高采样数据的有效性,进而提高传感器的检测精度。Further, the sampling unit is used to control the sampling time of the signal output by the RGB light intensity feedback circuit and the main detection signal, so as to improve the validity of the sampling data, thereby improving the detection accuracy of the sensor.

附图说明Description of drawings

构成本申请的一部分的附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings constituting a part of the present application are used to provide further understanding of the present invention, and the exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:

图1为本申请智能型RGB数字颜色传感器电路系统的系统框图;1 is a system block diagram of an intelligent RGB digital color sensor circuit system of the application;

图2为本申请图1中处理器模块的结构示意图;FIG. 2 is a schematic structural diagram of the processor module in FIG. 1 of the application;

图3为本申请图1中输入输出模块的电路原理图;Fig. 3 is the circuit schematic diagram of the input-output module in Fig. 1 of the application;

图4为本申请图1中RGB光源控制模块的电路原理图;FIG. 4 is a schematic circuit diagram of the RGB light source control module in FIG. 1 of the application;

图5为本申请图1中信号处理模块的电路原理图;FIG. 5 is a schematic circuit diagram of the signal processing module in FIG. 1 of the application;

图6为本申请图1中RGB光强度反馈电路的电路原理图;6 is a circuit schematic diagram of the RGB light intensity feedback circuit in FIG. 1 of the application;

图7为本申请图1中检测信号选择单元的电路原理图;7 is a schematic circuit diagram of a detection signal selection unit in FIG. 1 of the application;

图8为本申请图1中外部检测头电压控制电路的电路原理图;FIG. 8 is a circuit schematic diagram of the external detection head voltage control circuit in FIG. 1 of the application;

图9为本申请图1中外部输入电路的电路原理图;Fig. 9 is the circuit schematic diagram of the external input circuit in Fig. 1 of the application;

图10为本申请图1中采样单元的电路原理图;FIG. 10 is a circuit schematic diagram of the sampling unit in FIG. 1 of the application;

图11为本申请实施例中智能型RGB数字颜色传感器电路系统人机接口电路的电路原理图;11 is a circuit schematic diagram of a human-machine interface circuit of an intelligent RGB digital color sensor circuit system in an embodiment of the application;

图12为本申请实施例中外部检测头信号电路的电路原理图。FIG. 12 is a circuit schematic diagram of an external detection head signal circuit in an embodiment of the present application.

具体实施方式Detailed ways

下面将参考附图并结合实施例来详细说明本发明。The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

实施例:参考图1所示,一种智能型RGB数字颜色传感器电路系统,包括处理器模块、输入输出模块、RGB光源控制模块、信号处理模块以及为上述各模块供电的电源模块,输入输出模块、RGB光源控制模块、信号处理模块分别与处理器模块电性连接。参考图2所示,处理器模块选用现有技术中任意一种32位高速处理器,选用 STM32F103RET6,封装模式为TQFP64A_P050L10W10,传感器工作中, RGB光源控制模块根据需要进行光源调节,信号处理模块对光照中的颜色进行采样处理,并将采样处理后的数据传输至处理器模块中通过输入输出模块输出。Embodiment: Referring to Figure 1, an intelligent RGB digital color sensor circuit system includes a processor module, an input and output module, an RGB light source control module, a signal processing module, and a power supply module for supplying power to the above modules, an input and output module. , the RGB light source control module and the signal processing module are respectively electrically connected with the processor module. Referring to Figure 2, the processor module selects any 32-bit high-speed processor in the prior art, selects STM32F103RET6, and the package mode is TQFP64A_P050L10W10. During the sensor operation, the RGB light source control module adjusts the light source as needed, and the signal processing module adjusts the light source. The color in the sample is processed, and the sampled data is transmitted to the processor module for output through the input and output module.

输入输出模块可以是本技术领域中任意一种输入输出电路,优选地,本实施例采用四路输出控制电路,参考图3所示,在电路中,设有三极管Q9、三极管Q10、三极管Q7、三极管Q8,三极管Q9、三极管Q10、三极管Q7、三极管Q8之间并联连接,且三极管Q9、三极管Q10、三极管Q7、三极管Q8的集电极分别与电源模块连接,三极管 Q9、三极管Q10、三极管Q7、三极管Q8的基集分别与STM32F103RET6 的引脚43、引脚32、引脚45、引脚44连接,三极管Q9、三极管Q10、三极管Q7、三极管Q8并联的交点与STM32F103RET6的引脚10连接。The input and output module can be any input and output circuit in the technical field. Preferably, this embodiment adopts a four-way output control circuit. Referring to FIG. 3, in the circuit, there are triode Q9, triode Q10, triode Q7, The transistor Q8, the transistor Q9, the transistor Q10, the transistor Q7, and the transistor Q8 are connected in parallel, and the collectors of the transistor Q9, the transistor Q10, the transistor Q7, and the transistor Q8 are respectively connected to the power supply module. The base set of Q8 is connected to pin 43, pin 32, pin 45, and pin 44 of STM32F103RET6 respectively, and the parallel intersection of transistor Q9, transistor Q10, transistor Q7, and transistor Q8 is connected to pin 10 of STM32F103RET6.

RGB光源控制模块可以是本技术领域中任意一种现有的RGB光源控制电路,在本实施例中,参考图4所示,选用RGB光源控制模块的接线端PWMG、PWMB、PWMR、LED-GO、LED-BO、LED-RO分别与 STM32F103RET6的引脚37、引脚39、引脚38、引脚36、引脚41、引脚40连接。通过调节RGB光源控制电路中三极管的参数进行光亮度调节。The RGB light source control module can be any existing RGB light source control circuit in the technical field. In this embodiment, referring to FIG. 4 , the terminals PWMG, PWMB, PWMR, LED-GO of the RGB light source control module are selected. , LED-BO and LED-RO are respectively connected with pins 37, 39, 38, 36, 41 and 40 of STM32F103RET6. The brightness is adjusted by adjusting the parameters of the triode in the RGB light source control circuit.

具体来说,信号处理模块包括RGB光强度反馈电路、与RGB光强度反馈电路输出端电性连接的采样单元、与采样单元输入端电性连接的检测信号选择单元。RGB光强度反馈电路可以是现有技术中任意一种光强度反馈电路,RGB光强度反馈电路的作用,是当RGB发光亮度有衰减时反馈给32位高速处理器,32位高速处理再进行自动增益调节,把光亮度调亮一点。参考图5和图6所示,其特点是:RGB光强度反馈电路中设置有发射极接地的光敏传感器RX和反相输入端与光电接收管RX的集电极电性连接、同相输入端与光电接收管RX的发射极电性连接的放大器IC,光电接收管RX检测到的光信号通过放大器 IC进行信号放大。颜色传感器的检测头分为两种,即光纤型检测头和光纤+电路型检测头,光纤型检测头不带有检测电路,光纤+电路型检测头自带有检测电路,两种检测头都可以接入本实施例中的检测电路中进行检测。Specifically, the signal processing module includes an RGB light intensity feedback circuit, a sampling unit electrically connected to the output end of the RGB light intensity feedback circuit, and a detection signal selection unit electrically connected to the input end of the sampling unit. The RGB light intensity feedback circuit can be any kind of light intensity feedback circuit in the prior art. The function of the RGB light intensity feedback circuit is to feed back to the 32-bit high-speed processor when the RGB light-emitting brightness is attenuated, and the 32-bit high-speed processing is then automatically performed. Gain adjustment, brighten the brightness a little. Referring to Figure 5 and Figure 6, the characteristics are: the RGB light intensity feedback circuit is provided with a photosensitive sensor RX with an emitter grounded, an inverting input terminal is electrically connected to the collector of the photoelectric receiving tube RX, and the non-inverting input terminal is connected to the photoelectric The emitter of the receiver tube RX is electrically connected to the amplifier IC, and the optical signal detected by the photoelectric receiver tube RX is amplified by the amplifier IC. The detection head of the color sensor is divided into two types, namely the optical fiber type detection head and the optical fiber + circuit type detection head. The optical fiber detection head does not have a detection circuit, and the optical fiber + circuit type detection head has its own detection circuit. It can be connected to the detection circuit in this embodiment for detection.

作为本实施例的一种优选地实施方式,参考图7所示,检测信号选择单元包括主机内部检测头信号电路、外部检测头信号电路、和与主机内部检测头信号电路输出端、外部检测头信号电路输出端电性连接的信号放大电路。主机内部检测头信号电路包括光电接收管RX和反相输入端与光电接收管RX的正极电性连接、同相输入端与电阻 (R28、R29)电性连接的放大器OP2,电阻(R28、R29)产生的分压为放大器OP2的基准电压。外部检测头信号电路通过电阻R32与处理器模块电性连接、通过电阻R31与信号放大电路的输入端电性连接。参考图5和图7所示,电路中连接点ESI1与外部检测头信号电路连接,再通过电阻R31与信号选择电子开关SW3、SW4连接;连接点AD1A 与STM32F103RET6的引脚15连接,通过AD1A与32位高速处理器连接,能够检测并识别外部检测头有没有接好,当有接外部检测头时, 32位高速处理器优先选择外部检测头信号进行采样,并且切断内部检测头信号的传输和采样。As a preferred implementation of this embodiment, as shown in FIG. 7 , the detection signal selection unit includes an internal detection head signal circuit of the host, an external detection head signal circuit, and an output end of the internal detection head signal circuit of the host, an external detection head The signal amplifier circuit is electrically connected to the output end of the signal circuit. The signal circuit of the detection head inside the host includes a photoelectric receiver tube RX and an amplifier OP2 whose inverting input terminal is electrically connected to the positive pole of the photoelectric receiver tube RX, and the non-inverting input terminal is electrically connected to the resistors (R28, R29). The resistors (R28, R29) The resulting divided voltage is the reference voltage for amplifier OP2. The external detection head signal circuit is electrically connected to the processor module through the resistor R32, and is electrically connected to the input end of the signal amplification circuit through the resistor R31. Referring to Figure 5 and Figure 7, the connection point ESI1 in the circuit is connected to the external detection head signal circuit, and then connected to the signal selection electronic switches SW3 and SW4 through the resistor R31; the connection point AD1A is connected to the pin 15 of the STM32F103RET6, and the The 32-bit high-speed processor is connected, which can detect and identify whether the external detection head is connected properly. When the external detection head is connected, the 32-bit high-speed processor preferentially selects the external detection head signal for sampling, and cuts off the transmission and the internal detection head signal. sampling.

参考图8和图12所示,外部检测头信号电路的输入端连接有与处理器模块电性连接的外部检测头电压控制电路,外部检测头电压控制电路包括复合三极管Q12、复合三极管Q13、复合三极管Q14,复合三极管Q12和/或复合三极管Q13和/或复合三极管Q14为两个互相连接的NPN三极管,当两个NPN三极管的输入端均输入低电平时,输出为高电平,两个NPN三极管的输入端有一个或两个输入高电平时,输出为低电平。在本实施例中,外部检测头信号电路中连接有3对相互连接的NPN三极管,其中一对NPN三极管Q13的输入端和输出端分别引出与另外两对NPN三极管Q12、Q14的输入端连接,NPN三极管 Q13的输入端与STM32F103RET6的引脚11和引脚14连接,NPN三极管Q12和NPN三极管Q14的输出端与外部输入电路连接,参考图9所示,外部输入电路中设置有一对NPN三极管15,NPN三极管15的基集与电源模块连接进行供电,NPN三极管15的两个集电极分别与 STM32F103RET6的引脚58、59连接。Referring to FIG. 8 and FIG. 12 , the input end of the external detection head signal circuit is connected with an external detection head voltage control circuit that is electrically connected to the processor module. The external detection head voltage control circuit includes a composite triode Q12, a composite triode Q13, a composite triode The triode Q14, the composite triode Q12 and/or the composite triode Q13 and/or the composite triode Q14 are two NPN triodes connected to each other. When the input of the transistor has one or two inputs high, the output is low. In this embodiment, three pairs of interconnected NPN transistors are connected to the signal circuit of the external detection head, wherein the input and output ends of a pair of NPN transistors Q13 are respectively drawn out and connected to the input ends of the other two pairs of NPN transistors Q12 and Q14, The input terminal of NPN transistor Q13 is connected to pins 11 and 14 of STM32F103RET6, and the output terminals of NPN transistor Q12 and NPN transistor Q14 are connected to the external input circuit. Referring to Figure 9, a pair of NPN transistors 15 are set in the external input circuit. , the base set of the NPN triode 15 is connected to the power module for power supply, and the two collectors of the NPN triode 15 are respectively connected to the pins 58 and 59 of the STM32F103RET6.

在本实施例中,回看图7,主机内部检测头信号电路输出端、外部检测头信号电路输出端与信号放大电路之间连接有选择电子开关,主机内部检测头信号电路通过放大器OP2的输出端与选择电子开关连接,外部检测头信号电路通过电阻R31、滤波电容C30与选择电子开关电性连接。选择电子开关与STM32F103RET6的引脚23和引脚24 连接。当32位高速处理器接收到信号时,处理器控制电子开关进行选择,如有检测到外部检测头已接好,则断开内部检测信号的传输和采样,优先选择外部信号进入下一级电路。In this embodiment, referring back to FIG. 7 , a selection electronic switch is connected between the output terminal of the signal circuit of the internal detection head of the host, the output terminal of the signal circuit of the external detection head and the signal amplification circuit, and the signal circuit of the internal detection head of the host is connected through the output of the amplifier OP2 The terminal is connected with the selection electronic switch, and the external detection head signal circuit is electrically connected with the selection electronic switch through the resistor R31 and the filter capacitor C30. The selection electronic switch is connected to pins 23 and 24 of the STM32F103RET6. When the 32-bit high-speed processor receives the signal, the processor controls the electronic switch to select, if it is detected that the external detection head has been connected, the transmission and sampling of the internal detection signal will be disconnected, and the external signal will be preferentially selected to enter the next stage circuit .

作为上述实施方式的优选方案,信号放大电路包括输出端与采样单元电性连接的主信号二级放大电路、与主信号二级放大电路输入端电性连接的放大倍数切换电子开关,放大倍数切换电子开关通过选择电子开关与主机内部检测头信号电路的输出端、外部检测头信号电路连接,放大倍数切换电子开关与STM32F103RET6的引脚22连接。通过选择电子开关选择确定内部或外部检测头接入检测电路,当外部检测头接入时,所述处理器模块切断内部检测头信号采样并选择外部检测头信号进行采样。通过32位高速处理器控制放大倍数切换电子开关对放大器放大倍数进行调节,实现传感器检测自动化,避免人为因素的影响,提高检测精度。放大倍数切换开关由32位高速处理器控制,检测模式不同,选择不同的放大倍数,如检测到黑色等反光较弱的物体时,选择高放大倍数,检测白光灯反光较强的物体时,选择低放大倍数。As a preferred solution of the above-mentioned embodiment, the signal amplifying circuit includes a main signal secondary amplifying circuit whose output terminal is electrically connected to the sampling unit, and an amplification factor switching electronic switch that is electrically connected to the input terminal of the main signal secondary amplifying circuit, and the amplification factor is switched. The electronic switch is connected with the output end of the signal circuit of the internal detection head of the host and the signal circuit of the external detection head through the selection electronic switch, and the electronic switch of the magnification switching is connected with the pin 22 of the STM32F103RET6. The internal or external detection head is selected to be connected to the detection circuit by selecting the electronic switch. When the external detection head is connected, the processor module cuts off the sampling of the internal detection head signal and selects the external detection head signal for sampling. The 32-bit high-speed processor controls the magnification switching electronic switch to adjust the magnification of the amplifier, realizes the automation of sensor detection, avoids the influence of human factors, and improves the detection accuracy. The magnification switch is controlled by a 32-bit high-speed processor. The detection mode is different, and different magnifications are selected. For example, when detecting objects with weak reflection such as black, select high magnification. Low magnification.

主信号二级放大电路的输出端与采样单元之间连接有防干扰单元,防干扰单元为肖特基二极管。利用肖特基二极管的特性,将采样单元对主信号二级放大电路采样过程中出现的尖峰干扰进行避免,提高信号采样的数据准确性。An anti-interference unit is connected between the output end of the main signal secondary amplifier circuit and the sampling unit, and the anti-interference unit is a Schottky diode. Using the characteristics of the Schottky diode, the sampling unit avoids the peak interference that occurs in the sampling process of the main signal secondary amplifier circuit, and improves the data accuracy of the signal sampling.

作为本实施例的一种优选地实施方式,参考图10所示,采样单元包括并联连接的AD电子采样控制开关1和AD电子采样控制开关2, AD电子采样控制开关1、D电子采样控制开关2分别与处理器模块电性连接,以进行信号的传递。AD电子采样控制开关1和AD电子采样控制开关2并联的节点上引出线与STM32F103RET6的引脚20、引脚 21连接,32位高速处理器对电子采样控制开关进行控制。AD电子采样控制开关1的输入端与RGB光强度反馈电路电性连接,AD电子采样控制开关2的输入端与检测信号选择单元的输出端电性连接。AD 电子采样控制开关1的一端与STM32F103RET6的引脚16连接,AD电子采样控制开关2的一端与STM32F103RET6的引脚17连接。As a preferred implementation of this embodiment, as shown in FIG. 10 , the sampling unit includes AD electronic sampling control switch 1 and AD electronic sampling control switch 2 connected in parallel, AD electronic sampling control switch 1 , D electronic sampling control switch 2 are respectively electrically connected with the processor module for signal transmission. The leads on the node where AD electronic sampling control switch 1 and AD electronic sampling control switch 2 are connected in parallel are connected to pins 20 and 21 of STM32F103RET6, and the 32-bit high-speed processor controls the electronic sampling control switch. The input end of the AD electronic sampling control switch 1 is electrically connected to the RGB light intensity feedback circuit, and the input end of the AD electronic sampling control switch 2 is electrically connected to the output end of the detection signal selection unit. One end of AD electronic sampling control switch 1 is connected to pin 16 of STM32F103RET6, and one end of AD electronic sampling control switch 2 is connected to pin 17 of STM32F103RET6.

AD电子采样控制开关1的输出端连接有电阻R41并通过电阻R41 与处理器模块电性连接、AD电子采样控制开关2的输出端连接有电阻R42并通过电阻R42与处理器模块电性连接。电阻R41、电阻R42 的作用是配合单片机输出信号ADSW1、ADSW2用,并在单片机无输出信号时拉低电位。如图10中所示,电阻R41和电阻R42的另一端接地,AD电子采样控制开关1的输出端与电阻R41间通过导线与处理器模块电性连接,用于控制RGB光强度反馈电路的采样时间,AD电子采样控制开关2的输出端与电阻R42间通过导线与处理器模块电性连接,用于控制主检测信号的采样时间。The output end of AD electronic sampling control switch 1 is connected with resistor R41 and is electrically connected with the processor module through the resistor R41, and the output end of the AD electronic sampling control switch 2 is connected with a resistor R42 and is electrically connected with the processor module through the resistor R42. The function of the resistor R41 and the resistor R42 is to cooperate with the output signals ADSW1 and ADSW2 of the single-chip microcomputer, and pull down the potential when the single-chip microcomputer has no output signal. As shown in Figure 10, the other ends of the resistor R41 and the resistor R42 are grounded, and the output end of the AD electronic sampling control switch 1 and the resistor R41 are electrically connected to the processor module through a wire to control the sampling of the RGB light intensity feedback circuit time, the output end of the AD electronic sampling control switch 2 and the resistor R42 are electrically connected to the processor module through a wire to control the sampling time of the main detection signal.

在本实施例中,主信号二级放大电路与AD电子采样控制开关2 电性连接,AD电子采样控制开关1的输入端还连接有与RGB光强度反馈电路并联设置的防干扰单元(肖特基二极管)。In this embodiment, the main signal secondary amplifying circuit is electrically connected with the AD electronic sampling control switch 2, and the input end of the AD electronic sampling control switch 1 is also connected with an anti-interference unit (Schott) arranged in parallel with the RGB light intensity feedback circuit. base diode).

该种系统还包括与处理器模块电性连接的人机接口电路,参考图 11所示,人机接口电路与电源模块电性连接。人机接口电路可以是本技术领域中常用的任意一种。The system also includes a human-machine interface circuit that is electrically connected to the processor module. Referring to Figure 11, the human-machine interface circuit is electrically connected to the power supply module. The human-machine interface circuit can be any one commonly used in the technical field.

工作原理:RGB光强度反馈电路实时检测被检测物的光强度,当光强度减弱是,通过32位高速处理器进行光照补偿,实时调节光亮度。在检测过程中,32位高速处理器控制采样时间。当检测头接入传感器检测电路时,32位高速处理器对信号来源电路(主机内部检测头信号电路、外部检测头信号电路)进行检测,即对外部检测头是否接入进行判断,选择电子开关根据信号来源电路的判断结果进行检测模式的选择,当有外部检测头已接好时,优先选择外部信号进入下一级电路。在工作过程中,放大倍数切换电子开关根据选择电子开关确定的检测模式进行放大倍数的切换,当检测到被测物反光强度强时,选择低放大倍数进行信号放大,当检测到被测物反光强度弱时,选择高放大倍数进行信号放大。信号经放大后,通过AD采样电子控制开关进行AD信号模数转换,最后将转换后的数据信号传输至32位高速处理器,并由人机接口电路显示检测结果。Working principle: The RGB light intensity feedback circuit detects the light intensity of the detected object in real time. When the light intensity decreases, the light compensation is performed by the 32-bit high-speed processor to adjust the light brightness in real time. During the detection process, a 32-bit high-speed processor controls the sampling time. When the detection head is connected to the sensor detection circuit, the 32-bit high-speed processor detects the signal source circuit (the main internal detection head signal circuit, the external detection head signal circuit), that is, it judges whether the external detection head is connected, and selects the electronic switch. According to the judgment result of the signal source circuit, the detection mode is selected. When an external detection head has been connected, the external signal is preferentially selected to enter the next stage circuit. During the working process, the magnification switching electronic switch switches the magnification according to the detection mode determined by the selection electronic switch. When it detects that the reflected light intensity of the measured object is strong, select a low magnification to amplify the signal. When it detects the reflected light of the measured object When the intensity is weak, select a high magnification for signal amplification. After the signal is amplified, AD signal analog-to-digital conversion is carried out through the AD sampling electronic control switch, and finally the converted data signal is transmitted to the 32-bit high-speed processor, and the detection result is displayed by the man-machine interface circuit.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1. The utility model provides an intelligent RGB digital color sensor circuit system, includes processor module, input/output module, RGB light source control module, signal processing module and for the power module of above-mentioned each module power supply, input/output module RGB light source control module signal processing module respectively with processor module electric connection, its characterized in that, signal processing module include RGB light intensity feedback circuit, with RGB light intensity feedback circuit output electric connection's sampling unit, with sampling unit input electric connection's detected signal selection unit.
2. The intelligent RGB digital color sensor circuit system of claim 1, wherein the detection signal selection unit includes a host internal detector signal circuit, an external detector signal circuit, and a signal amplification circuit electrically connected to the output of the host internal detector signal circuit and the output of the external detector signal circuit, the host internal detector signal circuit includes a photo-receiving tube RX and an amplifier OP2 having an inverting input electrically connected to the positive electrode of the photo-receiving tube RX and a non-inverting input electrically connected to a resistor (R28, R29), the voltage division generated by the resistor (R28, R29) is a reference voltage of the amplifier OP2, the amplifier OP2 is electrically connected to the input of the signal amplification circuit, the external detector signal circuit is electrically connected to the processor module through the resistor R32, The input end of the signal amplifying circuit is electrically connected with the resistor R31.
3. The intelligent RGB digital color sensor circuit system of claim 2, wherein the external detector head signal circuit has an input terminal connected to an external detector head voltage control circuit electrically connected to the processor module, the external detector head voltage control circuit includes a composite transistor Q12, a composite transistor Q13, and a composite transistor Q14, the composite transistor Q12 and/or the composite transistor Q13 and/or the composite transistor Q14 are two NPN transistors connected to each other, and the output is high when the input terminals of the two NPN transistors are both low, and the output is low when one or both of the input terminals of the two NPN transistors are high.
4. The intelligent RGB digital color sensor circuit system of claim 2 or 3, wherein a selection electronic switch is connected between the output terminal of the host internal detector signal circuit, the output terminal of the external detector signal circuit and the signal amplification circuit, the host internal detector signal circuit is connected to the selection electronic switch through the output terminal of the amplifier OP2, and the external detector signal circuit is electrically connected to the selection electronic switch through the resistor R31 and the filter capacitor C30.
5. The intelligent RGB digital color sensor circuit system of claim 4, wherein the signal amplification circuit includes a main signal secondary amplification circuit having an output electrically connected to the sampling unit, and an amplification switching electronic switch electrically connected to an input of the main signal secondary amplification circuit, the amplification switching electronic switch being connected to the output of the main internal detection head signal circuit and the external detection head signal circuit through a selection electronic switch, and when the external detection head is connected, the processor module cuts off the internal detection head signal sampling and selects the external detection head signal for sampling.
6. The intelligent RGB digital color sensor circuit system of claim 5, wherein an anti-interference unit is connected between the output terminal of the main signal secondary amplifying circuit and the sampling unit, the anti-interference unit being a schottky diode.
7. The circuit system according to claim 1, wherein the sampling unit comprises an AD electronic sampling control switch 1 and an AD electronic sampling control switch 2, the AD electronic sampling control switch 1 and the AD electronic sampling control switch 2 are connected in parallel, the AD electronic sampling control switch 1 and the AD electronic sampling control switch 2 are respectively electrically connected to the processor module for signal transmission, an input terminal of the AD electronic sampling control switch 1 is electrically connected to the RGB light intensity feedback circuit, and an input terminal of the AD electronic sampling control switch 2 is electrically connected to an output terminal of the detection signal selection unit.
8. The intelligent RGB digital color sensor circuit system of claim 7, wherein the output terminal of the AD electronic sampling control switch 1 is connected to a resistor R41 and electrically connected to the processor module through the resistor R41, and the output terminal of the AD electronic sampling control switch 2 is connected to a resistor R42 and electrically connected to the processor module through the resistor R42.
9. The circuit system of claim 6, 7 or 8, wherein the primary signal secondary amplifying circuit is electrically connected to the AD electronic sampling control switch 2, and the input terminal of the AD electronic sampling control switch 1 is further connected to the anti-interference unit connected in parallel to the RGB light intensity feedback circuit.
10. The intelligent RGB digital color sensor circuit system of claim 1, further comprising a human interface circuit electrically connected to the processor module, the human interface circuit being electrically connected to the power module.
CN201910522302.8A 2019-06-17 2019-06-17 Intelligent RGB digital color sensor circuit system Pending CN112097910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910522302.8A CN112097910A (en) 2019-06-17 2019-06-17 Intelligent RGB digital color sensor circuit system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910522302.8A CN112097910A (en) 2019-06-17 2019-06-17 Intelligent RGB digital color sensor circuit system

Publications (1)

Publication Number Publication Date
CN112097910A true CN112097910A (en) 2020-12-18

Family

ID=73748673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910522302.8A Pending CN112097910A (en) 2019-06-17 2019-06-17 Intelligent RGB digital color sensor circuit system

Country Status (1)

Country Link
CN (1) CN112097910A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113049106A (en) * 2021-03-11 2021-06-29 广州市合熠智能科技股份有限公司 Digital intelligent color sensor system
CN115883989A (en) * 2023-02-22 2023-03-31 广州市合熠智能科技股份有限公司 12-bit CMOS digital RGB color sensor integrated circuit

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11132846A (en) * 1997-10-30 1999-05-21 Sunx Ltd Photoelectric sensor and color sensor
US20050237401A1 (en) * 2004-04-21 2005-10-27 Tan Boon K Color sensor circuit with integrated programmable gain selection
US20050285017A1 (en) * 2004-06-24 2005-12-29 Tan Boon K Color sensing circuit employing charge storage device
US20080272277A1 (en) * 2007-05-02 2008-11-06 Novatek Microelectronics Corp. Apparatus and method for controlling brightness of light source and displaying apparatus
CN102215736A (en) * 2008-11-18 2011-10-12 斯特赖克公司 Endoscopic led light source having a feedback control system
CN102811525A (en) * 2011-05-31 2012-12-05 海洋王照明科技股份有限公司 LED lamp and control circuit thereof
CN109883335A (en) * 2019-03-15 2019-06-14 广州市合熠电子科技有限公司 A kind of Minitype digital CMOS laser displacement sensor circuit system
CN209979067U (en) * 2019-04-22 2020-01-21 广州市合熠电子科技有限公司 Intelligent RGB digital color sensor circuit system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11132846A (en) * 1997-10-30 1999-05-21 Sunx Ltd Photoelectric sensor and color sensor
US20050237401A1 (en) * 2004-04-21 2005-10-27 Tan Boon K Color sensor circuit with integrated programmable gain selection
US20050285017A1 (en) * 2004-06-24 2005-12-29 Tan Boon K Color sensing circuit employing charge storage device
US20080272277A1 (en) * 2007-05-02 2008-11-06 Novatek Microelectronics Corp. Apparatus and method for controlling brightness of light source and displaying apparatus
CN102215736A (en) * 2008-11-18 2011-10-12 斯特赖克公司 Endoscopic led light source having a feedback control system
CN102811525A (en) * 2011-05-31 2012-12-05 海洋王照明科技股份有限公司 LED lamp and control circuit thereof
CN109883335A (en) * 2019-03-15 2019-06-14 广州市合熠电子科技有限公司 A kind of Minitype digital CMOS laser displacement sensor circuit system
CN209979067U (en) * 2019-04-22 2020-01-21 广州市合熠电子科技有限公司 Intelligent RGB digital color sensor circuit system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113049106A (en) * 2021-03-11 2021-06-29 广州市合熠智能科技股份有限公司 Digital intelligent color sensor system
CN115883989A (en) * 2023-02-22 2023-03-31 广州市合熠智能科技股份有限公司 12-bit CMOS digital RGB color sensor integrated circuit

Similar Documents

Publication Publication Date Title
CN112097910A (en) Intelligent RGB digital color sensor circuit system
CN209979067U (en) Intelligent RGB digital color sensor circuit system
CN110220541A (en) Infrared detecting device and infrared photoelectric sensor
CN111044089A (en) Photoelectric sensor capable of automatically adjusting gain
CN110976061A (en) Paper full detection circuit and method capable of distinguishing infrared rays
WO2020155313A1 (en) Optical sampling circuit capable of ensuring both sampling width and precision, and acquisition method
CN117097335B (en) High-sensitivity proximity light detection sensor
CN117872496B (en) Detection circuit and detection method of double-path receiving sensor
CN107816938A (en) The circuit and its application method of interference system automatic zero set and amplitude modulation under low contrast
CN209689752U (en) Integral type rgb color sensor circuit system
CN218481406U (en) Weak fluorescence signal detection circuit
CN113465637A (en) Photoelectric receiving and detecting circuit
CN105988644A (en) Infrared touch screen circuit suitable for strong ambient light
CN201653386U (en) Single-silk detection sensor
CN113049106B (en) A digital intelligent color sensor system
CN210514461U (en) Hand-held transformer direct-current resistance tester
CN211755926U (en) Paper full detection circuit capable of distinguishing infrared rays
CN209310835U (en) A kind of detection device of optical sensor
CN213935181U (en) Gesture control circuit
CN108681270A (en) A kind of signal processing circuit of Linear CCD Detector
CN207833036U (en) A kind of novel tracking sensor
CN207424716U (en) The laser level control instrument adaptive adjustment circuit of multi gear light signal strength
CN105392235A (en) Intelligent control system with automatic brightness adjustment for LED lamp
CN220552979U (en) Diffuse reflection sensor
CN214756056U (en) Vehicle-mounted power supply circuit adaptive to environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201218

RJ01 Rejection of invention patent application after publication