CN114440943B - Programmable photoelectric sensor and application circuit - Google Patents

Programmable photoelectric sensor and application circuit Download PDF

Info

Publication number
CN114440943B
CN114440943B CN202210103335.0A CN202210103335A CN114440943B CN 114440943 B CN114440943 B CN 114440943B CN 202210103335 A CN202210103335 A CN 202210103335A CN 114440943 B CN114440943 B CN 114440943B
Authority
CN
China
Prior art keywords
circuit
module
signal
output
programmable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210103335.0A
Other languages
Chinese (zh)
Other versions
CN114440943A (en
Inventor
郑政
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Intellisense (xiamen) Microelectronics Ltd
Original Assignee
Intellisense (xiamen) Microelectronics Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Intellisense (xiamen) Microelectronics Ltd filed Critical Intellisense (xiamen) Microelectronics Ltd
Priority to CN202210103335.0A priority Critical patent/CN114440943B/en
Publication of CN114440943A publication Critical patent/CN114440943A/en
Application granted granted Critical
Publication of CN114440943B publication Critical patent/CN114440943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/26Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable characterised by optical transfer means, i.e. using infrared, visible, or ultraviolet light
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output

Abstract

The invention relates to the technical field of photoelectric sensors, in particular to a programmable photoelectric sensor and an application circuit, which comprises the following components: the transmitting module is connected with the transmitting tube; the receiving module is connected with the receiving tube and generates a receiving signal according to the optical signal; the optical signal is generated by external input or by the emission module driving the emission tube; the output module generates an output signal according to the received signal and transmits the output signal to the controlled circuit; the control module is used for receiving control parameters sent by the upper computer, and the control parameters are used for controlling the transmitting module, the receiving module, the time sequence circuit and the output module. The invention has the beneficial effects that: the defects of less setting parameters and difficult adjustment of the photoelectric sensor in the prior art are overcome. Various time sequences are generated through a switched capacitor phase locking technology and a programmable time sequence circuit, so that the anti-interference capability of the sensor is improved. By the circuit design of starting delay, overload protection and rapid overload state recovery, the reliability and the practicability of the sensor are improved.

Description

Programmable photoelectric sensor and application circuit
Technical Field
The invention relates to the technical field of photoelectric sensors, in particular to a programmable photoelectric sensor and an application circuit.
Background
Photoelectric sensor is a device that converts optical signals into electrical signals based on the photoelectric effect. Based on the physical characteristics, the photoelectric sensor is widely applied to various position measurement applications of automation equipment, the Internet of things and intelligent home. Depending on the actual method of operation, the photoelectric sensor includes a diffuse reflection photoelectric proximity switch, a correlation photoelectric proximity switch, a retro-reflection photoelectric proximity switch, a background suppression photoelectric sensor, and the like.
In the prior art, industrial application devices based on photoelectric sensor implementation already exist. For example, the photoelectric proximity switch is used for realizing the start and stop, control and the like of the equipment. However, in the practical implementation process, the inventor finds that the actual control parameters of the photoelectric sensor in the prior art are relatively fixed and difficult to adjust, so that the photoelectric sensor does not perform well in the practical application scene, and the parameter setting of the photoelectric sensor cannot be well adjusted according to the practical needs. Meanwhile, the photoelectric sensor in the prior art is easy to be interfered by external electromagnetic signals, so that the photoelectric sensor fails in the application process, and the normal production and use of industrial equipment are affected.
Disclosure of Invention
In order to solve the above problems in the prior art, a programmable photoelectric sensor and an application circuit are provided.
The specific technical scheme is as follows:
a programmable photosensor, comprising:
the emission module is connected with at least one emission tube;
the receiving module is connected with at least one receiving tube, the receiving tube receives an optical signal, and the receiving module generates a receiving signal according to the optical signal;
the optical signal is generated by an external input or by the emission module driving at least one of the emission tubes;
the output module is connected with the receiving module and an external controlled circuit, and generates an output signal according to the receiving signal and transmits the output signal to the controlled circuit;
the control module is respectively connected with the transmitting module, the receiving module, the output module and an external upper computer, and is used for receiving control parameters sent by the upper computer and controlling the transmitting module, the receiving module and the output module.
Preferably, the programmable photoelectric sensor further comprises a time sequence circuit, and the time sequence circuit is respectively connected with the transmitting module, the receiving module, the output module and the control module;
The time sequence circuit outputs a time sequence signal to the transmitting module, the receiving module and the output module according to the control parameter;
the emission module drives the emission tube to generate the optical signal according to the time sequence signal;
the receiving module performs phase locking on the transmitting module according to the time sequence signal, and the output module demodulates the receiving signal according to the time sequence signal.
Preferably, the timing circuit further includes a timing input terminal connected to an external timing generation device;
the timing signal is generated by the timing circuit or input by the timing generation means.
Preferably, the receiving module includes:
a switch matrix connected to at least one of the receiving tubes, the switch matrix being controllably opened in accordance with the control parameter to pass an electrical signal of a particular receiving tube;
the input end of the current amplifier is connected with the output end of the switch matrix;
the input end of the switch capacitor amplifier is connected with the output end of the current amplifier;
preferably, the receiving module further comprises a feedback anti-interference circuit;
The input end of the feedback anti-interference circuit is connected with the output end of the current amplifier;
and the output end of the feedback anti-interference circuit is connected with the input end of the current amplifier.
Preferably, the output module includes an analog output sub-module, and the analog output sub-module specifically includes:
the input end of the sampling and holding circuit is connected with the output end of the receiving module;
the input end of the signal integration circuit is connected with the output end of the sample hold circuit;
and the input end of the signal processing circuit is connected with the output end of the signal integrating circuit, and the output end of the signal processing circuit is connected with the controlled circuit.
Preferably, the output module further includes a switching value output sub-module, and the switching value output sub-module includes:
the input end of the switch capacitance comparison circuit is connected with the output end of the receiving module;
the input end of the digital integrating circuit is connected with the output end of the switched capacitor comparison circuit;
and the input end of the driving circuit is connected with the output end of the digital integration circuit, and the output end of the driving circuit is connected with the controlled circuit.
Preferably, the capacitance comparison circuit includes: a first switched-capacitor comparator and a second switched-capacitor comparator, the digital integrating circuit comprising: a first digital integrator and a second digital integrator, the driving circuit including a switch driving circuit and an alarm generating unit;
the input end of the first switch capacitor comparator is connected with the output end of the receiving module, the input end of the first digital integrator is connected with the output end of the first switch capacitor comparator, the output end of the first digital integrator is connected with the input end of the switch driving circuit and the input end of the alarm generating unit, and the feedback end of the first digital integrator is connected with the controlled end of the first switch capacitor comparator;
the input end of the second switch capacitor comparator is connected with the output end of the receiving module, the input end of the second digital integrator is connected with the output end of the second switch capacitor comparator, the output end of the second digital integrator is connected with the input end of the alarm generating unit, and the feedback end of the second digital integrator is connected with the controlled end of the second switch capacitor comparator.
Preferably, the output module further comprises:
The control end of the delay circuit is connected with the time sequence circuit, and the output end of the delay circuit is connected with the driving circuit;
the delay circuit sends a control signal to the driving circuit according to the time sequence signal, so that the driving circuit sends the output signal to the controlled circuit under the control of the delay circuit.
Preferably, the output module further comprises an overload protection circuit, a sensing end of the overload protection circuit is connected with the controlled circuit, an output end of the overload protection circuit is connected with the time sequence circuit, and a controlled end of the overload protection circuit is connected with the control module;
the overload protection circuit obtains a detection voltage value of the controlled circuit according to the control parameter, and selectively sends a reset signal to the time sequence circuit according to the detection voltage value and the control parameter, wherein the reset signal is used for controlling the driving circuit to stop outputting the output signal by the time sequence circuit.
Preferably, the control module includes:
the communication circuit is in communication connection with the upper computer, and the communication circuit receives the control parameters from the upper computer;
The register is connected with the communication circuit, the transmitting module, the receiving module, the output module and the time sequence circuit, and stores and forwards the control parameters;
and the control parameters are checked in the communication process of the communication circuit and the upper computer.
Preferably, a plurality of check bits are arranged in the register;
the verification is located in the state that the communication circuit receives the control parameters and stores the control parameters;
and the verification is positioned in the programmable photoelectric sensor, the control parameter is verified when the programmable photoelectric sensor works, and an alarm signal is generated when the verification is not passed.
Preferably, the control module further comprises a judging circuit, and the judging circuit is connected with the register and the communication circuit;
when the verification of the communication circuit is not passed, the communication circuit generates the alarm signal;
and the judging circuit sends a reminding signal to the upper computer when receiving the alarm signal generated by the register and/or the communication circuit.
An application circuit comprising the programmable photoelectric sensor, and further comprising:
the first transmitting tube array is connected with the programmable photoelectric sensor and generates a first optical signal under the control of the programmable photoelectric sensor;
The first receiving tube array is connected with the programmable photoelectric sensor and generates a first electric signal according to the first optical signal;
the first upper computer sends a first control parameter to the programmable photoelectric sensor;
the programmable photoelectric sensor generates a first output signal and a second output signal according to the first control parameter and the first electric signal;
and the programmable photoelectric sensor respectively controls the on and off of the first triode and the second triode according to the first output signal and the second output signal.
An application circuit comprising the programmable photoelectric sensor, and further comprising:
the second emission tube array is connected with the programmable photoelectric sensor and generates a second optical signal under the control of the programmable photoelectric sensor;
the second receiving tube array is connected with the programmable photoelectric sensor and generates a second electric signal according to the second optical signal;
the second upper computer sends a second control parameter to the programmable photoelectric sensor;
And the programmable photoelectric sensor generates an analog output signal according to the second control parameter, and sends the analog output signal to the second upper computer.
The technical scheme has the following advantages or beneficial effects: the control parameters of the transmitting module, the receiving module and the output module are adjusted by the control module, so that the whole working parameters of the programmable photoelectric sensor are controllable and easy to adjust, the whole programmable photoelectric sensor can be adjusted according to actual requirements in actual application, the actual working performance is more in accordance with design indexes, and the defects that the set parameters of the photoelectric sensor are less and are difficult to adjust in the prior art are overcome.
Drawings
Embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The drawings, however, are for illustration and description only and are not intended as a definition of the limits of the invention.
FIG. 1 is an overall schematic of an embodiment of the present invention;
FIG. 2 is a schematic diagram of external input timing according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a receiving module according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an analog output sub-module in an embodiment of the invention;
FIG. 5 is a schematic diagram of a switching value output submodule according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a sub-module of an output module according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a switching quantum module according to another embodiment of the present invention;
FIG. 8 is a schematic diagram of the operation of a switching quantum module according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a delay circuit according to an embodiment of the invention;
FIG. 10 is a schematic diagram of an overload protection circuit according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of an overload protection circuit according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of a control module according to an embodiment of the invention;
FIG. 13 is a schematic diagram of an application circuit according to an embodiment of the invention;
fig. 14 is a schematic diagram of another application circuit in an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
The invention is further described below with reference to the drawings and specific examples, which are not intended to be limiting.
The invention comprises the following steps:
a programmable photosensor, as shown in fig. 1, comprising:
the transmitting module 1, the transmitting module 1 connects at least one transmitting tube 11;
the receiving module 2 is connected with at least one receiving tube 21, the receiving tube 21 receives an optical signal, and the receiving module 2 generates a receiving signal according to the optical signal;
the optical signal is generated by an external input or by the emission module 1 driving at least one emission diode 11;
the output module 3, the output module 3 connects the receiving module 2 and an external controlled circuit B1, the output module 3 generates an output signal according to the received signal and transmits to the controlled circuit B1;
the control module 4, the control module 4 connects the transmitting module 1, the receiving module 2, the output module 3 and an external upper computer A1, the control module 4 receives the control parameter sent from the upper computer A1, the control parameter is used for controlling the transmitting module 1, the receiving module 2 and the output module 3.
Specifically, to the fixed parameter of photoelectric sensor among the prior art, be difficult to carry out the problem of simple regulation according to actual need, receive the control parameter that sends from host computer A1 through setting up control module 4 in this embodiment, and then adjust respectively to the control parameter of transmitting module 1, receiving module 2 and output module 3 for programmable photoelectric sensor can control each module according to actual need in the in-service use, and then adapt to the application scene better.
In practice, the emitting module 1 is embodied as a driving circuit for modulating according to control parameters or other signals and driving the emitting tube 11 to generate specific light pulse signals. The specific optical pulse signal refers to that the transmitting module 1 changes the frequency, the pulse width, the duty ratio, the code and the like of the optical signal according to the control parameters so as to realize a better identification effect. The transmitting tube 11 is a transmitting tube of the programmable photoelectric sensor or a transmitting tube connected with the transmitting module 1 through a specific transmitting interface. In the practical implementation process, the light Emitting device may be a Light Emitting Diode (LED), a Vertical-Cavity Surface-Emitting Laser (VCSEL), or the like. The plurality of emitting tubes 11 may be arranged in a specific arrangement to form an emitting array to form a specific type of light source. The receiving tube 21 is a photoelectric receiving tube or an array of photoelectric receiving tubes, which is arranged in a programmable photoelectric sensor or is connected with the receiving module 2 through a specific receiving interface, and is used for generating an electric signal according to a received optical signal. The plurality of receiving pipes 21 can be arranged in a specific way to form a receiving array, and the specific position and the specific size of the receiving array are determined by the optical path of the programmable photoelectric sensor. The receiving module 2 is a signal processing circuit for processing the electric signal output from the receiving tube 21 to generate a receiving signal. The output module 3 is a signal processing circuit for processing the received signal to convert it into a specific analog output or switching value output, and further controls the controlled circuit B1. The control module 4 is a processing device with communication and data storage functions, and is connected to the upper computer A1 through a bus such as I2C, SPI, so as to receive control parameters. In order to realize the working process of the programmable photoelectric sensor, the programmable photoelectric sensor further comprises a power supply module which is connected with an external power supply circuit and is used for supplying power to the modules.
As an alternative embodiment, the transmitting module 1 adjusts the intensity of the optical signal generated by the transmitting tube 11 according to the control parameter.
Specifically, for the problem of fewer settable parameters of the photoelectric sensor in the prior art, in this embodiment, the control of the intensity of the optical signal generated by the transmitting module 1 driving the transmitting tube 11 is realized by controlling the parameters, so as to change the detection distance of the programmable photoelectric sensor.
In the implementation process, the transmitting module 1 obtains relevant information of the pulse light to be transmitted according to the control parameters, including transmitting frequency, pulse width bit, duty ratio, phase and the like, so as to generate specific pulse light according to the control parameters.
As an optional implementation manner, the programmable photoelectric sensor is further connected with a key switch, and is used for generating a distance setting instruction, adjusting control parameters sent by the control module 4, and further changing parameters such as detection distance, working mode, power-on delay time and the like of the programmable photoelectric sensor.
As an alternative embodiment, the push-button switch may output a distance setting instruction within an initialization time after the programmable photosensor is powered up. After the initialization time is exceeded, the programmable photoelectric sensor does not receive the distance setting instruction any more, and therefore stability of the programmable photoelectric sensor is improved.
In a preferred embodiment, the programmable photosensor further comprises a timing circuit 5,
the time sequence circuit 5 outputs a time sequence signal to the transmitting module 1, the receiving module 2 and the output module 3 according to the control parameters;
the emission module 1 drives the emission tube 11 to generate an optical signal according to the time sequence signal;
the receiving module 2 performs phase locking on the transmitting module 1 according to the time sequence signal, and the output module 3 demodulates the receiving signal according to the time sequence signal.
Specifically, to solve the problem that the photoelectric sensor in the prior art is easily interfered by external electromagnetic/optical signals, in this embodiment, the same time sequence signals are respectively output to the transmitting module 1, the receiving module 2 and the output module 3 through the time sequence circuit 5, and the optical signals are modulated according to the time sequence signals, so that the optical signals are staggered with the interference signals in the time domain or the frequency domain, or the optical signals can still obtain a better identification effect in a complex electromagnetic/optical environment by adjusting the coding format of the optical signals, and the overall anti-interference performance of the programmable photoelectric sensor is improved.
In the implementation process, the timing circuit 5 is a timing circuit for adjusting the timing signal based on the control parameter, and is used for outputting the same timing signal to the transmitting module 1, the receiving module 2 and the output module 3, so as to complete signal modulation, phase locking and signal demodulation in the whole process, and adjust the timing signal according to the control parameter in an actual application scene to realize better anti-interference performance. The control parameter is generated by the upper computer A1 according to electromagnetic signals and optical signal interference conditions in the actual environment in the application process. When the programmable photo-sensor is located in a complex environment, it may receive an ambient light signal or an ambient electromagnetic signal from the surrounding environment at a frequency close to the frequency of the emitted light signal generated by the current emitting module 1. When the programmable photoelectric sensor is interfered by the ambient light signal or the ambient electromagnetic signal to output an abnormal value, the upper computer A1 can send a new control parameter according to a pre-generated program to change the time sequence signal, so that the transmitting module 1 can adjust the transmitted light signal according to the new time sequence signal, including the frequency, the pulse width, the duty ratio, the coding mode and the like of the transmitted light signal, and further the light signal is staggered with the interference signal in the time domain or the frequency domain, or the coding format of the light signal is adjusted, so that the light signal can still obtain a better identification effect in a complex electromagnetic/light environment. Meanwhile, the receiving module 2 and the output module 3 both rely on the time sequence signals generated by the same time sequence circuit 5 to complete phase locking and demodulation, so that when the time sequence signals are changed along with the issued control parameters, the receiving module 2 and the output module 3 can work normally, and meanwhile, the interference of external electromagnetic signals is avoided.
As an alternative embodiment, the timing circuit 5 continuously outputs a low level signal as the timing signal for a preset delay period after the programmable photosensor is powered up.
Specifically, to solve the problem that the photoelectric sensor in the prior art is easy to generate voltage jitter in the power-on process, in this embodiment, the time sequence circuit 5 continuously outputs a low-level signal in the power-on process, so as to control the transmitting module 1, the receiving module 2 and the output module 3 to keep an initial state in the power-on process, so that the jitter does not occur along with the voltage change in the power-on process, and the stability of the programmable photoelectric sensor is improved.
In a preferred embodiment, as shown in fig. 2, the timing circuit 5 further includes a timing input terminal connected to an external timing generating device C1;
the timing signal is generated by the timing circuit or inputted by the timing generation means C1.
Specifically, in the prior art, the problem that photoelectric sensors of the same type or batch are easy to interfere with each other is solved, in this embodiment, the programmable photoelectric sensors are controlled by the timing signals received from the external input through the timing circuit 5, so that the optical signals sent out by the plurality of programmable photoelectric sensors are staggered in time domain, frequency domain or coding format, and the problem of mutual interference between the photoelectric sensors is avoided.
In the implementation process, the timing generation device C1 is an external control device, which is connected to a plurality of programmable photosensors. A plurality of groups of time sequence circuits are arranged in the control device to respectively send mutually independent time sequence signals to the programmable photoelectric sensors, so that the programmable photoelectric sensors are not interfered with each other. In another embodiment, the timing circuit 5 further includes a bus communication circuit, where the timing generating device C1 is connected to the plurality of programmable photosensors through a bus, and the plurality of programmable photosensors receive the timing signals in a time-division or code-division manner. In another embodiment, the timing generation device C1 is a programmable photosensor of a previous stage. When the timing circuit 5 of the upper-stage programmable photosensor generates a timing signal according to the control parameter, it transmits the timing signal to the timing circuits 5 of the transmitting module 1 and the lower-stage programmable photosensor, respectively. When the lower-stage programmable photoelectric sensor receives the time sequence signal and the transmitting module 1 generates the optical signal, the upper-stage programmable photoelectric sensor finishes the transmitting-receiving process of the optical signal, so that the working time between the upper-stage programmable photoelectric sensor and the lower-stage programmable photoelectric sensor is staggered. Therefore, by cascading the programmable photosensors, the effect that the plurality of programmable photosensors do not interfere with each other can be achieved.
In a preferred embodiment, as shown in fig. 3, the receiving module 2 comprises:
a switch matrix 22, the switch matrix 22 being connected to at least one receiving tube 21, the switch matrix 22 being controllably opened in accordance with control parameters to allow the passage of electrical signals of a particular receiving tube 21;
a current amplifier 23, an input terminal of the current amplifier 23 being connected to an output terminal of the switch matrix 22;
the input end of the switch capacitor amplifier 24 is connected with the output end of the current amplifier 23.
Specifically, aiming at the problem that a photoelectric sensor is prone to have systematic errors in the prior art, in the embodiment, related double sampling is achieved by setting the switched capacitor amplifier 24 phase-locked with the transmitting module 1, so that voltage difference values between the case of no optical signal and the case of the optical signal are obtained, errors caused by the problems of zero point of the amplifier and the like in the prior art are reduced, and good accuracy is achieved.
In the implementation process, the switch matrix 22 is a matrix formed by a plurality of switches, and each switch in the matrix is respectively connected to a receiving tube 21, so as to be turned on and off at a specific time according to the control parameters and the timing signals, and further, the electrical signals of the specific receiving tube 21 pass through. The current amplifier 23 is an I-V converter, which adjusts the current amplification factor by the control parameter received from the control module 4, thereby realizing the adjustment of the output signal. The switched capacitor amplifier 24 refers to a lock-in amplifier implemented based on a switched capacitor technology, which completes a phase locking process based on a timing signal generated by the timing circuit 5, so as to accurately obtain a voltage difference between when an optical signal is present and when the optical signal is absent, improve the accuracy of the receiving module 2, and achieve lower power consumption and better noise suppression effect.
In a preferred embodiment, the receiving module 2 further comprises a feedback anti-interference circuit 25;
the input end of the feedback anti-interference circuit 25 is connected with the output end of the current amplifier 23;
the output of the feedback anti-interference circuit 25 is connected to the input of the current amplifier 23.
Specifically, aiming at the problem that the photoelectric sensor in the prior art is easily interfered by electromagnetic signals and optical signals in the environment, in the embodiment, the characteristic of direct current signals or low frequency signals generated by optical signal interference in the environment is aimed at, by arranging the feedback anti-interference circuit 25, the voltage generated by the low frequency photocurrent at the output end of the current amplifier 23 is fed back to the input end of the current amplifier 23 through the feedback loop, so that the current value of the low frequency photocurrent at the input end of the current amplifier is close to 0, the signal of the low frequency photocurrent at the output end of the current amplifier 23 is greatly weakened, the purpose of resisting the low frequency interference signals is achieved, and the anti-interference capability of the programmable photoelectric sensor is further improved.
In a preferred embodiment, as shown in fig. 4, the output module 3 includes an analog output sub-module 31, and the analog output sub-module 31 specifically includes:
the input end of the sampling and holding circuit 311 is connected with the output end of the receiving module 2;
The input end of the signal integration circuit 312 is connected with the output end of the sample hold circuit 311;
the input end of the signal processing circuit 313 is connected with the output end of the signal integrating circuit 312, and the output end of the signal processing circuit 313 is connected with the controlled circuit B1.
Specifically, aiming at the problem that the types of the photoelectric sensors in the prior art are relatively fixed and cannot well adapt to the requirements of practical applications, in this embodiment, the signal processing circuit 313 is arranged in the analog output sub-module 31 to operate the receiving signals generated by the plurality of receiving tubes 21, so that the programmable photoelectric sensor can work in modes such as a diffuse reflection mode, a retro-reflection mode, a background suppression mode and the like, so as to meet the requirements of users.
In the implementation process, when the controlled circuit B1 is an analog receiving end, the sample-hold circuit 311 and the signal integrating circuit 312 in the output module 3 respectively receive the control parameters to adjust the conversion gain, the sampling frequency and the integration time of the current-voltage. The signal processing circuit 313 is an arithmetic logic circuit that performs arithmetic operations such as addition, subtraction, multiplication, division, and the like on the received signal under adjustment of control parameters, thereby changing the operation mode of the programmable photosensor.
In one embodiment, the programmable photosensor operates in either diffuse or retro-reflective mode, where the receiving module 2 is connected to two receiving tubes 21. The receiving tube 21 receives the two optical signals sequentially in time sequence, and then the signal processing circuit 313 calculates the sum of the received signals generated according to the two optical signals and uses the sum as an output signal, so that the programmable photoelectric sensor realizes a diffuse reflection or retro-reflection mode.
In another embodiment, the programmable photosensor is operated in the background suppression mode, where the receiving module 2 is connected to two receiving tubes 21, the receiving tubes 21 sequentially receive the optical signals in time sequence and generate the electrical signals, and then the signal processing circuit 313 calculates the difference value of the received signals generated according to the two electrical signals and uses the difference value as the output signal, so that the programmable photosensor realizes the background suppression mode.
In another embodiment, the programmable photosensor operates in a distance measurement mode. The receiving module 2 is connected to a plurality of receiving pipes 21. The receiving tube 21 sequentially generates a plurality of electrical signals in time sequence, and then the signal processing circuit 313 calculates the ratio of the received signals generated according to each electrical signal and uses the ratio as an output signal, so that the programmable photoelectric sensor realizes a distance measurement mode.
In a preferred embodiment, as shown in fig. 5, the output module 3 further includes a switching value output sub-module 32, and the switching value output sub-module 32 includes:
the input end of the switch capacitance comparison circuit 321 is connected with the output end of the receiving module 2;
the input end of the digital integrating circuit 322 is connected with the output end of the capacitance comparison circuit 321;
and the input end of the driving circuit 323 is connected with the output end of the digital integrating circuit 322, and the output end of the driving circuit 323 is connected with the controlled circuit B1.
Specifically, in the embodiment, by using the switched capacitor comparison circuit phase-locked with the transmission signal, the switched capacitor comparison circuit 321 and the digital integration circuit 322 are configured to judge the received signal, so that the driving circuit 323 is controlled to send the output signal to the controlled circuit B1 according to the judging result, and the anti-interference performance of the programmable photoelectric sensor is improved.
It should be noted that, as shown in fig. 4, 5 and 6, the analog output sub-module 31 and the switching value output sub-module 32 may be arbitrarily combined in the output module 3 to meet the requirement of the controlled circuit B1, which does not limit the practical embodiment.
In a preferred embodiment, as shown in fig. 7, the capacitance comparison circuit 321 includes: the digital integrating circuit 322 includes: a first digital integrator 322A and a second digital integrator 322B, the driving circuit 323 including a switch driving circuit 323A and an alarm generating unit 323B;
the input end of the first switched capacitor comparator 321A is connected to the output end of the receiving module 2, the input end of the first digital integrator 322A is connected to the output end of the first switched capacitor comparator 321A, the output end of the first digital integrator 322A is connected to the input end of the switch driving circuit 323A and the input end of the alarm generating unit 323B, and the feedback end of the first digital integrator 322A is connected to the controlled end of the first switched capacitor comparator 321A;
the input end of the second switched capacitor comparator 321B is connected to the output end of the receiving module 2, the input end of the second digital integrator 322B is connected to the output end of the second switched capacitor comparator 321B, the output end of the second digital integrator 322B is connected to the input end of the alarm generating unit 323B, and the feedback end of the second digital integrator 322B is connected to the controlled end of the second switched capacitor comparator 321B.
Specifically, for the problem that the photoelectric sensor in the prior art is difficult to adjust the return difference of the switching value output, in this embodiment, the threshold value of the first switched capacitor comparator 321A is adjusted through the control parameter and the first digital integrator 322A, so that the return difference of the switching value output is changed, and the programmable photoelectric sensor can set the action return difference according to the actual requirement.
Further, aiming at the problem that the photoelectric sensor in the prior art is difficult to adjust the alarm return difference, the second switched capacitor comparator 321B which is adjusted by the control parameter and the second digital integrator 322B is added in the embodiment, and the adjustment of the alarm return difference is realized by changing the threshold value of the second switched capacitor comparator 321B, so that the programmable photoelectric sensor meets the actual requirement more.
In the implementation process, the first switched capacitor comparator 321A stores two sets of threshold values Vthm and Vthl according to the control parameter, the second switched capacitor comparator 321B stores two sets of threshold values Vthh and Vthm according to the control parameter, the alarm generating unit is an exclusive or logic gate unit, the input signal is ALOO, and the output signal is ALO. Then taking the NPN output as an example, as shown in fig. 8, the initial threshold of the first switched capacitor comparator 321A is set to Vthm. When the intensity of the optical signal received by the receiving module 2 gradually increases, such that the voltage input to the first switched capacitor comparator 321A is higher than the threshold Vthm, the level of the operation output (SWO) of the first digital integrator 322A changes from low to high, and further, the switch driving circuit 323A outputs an output signal. When the action output level is inverted, the first digital integrator 322A sets the threshold value of the first switched capacitor comparator 321A, so that the threshold value becomes Vthl, and further, when the optical signal strength is weakened, the input voltage of the first switched capacitor comparator 321A is lower than Vthl, and the action output level is changed from high to low. The difference between Vthm and Vthl is the return difference in the motion output level, which can be varied by a control parameter.
Further, when the optical signal strength does not reach the threshold, i.e., the initial threshold Vthh of the second capacitance comparator 321B is not triggered, the alarm signal (ALO) generated by the alarm generating unit 323B is at a high level. Since the threshold Vthh is higher than the initial threshold Vthm of the first switched-capacitor comparator 321A, the operation output level of the switch driving circuit 323A is high, which indicates that the sensor is in the triggered state but the illumination margin is insufficient, and the state is unstable. When the light signal strength reaches the threshold, that is, the initial threshold Vthh of the second switched-capacitor comparator is triggered, it indicates that the light margin is sufficient, the state is stable, and the alarm signal (ALO) generated by the alarm generating unit 323B is inverted from the high level to the low level. When the alarm signal level is inverted, the second digital integrator 322B sets the threshold value of the second switched-capacitor comparator 321B so that the threshold value of the second switched-capacitor comparator 321B becomes Vthm. When the light signal intensity gradually decreases from the peak value, the voltage on the second switched capacitor comparator 321B gradually drops to the threshold Vthm, which indicates that the sensor is in a triggered state, but the illumination margin is insufficient, and the state is unstable, so that the alarm signal is turned to a high level again. Since the current threshold of the first switched capacitor comparator 321A is set to Vthl, which is lower than the current threshold Vthm of the second switched capacitor comparator, it can still maintain the high-level action output signal until the voltage of the output signal of the output module 2 drops to Vthl, at which time both the alarm signal and the action output signal are low. The difference between the threshold Vthh and Vthm of the second switched-capacitor comparator 321B is the alarm return difference, which is changed by the control parameter.
In a preferred embodiment, as shown in fig. 9, the output module 3 further comprises:
the control end of the delay circuit 33 is connected with the time sequence circuit 5, and the output end of the delay circuit 33 is connected with the driving circuit 323;
the delay circuit 33 transmits a control signal to the driving circuit 323 according to the timing signal, so that the driving circuit 323 transmits an output signal to the controlled circuit B1 under the control of the delay circuit 33.
Specifically, for the problem that in the prior art, the output jitter is caused by unstable voltage in the starting process of the photoelectric sensor, so that the load connected to the sensor is damaged, in this embodiment, the delay circuit 33 is added in the output module 3, and the driving circuit 323 is controlled to continuously output a low level to the controlled circuit B1 according to the time sequence signal in the power-on process, so that the safety of the programmable photoelectric sensor is improved, and the problem of voltage jitter easily generated in the power-on process is avoided.
In a preferred embodiment, as shown in fig. 10, the output module 3 further includes an overload protection circuit 34, the sensing end of the overload protection circuit 34 is connected to the controlled circuit B1, the output end of the overload protection circuit 34 is connected to the timing circuit 5, and the controlled end of the overload protection circuit 34 is connected to the control module 4;
The overload protection circuit 34 obtains the detected voltage value of the controlled circuit B1 according to the control parameter, and selectively sends a reset signal to the timing circuit 5 according to the detected voltage value and the control parameter, the reset signal causing the timing circuit 5 to control the driving circuit 323 to stop outputting the output signal.
Specifically, for the problem that the photoelectric sensor in the prior art generally adopts a temperature-sensitive resistor as an overload protection circuit, and cannot be recovered in time during overload, in this embodiment, direct measurement of the voltage of the controlled circuit B1 is realized by setting the overload protection circuit 34, so as to control the driving circuit 323 to stop sending an output signal, or after the circuit is recovered, the driving circuit 323 can be recovered quickly by stopping sending a reset signal.
In the implementation, as shown in fig. 11, for an NPN-type output circuit, the overload protection circuit 24 measures a measured voltage value v_npn across the resistor R1, and when v_npn is higher than a threshold value v_thnpn set by the overload protection circuit 24, the overload protection circuit 24 sends a reset signal to the timing circuit 5 so that the driving circuit 323 sets the operation output level to a low level for a period of time according to the timing signal. At this time, the transistor Q1 is turned off, and the load current is 0. After the preset time has elapsed, the timing circuit 5 sends a timing signal to the driving circuit 323 according to the original control parameter, so that the driving circuit 323 sends an output signal to the transistor Q1. When the driving circuit 323 outputs a high-level operation output signal to the transistor Q1, the overload protection circuit 24 re-acquires the measurement voltage v_npn and determines whether v_npn is higher than the threshold v_thnpn. If v_npn is still greater than v_thnpn, the overload protection circuit 323 resends the reset signal to the timing circuit 5, and further causes the operation output signal of the driving circuit 323 to flip to low level by the timing signal, in which the on time of the transistor Q1 is determined by the timing circuit 5, and is generally set to be less than 100 microseconds, so that the transistor Q1 is not damaged due to the short time. If the overload is removed after the transistor Q1 is turned on, the voltage measurement v_npn measured by the overload protection circuit 33 is lower than v_thnpn, and the overload protection circuit 33 does not send out a reset signal, and the driving circuit 323 outputs normally. Through the design, overload protection and quick recovery after overload of the programmable photoelectric sensor are realized.
In a preferred embodiment, as shown in fig. 12, the control module 4 comprises:
the communication circuit 41, the communication circuit 41 is connected with the upper computer A1 in a communication way, and the communication circuit 41 receives control parameters from the upper computer A1;
a register 42, the register 42 connecting the communication circuit 41, the transmitting module 1, the receiving module 2, the output module 3 and the timing circuit 5, the register 42 storing and forwarding control parameters;
the communication circuit 41 checks the control parameter during communication with the host computer A1.
Specifically, in the embodiment, the communication circuit 41 is configured to communicate with the upper computer A1, and to verify the control parameters during the communication process, so as to solve the problem that the photoelectric sensor in the prior art is prone to error in the received control parameters due to electromagnetic interference in the environment. When the verification fails, the upper computer A1 is requested to resend the control parameters, so that the anti-interference performance of the programmable photoelectric sensor is improved.
In the implementation process, the communication circuit 41 performs a communication process with the upper computer A1 through a bus protocol in the prior art, such as I2C, SPI. During communication, the communication circuit 41 checks the control parameters according to the existing check mode. In one embodiment, the check is a cyclic redundancy check (Cyclic Redundancy Check, CRC). The registers 42 are registers implemented based on the prior art, including but not limited to electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or apparatus, or any suitable combination of the foregoing, such as Random Access Memory (RAM), read Only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), etc. In a specific embodiment, the register 42 is a fixed control parameter register, which is preferably a read-only memory in the form of OTP (one time programmable), MTP (Multiple time Programmable), EEPROM, or the like.
In a preferred embodiment, a plurality of check bits 42A, 42B, 42C are provided in the register 42;
check bits 42A, 42B, 42C store the control parameters when communication circuit 41 receives the control parameters;
the check bits 42A, 42B, 42C check the control parameters when the programmable photosensor is in operation and generate an alarm signal when the check is not passed.
Specifically, aiming at the problem that in the prior art, when the photoelectric sensor works in a complex electromagnetic environment, the register bit is easy to turn over due to electromagnetic interference, in the embodiment, specific check bits 42A, 42B and 42C are arranged in the register 42, when the programmable photoelectric sensor works, control parameters of the specific bits are compared in real time, and when the check is failed, namely, when the register is turned over due to electromagnetic interference, an alarm signal is timely generated and further processed, so that the anti-interference performance of the programmable photoelectric sensor is improved.
In practice, the check bits 42A, 42B, 42C are check bits set to specific bits in the register 42, and the actual number of check bits and the number of check bits in the register 42 may be set according to the actual number of check bits in the register 42 or the length of the control parameter. For example, when the number of bits of the register 42 is long, a greater number of check bits may be set to achieve a fault check effect on the register 42. The check bits 42A, 42B, 42C may be uniformly distributed in the register according to different data structures of the control parameters, or may be disposed on specific data bits corresponding to the data structures, so as to achieve a better check effect on the control parameters. The check bits 42A, 42B, 42C compare the values pre-stored in the check bits 42A, 42B, 42C with the values of the specific bits in the register 42 through a logic circuit in the register 42, so that the fault is found in time when the register 42 is subjected to external electromagnetic interference and bit flip, and an alarm signal is generated. The alarm signal can be embodied as a level signal or based on a data message obtained after processing by a microprocessor.
In a preferred embodiment, the control module 4 further includes a judging circuit 43, and the judging circuit 43 is connected to the register 42 and the communication circuit 41;
when the verification of the communication circuit 41 is not passed, the communication circuit 41 generates an alarm signal;
when receiving the alarm signal generated by the register 42 and/or the communication circuit 41, the judgment circuit 43 sends an alarm signal to the host computer A1.
As an alternative embodiment, the judgment circuit 43 sends a reminder signal to the upper computer A1 through the communication circuit 41;
alternatively, the judging circuit 43 is connected to the upper computer A1 through an STS port, and sends a reminder signal to the upper computer through the STS port.
Specifically, to solve the problem that in the prior art, when the photoelectric sensor works in a complex electromagnetic environment, electromagnetic interference is easily received, and then normal work cannot be performed, in this embodiment, through setting the judging circuit 43, the communication circuit 41 with the checking function and the register 42 with the checking function, checking is performed respectively in the transmission process of control parameters and the working process of the programmable photoelectric sensor, and when the checking is not passed, the upper computer A1 is timely reminded through the judging circuit 43, so that a better anti-interference effect is achieved.
In practice, the judging circuit 43 is set as an and circuit or an or circuit according to actual needs. In one embodiment, the alarm signal is a high level signal generated by the communication circuit 41 or the check bits 42A, 42B, and 42C, and the judging circuit 43 is an or circuit at this time, that is, when the judging circuit 43 receives any one of the high level alarm signals, the high level alarm signal is turned over once through the STS port, and then a reminder signal is sent to the upper computer A1. In another embodiment, when the communication circuit 41 or the check bits 42A, 42B, 42C generate the alarm signal, the communication circuit is turned from high level to low level, and the judging circuit 43 is an and circuit, that is, when the high level of any path is turned to low level, the judging circuit 43 performs one level turning through the STS port, and then sends the alarm signal to the upper computer A1. After receiving the reminding signal, the upper computer A1 sends the control parameters to the communication circuit 41 again. In general, the control parameter is the same as the previously generated control parameter, and the check bits 42A, 42B, and 42C check the control parameter written into the register 42 to confirm whether the control parameter written into the register 42 matches the control parameter previously stored in the check bits 42A, 42B, and 42C. In a specific embodiment, the control parameter may be a new control parameter formed after the host computer A1 readjusts the interference signal, and the communication circuit 41 only performs the consistency check on the received control parameter. After the verification is passed, the judgment circuit 43 stops sending the reminding signal according to the verification results of the communication circuit 41 and the verification bits 42A, 42B and 42C. When the verification fails, the judgment circuit 43 continuously transmits a reminding signal to the upper computer A1. The upper computer A1 automatically triggers an alarm program after a period of time so as to remind operation and maintenance personnel of removing faults.
The invention is further illustrated below with reference to examples of application:
an application circuit, as shown in fig. 13, includes the programmable photosensor X2 described above, and further includes:
the first emitting tube array X1 is connected with the programmable photoelectric sensor X2, and the first emitting tube array X1 generates a first optical signal under the control of the programmable photoelectric sensor X2;
the first receiving tube array X3 is connected with the programmable photoelectric sensor X2, and generates a first electric signal according to a first optical signal;
the first upper computer X4 sends a first control parameter to the programmable photoelectric sensor X2;
the programmable photosensor X2 generates a first output signal and a second output signal according to the first control parameter and the first electric signal;
the programmable photoelectric sensor X2 controls the on and off of the first triode XQ1 and the second triode XQ2 respectively according to the first output signal and the second output signal.
Further comprises: the collector of the first triode XQ1 is connected with a first load XG1, the other end of the first load XG1 is connected with a power supply end VCC, the emitter of the first triode XQ1 is connected with the first end of a first resistor XR1, the second end of the first resistor XR1 is grounded, and the sensing end of the programmable photoelectric sensor X2 is connected with the first end of the first resistor XR 1;
The emitter of the second triode XQ2 is connected with the second load XG2, the other end of the second load XG2 is grounded, the collector of the second triode XQ2 is connected with the first end of the second resistor XR2, the second end of the second resistor XR2 is connected with the power supply end VCC, and the sensing end of the programmable photoelectric sensor X2 is connected with the first end of the second resistor XR 2.
Specifically, the problem that the photoelectric sensor in the prior art cannot well control the switch circuit in an industrial environment and cannot be quickly recovered after overload is solved, in this embodiment, the programmable photoelectric sensor X2 is applied to the switching value application circuit, so that control over the NPN triode and the PNP triode is realized, and the control over the NPN triode and the PNP triode are matched with the first resistor XR1 and the second resistor XR2 to respectively obtain voltage measurement values on two branches, so that the application circuit can be quickly disconnected according to the voltage measurement values during overload and quickly recovered after a set action time. And the circuit is further detected to be in overload fault while being recovered, if so, the circuit is continuously disconnected, and a better overload protection effect is further realized.
In practice, the application circuit may be embodied as a circuit board in a photosensor device or as a light control circuit in an industrial control device. In one embodiment, the first receiver tube array X3 and the programmable photosensor X2 are integrated on a sensor chip; alternatively, in another embodiment, the first emitter tube array X1, the second receiver tube array X3 are devices independent of the programmable photosensor X2. The above combinations, including but not limited to the kind, arrangement position, number forming principle, etc. of the first transmitting tube array X1, the first receiving tube array X3 may be arranged according to actual needs, which do not limit the present invention. The first load XG1 and the second load XG2 are external electronic components in an application scene, and the first triode XQ1 and the second triode XQ2 control power on and power off. For example, in one embodiment, the first load XG1 and the second load XG2 are respectively connected to a control pin of an embedded device, and are used for controlling the industrial device to work according to the monitoring result of the programmable photosensor X2. The first host computer X4 is a computer device configured to communicate with the programmable photosensor X2 via a bus protocol and to send a first control parameter to the programmable photosensor X2. In the communication process and the working process, the programmable photoelectric sensor X2 performs the above-mentioned methods or some of them, such as overload detection, timing synchronization, and register verification, which are not described herein.
An application circuit, as shown in fig. 14, includes the programmable photosensor Y2 described above, and further includes:
the second emitting tube array Y1 is connected with the programmable photoelectric sensor Y2, and the second emitting tube array Y1 generates a second optical signal under the control of the programmable photoelectric sensor Y2;
the second receiving tube array Y3 is connected with the programmable photoelectric sensor Y2, and the second receiving tube array Y3 generates a second electric signal according to a second optical signal;
the second upper computer Y4 sends a second control parameter to the programmable photoelectric sensor Y2;
the programmable photoelectric sensor Y2 generates an analog output signal according to the second control parameter and sends the analog output signal to the second upper computer Y4.
Specifically, the problem that the photoelectric sensor is easy to be interfered in a complex electromagnetic environment and cannot work normally in the prior art is solved, in the embodiment, the programmable photoelectric sensor Y2 is used for realizing analog output through an ALU, meanwhile, the programmable photoelectric sensor Y2 is communicated with the second upper computer Y4 through a BUS BUS and sends a reminding signal through an STS port, so that the programmable photoelectric sensor Y2 can realize verification of control parameters sent by the second upper computer Y4 in the complex electromagnetic environment, continuous verification of the control parameters stored in a register in the working process and timely sends the reminding signal through the STS port when the verification is not passed, and the anti-interference performance of the programmable photoelectric sensor in the complex electromagnetic environment is improved.
In practice, the application circuit may be embodied as a circuit board in a photosensor device or as a light control circuit in an industrial control device. In one embodiment, the second receiver tube array Y3 and the programmable photosensor Y2 are integrated on a sensor chip; alternatively, the second transmitting tube array Y1 and the second receiving tube array Y3 are devices independent of the programmable photosensor Y2. The above combinations and other combinations not mentioned, including but not limited to the types, arrangement positions, numbers, forming principles, etc. of the second transmitting tube array Y1 and the second receiving tube array Y3, may be set according to actual needs, and do not limit the present invention. The second upper computer Y4 may communicate with the programmable photosensor Y2 based on a BUS (BUS) in the related art and transmit control parameters. The programmable photosensor Y2 checks the received second control parameter based on an existing check code, such as a CRC check, during communication to implement an error correction process during communication. When the programmable photosensor Y2 is in a verification error condition during communication or working, the STS port generates level inversion, and the STS port is turned from a high level to a low level, or turned from the low level to the high level, so that the second upper computer Y4 resends the second control parameter according to the signal. The second upper computer Y4 is provided with a corresponding timing or counting program for counting the time of fault removal and/or retransmitting the number of times of the second control parameter when the STS port triggers the level inversion. And when the fault is not removed after the threshold is triggered, generating a corresponding maintenance work order to remind operation and maintenance personnel to process.
The invention has the beneficial effects that the control parameters of the transmitting module, the receiving module, the time sequence circuit and the output module are adjusted by arranging the control module, so that the whole working parameter of the programmable photoelectric sensor is controllable and easy to adjust, the whole programmable photoelectric sensor can adjust the control parameters according to actual requirements in actual application, and the defects of less set parameters and difficult adjustment of the photoelectric sensor in the prior art are overcome. Various time sequences are generated through a switched capacitor technology and a programmable time sequence circuit, so that the anti-interference capability of the sensor is improved. By starting the delay, overload protection and rapid overload state recovery, the reliability of the sensor is improved.
The foregoing is merely illustrative of the preferred embodiments of the present invention and is not intended to limit the embodiments and scope of the present invention, and it should be appreciated by those skilled in the art that equivalent substitutions and obvious variations may be made using the description and illustrations of the present invention, and are intended to be included in the scope of the present invention.

