Disclosure of Invention
The application aims to provide a high-precision optical fiber type multipath white light digital sensor system so as to solve the technical problems in the background technology.
In order to achieve the purpose, the application discloses a high-precision optical fiber type multipath white light digital sensor system, which comprises the following technical scheme:
The power supply circuit is used for receiving DC10V-DC30V wide voltage input, processing the input voltage through a power supply input polarity reverse connection protection and surge absorption circuit, and providing power for the system after a DCDC and LDO voltage reduction circuit and filtering;
The 32-bit microprocessor main control circuit is internally provided with three independent 12-bit ADC converters for data operation and multitasking, and the 32-bit microprocessor main control circuit is connected with the power supply circuit to acquire working voltage;
The emitting circuit is used for periodically and short-time lighting LEDs based on the constant current circuit, controlling the lighting period time and the lighting time based on PWM and controlling the brightness of the white LEDs through the DAC, and is connected with the 32-bit microprocessor main control circuit;
The receiving circuit at least comprises an RGB sensor, when white light irradiates the RGB sensor, three signals are generated R, G, B, amplified and filtered by the analog signal amplifier and the filter circuit, and then connected to an ADC pin of the 32-bit microprocessor main control circuit;
the multi-output control circuit is used for outputting a color judgment result and is connected with the 32-bit microprocessor main control circuit;
The 1-way input circuit is used for receiving external input signals based on optical coupling isolation, and the 1-way input circuit is connected with the 32-bit microprocessor main control circuit;
The man-machine interface circuit comprises a 3-bit nixie tube display circuit and a 3-key related circuit, and is connected with the 32-bit microprocessor main control circuit.
Preferably, the power supply circuit is reversely connected with the protection circuit, the surge absorbing circuit, the DCDC main power supply, the LDO barrier voltage circuit and the power supply filter circuit.
Preferably, the 32-bit microprocessor main control circuit further comprises a DAC unit, a pwm unit and a flash memory unit.
Preferably, the emission circuit comprises a high-pass filter circuit, an analog switching unit, a constant current control circuit and a high-brightness white LED;
The high-pass filter circuit is connected with the DAC unit, and the analog switching unit is connected with the pwm unit.
Preferably, R, G, B signals generated by the receiving circuit are amplified and filtered by the analog signal amplifier and the filter circuit and then are respectively connected to the 12-bit ADC of the 32-bit microprocessor master control circuit.
Preferably, the multi-path output control circuit comprises 4 paths of output circuits, each output circuit at least comprises NPN and PNP for switching the control circuit based on a program, and each output circuit is provided with a corresponding overcurrent protection circuit and a corresponding short-circuit protection circuit.
Preferably, the 1-way input circuit is based on the control of the lighting or the replacement of the SET key function after the main control circuit of the 32-bit microprocessor.
Preferably, the 3-bit nixie tube display circuit is connected with the 32-bit microprocessor main control circuit and used for receiving display data, and the 3-key related circuit is connected with the 32-bit microprocessor main control circuit and used for receiving operation instructions.
Preferably, the white light irradiates the RGB sensor to generate R, G, B signals, specifically:
When the light generated by the optical fiber irradiates the surface of the setting target, diffuse reflection light is generated, and the RGB sensor receives the diffuse reflection light to generate R, G, B signals.
Preferably, the 12-bit ADC converter is used for data operation and multiplexing, specifically:
And obtaining color data of the setting target based on the collected R, G, B signals, and comparing the color data with a preset color to judge whether the color is the required color.
The high-precision optical fiber type multi-path white light digital sensor system has the beneficial effects that based on the cooperative work of the power supply circuit, the 32-bit microprocessor main control circuit, the transmitting circuit, the receiving circuit, the output control circuit, the input circuit and the man-machine interface circuit, the processing and analysis of various signals, especially the processing of color data, can be simultaneously completed in a complex environment, the detection efficiency and the detection precision are improved, the application scene of the sensor is greatly expanded, the urgent requirements of the fields of industrial production, scientific research and the like on multi-parameter monitoring and flexible control are met, and the practicability and the adaptability of the whole system are effectively improved.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be clear and complete, and it is obvious that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising" does not exclude the presence of additional identical elements in a process, method, article, or apparatus that comprises the element.
The embodiment discloses a high-precision optical fiber type multipath white light digital sensor system as shown in fig. 1, comprising:
The power supply circuit is used for receiving DC10V-DC30V wide voltage input, processing the input voltage through a power supply input polarity reverse connection protection and surge absorption circuit, and providing power for the system after a DCDC and LDO voltage reduction circuit and filtering;
The 32-bit microprocessor main control circuit is internally provided with three independent 12-bit ADC converters for data operation and multitasking, and the 32-bit microprocessor main control circuit is connected with the power supply circuit to obtain working voltage;
The emission circuit is used for periodically and short-time lighting the LEDs based on the constant current circuit, controlling the lighting period time and the lighting time based on PWM and controlling the brightness of the white LEDs through the DAC, and is connected with the 32-bit microprocessor main control circuit;
the receiving circuit at least comprises an RGB sensor, when white light irradiates the RGB sensor, three signals are generated R, G, B, amplified and filtered by the analog signal amplifier and the filter circuit, and then connected to an ADC pin of the 32-bit microprocessor main control circuit;
The multi-output control circuit is used for outputting a color judgment result and is connected with the 32-bit microprocessor main control circuit;
The 1-way input circuit is used for receiving external input signals based on optical coupling isolation, and the 1-way input circuit is connected with the 32-bit microprocessor main control circuit;
the man-machine interface circuit comprises a 3-bit nixie tube display circuit and a 3-key related circuit, and is connected with the 32-bit microprocessor main control circuit.
By means of the above, the processing and analysis of various signals, especially the processing of color data, can be completed simultaneously under a complex environment based on the cooperative work of the power supply circuit, the 32-bit microprocessor main control circuit, the transmitting circuit, the receiving circuit, the output control circuit, the input circuit and the human-computer interface circuit, so that the detection efficiency and accuracy are improved, the application scene of the sensor is greatly expanded, the urgent requirements of fields such as industrial production and scientific research on multi-parameter monitoring and flexible control are met, and the practicability and adaptability of the whole system are effectively improved.
Specifically, the power supply circuit is reversely connected with the protection circuit, the surge absorbing circuit, the DCDC main power supply, the LDO barrier voltage circuit and the power supply filter circuit.
As shown in fig. 2, as a preferred implementation of the present embodiment, the power supply circuit of the present embodiment specifically includes:
chip U2: the 4 pin is connected with a resistor R14 (100K/1%) and then is connected with 24V, one end of a5 pin, one end of a capacitor C19 (0.1 uF/50V) and one end of a capacitor C20 (10 nF/50V) are connected with 24V, the other end of the capacitor C19 and the other end of the capacitor C20 are grounded, one end of a capacitor C21 (0.1 uF/50V) and one end of an inductor L1 are connected with 6 pin, 1 pin is connected with the other end of the capacitor C21, one end of a 2 pin and one end of a resistor R15 (1K/1%) are grounded, one end of a3 pin, one end of a resistor R16 (8.2K/1%) and one end of a capacitor C25 (10 nF/50V) are connected with one end of a capacitor C46 (10 nF/50V), the other end of the capacitor C46 is grounded, the 2 pin of the inductor L1, the other end of the resistor R16, the other end of the capacitor C25, one end of the capacitor C23 (47 uF/10V), one end of the capacitor C10 (47 uF/10V), one end of the capacitor C55 (0.1 uF/50V), one end of the capacitor C11 (10 nF/50V), one end of the capacitor C53 (47 uF/10V) and one end of the capacitor C222 (0.1 uF/50V) are all connected with VDD_7V4, and the other end of the capacitor C23, the other end of the capacitor C10, the other end of the capacitor C55, the other end of the capacitor C11, the other end of the capacitor C53 and the other end of the capacitor C222 are all grounded;
1 pin, one end of a capacitor C29 (0.1 uF/50V) and one end of a capacitor C54 (10 nF/50V) are connected with VDD_7V4, the other end of the capacitor C29 and the other end of the capacitor C54 are grounded, 2 pin is grounded, 5 pin, one end of a capacitor C31 (10 nF/50V), one end of a capacitor C32 (0.1 uF/50V) and one end of a capacitor C33 (47 uF/10V) are connected with 5V_D, and the other end of the capacitor C31, the other end of the capacitor C32 and the other end of the capacitor C33 are grounded;
The chip U8 is characterized in that 1 pin, one end of a capacitor C40 and one end of a capacitor C39 are connected with one end of a resistor R3, the other end of the resistor R3 is connected with VDD_7V4, 5 pins, one end of a capacitor C42 (10 nF/50V), one end of a capacitor C43 (0.1 uF/50V) and one end of a capacitor C44 (4.7 uF/10V) are connected with 5V_D, 2 pins, the other end of the capacitor C40, the other end of the capacitor C39, one end of a resistor R9 (0R/1%), the other end of the capacitor C42, the other end of the capacitor C43 and the other end of the capacitor C44 are connected with AGND, and the other end of the resistor R9 is grounded.
By means of the above, the power supply circuit has the functions of reverse connection protection, surge absorption, voltage reduction, filtering and the like, equipment faults caused by power supply problems are avoided, normal operation of the system in a complex electrical environment is ensured, a stable power supply foundation is provided for the operation of the whole sensor system, and compared with the defects of a power supply part in the prior art, the anti-interference capability and durability of the system are remarkably improved.
Specifically, the 32-bit microprocessor main control circuit further comprises a DAC unit, a pwm unit and a flash storage unit.
By means of the above, the embodiment is based on the cooperation of the built-in ADC, DAC, pwm and flash memory units, so that the system is more accurate and efficient in the aspects of signal acquisition, conversion, control signal generation and data storage, and the intelligent degree and the overall performance of the system are improved.
As shown in fig. 3, as a preferred implementation manner of this embodiment, the 32-bit microprocessor master control circuit of this embodiment specifically includes:
Chip U1: pin 2 is connected with KEY_SET, pin 3 is connected with LED_Green, pin 4 is connected with LED_Red, pin 5 and pin 6 are both blank pins, pin 7 is connected with capacitor C1 (470 nF/50V) and then grounded, pin 8 is connected with AGND, pin 9 is connected with 303V_BASE, pin 10 is connected with IO_IN, pin 11 is connected with V_ RGADC3, pin 12 is connected with V_ GBADC2, pin 13 is connected with V_ BRADC, pin 14 is connected with DAC2, pin 15 is connected with DAC, pin 16 is connected with OP_EN2, pin 17 is connected with OP_EN1, pin 18 is connected with LED8_KEY_DW, pin 19 is connected with LED8_IIC_SDA, pin 23 is connected with capacitor C14 (470 nF/10V) and then grounded, pin 24 is connected with LED 8_IIC_IIC, pin 26 is connected with SCLSIG_n25, pin 27 is connected with VDD_n2, pin 27 is connected with VDD_ BRADC, pin 14 is connected with VDD_EN1, pin 15 is connected with DAC2, pin 16 is connected with VDD_EN2, pin 17 is connected with OP_EN1, pin 18 is connected with LED 8_IIC_SiCJC_SDU, pin 18 is connected with pins 8_W1, pin 19 is connected with LED_WYC_W1, pin is connected with 3 is connected with pins (CKWYF/C35_W1), pin 35_WYF, pin 35 is connected with pins are connected with LKWYP, and then 12 is connected with pins are connected with pins, and then 4;
TP1 is connected with SWCLK, TP2 is connected with SWDIO, TP3 is grounded, TP4 is connected with DUG_TX, and TP5 is connected with DUG_RX;
The chip U10 is characterized in that a1 pin is connected with one end of a capacitor C2 (0.1 uF/50V) and is connected with a 5V_D, the other end of the capacitor C2, one end of a capacitor C3 (0.1 uF/50V), one end of a capacitor C4 (0.1 uF/50V), one end of a capacitor C5 (0.1 uF/50V), one end of a capacitor C6 (0.1 uF/50V) and one end of a capacitor C7 (47 uF/10V) are grounded, and the other end of the 5 pin, the other end of the capacitor C3, the other end of the capacitor C4, the other end of the capacitor C5, the other end of the capacitor C6 and the other end of the capacitor C7 are connected with VDD.
Specifically, the emission circuit comprises a high-pass filter circuit, an analog switching unit, a constant current control circuit and a high-brightness white LED;
The high-pass filter circuit is connected with the DAC unit, and the analog switching unit is connected with the pwm unit.
As shown in fig. 4, as a preferred implementation of the present embodiment, the transmitting circuit of the present embodiment specifically includes:
TP28 is connected with VDD_7V4, TP29, one end of a capacitor C59 (10 nF/50V), one end of a capacitor C60 (4.7 uF/10V) and one end of a resistor B2 are connected with 5V_S, the other end of the resistor B2, one end of a capacitor C61 (10 nF/50V) and one end of a capacitor C62 (4.7 uF/10V) are connected with 5V, the other end of the capacitor C59, the other end of the capacitor C60, the other end of the capacitor C61 and the other end of the capacitor are connected with AGND, and VDD_7V4 is connected with the capacitor C9 (100 uF/10V) and then grounded.
By means of the above, the embodiment is based on the combination of the high-pass filter circuit, the analog switching unit, the constant-current control circuit and the high-brightness white LED and the connection with the related circuits of the 32-bit microprocessor main control circuit, so that the light emission can be accurately regulated in the aspects of intensity, period, time and the like, the defect of the traditional technology in light signal emission control is overcome, and the accuracy and reliability of the system on target detection are improved.
Specifically, R, G, B signals generated by the receiving circuit are amplified and filtered by the analog signal amplifier and the filter circuit and then are respectively connected to the 12-bit ADC converter of the 32-bit microprocessor main control circuit.
As shown in fig. 5, as a preferred implementation of the present embodiment, the receiving circuit of the present embodiment specifically includes:
the chip U3 is characterized in that a1 pin is connected with a 3.3V_BASE and is connected with a capacitor C17 and then is connected with an AGND, a2 pin is connected with a V_R and is connected with a capacitor C16 (10 nF/50V) and a resistor R17 (1K/1%) and then is connected with the OP_R, a3 pin is connected with the AGND, a4 pin is connected with a TMR_SIG_nEN, a 5 pin is connected with a 5V and is connected with a capacitor C15 (0.1 uF/50V) and then is connected with the AGND;
The chip U5 is characterized in that a1 pin is connected with 3.3V_BASE and is connected with a capacitor C28 and then is connected with AGND, a2 pin is connected with V_G and is connected with a capacitor C27 (10 nF/50V) and a resistor R22 (1K/1%) and then is connected with OP_G, a3 pin is connected with AGND, a4 pin is connected with TMR_SIG_nEN, a 5 pin is connected with 5V and is connected with AGND after being connected with a capacitor C26 (0.1 uF/50V);
The chip U7 is characterized in that a1 pin is connected with 3.3V_BASE and is connected with a capacitor C37 and then is connected with AGND, a2 pin is connected with V_B and is connected with a capacitor C36 (10 nF/50V) and a resistor R24 (1K/1%) and then is connected with OP_B, a3 pin is connected with AGND, a4 pin is connected with TMR_SIG_nEN, and a 5 pin is connected with 5V and is connected with AGND after being connected with a capacitor C34 (0.1 uF/50V);
1 pin, one end of a capacitor C51 (0.7 uF/10V) and one end of a capacitor C48 (10 nF/54V) are connected with a resistor B3 and then connected with 5V, 2 pin, the other end of the capacitor C51, the other end of the capacitor C48, one end of a capacitor C52 (4.7 uF/10V), one end of a capacitor C50 (0.1 uF/50V), one end of a capacitor C68 (0.1 uF/50V), one end of a capacitor C47 (10 nF/50V) and one end of a capacitor C64 (1 uF/50V) are connected with AGND, the other end of the resistor B4, the other end of the capacitor C52 and the other end of the capacitor C50 are connected with 3.3V_BASE, and the other end of the capacitor C47 and the other end of the capacitor C64 are connected with 3.3 V_BASE;
TP21, one end of a capacitor C30 (4.7 uF/10V), one end of a capacitor C8 (0.1 uF/50V) and one end of a resistor B1 are connected with 5V_A, the other ends of TP21, C8 and C30 are connected with AGND, the other end of the resistor B1, one end of a capacitor C57 (4.7 uF/10V) and one end of a capacitor C56 (10 nF/50V) are connected with 5V, the other end of the capacitor C57 is connected with AGND, the other end of the capacitor C56 is connected with AGND, TP23 is connected with OP_R, TP24 is connected with OP_G, TP25 is connected with OP_B, TP26 is connected with OP_EN1, and TP27 is connected with OP_EN2.
By means of the above, the signal generated by RGBsensor is processed based on the analog signal amplifier and the filter circuit, and then accurately connected to the ADC, so that the authenticity and effectiveness of the acquired signal are ensured, the defect of the traditional technology in the aspect of complex optical signal acquisition and processing is overcome, and a powerful guarantee is provided for subsequent accurate data analysis.
Specifically, the multi-path output control circuit comprises 4 paths of output circuits, each output circuit at least comprises NPN and PNP which are used for switching the control circuit based on a program, and each output circuit is provided with a corresponding overcurrent protection circuit and a corresponding short-circuit protection circuit.
By means of the above, the embodiment is based on the NPN and PNP control circuits and the independent overcurrent and short-circuit protection circuits, so that equipment damage is effectively prevented while output control flexibility is ensured, the problems in the aspects of output circuit protection and control flexibility in the prior art are solved, and the stability and reliability of the system are enhanced.
Specifically, the 1-way input circuit is based on the control of the on-off of the emitting lamp or the function of replacing the SET key after the control circuit is controlled by the 32-bit microprocessor.
As shown in fig. 6, as a preferred implementation of the present embodiment, the 1-way input circuit of the present embodiment specifically includes:
The 3 feet of the optocoupler PH1 are grounded, the 4 feet of the optocoupler PH1 are connected with IO_In4, the 2 feet of the optocoupler PH1, one end of a resistor R1 (1K/1%) and one end of a capacitor C49 (10 nF/50V) are connected with the positive pole of a diode D7 (IN 5819 WS), the negative pole of the diode D7 is connected with IN, the 1 feet of the optocoupler PH1, the other end of the resistor R1 and the other end of the capacitor C49 are connected with one end of a resistor R23 (5.6K/1%), and the other end of the resistor R23 is connected with +24V.
By means of the above, the input circuit after the optical coupler isolation of the embodiment ensures the safe interaction between the system and the external equipment when the on-off control of the sending lamp or the function of replacing the SET key is realized, overcomes the defects of single input control and lack of isolation of the traditional sensor, and improves the expandability and the operation diversity of the system.
Specifically, the 3-bit nixie tube display circuit is connected with the 32-bit microprocessor main control circuit and used for receiving display data, and the 3-key related circuit is connected with the 32-bit microprocessor main control circuit and used for receiving operation instructions.
By means of the above, the connection between the 3-bit nixie tube display circuit and the 3-key related circuit and the 32-bit microprocessor main control circuit enables the system to intuitively display information and facilitate user operation, improves the shortcomings of the traditional technology in human-computer cooperation, and improves user experience and usability of the system.
Specifically, when white light irradiates the RGB sensor, three signals are generated R, G, B, specifically:
when the light generated by the optical fiber irradiates the surface of the setting target, diffuse reflection light is generated, and the RGB sensor receives the diffuse reflection light to generate R, G, B signals.
By means of the above, the process that the optical fiber generates light to irradiate the target surface to generate diffuse reflection light and then the diffuse reflection light is received by the RGB sensor and converted into the electric signal ensures the reliability and the effectiveness of the signal source, and compared with the simple processing of the traditional technology in the signal generation link, the accuracy and the reliability of the system detection are improved.
Specifically, the 12-bit ADC converter is used for data operation and multitasking, specifically:
And obtaining color data of the setting target based on the collected R, G, B signals, and comparing the color data with a preset color to judge whether the color is the required color.
By the above, the present embodiment realizes accurate color judgment by using the ADC conversion and the data processing of the 32-bit microprocessor main control circuit. Based on the collected R, G, B signals, data operation and comparison with preset colors are carried out after ADC conversion, the target color is accurately judged, the defects of the traditional technology in the aspects of multi-parameter analysis and color judgment are overcome, and the specialization and the accuracy of the system in the field of color detection are improved.
In summary, the high-precision optical fiber type multi-path white light digital sensor system of the embodiment can simultaneously complete processing and analysis of various signals, especially processing of color data, under a complex environment based on cooperative work of a power supply circuit, a 32-bit microprocessor main control circuit, a transmitting circuit, a receiving circuit, an output control circuit, an input circuit and a human-computer interface circuit, so that the detection efficiency and precision are improved, the application scene of the sensor is greatly expanded, the urgent requirements of fields such as industrial production and scientific research on multi-parameter monitoring and flexible control are met, and the practicability and adaptability of the whole system are effectively improved.
In the embodiments provided by the present application, it is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, code, or any suitable combination thereof. For a hardware implementation, the processors may be implemented within one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof. For a software implementation, some or all of the flow of an embodiment may be accomplished by a computer program to instruct the associated hardware. When implemented, the above-described programs may be stored in or transmitted as one or more instructions or code on a computer-readable storage medium. Computer-readable storage media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. The computer-readable storage media may include, but is not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
It should be noted that the foregoing description is only a preferred embodiment of the present application, and although the present application has been described in detail with reference to the foregoing embodiments, it should be understood that modifications, equivalents, improvements and modifications to the technical solution described in the foregoing embodiments may occur to those skilled in the art, and all modifications, equivalents, and improvements are intended to be included within the spirit and principle of the present application.