Infrared width sensor device and detection method

By designing independently controlled infrared transmitting and receiving units and using microcontroller control, the infrared wide-frame sensor has been solved, and the problems of poor linearity, high power consumption and cumbersome debugging in the coil correction process are solved, achieving higher reliability and efficiency.

CN119503506APending Publication Date: 2025-02-25东莞市搏信智能控制技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411674204.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The existing infrared wide-frame sensors have problems such as poor linearity, high power consumption, rising temperature and cumbersome debugging during the coil correction process, which affects the reliability and processing efficiency of the deviation correction system.

Method used

An infrared wide-format sensor device is designed, and an independent control unit is formed through multiple infrared transmitting lamps and receiving tubes. A single-chip microcomputer is used to control the switch of the infrared transmitting unit to realize independent control and flexible combination, reduce power consumption and improve linearity.

Benefits of technology

It improves the linearity and stability of infrared wide-frame sensors, reduces power consumption and temperature rise, simplifies the debugging process, and improves the reliability and processing efficiency of coil deviation correction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119503506A_ABST
    Figure CN119503506A_ABST
Patent Text Reader

Abstract

The invention relates to an infrared width sensor device and a detection method, and relates to the technical field of infrared detection, the infrared width sensor device comprises an infrared emission module, an infrared receiving module, a switch switching module, a signal amplification module, a control module, a power supply module and an analog output module, and the output end of the power supply module is connected with the power supply input end of the control module; the input end of the analog output module is connected with the analog output end of the control module; the infrared transmitting module comprises a plurality of infrared transmitting units which are arranged in sequence, the infrared receiving module comprises a plurality of infrared receiving units which are arranged in sequence, and the plurality of infrared receiving units and the plurality of infrared transmitting units are in one-to-one correspondence to form correlation; and the signal amplification module comprises a plurality of signal amplification units which are arranged in sequence. The method has the effect of improving the coiled material deviation rectifying reliability and the machining efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of infrared detection technology, and in particular to an infrared wide-band sensor device and a detection method. Background Art

[0002] When processing coil products, if the edges of the coils are not aligned during unwinding, rewinding or intermediate transportation, it may cause errors in subsequent processes, resulting in low yield and low production efficiency. Therefore, it is usually necessary to use a correction system to correct the coils. The correction system needs to use a correction sensor to sense whether the coil is offset. The correction sensor can use infrared light, ultrasound, laser or visible light. When correcting light-sensitive coils such as textiles, textiles, thin paper, opaque films, lithium batteries or photosensitive paper, infrared sensors are often used as correction sensors.

[0003] When applied to different types of coils or changing coils of different widths, sensors with different fields of view are required for deflection detection. For example, for a coil with a width of 50mm, a wide-width sensor with a field of view within this range is required, and a sensor with a wider field of view cannot be used to set a small field of view to meet its requirements. Most wide-width sensors on the market have several mode functions, but they need to be connected to a computer or other control device to modify and debug the sensor mode. During the debugging process, the controller needs to be turned on to roughly know the position of the detected object, which makes the debugging process more cumbersome, thus affecting the processing efficiency of the coiled product. At the same time, since most wide-width sensors are working with all the transmitting lights turned on at the same time, in this mode, the transmitting lights will interfere with each other and affect the linearity of the product. When the power of the transmitting light is large, it will cause the internal temperature to rise and affect the performance of the transmitting light, resulting in unstable factors in the deflection correction system, thereby affecting the working efficiency and reliability of the deflection correction system. Summary of the invention

[0004] The purpose of this application is to provide an infrared wide-width sensor device and a detection method to improve the reliability and processing efficiency of coil correction.

[0005] In the first aspect, the present application provides an infrared wide-band sensor device that adopts the following technical solution: An infrared wide-band sensor device comprises an infrared transmitting module, an infrared receiving module, a switch switching module, a signal amplifying module, a control module, a power module and an analog output module, wherein the output end of the power module is connected to the power input end of the control module, and the input end of the analog output module is connected to the analog output end of the control module; The infrared emitting module includes a plurality of infrared emitting units arranged in sequence, the switch switching module includes a plurality of switch units arranged in sequence, the input end of each switch unit is connected to the infrared emitting signal output end of the control module, and the input end of each infrared emitting unit is respectively connected to an output end of the switch unit, the switch unit is used to receive the infrared emitting signal sent by the control module and control the corresponding infrared emitting unit to turn on according to the infrared emitting signal, and the infrared emitting unit is used to emit infrared light when turned on; The infrared receiving module comprises a plurality of infrared receiving units arranged in sequence, wherein the plurality of infrared receiving units correspond to the plurality of infrared transmitting units one by one to form a counter-radiation; The signal amplification module includes a plurality of signal amplification units arranged in sequence, the output end of each signal amplification unit is connected to the infrared receiving signal input end of the control module, and each infrared receiving unit output end is respectively connected to an input end of the signal amplification unit. The infrared receiving unit is used to receive reflected infrared light and generate an infrared receiving signal. The signal amplification unit is used to amplify the infrared receiving signal and send the amplified infrared receiving signal to the control module.

[0006] By adopting the above technical solution, the present application forms an independently controllable unit group as an infrared emitting unit through multiple infrared emitting lamps, and arranges them in sequence, and forms an independently controllable unit group as an infrared receiving unit through multiple infrared receiving tubes, which are also arranged in sequence, and multiple infrared emitting units and multiple infrared receiving units are arranged in a row to form a unit group to shoot, and the corresponding infrared emitting unit is controlled by the control module to emit infrared light. When other infrared emitting units are not needed, the corresponding infrared emitting unit is kept in a closed state through the switch unit, which effectively improves the linearity of the infrared wide-band sensor, reduces power consumption, and thus reduces the internal temperature rise during use, making the performance of the infrared wide-band sensor more stable. At the same time, the present application can use the principle of high precision in a small field of view, by controlling a certain infrared emitting unit alone, and keeping other infrared emitting units closed, within the effective detection range of the sensor, the corresponding infrared emitting unit can be controlled to arbitrarily select a small detection range to quickly correct the coil without moving the coil or sensor position, and when changing coils of different widths, there is no need to change sensors with different detection ranges for detection, which effectively improves the reliability and processing efficiency of coil correction.

[0007] Furthermore, it also includes a communication module, which is connected to the control module and is used to transmit communication signals between the outside and the control module.

[0008] By adopting the above-mentioned technical solution, the present application sets up a communication module, which can be used by other devices to read the measurement value after the detection object is blocked, or to modify the sensor mode and set parameters through remote control, etc., so as to further improve the reliability and processing efficiency of the coil correction.

[0009] Furthermore, it also includes an interaction module, which is connected to the control module and is used to transmit interaction signals between the outside and the control module.

[0010] By adopting the above-mentioned technical solution, the present application sets an interactive module, which can modify the sensor mode, set parameters, and display the current sensor analog voltage output value without the aid of external equipment, thereby further improving the reliability of coil correction and processing efficiency.

[0011] Furthermore, the control module includes a single chip microcomputer, the single chip microcomputer includes a PWM signal output port and an I / O port, and each of the switch units includes a first MOS tube and a second MOS tube; The PWM signal output port of the single chip microcomputer is connected to the gate of the first MOS tube, and the I / O port is connected to the gate of the second MOS tube.

[0012] By adopting the above-mentioned technical scheme, the present application independently controls the on and off of the infrared emitting unit through the PWM signal with adjustable frequency and duty cycle output by the single-chip microcomputer and the periodic output of high and low levels through the independent I / O port, and utilizes the time difference to turn on the adjacent infrared emitting units and turn off the remaining infrared emitting units. The cyclic characteristics effectively improve the linearity of the sensor and reduce the power consumption of the product, thereby reducing the temperature rise inside the sensor during use and making the performance of the sensor more stable. Furthermore, the single-chip microcomputer also includes an ADC port and a DAC port, the ADC port of the single-chip microcomputer is connected to the output end of the signal amplification module, and the DAC port of the single-chip microcomputer is connected to the input end of the analog output module.

[0013] By adopting the above technical solution, the present application utilizes the 16-channel ADC port built into the single-chip microcomputer, and each ADC receives the infrared receiving signal of each infrared receiving unit separately, so that the infrared detection speed and detection accuracy can be improved through subdivision.

[0014] In the second aspect, the infrared wide-band sensor detection method provided by the present application adopts the following technical solution: A detection method for an infrared wide-band sensor is applied to the infrared wide-band sensor device described in the first aspect. The detection method includes a normal mode, a width measurement mode, and a deviation correction mode. The normal mode includes: The control module obtains the width data of the detected object and determines the infrared emission unit to be turned on according to the width data; The control module sends the infrared emission signal to the switch unit corresponding to the infrared emission unit to be turned on, and the switch unit controls the infrared emission unit to turn on and emit infrared light; The infrared receiving unit receives the reflected infrared light and generates an infrared receiving signal, and sends the infrared receiving signal to the corresponding signal amplifying unit; The signal amplifying unit amplifies the infrared receiving signal and sends the amplified infrared receiving signal to the control module; The control module receives the infrared receiving signal after amplification processing, and obtains the detection value according to the infrared receiving signal; The control module generates an analog output signal according to the detection value and sends the analog output signal to the analog output module.

[0015] By adopting the above-mentioned technical scheme, the present application automatically controls the operation of the corresponding infrared emitting unit according to the width data of the object to be detected, and can be freely combined to obtain different detection ranges for use, thereby improving the detection accuracy and reducing the error value when replaced. When replacing rolls of different widths, there is no need to replace sensors with different detection ranges for detection, which effectively improves the reliability of roll correction and processing efficiency.

[0016] Further, obtaining the detection value according to the infrared receiving signal includes: Determine whether there is any obstruction based on the infrared receiving signal; When there is occlusion, a detection value is generated according to the occlusion situation.

[0017] By adopting the above technical solution, the present application determines whether there is an obstruction through the reflection of infrared light, thereby generating a detection value to ensure the accuracy of sensor detection.

[0018] Furthermore, the width measurement mode includes: Two adjacent infrared emitting units are regarded as a group of infrared emitting units, and the control module turns on the infrared emitting unit groups in sequence by controlling the corresponding switch units; The control module obtains the detection value corresponding to the infrared receiving unit according to the received infrared receiving signal; The control module uses the two detection values ​​corresponding to the infrared emitting unit group as a detection array, and finally obtains several detection arrays; the control module obtains the maximum width data of the infrared emitting module and the infrared receiving module, and obtains the width data of the detected object according to the maximum width data and several detection arrays.

[0019] By adopting the above-mentioned technical solution, the present application controls the infrared transmitting unit groups to turn on in turn, obtains the width data of the detected object according to the detection values ​​of different infrared receiving units, and can automatically detect the width of the coil. There is no need to manually adjust the detection range of the sensor according to the width, thereby effectively improving the reliability of coil correction and processing efficiency.

[0020] Furthermore, the step of obtaining the width data of the detected object according to the maximum width data and a plurality of detection arrays specifically includes: Calculate the detection average of the two detection values ​​in each detection array; Obtain the maximum detection value of each group of infrared emission units, and obtain the proportional coefficient based on the detection average value and the maximum detection value; Obtain the detection width of each group of infrared emission units according to the maximum width data; Obtaining the position of the infrared receiving unit with obstruction according to the detection width and the proportional coefficient of each group of infrared receiving units; The width data of the detected object is obtained according to the position of the infrared receiving unit with obstruction.

[0021] By adopting the above technical solution, the present application can obtain the width data of the detected object based on the maximum width data and several detection arrays, without the need for manual measurement and adjustment, thereby ensuring the reliability of sensor detection.

[0022] Furthermore, the correction mode includes: The control module turns on one of the infrared emitting units by controlling the corresponding switch unit, and the infrared emitting unit emits infrared light; the infrared receiving unit corresponding to the infrared emitting unit receives the reflected infrared light and generates an infrared receiving signal, and sends the infrared receiving signal to the corresponding signal amplifying unit; The signal amplifying unit amplifies the infrared receiving signal and sends the amplified infrared receiving signal to the control module; The control module receives the infrared receiving signal after amplification processing, and determines whether deviation correction is needed according to the infrared receiving signal.

[0023] By adopting the above-mentioned technical solution, the present application turns on one of the infrared emitting units, utilizes the principle of high precision in a small field of view, and performs a correction and rewinding action on the coil under high precision conditions, thereby achieving a more ideal effect of coil correction and effectively improving the reliability of coil correction and processing efficiency.

[0024] In summary, the present application includes at least one of the following beneficial technical effects: 1. This invention uses multiple infrared emitting lamps to form an independently controllable unit group as an infrared emitting unit, and arranges them in sequence. It uses multiple infrared receiving tubes to form an independently controllable unit group as an infrared receiving unit, and also arranges them in sequence. Multiple infrared emitting units and multiple infrared receiving units are lined up in a row to form a unit group for opposite shooting. The corresponding infrared emitting unit is controlled by the control module to emit infrared light. When other infrared emitting units are not needed, the corresponding infrared emitting unit is kept in a closed state through the switch unit, which effectively improves the linearity of the infrared wide-band sensor and reduces power consumption, thereby reducing the internal temperature rise during use, making the performance of the infrared wide-band sensor more stable; 2. The present application can utilize the principle of high precision in a small field of view. By controlling a certain infrared emitting unit separately and keeping other infrared emitting units closed, within the effective detection range of the sensor, the corresponding infrared emitting unit can be controlled to arbitrarily select a small detection range to quickly perform correction detection on the coil without moving the coil or the sensor position. When changing coils of different widths, there is no need to replace sensors with different detection ranges for detection, which effectively improves the reliability of coil correction and processing efficiency; 3. This application automatically controls the corresponding infrared emission unit to work according to the width data of the object to be detected. It should be freely combined to obtain different detection ranges for use. When replaced, the detection accuracy can be improved and the error value can be reduced. When changing the coils of different widths, there is no need to replace the sensors with different detection ranges for detection, which effectively improves the reliability of coil correction and processing efficiency; 4. This application controls the infrared transmitting unit groups to turn on in turn, and obtains the width data of the detected object according to the detection values ​​of different infrared receiving units. It can automatically detect the width of the coil, without the need to manually adjust the detection range of the sensor according to the width, effectively improving the reliability of coil correction and processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a schematic diagram of the overall structure of an embodiment of the present application; Figure 2 It is a schematic diagram of the structure of the infrared transmitting module and the infrared receiving module of the embodiment of the present application; Figure 3 is a circuit schematic diagram of the infrared emitting unit and the switch unit of the embodiment of the present application; Figure 4 is a circuit schematic diagram of an infrared receiving module and a signal amplifying module of an embodiment of the present application; Figure 5 is a circuit schematic diagram of an analog output module according to an embodiment of the present application; In the figure, 1. infrared transmitting module; 11. infrared transmitting unit; 2. infrared receiving module; 21. infrared receiving unit; 3. switch switching module; 31. switch unit; 4. signal amplifying module; 41. signal amplifying unit; 5. control module; 6. power supply module; 7. analog output module; 8. communication module; 9. interaction module. DETAILED DESCRIPTION

[0026] The following is combined with Figure 1 -Attached Figure 5 , further details of this application are given.

[0027] When applied to different types of coils or when replacing coils of different widths, sensors with different fields of view are required for correction detection. For example, for a coil with a width of 50 mm, it is necessary to find a wide-width sensor with a field of view within this range, and it is impossible to set a small field of view by using a sensor with a wider field of view to meet its requirements. Most wide-width sensors on the market have several mode functions, but they need to be connected to a computer or other control device to modify and debug the sensor mode. In addition, during the debugging process, the controller needs to be turned on to roughly know the position of the detected object, which makes the debugging process more cumbersome, thereby affecting the processing efficiency of the coiled product. At the same time, since most wide-width sensors have all the emitting lamps turned on at the same time when working, in this mode, the emitting lamps will interfere with each other and affect the linearity of the product. When the power of the emitting lamp is large, it will cause the internal temperature to rise and affect the performance of the emitting lamp, resulting in unstable factors in the correction system, thereby affecting the working efficiency and reliability of the correction system. Therefore, the embodiment of the present application is an infrared wide-width sensor device, referring to Figure 1 and Figure 2, including an infrared transmitting module 1, an infrared receiving module 2, a switch switching module 3, a signal amplifying module 4, a control module 5, a power module 6, an analog output module 7, a communication module 8 and an interactive module 9, wherein the output end of the power module 6 is connected to the power input end of the control module 5 for powering the sensor device, and the input end of the analog output module 7 is connected to the analog output end of the control module 5 for transmitting the analog output signal output by the control module 5 to an external device. The infrared transmitting module 1 includes a plurality of infrared transmitting units 11 arranged in sequence, and the switch switching module 3 includes a plurality of switch units 31 arranged in sequence, wherein the input end of each switch unit 31 is connected to the infrared transmitting signal output end of the control module 5, and the input end of each infrared transmitting unit 11 is respectively connected to an output end of a switch unit 31, and the switch unit 31 is used to receive the infrared transmitting signal sent by the control module 5 and control the corresponding infrared transmitting unit 11 to turn on according to the infrared transmitting signal, and the infrared transmitting unit 11 is used to emit infrared light when turned on. The infrared receiving module 2 includes a plurality of infrared receiving units 21 arranged in sequence, and the plurality of infrared receiving units 21 correspond to the plurality of infrared transmitting units 11 one by one to form a counter-reflection. The signal amplification module 4 includes a plurality of signal amplification units 41 arranged in sequence, the output end of each signal amplification unit 41 is connected to the infrared receiving signal input end of the control module 5, and the output end of each infrared receiving unit 21 is respectively connected to an input end of the signal amplification unit 41. The infrared receiving unit 21 is used to receive the reflected infrared light and generate an infrared receiving signal. The signal amplification unit 41 is used to amplify the infrared receiving signal and send the amplified infrared receiving signal to the control module 5. The control module 5 is used to receive the infrared receiving signal and obtain the infrared detection value according to the infrared receiving signal, and realize the field of view detection of the sensor through the infrared detection value. The communication module 8 is interactively connected with the control module 5, and is used to remotely transmit the communication signal between the external device and the control module 5, so as to facilitate the modification of the sensor mode and the setting of parameters through remote control. The interactive module 9 interacts with the control module 5, and is used to transmit the interactive signal between the external user operation and the control module 5, so as to facilitate the modification of the sensor mode, the setting of parameters and the display of the current sensor analog voltage output value without the help of external devices.

[0028] The implementation principle of the embodiment of the present application is: a plurality of infrared emitting lamps are used to form an independently controllable unit group as an infrared emitting unit 11, and are arranged in sequence; a plurality of infrared receiving tubes are used to form an independently controllable unit group as an infrared receiving unit 21, and are also arranged in sequence; a plurality of infrared emitting units 11 and a plurality of infrared receiving units 21 are lined up in a row to form a unit group facing each other; the control module 5 controls the corresponding infrared emitting unit 11 to emit infrared light; when other infrared emitting units 11 are not needed, the switch unit 31 is used to keep the corresponding infrared emitting unit 11 in a closed state, thereby effectively improving the linearity of the infrared wide-band sensor and reducing power consumption, thereby reducing the internal temperature rise during use, and making the performance of the infrared wide-band sensor more stable. At the same time, the principle of high precision in a small field of view can be utilized. By controlling a certain infrared emitting unit 11 separately and keeping other infrared emitting units 11 turned off, within the effective detection range of the sensor, a small detection range can be arbitrarily selected by controlling the corresponding infrared emitting unit 11 to quickly perform correction detection on the coil without moving the coil or the sensor position. When replacing coils of different widths, there is no need to replace sensors with different detection ranges for detection, which effectively improves the reliability of coil correction and processing efficiency.

[0029] like Figure 3 As shown, the control module 5 of the embodiment of the present application includes a single-chip microcomputer MCU, and the single-chip microcomputer MCU includes a PWM signal output port and an I / O port, and each switch unit 31 includes a first MOS tube Q3 and a second MOS tube Q1. The PWM signal output port of the single-chip microcomputer MCU is connected to the gate of the first MOS tube Q3, and the MCU_PWM signal is output to the gate of the first MOS tube Q3. The I / O port is connected to the gate of the second MOS tube Q1, and the MCU_IO1 signal is output to the gate of the second MOS tube Q1.

[0030] like Figure 4 and Figure 5 As shown, the single-chip microcomputer MCU of the embodiment of the present application also includes an ADC port and a DAC port. The ADC port of the single-chip microcomputer MCU is connected to the output end of the signal amplification module 4 for receiving the ADC_IN signal, and the DAC port of the single-chip microcomputer MCU is connected to the input end of the analog output module 7 for outputting the ADC_OUT signal.

[0031] like Figure 3 , Figure 4 and Figure 5As shown, in the specific implementation process, the power module 6 is first powered on. The power module 6 outputs DC12V to 36V to convert to 12V direct current. The wide range of voltage 12V-36V is adopted, so that the sensor device can be used within the range of various voltage specifications, and it will not cause the user to purchase a new power supply that meets the specifications for conversion due to the output voltage of some equipment being too low or too high. The power module 6 adopts an isolated power chip, which can isolate the influence of peripheral equipment on the infrared wide-band sensor, so that the power supply of the infrared wide-band sensor can be pure, and then the sensor device can work in a stable state without being affected by the power supply of other surrounding equipment. The infrared emitting module 1 is composed of a plurality of independent infrared emitting units 11, each of which is formed by two groups of five infrared emitting lamps connected in parallel, and each infrared emitting lamp is spaced 2.664 mm apart. The first independent infrared emitting unit 11 is coded as 1, and multiple external emitting units are formed by analogy, and are arranged in order as 1, 2, 3, 4, 5, 6, etc., and the plurality of infrared emitting units 11 are arranged in a straight line, and the spacing between the infrared emitting units 11 is also 2.664 mm apart. Through such arrangement, the field of view within the effective area of ​​the sensor device can be freely combined to increase or decrease, and the maximum field of view marked by the sensor device can be reached. The positive terminal of each independent infrared emitting unit 11 is connected to the positive terminal of the DC power supply 12V provided in the power module 6, and the negative terminal of each independent infrared emitting unit 11 is connected to the drain of each MOS tube of the switch switching module 3.

[0032] A group of switch units 31 of the switch switching module 3 independently controls the on and off of a group of infrared emitting units 11. The number of switch units 31 depends on how many infrared emitting units 11 there are. For example, assuming there are 8 infrared emitting units 11, the switch switching module 3 will also have corresponding 8 switch units 31. The negative electrode of the infrared emitting unit 11 is connected to the drain D of the MOS tube Q2. When the single-chip microcomputer inputs a PWM signal with a frequency of 1kHz and a duty cycle of 80% to the gate G of the MOS tube Q3, the output terminal 4 of U1 will output a signal with a duty cycle of 1kHz and a duty cycle of 20% to the MOS. On the gate G of tube Q2, MOS tube Q2 will be in a back-and-forth switching state at this time, and the single chip will input a high-level signal of 1ms through MCU_IO1, and the infrared emitting unit 11 will light up for 1ms with a signal of 1kHz and a duty cycle of 20%. Because each infrared emitting unit 11 is controlled separately, and a separate IO switches the time of high and low levels, the continuous infrared emitting units 11 can be arbitrarily combined to form different lengths of vision within the effective area of ​​the field of view to cope with the use of coils of different widths. At the same time, the power consumption when the infrared emitting lamp is turned on can also be reduced, thereby reducing the temperature rise inside the entire product.

[0033] A group of signal amplifying units 41 of the signal amplifying module 4 is independently connected to a group of infrared receiving units 21. For example, if there are 8 groups of independent infrared receiving units 21, there will be 8 groups of independent signal amplifying units 41 connected thereto. The infrared receiving units 21 correspond to the infrared transmitting units 11 in a one-to-one relationship. For example, the first group of infrared transmitting units 11 corresponds to the first group of infrared receiving units 21. When it is necessary to read the signal, only the infrared receiving signal received by the corresponding infrared receiving unit 21 during the time when the corresponding infrared transmitting unit 11 is turned on is read, and the signal values ​​read at other times are invalid. The infrared receiving unit 21 adopts an infrared receiving tube with a larger sensing area. The increase in the sensing area can make the received signal stronger. Each independent infrared receiving unit 21 is composed of 6 infrared receiving tubes in parallel. The distance between each tube is 4.44 mm at an equal interval. The distance between each group is also 4.44 mm. They are arranged in order of 1, 2, 3, 4, 5, 6... Multiple infrared receiving units 21 are arranged in a straight line, corresponding to the infrared emitting units 11 on the infrared emitting module 1 one by one. When the light of the opposite infrared emitting unit 11 group lights up, the corresponding infrared receiving unit 21 group will receive the infrared receiving signal.

[0034] When the single chip microcomputer outputs a high level of 1ms through MCU_IO1, the infrared emission lamp of the first group of infrared emission units 11 will light up for 1ms. In this process, the emitted infrared light is filtered out by the filter to remove the wavelength of light that is not emitted by the infrared emission lamp and natural light. The light passes through the light guide column to gather the light into a line and irradiate the infrared receiving tube. Then the infrared receiving tube converts the received infrared receiving signal into a DC signal, which flows to GND after passing through R13. The voltage across R13 is connected to the same-direction input terminal 3 of the operational amplifier U3, and after the first-stage amplification through R7, R9 and C7, the output signal is input to the 5th pin of U3 through R8. After the second-stage amplification through resistors R11 and R15, it passes through the LC filtering of resistors R10 and C9 and enters one of the 16-channel ADC of the single chip microcomputer for collection. The role of Q5 is to prevent the voltage exceeding 3.3V from being input into the ADC port of the single chip microcomputer, so as to protect the ADC port of the single chip microcomputer.

[0035] In the specific implementation process, the interactive module 9 integrates the display and key functions of a three-digit digital tube and three key inputs, so that users can use this function to simply and quickly set and debug the sensor parameters without the help of external devices, and can quickly realize human-computer communication. The communication module 8 is equipped with an RS-485 interface, so that the sensor device can be widely used to connect with more peripheral devices, improving the multifunctionality of the product. Users can read the parameter values ​​set by the sensor and the value of the position of the obstruction through the RS-485 communication protocol. The program for controlling the sensor device is stored in the single-chip microcomputer. The single-chip microcomputer adopts ST model STM32F407VET6, the core of which is the M4 core of 32-bit RAM, and has built-in up to 136 fast independent I / O ports. The frequency can reach up to 84MHz at the fastest, which can meet the fastest time requirement of the sensor's fast switching infrared transmitting unit 11. The single-chip microcomputer also integrates 16 independent 12-bit ADC acquisition ports, through which the infrared receiving signal value of the infrared receiving unit 21 in the infrared receiving module 2 can be quickly read. After the voltage change value is calculated, the DAC of the single chip outputs a 0-3.3V voltage to the analog output module 7 to obtain a 0 to 5V voltage, so that the external device can quickly find the position of the detected object through the voltage change, so as to quickly detect whether the position of the inspected object needs to be corrected.

[0036] The embodiment of the present application also provides an infrared wide-band sensor detection method, which is applied to an infrared wide-band sensor device, and each group of infrared emitting units 11 can be individually controlled by a single-chip microcomputer to control its switch function. Therefore, the infrared wide-band sensor detection method of the embodiment of the present application can have three modes of function for users to use, and the sensor mode can be switched in production according to their own needs to cope with various occasions, so that the sensor does not need to be disassembled and assembled, which affects the production efficiency. The detection method includes a normal mode S1, a width measurement mode S2, and a deviation correction mode S3.

[0037] Among them, the normal mode S1 of the embodiment of the present application includes: S11 , the control module 5 obtains the width data of the detected object, and determines the infrared emission unit 11 to be turned on according to the width data.

[0038] Specifically, the detection width range of the sensor can be changed by changing the number of infrared emission units 11 that are turned on, so as to be applicable to detection objects of different widths.

[0039] S12, the control module 5 sends the infrared emission signal to the switch unit 31 corresponding to the infrared emission unit 11 that needs to be turned on, and the switch unit 31 controls the infrared emission unit 11 to turn on and emit infrared light.

[0040] S13 , the infrared receiving unit 21 receives the reflected infrared light and generates an infrared receiving signal, and sends the infrared receiving signal to the corresponding signal amplifying unit 41 .

[0041] S14 , the signal amplifying unit 41 amplifies the infrared receiving signal, and sends the amplified infrared receiving signal to the control module 5 .

[0042] S15, the control module 5 receives the infrared receiving signal after amplification processing, and obtains a detection value according to the infrared receiving signal.

[0043] Specifically, it is determined whether there is shielding according to the infrared receiving signal, and when there is shielding, a detection value is generated according to the shielding situation.

[0044] S16 , the control module 5 generates an analog output signal according to the detection value, and sends the analog output signal to the analog output module 7 .

[0045] In the specific implementation process, in the normal mode, the sensor device can freely splice and combine different detection width ranges within the maximum field of view by controlling the infrared emitting units 11. For example, if there are 12 infrared emitting units 11 in total, then 1 to 8 groups or 3 to 12 groups of continuous combinations can be combined according to the width data of the detected object. Such free combinations can be used in different field of view ranges, thereby improving the detection accuracy and reducing the error value. After all, the larger the field of view, the lower the accuracy. In this mode, when no object is detected, the opposite infrared receiving unit 21 groups will receive the infrared emitting unit 11 groups when the lights are on. The optical signal is calculated by the algorithm, and the voltage value obtained when no object is detected is proportionally distributed with the 3.3V of the DAC. When no object is detected, the voltage output by the DAC is 3.3V, and when there is an object to be detected, the voltage output by the DAC is 0V. Then, the DAC of the microcontroller outputs a voltage of 0 to 3.3V to the 1st pin of the operational amplifier of the analog output module 760, and after proportional amplification by R4, R5, C4, etc., the analog output voltage value of 0 to 5V is obtained and given to the PLC or controller, so that the external device can obtain the position of the detected object according to the voltage value, and then adjust the position of the coil by controlling the external motor, so as to realize the coil deviation correction. The position of the detected object can also be obtained through the value displayed by the interactive module 9 built into the sensor device.

[0046] The width measurement mode S2 of the embodiment of the present application includes: S21 , two adjacent infrared emitting units 11 are regarded as a group of infrared emitting units 11 , and the control module 5 controls the corresponding switch units 31 to turn on the groups of infrared emitting units 11 in sequence.

[0047] S22, the control module 5 obtains the detection value corresponding to the infrared receiving unit 21 according to the received infrared receiving signal.

[0048] S23, the control module 5 uses the two detection values ​​corresponding to the infrared emitting unit 11 group as a detection array, and finally obtains a plurality of detection arrays.

[0049] S24 , the control module 5 obtains the maximum width data of the infrared transmitting module 1 and the infrared receiving module 2 .

[0050] S25, calculating the detection average value of the two detection values ​​in each detection array.

[0051] S26, obtaining the maximum detection value of each group of infrared emitting units 11, and obtaining a proportionality coefficient according to the detection average value and the maximum detection value.

[0052] S27, obtaining the detection width of each group of infrared emitting units 11 according to the maximum width data.

[0053] S28. Obtain the position of the infrared receiving unit 21 that is blocked according to the detection width and the proportional coefficient of each group of infrared receiving units 21.

[0054] S29, obtaining width data of the detected object according to the position of the infrared receiving unit 21 that is blocked.

[0055] In the specific implementation process, it is assumed that the sensor device has 12 groups of infrared transmitting units 11 and infrared receiving units 21. When the sensor is in the width measurement mode, groups 1 and 2 are first turned on for a period of time, and then groups 2 and 3 are turned on for a period of time, and the cycle is repeated until groups 11 and 12 are turned on as one cycle. When groups 1 and 2 are turned on, the detection values ​​received by the corresponding infrared receiving units 21 are read, and the two detection values ​​are recorded as D1 and D2_1. D1 and D2_1 are stored as the first detection array. When groups 2 and 3 are turned on, the detection values ​​received by the corresponding infrared receiving units 21 are read, and the two detection values ​​are recorded as D22 and D3_1. D2_2 and D3_1 are stored as the second detection array. By analogy, the last group of detection values ​​D11_2 and D12 are stored in the eleventh detection array.

[0056] Take the average value of each detection array to obtain T1, T2...T11, the formula is: The maximum detection values ​​T1max, T2max...T11max of each infrared emission unit group are obtained through calibration, and the proportional coefficients K1, K2...K11 are obtained according to the detection average value and the maximum detection value. The formula is: Since the obtained proportional coefficient is between 0 and 1, it can be magnified 4000 times to obtain S1, S2...S11. The formula is: S1=K1*4000, S2=K2*4000, S3=K3*4000...S11=K11*4000; Assuming that the maximum width data is 300, the detection width W of each infrared emission unit group is obtained according to the maximum width data = 300 / 11; According to the position of the infrared receiving unit with obstruction, the two sides of the detected object are A and B respectively, then the width data Wab = |BA|, where the position formula of A and B is:

[0057] The correction mode S3 of the embodiment of the present application includes: S31 , the control module 5 turns on one of the infrared emitting units 11 by controlling the corresponding switch unit 31 , and the infrared emitting unit 11 emits infrared light.

[0058] S32 , the infrared receiving unit 21 corresponding to the infrared transmitting unit 11 receives the reflected infrared light and generates an infrared receiving signal, and sends the infrared receiving signal to the corresponding signal amplifying unit 41 .

[0059] S33 , the signal amplifying unit 41 amplifies the infrared receiving signal, and sends the amplified infrared receiving signal to the control module 5 .

[0060] S34, the control module 5 receives the infrared receiving signal after amplification processing, and determines whether deviation correction is needed according to the infrared receiving signal.

[0061] In the specific implementation process, the infrared wide-band sensor only turns on one infrared transmitting unit 11 and infrared receiving unit 21, and the other infrared transmitting units 11 and infrared receiving units 21 are all turned off. The advantage of this is that the principle of high precision in a small field of view is utilized to perform a deviation correction and rewinding action on the coil under high precision conditions, so that the coil can achieve an ideal effect. In this mode, the infrared receiving signal received by the infrared receiving unit 21 is proportionally distributed with 3.3V, and then a 0 to 3.3V voltage is output to the analog output module 7 through the DCA of the single-chip microcomputer. In this mode, the analog voltage output by the sensor is also 0 to 5V. The peripheral device can detect the position of the detection object through the voltage value, and then move the detection object by adjusting the rotation position of the external motor to achieve the deviation correction effect. A certain group of infrared transmitting units 11 can be selected to be turned on according to the position of the coil, without adjusting the position of the sensor or the position of the coil. In this mode, each position of the sensor device in the effective area can be used for correction without moving the sensor to the center position or moving the coil to the center position of the sensor, which greatly improves the efficiency of debugging. Since only one set of infrared emitting units 11 is turned on, the power consumption and temperature rise of the sensor are also reduced, further improving the performance of the sensor.

[0062] The embodiments of this specific implementation are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. The same components are represented by the same figure marks. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. An infrared wide-band sensor device, characterized in that: It comprises an infrared transmitting module (1), an infrared receiving module (2), a switch module (3), a signal amplifying module (4), a control module (5), a power module (6) and an analog output module (7), wherein the output end of the power module (6) is connected to the power input end of the control module (5), and the input end of the analog output module (7) is connected to the analog output end of the control module (5); The infrared emitting module (1) comprises a plurality of infrared emitting units (11) arranged in sequence, the switch switching module (3) comprises a plurality of switch units (31) arranged in sequence, the input end of each switch unit (31) being connected to the infrared emitting signal output end of the control module (5), the input end of each infrared emitting unit (11) being respectively connected to an output end of the switch unit (31), the switch unit (31) being used to receive the infrared emitting signal sent by the control module (5) and to control the corresponding infrared emitting unit (11) to turn on according to the infrared emitting signal, and the infrared emitting unit (11) being used to emit infrared light when turned on; The infrared receiving module (2) comprises a plurality of infrared receiving units (21) arranged in sequence, and the plurality of infrared receiving units (21) correspond one to one with the plurality of infrared transmitting units (11) to form a counter-radiation; The signal amplifying module (4) comprises a plurality of signal amplifying units (41) arranged in sequence, the output end of each signal amplifying unit (41) being connected to the infrared receiving signal input end of the control module (5), the output end of each infrared receiving unit (21) being connected to an input end of the signal amplifying unit (41), the infrared receiving unit (21) being used to receive reflected infrared light and generate an infrared receiving signal, and the signal amplifying unit (41) being used to amplify the infrared receiving signal and send the amplified infrared receiving signal to the control module (5).

2. The infrared wide-band sensor device according to claim 1, characterized in that: It also comprises a communication module (8), wherein the communication module (8) is connected to the control module (5) and is used for transmitting communication signals between the outside and the control module (5).

3. The infrared wide-band sensor device according to claim 1, characterized in that: It also comprises an interaction module (9), wherein the interaction module (9) is connected to the control module (5) and is used for transmitting interaction signals between the outside and the control module (5).

4. An infrared wide-band sensor device according to any one of claims 1 to 3, characterized in that: The control module (5) comprises a single chip microcomputer, the single chip microcomputer comprises a PWM signal output port and an I / O port, and each of the switch units (31) comprises a first MOS tube and a second MOS tube; The PWM signal output port of the single chip microcomputer is connected to the gate of the first MOS tube, and the I / O port is connected to the gate of the second MOS tube.

5. The infrared wide-band sensor device according to claim 4, characterized in that: The single chip microcomputer further comprises an ADC port and a DAC port, the ADC port of the single chip microcomputer being connected to the output end of the signal amplification module (4), and the DAC port of the single chip microcomputer being connected to the input end of the analog output module (7).

6. A wide-band infrared sensor detection method, characterized in that: An infrared wide-band sensor device according to any one of claims 1 to 5, wherein the detection method comprises a normal mode, a width measurement mode and a deviation correction mode, and the normal mode comprises: The control module (5) obtains width data of the detected object and determines the infrared emission unit (11) to be turned on according to the width data; The control module (5) sends an infrared emission signal to a switch unit (31) corresponding to the infrared emission unit (11) to be turned on, and the switch unit (31) controls the infrared emission unit (11) to turn on and emit infrared light; The infrared receiving unit (21) receives the reflected infrared light and generates an infrared receiving signal, and sends the infrared receiving signal to the corresponding signal amplifying unit (41); The signal amplifying unit (41) amplifies the infrared receiving signal and sends the amplified infrared receiving signal to the control module (5); The control module (5) receives the infrared receiving signal after amplification processing, and obtains a detection value according to the infrared receiving signal; The control module (5) generates an analog output signal according to the detection value, and sends the analog output signal to the analog output module (7).

7. The infrared wide-band sensor detection method according to claim 6, characterized in that: The step of obtaining a detection value according to the infrared receiving signal comprises: Determine whether there is any obstruction based on the infrared receiving signal; When there is occlusion, a detection value is generated according to the occlusion situation.

8. The infrared wide-band sensor detection method according to claim 7, characterized in that: The width measurement modes include: Two adjacent infrared emitting units (11) are regarded as a group of infrared emitting units (11), and the control module (5) turns on the group of infrared emitting units (11) in sequence by controlling the corresponding switch units (31); The control module (5) obtains a detection value corresponding to the infrared receiving unit (21) according to the received infrared receiving signal; The control module (5) uses the two detection values ​​corresponding to the infrared emission unit (11) group as a detection array, and finally obtains a plurality of detection arrays; The control module (5) obtains the maximum width data of the infrared transmitting module (1) and the infrared receiving module (2), and obtains the width data of the detected object according to the maximum width data and a plurality of detection arrays.

9. The infrared wide-band sensor detection method according to claim 8, characterized in that: The step of obtaining the width data of the detected object according to the maximum width data and a plurality of detection arrays specifically includes: Calculate the detection average of the two detection values ​​in each detection array; Obtaining the maximum detection value of each group of infrared emitting units (11), and obtaining a proportionality coefficient according to the detection average value and the maximum detection value; Obtaining the detection width of each group of infrared emitting units (11) according to the maximum width data; Obtaining the position of the infrared receiving unit (21) that is blocked according to the detection width and the proportionality coefficient of each group of infrared receiving units (21); Width data of the detected object is obtained according to the position of the infrared receiving unit (21) that is blocked.

10. The infrared wide-band sensor detection method according to claim 8, characterized in that: The correction mode includes: The control module (5) turns on one of the infrared emitting units (11) by controlling the corresponding switch unit (31), and the infrared emitting unit (11) emits infrared light; An infrared receiving unit (21) corresponding to the infrared transmitting unit (11) receives the reflected infrared light and generates an infrared receiving signal, and sends the infrared receiving signal to a corresponding signal amplifying unit (41); The signal amplifying unit (41) amplifies the infrared receiving signal and sends the amplified infrared receiving signal to the control module (5); The control module (5) receives the infrared receiving signal after amplification processing, and determines whether deviation correction is required according to the infrared receiving signal.