Claims (12)

1. A programmable photosensor, comprising:
the emission module is connected with at least one emission tube;
The receiving module is connected with at least one receiving tube, the receiving tube receives an optical signal, and the receiving module generates a receiving signal according to the optical signal;
the optical signal is generated by an external input or by the emission module driving at least one of the emission tubes;
the output module is connected with the receiving module and an external controlled circuit, and generates an output signal according to the receiving signal and transmits the output signal to the controlled circuit;
the control module is respectively connected with the transmitting module, the receiving module, the output module and an external upper computer, and is used for receiving control parameters sent by the upper computer and controlling the transmitting module, the receiving module and the output module;
the programmable photoelectric sensor further comprises a time sequence circuit which is respectively connected with the transmitting module, the receiving module, the output module and the control module;
the time sequence circuit outputs a time sequence signal to the transmitting module, the receiving module and the output module according to the control parameter;
the emission module drives the emission tube to generate the optical signal according to the time sequence signal;
The receiving module performs phase locking on the transmitting module according to the time sequence signal, and the output module demodulates the receiving signal according to the time sequence signal;
the output module further comprises a switching value output submodule, and the switching value output submodule comprises:
the input end of the switch capacitance comparison circuit is connected with the output end of the receiving module;
the input end of the digital integrating circuit is connected with the output end of the switched capacitor comparison circuit;
the input end of the driving circuit is connected with the output end of the digital integration circuit, and the output end of the driving circuit is connected with the controlled circuit;
the capacitance comparison circuit includes: a first switched-capacitor comparator and a second switched-capacitor comparator, the digital integrating circuit comprising: a first digital integrator and a second digital integrator, the driving circuit including a switch driving circuit and an alarm generating unit;
the input end of the first switch capacitor comparator is connected with the output end of the receiving module, the input end of the first digital integrator is connected with the output end of the first switch capacitor comparator, the output end of the first digital integrator is connected with the input end of the switch driving circuit and the input end of the alarm generating unit, and the feedback end of the first digital integrator is connected with the controlled end of the first switch capacitor comparator;
The input end of the second switch capacitor comparator is connected with the output end of the receiving module, the input end of the second digital integrator is connected with the output end of the second switch capacitor comparator, the output end of the second digital integrator is connected with the input end of the alarm generating unit, and the feedback end of the second digital integrator is connected with the controlled end of the second switch capacitor comparator.
2. The programmable photosensor of claim 1, wherein the timing circuit further comprises a timing input coupled to an external timing generation device;
the timing signal is generated by the timing circuit or input by the timing generation means.
3. The programmable photosensor of claim 1, wherein the receiving module comprises:
a switch matrix connected to at least one of the receiving tubes, the switch matrix being controllably opened in accordance with the control parameter to pass an electrical signal of a particular receiving tube;
the input end of the current amplifier is connected with the output end of the switch matrix;
and the input end of the switch capacitance amplifier is connected with the output end of the current amplifier.
4. A programmable photosensor according to claim 3, wherein the receiving module further comprises a feedback anti-interference circuit;
the input end of the feedback anti-interference circuit is connected with the output end of the current amplifier;
and the output end of the feedback anti-interference circuit is connected with the input end of the current amplifier.
5. The programmable photosensor of claim 1, wherein the output module comprises an analog output sub-module, the analog output sub-module comprising:
the input end of the sampling and holding circuit is connected with the output end of the receiving module;
the input end of the signal integration circuit is connected with the output end of the sample hold circuit;
and the input end of the signal processing circuit is connected with the output end of the signal integrating circuit, and the output end of the signal processing circuit is connected with the controlled circuit.
6. The programmable photosensor of claim 1, wherein the output module further comprises:
the control end of the delay circuit is connected with the time sequence circuit, and the output end of the delay circuit is connected with the driving circuit;
The delay circuit sends a control signal to the driving circuit according to the time sequence signal, so that the driving circuit sends the output signal to the controlled circuit under the control of the delay circuit.
7. The programmable photosensor of claim 1, wherein the output module further comprises an overload protection circuit, the sensing terminal of the overload protection circuit is connected to the controlled circuit, the output terminal of the overload protection circuit is connected to the timing circuit, and the controlled terminal of the overload protection circuit is connected to the control module;
the overload protection circuit obtains a detection voltage value of the controlled circuit according to the control parameter, and selectively sends a reset signal to the time sequence circuit according to the detection voltage value and the control parameter, wherein the reset signal is used for controlling the driving circuit to stop outputting the output signal by the time sequence circuit.
8. The programmable photosensor of claim 1, wherein the control module comprises:
the communication circuit is in communication connection with the upper computer, and the communication circuit receives the control parameters from the upper computer;
The register is connected with the communication circuit, the transmitting module, the receiving module, the output module and the time sequence circuit, and stores and forwards the control parameters;
and the control parameters are checked in the communication process of the communication circuit and the upper computer.
9. The programmable photosensor of claim 8, wherein a plurality of check bits are disposed in the register;
the verification is located in the state that the communication circuit receives the control parameters and stores the control parameters;
and the verification is positioned in the programmable photoelectric sensor, the control parameter is verified when the programmable photoelectric sensor works, and an alarm signal is generated when the verification is not passed.
10. The programmable photosensor of claim 9, wherein the control module further comprises a decision circuit, the decision circuit connecting the register and the communication circuit;
when the verification of the communication circuit is not passed, the communication circuit generates the alarm signal;
and the judging circuit sends a reminding signal to the upper computer when receiving the alarm signal generated by the register and/or the communication circuit.
11. An application circuit comprising a programmable photosensor according to any one of claims 1-10, further comprising:
the first transmitting tube array is connected with the programmable photoelectric sensor and generates a first optical signal under the control of the programmable photoelectric sensor;
the first receiving tube array is connected with the programmable photoelectric sensor and generates a first electric signal according to the first optical signal;
the first upper computer sends a first control parameter to the programmable photoelectric sensor;
the programmable photoelectric sensor generates a first output signal and a second output signal according to the first control parameter and the first electric signal;
and the programmable photoelectric sensor respectively controls the on and off of the first triode and the second triode according to the first output signal and the second output signal.
12. An application circuit comprising a programmable photosensor according to any one of claims 1-10, further comprising:
the second emission tube array is connected with the programmable photoelectric sensor and generates a second optical signal under the control of the programmable photoelectric sensor;
The second receiving tube array is connected with the programmable photoelectric sensor and generates a second electric signal according to the second optical signal;
the second upper computer sends a second control parameter to the programmable photoelectric sensor;
and the programmable photoelectric sensor generates an analog output signal according to the second control parameter, and sends the analog output signal to the second upper computer.
CN202210103335.0A 2022-01-27 2022-01-27 Programmable photoelectric sensor and application circuit Active CN114440943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210103335.0A CN114440943B (en) 2022-01-27 2022-01-27 Programmable photoelectric sensor and application circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210103335.0A CN114440943B (en) 2022-01-27 2022-01-27 Programmable photoelectric sensor and application circuit

