Capacitance position sensor detection circuit
Technical Field
The invention relates to the field of detection circuits, in particular to a detection circuit of a capacitive position sensor.
Background
The capacitance position sensor is commonly used for various industrial laser processing applications, the capacitance between the sensing head and a metal processing workpiece changes correspondingly along with the change of the distance between the sensing head and the metal processing workpiece, and the capacitance value is acquired by the capacitance position sensor, so that the laser processing system can automatically adjust the distance between the laser and the workpiece. The most common capacitive position sensor needs a stable high-frequency alternating current power supply, which brings difficulty to implementation of the scheme and acquisition of the detection quantity, and increases the system cost. The existing design is a capacitance position sensor detection circuit, the circuit is based on the pulse width modulation principle, the requirement on a high-frequency alternating-current power supply is avoided, the detection output quantity is voltage output, the requirement on a follow-up control circuit is reduced, the defect of the stability of a traditional pulse width modulation circuit is overcome, and the capacitance position detection with low cost, high stability and high reliability is realized.
Disclosure of Invention
The present invention is directed to a capacitive position sensor detection circuit to solve the above problems.
In order to achieve the purpose, the invention provides the following technical scheme: a capacitance position sensor detection circuit comprises a capacitance sensing head, a pulse width modulation circuit, a filter circuit, a power-on anti-deadlock circuit, a working range adjusting circuit, an output drive and a collision detection circuit, wherein the capacitance sensing head is connected to the pulse width modulation circuit, the pulse width modulation circuit is used for obtaining a pulse width modulation signal related to the position of a measured workpiece, the power-on anti-deadlock circuit is used for preventing the occurrence of circuit deadlock, the filter circuit is used for converting the signal into a voltage signal and removing noise, the working range adjusting circuit is convenient for a user to adjust a detectable capacitance change range, the output drive is used for providing stable voltage output for a subsequent control system to use, the collision detection circuit is used for providing collision output indication, and the pulse width modulation circuit comprises resistors R1, R2, diodes D1 and D2, a capacitor C1, a voltage sensor, a working range adjusting circuit and a collision detection circuit, C30, high stable reference power supply LM4040BIM3-2.5, comparator LM2903AVQPWRQ1, or gate SN74LVC1G32DBV, flip-flop SN74LVC2G74DCT and operational amplifier AD706, said R2 and D2 charge and discharge the sensor head capacitance, said R1 and D1 charge and discharge capacitance C1, C30, said high stable reference power supply LM4040BIM3-2.5, comparator LM2903AVQPWRQ1, or gate SN74LVC1G32DBV, flip-flop SN74LVC2G74DCT are used to obtain the pulse width modulated signal, said operational amplifier AD706 is used to convert the obtained pulse width modulated signal into a voltage signal, comparator LM 3AVQPWRQ1 in said pulse width modulated circuit provides the clock input for D flip-flop LVC2G74DCT through or gate SN 1G32 DBV.
Preferably, the capacitor C45 in the pulse width modulation circuit is used for removing high-frequency glitches on the clock signal.
Preferably, the operating range adjusting circuit comprises a potentiometer for user adjustment of the adjustment bias voltage.
Preferably, the power-on anti-deadlock circuit comprises a transistor Q2, resistors R34, R33 and a capacitor C4.
Compared with the prior art, the invention has the beneficial effects that: the detection circuit of the capacitance position sensor enables the trigger circuit to have consistency through the arranged pulse width modulation circuit, improves the stability of a system, reduces the noise of the system, prevents deadlock caused by misoperation of the system, can realize the function of preventing power-on deadlock by the arranged power-on anti-deadlock circuit, is provided with the working range adjusting circuit, facilitates users to adjust the detectable capacitance change range and enables the capacitance change range to work at the optimal working point.
Drawings
FIG. 1 is a schematic structural view of the present invention;
FIG. 2 is a pulse width modulation circuit according to the present invention;
FIG. 3 is a power-on anti-deadlock circuit of the present invention;
Detailed Description
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.
Referring to fig. 1-3, the present invention provides a technical solution: a capacitance position sensor detection circuit comprises a capacitance sensing head, a pulse width modulation circuit, a filter circuit, a power-on anti-deadlock circuit, a working range adjusting circuit, an output drive and a collision detection circuit, wherein the capacitance sensing head is connected to the pulse width modulation circuit, the pulse width modulation circuit is used for obtaining a pulse width modulation signal related to the position of a measured workpiece, the power-on anti-deadlock circuit is used for preventing the occurrence of circuit deadlock, the filter circuit is used for converting the signal into a voltage signal and removing noise, the working range adjusting circuit is convenient for a user to adjust a detectable capacitance change range, the output drive is used for providing stable voltage output for a subsequent control system to use, the collision detection circuit is used for providing collision output indication, and the pulse width modulation circuit comprises resistors R1, R2, diodes D1 and D2, a capacitor C1, a voltage sensor, a working range adjusting circuit and a collision detection circuit, C30, high stable reference power supply LM4040BIM3-2.5, comparator LM2903AVQPWRQ1, or gate SN74LVC1G32DBV, flip-flop SN74LVC2G74DCT and operational amplifier AD706, said R2 and D2 charge and discharge the sensor head capacitance, said R1 and D1 charge and discharge capacitance C1, C30, said high stable reference power supply LM4040BIM3-2.5, comparator LM2903AVQPWRQ1, or gate SN74LVC1G32DBV, flip-flop SN74LVC2G74DCT are used to obtain the pulse width modulated signal, said operational amplifier AD706 is used to convert the obtained pulse width modulated signal into a voltage signal, comparator LM 3AVQPWRQ1 in said pulse width modulated circuit provides the clock input for D flip-flop LVC2G74DCT through or gate SN 1G32 DBV.
Further, a capacitor C45 in the pulse width modulation circuit is used for removing high-frequency glitch on the clock signal.
Further, the operating range adjusting circuit comprises a potentiometer for user adjustment of the adjustment bias voltage.
Further, the power-on anti-deadlock circuit comprises a transistor Q2, resistors R34, R33 and a capacitor C4.
The working principle is as follows: the invention relates to a capacitance position sensor detection circuit, which is characterized in that when the detection circuit works, a set pulse width modulation circuit charges and discharges a capacitance sensing head through R2 and D2, charges and discharges capacitors C1 and C30 with high temperature stability through R1 and D1, then obtains a pulse width modulation signal through a high-stability reference power supply LM4040BIM3-2.5, a comparator LM2903AVQPWRQ1, an OR gate SN74LVC1G32DBV and a trigger SN74LVC2G74DCT, and the signal is converted into a voltage signal through a two-stage filter circuit consisting of an operational amplifier AD706 and is filtered. Wherein a user can adjust the bias voltage through a potentiometer in the operating range adjustment circuit to change the measurable capacitance variation range. One path of the filtered signal is clamped and then driven to be output by an operational amplifier AD706, the other path of the filtered signal outputs a collision detection output signal with a selectable high and low level through a comparator LM2903AVQPWRQ1, and meanwhile, different from the traditional pulse width modulation circuit, the output of the comparator LM2903AVQPWRQ1 in the pulse width modulation circuit is not directly used as the input of an RS trigger, but provides clock input for a D trigger SN74LVC2G74DCT through an OR gate SN74LVC1G32DBV, so that a trigger circuit has consistency, the stability of a system is improved, and the noise of the system is reduced. The capacitor C45 can remove high-frequency burrs on a clock signal, deadlock caused by system misoperation is prevented, when the system is powered on, the power-on deadlock prevention circuit enables a clock of the trigger SN74LVC2G74DCT to be in a non-working state by placing the clock at a low level through the AND gate U2, and until the system is powered on, the output of the comparator LM2903AVQPWRQ1 can be used as the clock to cause state conversion of the trigger SN74LVC2G74, so that the function of preventing the DCT from being powered on deadlock is realized.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.