Capacitive proximity sensor circuit based on photodiode multiplexing
Technical Field
The invention relates to the technical field of sensors, in particular to a capacitive proximity sensor circuit based on photodiode multiplexing.
Background
A photosensor is a device that converts an optical signal into an electrical signal. The working principle is based on the photoelectric effect. The photoelectric effect refers to the phenomenon that when light irradiates on some substances, electrons of the substances absorb the energy of photons, and the corresponding electric effect occurs. Photoelectric effects are classified into three categories according to their phenomena: external photoelectric effect, internal photoelectric effect and photovoltaic effect. The photoelectric devices comprise a photoelectric tube, a photomultiplier, a photoresistor, a photosensitive diode, a photosensitive triode, a photoelectric cell and the like. The performance and characteristic curve of the photoelectric device are analyzed.
Among them, a photodiode is the most common photosensor. The shape of the photosensitive diode is the same as that of a common diode, and when no light is emitted, the photosensitive diode has the same shape as that of the common diode, and the reverse current is very small and is called as the dark current of the photosensitive diode; when light is applied, the carriers are excited, creating electron-holes, known as photocarriers. Under the action of an external electric field, the photo-carriers participate in conduction, forming a reverse current much larger than the dark current, which is called photocurrent. The magnitude of the photocurrent is proportional to the intensity of the light, so that an electrical signal varying with the intensity of the light is obtained at the load resistance.
A photodiode, also called a photodiode, is a photodetector that can convert light into a current or voltage signal depending on the mode of use. The die usually uses a PN junction with photosensitive characteristics, which is very sensitive to light changes, has unidirectional conductivity, and changes electrical characteristics when light intensity is different, so that the current in the circuit can be changed by using the intensity of light. Photodiodes have been widely used in medical applications, such as X-ray computed tomography imaging and pulse detectors.
The detection of human body motion heart rate by using a photoplethysmography (PPG) technology is an application of an infrared nondestructive detection technology in biomedicine. The heart rate is calculated from the obtained pulse waveform by utilizing a photoelectric sensor to detect the difference of the reflected light intensity after the absorption of blood and tissues of a human body, tracing the change of the volume of a blood vessel in a cardiac cycle.
A proximity sensor is a device capable of sensing the proximity of an object, and recognizes the proximity of the object by using the sensitivity of a displacement sensor to the approaching object and outputs a corresponding switch signal, and thus, the proximity sensor is also generally called a proximity switch. It is a generic name of a sensor for the purpose of not touching an object to be detected, instead of a contact detection type detection method such as a switch, and it can detect movement and presence information of an object and convert it into an electric signal. The proximity sensor mainly comprises a capacitive proximity sensor, an inductive proximity sensor and a photoelectric proximity sensor. The capacitive proximity sensor is a capacitive proximity switch with electrodes as detection ends and comprises a high-frequency oscillation circuit, a detection circuit, an amplification circuit, a shaping circuit and an output circuit.
At present, most photoelectric sensors and proximity sensor products in the market can only execute a photoelectric sensing function and a proximity sensing function independently, and cannot execute the two functions simultaneously; and has the following problems.
1. The photoelectric sensor can only receive the photoelectric signal and cannot perform the approaching judgment capability;
2. the proximity sensor can only judge whether the human body is close or not and cannot identify whether the human body is close or not;
3. if two functions need to be executed simultaneously, two sensors need to be installed, and the problem of cost increase exists.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a capacitance type proximity sensor circuit based on photodiode multiplexing.
The purpose of the invention is realized by the following technical scheme:
the capacitance type proximity sensor circuit based on the multiplexing of the photodiode comprises the photodiode, an operational amplifier, a capacitance detection circuit and a change-over switch; the photodiode is respectively connected with the operational amplifier and the capacitance detection circuit through the change-over switch.
Further, the photodiode is used for detecting a human body PPG signal.
Further, the operational amplifier may configure an amplification factor for amplifying the PPG signal.
Further, the capacitance detection circuit is used for detecting the change of the capacitance.
Further, the switch is used for switching the circuit execution circuit to switch between photoelectric signal detection and capacitance change detection.
Further, the change-over switch is composed of three common switches, including a first switch, a second switch and a third switch.
Further, the first switch is arranged between the photodiode and the operational amplifier, one end of the first switch is connected with the inverting input end of the operational amplifier, and the other end of the first switch is connected with the cathode of the photodiode.
Furthermore, the second switch is arranged between the photodiode and the capacitance detection circuit, one end of the second switch is connected with the capacitance detection circuit, and the other end of the second switch is connected with the cathode of the photodiode.
Further, the third switch is arranged between the photodiode and the capacitance detection circuit, one end of the third switch is connected with the capacitance detection circuit, and the other end of the third switch is connected with the anode of the photodiode.
Further, the anode of the photodiode is provided with a grounding switch; the grounding switch and the third switch are connected in parallel to the photodiode.
The invention has the beneficial effects that: the invention has low cost, convenience and practicability; the method can be applied to a sensor to realize the identification of whether an approaching object is a human body.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a circuit schematic of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this embodiment, as shown in fig. 1, the capacitance proximity sensor circuit based on photodiode multiplexing includes a photodiode, an operational amplifier, a capacitance detection circuit, and a change-over switch; the photodiode is respectively connected with the operational amplifier and the capacitance detection circuit through the change-over switch.
In this embodiment, the photodiode is used for detecting a PPG signal of a human body.
In this embodiment, the operational amplifier may configure an amplification factor for amplifying the PPG signal.
In this embodiment, the capacitance detection circuit is used for detecting a change in capacitance.
In this embodiment, the switch is used for switching the circuit execution circuit to perform switching between the photoelectric signal detection and the capacitance change detection.
In this embodiment, the switch is composed of three general switches, including a first switch, a second switch, and a third switch.
In this embodiment, the first switch is disposed between the photodiode and the operational amplifier, and has one end connected to the inverting input terminal of the operational amplifier and the other end connected to the cathode of the photodiode.
In this embodiment, the second switch is disposed between the photodiode and the capacitance detection circuit, and has one end connected to the capacitance detection circuit and the other end connected to the cathode of the photodiode.
In this embodiment, the third switch is disposed between the photodiode and the capacitance detection circuit, and has one end connected to the capacitance detection circuit and the other end connected to an anode of the photodiode.
In the embodiment, the anode of the photodiode is provided with a grounding switch; the grounding switch and the third switch are connected in parallel to the photodiode.
The photodiode and the operational amplifier are used for receiving and amplifying the ppg signal of the human body. The change-over switch is used for switching the mode into capacitance detection when needed, and the positive electrode and the negative electrode of the photodiode are used for forming electrodes to measure the capacitance of the proximity conductor. The circuit diagram is shown in fig. 1. Firstly, when photoelectric detection or photoelectric signal receiving is carried out, a first switch connected with a 6-pin (the inverting input of an arithmetic unit) and a grounding switch are closed and conducted, two switches (a second switch and a third switch) at a capacitance detection circuit are disconnected, at the moment, capacitance detection (approaching sensing function) does not work, a photodiode detects light, and a received signal is delivered to an operational amplifier for amplification.
Secondly, when constant volume detection (approach sensing function) is carried out, a first switch connected with a 6 pin (the inverting input of an arithmetic unit) and a grounding switch are disconnected, and two switches at a capacitance detection position are closed. The metal polar plates required by the capacitance detection function are provided by the upper and lower polar plates of the photodiode, so that the capacitance detection function is realized.
The invention multiplexes two metal electrodes of the photodiode, combines capacitance detection, realizes the function of a capacitance proximity sensor and can judge whether a proximity object is a human body.
The invention has low cost, convenience and practicability; the method can be applied to a sensor to realize the identification of whether an approaching object is a human body.
The structures, functions, and connections disclosed herein may be implemented in other ways. For example, the embodiments described above are merely illustrative, e.g., multiple components may be combined or integrated with another component; in addition, functional components in the embodiments herein may be integrated into one functional component, or each functional component may exist alone physically, or two or more functional components may be integrated into one functional component.
The foregoing is illustrative of the preferred embodiments of this invention, and it is to be understood that the invention is not limited to the precise form disclosed herein and that various other combinations, modifications, and environments may be resorted to, falling within the scope of the concept as disclosed herein, either as described above or as apparent to those skilled in the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.