Publications (2)

Publication Number Publication Date
CN114440943A CN114440943A (en) 2022-05-06
CN114440943B true CN114440943B (en) 2023-11-24

Family

ID=81369379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210103335.0A Active CN114440943B (en) 2022-01-27 2022-01-27 Programmable photoelectric sensor and application circuit

Country Status (1)

Country Link
CN (1) CN114440943B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117906650A (en) * 2024-03-19 2024-04-19 深圳市志奋领科技有限公司 Multimode integrated photoelectric sensor device

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2060892U (en) * 1988-12-22 1990-08-22 清华大学 Dynamic electricity sensor of closed loop detecting optical fibers of modulated light source
CN1525639A (en) * 2003-02-26 2004-09-01 李相前 A low distortion Class D amplifier
CN201503383U (en) * 2009-09-18 2010-06-09 矽拓微电子(上海)有限公司 High-speed photoelectric grain counting sensor
CN103389286A (en) * 2012-11-28 2013-11-13 上海兰宝传感科技股份有限公司 Intelligent diffuse reflection type photoelectric sensor
CN103744125A (en) * 2013-12-17 2014-04-23 上海兰宝传感科技股份有限公司 AC/DC opposite-emission photoelectric sensor
CN105006142A (en) * 2015-07-04 2015-10-28 潍坊医学院 Reflective infrared photoelectric sensor and program-controlled duty ratio distance-adjusting method of sensor
CN205569440U (en) * 2015-11-27 2016-09-14 智恒(厦门)微电子有限公司 Photoelectricity bit sensor of anti highlight
CN105962922A (en) * 2016-04-19 2016-09-28 矽力杰半导体技术(杭州)有限公司 Photoelectric sensor, photoelectric detection method and heart rate detection equipment making use of photoelectric sensor
CN206258579U (en) * 2015-12-25 2017-06-16 松下神视株式会社 Optical receiving circuit and photoelectric sensor
CN109557596A (en) * 2018-08-17 2019-04-02 公安部第研究所 A kind of combined type is double to penetrating photoelectric sensor and corresponding rays safety detection apparatus
CN111044089A (en) * 2020-01-03 2020-04-21 上海兰宝传感科技股份有限公司 Photoelectric sensor capable of automatically adjusting gain
CN210954695U (en) * 2019-12-30 2020-07-07 无锡桂格电子科技有限公司 Interface circuit of sensitivity-adjustable pulse type infrared photoelectric induction switch
CN111830516A (en) * 2020-07-15 2020-10-27 深圳市志奋领科技有限公司 Reflective photoelectric sensor and anti-interference method thereof
CN212379570U (en) * 2020-07-15 2021-01-19 深圳市志奋领科技有限公司 Reflective photoelectric sensor
CN113050184A (en) * 2019-12-27 2021-06-29 欧姆龙(上海)有限公司 Photoelectric sensor and control method thereof

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2060892U (en) * 1988-12-22 1990-08-22 清华大学 Dynamic electricity sensor of closed loop detecting optical fibers of modulated light source
CN1525639A (en) * 2003-02-26 2004-09-01 李相前 A low distortion Class D amplifier
CN201503383U (en) * 2009-09-18 2010-06-09 矽拓微电子(上海)有限公司 High-speed photoelectric grain counting sensor
CN103389286A (en) * 2012-11-28 2013-11-13 上海兰宝传感科技股份有限公司 Intelligent diffuse reflection type photoelectric sensor
CN103744125A (en) * 2013-12-17 2014-04-23 上海兰宝传感科技股份有限公司 AC/DC opposite-emission photoelectric sensor
CN105006142A (en) * 2015-07-04 2015-10-28 潍坊医学院 Reflective infrared photoelectric sensor and program-controlled duty ratio distance-adjusting method of sensor
CN205569440U (en) * 2015-11-27 2016-09-14 智恒(厦门)微电子有限公司 Photoelectricity bit sensor of anti highlight
CN206258579U (en) * 2015-12-25 2017-06-16 松下神视株式会社 Optical receiving circuit and photoelectric sensor
CN105962922A (en) * 2016-04-19 2016-09-28 矽力杰半导体技术(杭州)有限公司 Photoelectric sensor, photoelectric detection method and heart rate detection equipment making use of photoelectric sensor
CN109557596A (en) * 2018-08-17 2019-04-02 公安部第研究所 A kind of combined type is double to penetrating photoelectric sensor and corresponding rays safety detection apparatus
CN113050184A (en) * 2019-12-27 2021-06-29 欧姆龙(上海)有限公司 Photoelectric sensor and control method thereof
CN210954695U (en) * 2019-12-30 2020-07-07 无锡桂格电子科技有限公司 Interface circuit of sensitivity-adjustable pulse type infrared photoelectric induction switch
CN111044089A (en) * 2020-01-03 2020-04-21 上海兰宝传感科技股份有限公司 Photoelectric sensor capable of automatically adjusting gain
CN111830516A (en) * 2020-07-15 2020-10-27 深圳市志奋领科技有限公司 Reflective photoelectric sensor and anti-interference method thereof
CN212379570U (en) * 2020-07-15 2021-01-19 深圳市志奋领科技有限公司 Reflective photoelectric sensor

