Photoelectric sensor capable of resisting high-frequency light interference
The disclosure provides a photoelectric sensor capable of resisting high-frequency light interference. It comprises a transmitting tube, double receiving tubes, a filter arranged at the front ends of the double receiving tubes for filtering optical signals, a band-pass filter circuit coupled to the double receiving tubes, a differential amplifier coupled to the band-pass filter circuit, a control module for controlling the synchronous receiving of optical signals, and a sensor hysteresis error setting system for improving the anti-interference performance of sensors; the control module further collects and obtains ambient light interference signals and sets an interference signal threshold value, and when it is detected that the amplitude of the collected ambient light interference signals is larger than the set interference signal threshold value, the control module discards the light signals lower than the interference signal threshold value after the interference signals are overlaid.
1 . A photoelectric sensor capable of resisting high-frequency light interference, wherein it comprises a transmitting tube for transmitting laser light source as modulated optical signals, double receiving tubes for receiving optical signals, a filter arranged at front ends of the double receiving tubes for filtering optical signals, a band-pass filter circuit coupled to the double receiving tubes, a differential amplifier coupled to the band-pass filter circuit, and a control module for controlling the double receiving tubes to receive the optical signals synchronously with the transmitting tube;
the control module further collects and obtains ambient light interference signals and sets an interference signal threshold value, and when it is detected that the amplitude of the collected ambient light interference signals is larger than the set interference signal threshold value, the control module discards the light signals lower than the interference signal threshold value after the interference signals are overlaid;
and further comprising a sensor hysteresis error setting system, the sensor hysteresis error setting system including:
a Microcontroller Unit (MCU) and a high-impedance voltage follower,
wherein the MCU is configured to calculate an output hysteresis error specifically as follows:
y=m*x −n +k;
where, x is a range signal variable transmitted by the voltage follower, y is the hysteresis error, m and n are fixed coefficients, and k is an intercept.
2 . A photoelectric sensor capable of resisting high-frequency light interference according to claim 1 , wherein it comprises a transmitting tube for transmitting laser light source as modulated optical signals, double receiving tubes for receiving optical signals, a filter arranged at the front ends of the double receiving tubes for filtering optical signals, a band-pass filter circuit coupled to the double receiving tubes, a differential amplifier coupled to the band-pass filter circuit, a control module for controlling the double receiving tubes to receive the optical signals synchronously with the transmitting tube, and a sensor hysteresis error setting system for improving an anti-interference performance of sensors;
the control module further collects and obtains ambient light interference signals and sets an interference signal threshold value, and when it is detected that the amplitude of the collected ambient light interference signals is larger than the set interference signal threshold value, the control module discards the light signals lower than the interference signal threshold value after the interference signals are overlaid;
the sensor hysteresis error setting system comprises a first amplifier for receiving input signals and primary amplification, a potentiometer coupled to an output end of the first amplifier for adjusting a proximity switch range, a second amplifier coupled to a regulating output end of the potentiometer for secondary amplification of the received signals, a high-impedance voltage follower connected in parallel to the second amplifier, and a Microcontroller Unit (MCU) coupled to the second amplifier and an output end of the voltage follower for controlling and setting return error;
the potentiometer adjusts an output voltage division ratio according to the proximity switching range, and the MCU calculates an output hysteresis error value according to a range signal output from the voltage follower.
3 . A photoelectric sensor capable of resisting high-frequency light interference according to claim 1 , wherein the transmitting tube and the double receiving tubes are coupled to the control module; the control module responds to drive signals from the transmitting tube, and the control module sends collection signals to control the double receiving tubes to collect optical signals in synchronization with driving signals by time.
4 . A photoelectric sensor capable of resisting high-frequency light interference according to claim 3 , wherein the control module samples ambient light interference signals cycle by cycle, and the sampling position is located in an interval between two optical signal collections.
5 . A photoelectric sensor capable of resisting high-frequency light interference according to claim 1 , wherein an optical lens I for converging modulated optical signals transmitted is arranged in a front end of the transmitting tube.
6 . A photoelectric sensor capable of resisting high-frequency light interference according to claim 5 , wherein an optical lens II is arranged between a receiving front end of the double receiving tubes and the filter.
7 . A photoelectric sensor capable of resisting high-frequency light interference according to claim 1 , wherein the filter is a band-pass filter with the same band as the modulated optical signal transmitted.
8 . A photoelectric sensor capable of resisting high-frequency light interference according to claim 2 , wherein the MCU reads output signals of the second amplifier and the voltage follower cycle by cycle.
9 . A hysteresis error setting method for a photoelectric sensor capable of resisting high-frequency light interference, wherein it comprises a transmitting tube for transmitting laser light source as modulated optical signals, double receiving tubes for receiving optical signals, a filter arranged at front ends of the double receiving tubes for filtering optical signals, a band-pass filter circuit coupled to the double receiving tubes, a differential amplifier coupled to the band-pass filter circuit, a control module for controlling the double receiving tubes to receive the optical signals synchronously with the transmitting tube, and a sensor hysteresis error setting system for improving an anti-interference performance of sensors;
the control module further collects and obtains ambient light interference signals and sets an interference signal threshold value, and when it is detected that the amplitude of the collected ambient light interference signals is larger than the set interference signal threshold value, the control module discards the light signals lower than the interference signal threshold value after the interference signals are overlaid;
wherein the sensor hysteresis error setting system comprises a first amplifier, a potentiometer, a second amplifier, a voltage follower, and a Microcontroller Unit (MCU);
comprising the following steps:
the potentiometer adjusts the range by adjusting a voltage division ratio;
input signals, after amplification and voltage division, will be amplified by the second amplifier, then the second amplifier outputs detection signals to the MCU, and the voltage follower outputs range signals to the MCU;
the MCU receives range signals and calculates and sets hysteresis error according to a set algorithm specifically as follows:
y=m*x −n +k;
where, x is a range signal variable transmitted by the voltage follower, y is the hysteresis error, m and n are fixed coefficients, and k is an intercept.