Photoelectric sensor sensitivity improving device
Through the electrical connection between the photocoupler and the microcontroller, the signal time is used to judge and filter the interfering signal, which solves the malfunctioning problem of the photoelectric sensor due to the poor reflectivity and wrinkles during the packaging of powder fertilizer, and improves the sensitivity and reliability of the sensor.
Patent Information
- Application Number
- CN202422607072.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2034-10-28
AI Technical Summary
During the packaging process of powder fertilizer, the photoelectric sensor flashed due to the poor reflectivity and wrinkles of the purple bag, causing the seam and charter malfunction, resulting in the scrapping of the bag and customer complaints. It is difficult for the existing technology to effectively filter the interfering signal.
A photoelectric sensor sensitivity improvement device is designed, and the photoelectric coupler is connected to the microcontroller. The microcontroller is used to determine the on- and off time. Only signals larger than the set time are output as valid signals, interfering signals smaller than the set time are filtered out, and signal filtering circuits are added to improve sensor sensitivity.
Effectively filter interfering signals, improve sensor sensitivity, avoid misoperation, reduce bag scrapping and customer complaints, and facilitate implementation without affecting the original performance of the equipment.
Smart Images

Figure CN223243645U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of photoelectric induction, in particular to a device for improving the sensitivity of a photoelectric sensor. Background Art
[0002] When producing powder fertilizer packaging in purple bags, due to their low reflectivity, the bag-cutting photoelectric sensor on the bag sewing machine shines light on the bag. Due to the bag's wrinkles and angle, the sensor's reflectivity is even lower. This ultimately causes the photoelectric sensor to flicker, triggering the bag-cutting action. This can randomly damage the bag during sewing, resulting in scrapped bags, labor processing time, and even customer complaints. Regarding how to optimize sensor interference, sensor flickering is caused by external objects and environmental influences, which are difficult to control. The ideal optimization method is to process the sensor output signal and filter out the flickering signal. Summary of the Invention
[0003] The technical problem to be solved by the utility model is to provide a device for improving the sensitivity of a photoelectric sensor, which processes the signal output by the sensor and filters out the flicker signal.
[0004] In order to solve the above technical problems, the technical solution adopted by the utility model is: a photoelectric sensor sensitivity improvement device, including a photoelectric sensor and a single-chip microcomputer, the photoelectric sensor is electrically connected to a photoelectric coupler, the photoelectric coupler is electrically connected to the single-chip microcomputer, the single-chip microcomputer is connected to a program download interface, and the photoelectric coupler includes an input end and an output end.
[0005] Preferably, it further comprises a power supply circuit, which is connected to the single chip microcomputer to supply power to the entire device.
[0006] Preferably, the single chip microcomputer is also connected to an indicator light.
[0007] Preferably, the single chip microcomputer adopts STC8G series single chip microcomputer.
[0008] Preferably, the photoelectric coupler is a PC817 photoelectric coupler.
[0009] Preferably, the power supply circuit adopts an LM2596 voltage regulator.
[0010] This utility model provides a device for improving the sensitivity of a photoelectric sensor. By determining the on / off time, only signals exceeding the set time are considered valid, while signals below the set time are discarded, thereby filtering out interference. By adding an external circuit to process sensor signal filtering, the device is easy to implement, highly versatile, and portable, and does not require any changes to the device itself, minimizing the risk of unexpected problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The present invention will be further described below with reference to the accompanying drawings and embodiments:
[0012] Figure 1 It is a structural block diagram of the utility model;
[0013] Figure 2 This is the circuit diagram of the single chip microcomputer of the utility model;
[0014] Figure 3 This is the power supply circuit diagram of the utility model;
[0015] Figure 4 This is a circuit diagram of the output end of the optocoupler of the utility model;
[0016] Figure 5 This is a circuit diagram of the input end of the optocoupler of the utility model;
[0017] Figure 6 A circuit diagram of the program download interface of the utility model;
[0018] Figure 7 This is the circuit diagram of the indicator light of the utility model;
[0019] Figure 8 This is the operation flow chart of this device. DETAILED DESCRIPTION
[0020] like Figure 1 As shown, a device for improving the sensitivity of a photoelectric sensor includes a photoelectric sensor and a single-chip microcomputer. The photoelectric sensor is electrically connected to a photoelectric coupler, the photoelectric coupler is electrically connected to the single-chip microcomputer, the single-chip microcomputer is connected to a program download interface, and the photoelectric coupler includes an input end and an output end.
[0021] Preferably, it further comprises a power supply circuit, which is connected to the single chip microcomputer to supply power to the entire device.
[0022] Preferably, the single chip microcomputer is also connected to an indicator light.
[0023] Preferably, the single chip microcomputer adopts STC8G series single chip microcomputer.
[0024] Preferably, the photoelectric coupler is a PC817 photoelectric coupler.
[0025] Preferably, the power supply circuit adopts an LM2596 voltage regulator.
[0026] like Figure 2As shown, the STC8G series MCUs do not require an external crystal oscillator or external reset. They are 8051 MCUs designed for superior interference resistance, ultra-low cost, high speed, and low power consumption. At the same operating frequency, the STC8G series MCUs are approximately 12 times faster than traditional 8051s (11.2 to 13.2 times faster). To execute all 111 instructions sequentially, the STC8G series MCUs require only 147 clocks, compared to 1944 clocks for a traditional 8051. The STC8G series MCUs are single-clock / machine cycle (1T) MCUs manufactured by STC. They are a new generation of 8051 MCUs that offer wide voltage, high speed, high reliability, low power consumption, strong static resistance, and strong interference resistance. They also feature super encryption. Instruction code is fully compatible with traditional 8051s.
[0027] The MCU integrates a high-precision R / C clock (±0.3% at room temperature +25°C), with a temperature drift of -1.38% to +1.42% (-40°C to +85°C) and a temperature drift of -0.88% to +1.05% (-20°C to +65°C). During ISP programming, the clock frequency can be set from 4MHz to 35MHz (note: within the -40°C to +85°C temperature range, the maximum frequency must be below 35MHz). This eliminates the need for expensive external crystal oscillators and reset circuits. A highly reliable reset circuit is integrated internally, and four reset threshold voltage levels are selectable during ISP programming.
[0028] The MCU has three selectable clock sources: an internal high-precision IRC clock (adjustable during ISP download), an internal 32kHz low-speed IRC, an external 4MHz to 33MHz crystal oscillator, or an external clock signal. The clock source can be freely selected in user code. After the selected clock source is divided by an 8-bit divider, the clock signal is provided to the CPU and various peripherals (such as timers, serial ports, and SPI).
[0029] The MCU provides two low-power modes: IDLE and STOP. In IDLE mode, the MCU stops supplying clocks to the CPU, resulting in a clockless CPU and instruction execution. However, all peripherals remain operational, resulting in approximately 1.0mA of power consumption (at 6MHz). STOP mode, in which the main clock is stopped, is a traditional power-down / power-off / shutdown mode. The CPU and all peripherals cease operation, reducing power consumption to 0.6uA at Vcc = 5.0V and 0.4uA at Vcc = 3.3V.
[0030] The MCU provides a rich set of digital peripherals (serial ports, timers, PCA, PWM, I2C, SPI) interfaces and analog peripherals (ultra-high-speed ADC, comparators) to meet the design needs of a wide range of users.
[0031] The STC8G series MCUs integrate enhanced dual data pointers. Through program control, the data pointers can be automatically incremented or decremented, and the two sets of data pointers can be automatically switched.
[0032] like Figure 3 The LM2596 series of regulators, shown in Figure 1, are monolithic integrated circuits that provide all the active functions for a step-down switching regulator. They are capable of driving 3A loads with excellent line and load regulation. These devices are available in fixed output voltages of 3.3V, 5V, and 12V, as well as adjustable output voltage versions.
[0033] These regulators not only require few external components and are easy to use, but also feature internal frequency compensation and a fixed-frequency oscillator.
[0034] The LM2596S has various parameter information, including input voltage range, output voltage range, maximum output current, switching frequency, efficiency, etc. The following is an example of the parameters of a typical application circuit:
[0035] Input voltage range: 4.5V to 40V
[0036] Output voltage range: 1.23V to 37V
[0037] Maximum output current: 3A
[0038] Switching frequency: 150 kHz
[0039] Efficiency: not less than 80%
[0040] like Figure 4 、 5 As shown in the figure, the PC817 is a photocoupler consisting of a pair of light-emitting diodes and a phototransistor. It converts electrical signals into optical signals, and vice versa through photoelectric conversion. The PC817 operates by utilizing the photoelectric effect and the PN junction to achieve signal isolation and transmission.
[0041] Here's how it works:
[0042] When current flows through a light-emitting diode (LED), it generates a beam of light that shines onto a phototransistor (PT). When the light beam excites the photosensitive element in the phototransistor, a photoelectric effect occurs, causing the current in the phototransistor to change. This current change is amplified and output, while also being isolated from the input current of the LED. Thus, the PC817 completes the conversion and isolation of electrical and optical signals.
[0043] In addition to the working principle, parameters are also factors to consider when selecting PC817. The following are some of the main parameters:
[0044] Maximum input current: PC817 is a one-to-one optocoupler with a maximum input current of 50mA.
[0045] Maximum output current: The maximum output current is 50mA and the minimum output current is 0.1mA.
[0046] Operating temperature range: The operating temperature range of PC817 is -55℃ ~ +125℃, suitable for various temperature environments.
[0047] The output voltage of common optocouplers is generally around 1V, while the output voltage of PC817 is relatively low, only around 0.2V.
[0048] Speed: PC817 has a fast transmission speed, which can reach over 10MHz, so it is suitable for circuits with higher frequencies.
[0049] The circuit of the program download interface is as follows Figure 6 As shown, the indicator light circuit is as follows Figure 7 shown.
[0050] When using, Figure 8 As shown, the photoelectric coupler reads the sensor signal and outputs a disconnection signal if it determines that the disconnection time exceeds 150ms; and outputs a connection signal if it determines that the connection time exceeds 200ms.
[0051] The above embodiments are merely preferred technical solutions of the present invention and should not be construed as limiting the present invention. The scope of protection of the present invention shall be the technical solutions set forth in the claims, including equivalent alternatives to the technical features of the technical solutions set forth in the claims. Equivalent alternatives and improvements within this scope are also within the scope of protection of the present invention.
Claims
1. A device for improving the sensitivity of a photoelectric sensor, comprising a photoelectric sensor and a single-chip microcomputer, characterized in that: The photoelectric sensor is electrically connected to the photoelectric coupler, the photoelectric coupler is electrically connected to the single chip microcomputer, the single chip microcomputer is connected to the program download interface, and the photoelectric coupler includes an input end and an output end.
2. The device for improving the sensitivity of a photoelectric sensor according to claim 1, wherein: The device also includes a power supply circuit, which is connected to the single chip microcomputer to supply power to the entire device.
3. The device for improving the sensitivity of a photoelectric sensor according to claim 1, wherein: The single chip microcomputer is also connected to the indicator light.
4. The device for improving the sensitivity of a photoelectric sensor according to claim 1, wherein: The single chip microcomputer adopts STC8G series single chip microcomputer.
5. The device for improving the sensitivity of a photoelectric sensor according to claim 1, wherein: The photoelectric coupler is a PC817 photoelectric coupler.
6. The device for improving the sensitivity of a photoelectric sensor according to claim 2, wherein: The power supply circuit adopts LM2596 voltage regulator.