Also Published As

Publication number Publication date
CN114440943A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
US4592057A (en) Versatile digital controller for light emitting semiconductor devices
EP2002272B1 (en) Apparatus and method for providing a clock signal
CN114440943B (en) Programmable photoelectric sensor and application circuit
EP0061034B1 (en) Opto-electronic control circuit
US10879921B2 (en) Integrated circuit and method for communicating data
US20150048754A1 (en) Systems and methods for data communication with an led device
US11733750B2 (en) Power switching circuitry and ethernet apparatus using the same
KR20130094353A (en) Transmission network having an optical receiver that utilizes dual power pins and a single status pin to lower power consumption, lower manufacturing cost, and increase transmission efficiency and transmitter circuit
CN102213730A (en) Low-voltage alarm circuit
US11300951B2 (en) Input module of industrial control apparatus
WO2024050934A1 (en) Visible-light communication system
CN207396767U (en) Infrared tube detection device and system
US20050152439A1 (en) Interface for digital communication
US5331319A (en) Device for signalling the position of a mobile member
US9198248B2 (en) LED lighting device and LED lighting control method
CN106646189A (en) Obstacle detection module
TW200524233A (en) Laser driver circuit for burst mode and making method thereof
US10236712B2 (en) Dual-distribution lighting device for lighting systems
CN113811039B (en) Light modulation circuit
CN214045496U (en) Multi-gear motor speed regulating device, motor and electric tool
CN216905398U (en) LED lamp detection circuit and LED lamp driving system
TWI757769B (en) Signal detector, signal transmitter, power controller, and signal transmitting method thereof
CN220410079U (en) Detection circuit with adjustable light receiving precision and thermal printer
CN215601524U (en) Dimming and color-mixing system based on pulse phase control and lighting lamp
JPWO2017208310A1 (en) Optical receiver and optical signal receiving method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant