Intelligent calibratable proximity switch
By using a circuit system consisting of a calibrator and a proximity switch with an intelligent calibrable proximity switch, the problem of inability to adjust distance changes after potting adhesive was solved, thereby improving product consistency and accuracy and reducing scrap rate.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-03
- Publication Date
- 2026-04-10
AI Technical Summary
Existing inductive proximity switches cannot be adjusted after the distance changes due to potting compound, resulting in poor factory consistency, low pass rate, and high scrap rate.
A smart calibrable proximity switch is adopted. The calibrator is connected to the proximity switch. The calibration signal receiving and correction system, which consists of MCU, temperature compensation circuit, output and protection circuit, records and stores the reference voltage signal to correct the distance drift after potting.
This technology enables the re-correction of distance drift after glue application, improving product consistency and accuracy and reducing scrap rate.
Smart Images

Figure CN111786665B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of proximity switches, in particular to an intelligent calibratable proximity switch. BACKGROUND
[0002] The inductive proximity switch, also known as a non-contact proximity switch, is an ideal electronic switch sensor. It is accurate in positioning, has a long service life, and can adapt to harsh detection environments such as water and oil, so it is widely used in modern industry. Since the inductive sensor is relatively precise, the inductive coil and circuit components are required to be extremely high, and in addition to using the potting process, defective products cannot be repaired, and the final product scrap rate is extremely high.
[0003] The existing technology uses a potentiometer in the oscillation circuit to manually adjust Figure 10 >, to achieve consistency, but due to the small size of the switch, manual operation is difficult, and in addition, the potting glue will affect the circuit itself, and after the glue dries, the distance changes again, and the changed value cannot be adjusted, resulting in poor consistency and low pass rate. SUMMARY
[0004] The present application is to overcome the above-mentioned deficiencies, and aims to provide a technical solution to solve the above problems.
[0005] An intelligent calibratable proximity switch, comprising a calibrator and a proximity switch, the proximity switch is provided with a blue line, a black line, a brown line and three connecting lines, during calibration, the blue line is connected to the GND line of the calibrator as the power ground wire, the brown line is connected to the VCC of the calibrator as the positive power supply, and the black line is the output line of the proximity switch without the need for connection.
[0006] The proximity switch comprises a calibration signal receiving circuit, a power supply circuit, an MCU, a temperature compensation circuit, an output and protection circuit, an LED display circuit, an oscillation and integration circuit.
[0007] As a further scheme of the present application, the MCU comprises an MCU chip U1, the 13th pin of the MCU chip U1 is connected to the resistor R1 in the temperature compensation circuit, the 15th pin of the MCU chip U1 is connected to the other end of the resistor R1, the other end of the resistor R1 is connected to the temperature sensor RT1, the other end of the temperature sensor RT1 is grounded, the other end of the temperature sensor RT1 is also connected to the capacitor C3, the other end of the capacitor C3 is also connected to the 15th pin of the MCU chip U1, the 3rd pin of the MCU chip U1 is grounded, the 5th pin of the MCU chip U1 is connected to a +5V stable power supply and a capacitor C5, and the other end of the capacitor C5 is grounded.
[0008] As a further scheme of the present application: the MCU further comprises an ISP download chip P1, the first pin of the ISP download chip P1 is connected with a +5V stable power supply, the second pin of the ISP download chip P1 is connected with electricity, and the third pin of the ISP download chip P1 is connected with the 18th pin of the MCU chip U1.
[0009] As a further scheme of the present application: the calibration signal receiving circuit comprises a diode D4, the positive electrode of the diode D4 is grounded, the negative electrode of the diode D4 is connected with the first pin of the MCU chip U1, and the negative electrode of the diode D4 is also connected with one end of a resistor R2, the same end of the resistor R2 connected with the diode D4 is also connected with a resistor R3, the other end of the resistor R3 is grounded, and the other end of the resistor R2 is connected with a stable power supply.
[0010] As a further scheme of the present application: the LED display circuit comprises display lamps LED1 and LED2, the positive electrode of the display lamp LED1 and the positive electrode of the display lamp LED2 are both connected with a resistor R10, the other end of the resistor R10 is connected with a +5V stable power supply, the negative electrode of the display lamp LED1 is connected with the 19th pin of the MCU chip U1, and the negative electrode of the display lamp LED2 is connected with the 20th pin of the MCU chip U1.
[0011] As a further scheme of the present application: the output and protection circuit comprises a triode Q1, the collector of the triode Q1 is connected with the negative electrode of a diode D3, the positive electrode of the diode D3 is grounded, the base of the triode Q1 is connected with a resistor R4, the other end of the resistor R4 is connected with the 16th pin of the MCU chip U1, the emitter of the triode Q1 is connected with the base of a triode Q2, the base of the triode Q2 is also connected with a resistor R6, the other end of the resistor R6 is grounded, the collector of the triode Q2 is connected with the 17th pin of the MCU chip U1, and the emitter of the triode Q2 is grounded.
[0012] As a further scheme of the present application: the power supply circuit comprises a power supply voltage stabilizing chip U2, the GDN pin of the power supply voltage stabilizing chip U2 is grounded, the Vout pin of the power supply voltage stabilizing chip U2 is connected with a capacitor C1, the capacitor C1 is connected with a +5V stable power supply, the other end of the capacitor C1 is grounded, the Vin pin of the power supply voltage stabilizing chip U2 is connected with the negative electrode of a diode D1, the Vin pin of the power supply voltage stabilizing chip U2 is also connected with the negative electrode of a diode D2, the negative electrode of the diode D2 is also connected with a stable power supply, the positive electrode of the diode D2 is grounded, and the positive electrode of the diode D1 is connected with a stable power supply.
[0013] As a further scheme of the present application: the oscillation and integration circuit comprises: an inductor L1, a first pin of the inductor L1 is connected with ground, a second pin of the inductor L1 is connected with a resistor R7, the resistor R7 is connected with an emitter of a transistor Q3A, a base of the transistor Q3A is connected with a resistor R8, the other end of the resistor R8 is also connected with a +5V stable power supply, the base of the transistor Q3A is also connected with a base of a transistor Q3B, a collector of the transistor Q3A is connected with a resistor R9, a capacitor C6 and an eighth pin of an MCU chip U1, the other end of the resistor R9 is also connected with the +5V stable power supply, the other end of the capacitor C6 is connected with ground, a third pin of the inductor L1 is connected with an emitter of the transistor Q3B, the emitter of the transistor Q3B is also connected with a capacitor C4, the other end of the capacitor C4 is connected with ground.
[0014] As a further scheme of the present application: the MCU chip U1 comprises a power-off storage module.
[0015] Compared with the prior art, the present application has the beneficial effects that the electronic switch quantity sensor can correct the distance drift after completing the glue pouring production, realizes the consistency of products, reduces the product scrappage rate and improves the precision of products.
[0016] Additional aspects and advantages of the present application will be given in part in the following description, become apparent from the following description, or be understood through practice of the present application. BRIEF DESCRIPTION OF DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only show some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor.
[0018] Figure 1 It is a schematic diagram of the calibrator connected with the proximity switch in the present application.
[0019] Figure 2 It is a circuit schematic diagram of the MCU in the present application.
[0020] Figure 3 It is a schematic diagram of the calibration signal receiving circuit in the present application.
[0021] Figure 4 It is a schematic diagram of the LED display circuit in the present application.
[0022] Figure 5 It is a schematic diagram of the output and protection circuit in the present application.
[0023] Figure 6 is the schematic diagram of the power supply circuit in the present application.
[0024] Figure 7 is the schematic diagram of the oscillation and integration circuit in the present application.
[0025] Figure 8 is the flowchart of the present application.
[0026] Figure 9 is the schematic diagram of the timing sequence of the calibrator in the present application.
[0027] Figure 10 is the schematic diagram of the oscillation loop in the prior art. DETAILED DESCRIPTION
[0028] The technical solutions in the embodiments of the present application will be clearly and completely described below. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.
[0029] Please refer to Figures 1-8 In the embodiments of the present application, the intelligent calibratable proximity switch comprises a calibrator and a proximity switch, and the proximity switch is provided with a blue line, a black line, a brown line and three connecting lines. When calibration is performed, the blue line is connected with the GND line of the calibrator as the power ground line, the brown line is connected with the VCC of the calibrator as the positive power supply, and the black line is the output line of the proximity switch without the need of connection.
[0030] The proximity switch comprises a calibration signal receiving circuit, a power supply circuit, an MCU, a temperature compensation circuit, an output and protection circuit, an LED display circuit and an oscillation and integration circuit.
[0031] The MCU comprises an MCU chip U1, the 13th pin of the MCU chip U1 is connected with the resistor R1 in the temperature compensation circuit, the 15th pin of the MCU chip U1 is connected with the other end of the resistor R1, the other end of the resistor R1 is connected with a temperature sensor RT1, the other end of the temperature sensor RT1 is grounded, the other end of the temperature sensor RT1 is also connected with a capacitor C3, the other end of the capacitor C3 is also connected with the 15th pin of the MCU chip U1, the 3rd pin of the MCU chip U1 is grounded, the 5th pin of the MCU chip U1 is connected with a +5V stable power supply and a capacitor C5, and the other end of the capacitor C5 is grounded.
[0032] The MCU further comprises an ISP download chip P1, the 1st pin of the ISP download chip P1 is connected with a +5V stable power supply, the 2nd pin of the ISP download chip P1 is connected with electricity, and the 3rd pin of the ISP download chip P1 is connected with the 18th pin of the MCU chip U1.
[0033] The calibration signal receiving circuit comprises a diode D4, the positive electrode of which is grounded, the negative electrode of which is connected with the first pin of the MCU chip U1, and the negative electrode of which is also connected with one end of the resistor R2, the same end of the resistor R2 connected with the diode D4 is also connected with the resistor R3, the other end of the resistor R3 is grounded, and the other end of the resistor R2 is connected with the stable power supply.
[0034] The LED display circuit comprises display lamps LED1 and LED2, the positive electrodes of the display lamps LED1 and LED2 are connected with the resistor R10, the other end of the resistor R10 is connected with the stable power supply of +5V, the negative electrode of the display lamp LED1 is connected with the 19th pin of the MCU chip U1, and the negative electrode of the display lamp LED2 is connected with the 20th pin of the MCU chip U1.
[0035] The output and protection circuit comprises a triode Q1, the collector of which is connected with the negative electrode of the diode D3, the positive electrode of the diode D3 is grounded, the base of the triode Q1 is connected with the resistor R4, the other end of the resistor R4 is connected with the 16th pin of the MCU chip U1, the emitter of the triode Q1 is connected with the base of the triode Q2, the base of the triode Q2 is also connected with the resistor R6, the other end of the resistor R6 is grounded, the collector of the triode Q2 is connected with the 17th pin of the MCU chip U1, and the emitter of the triode Q2 is grounded.
[0036] The power supply circuit comprises a power supply voltage stabilizing chip U2, the GDN pin of which is grounded, the Vout pin of which is connected with the capacitor C1, the capacitor C1 is connected with the stable power supply of +5V, the other end of the capacitor C1 is grounded, the Vin pin of the power supply voltage stabilizing chip U2 is connected with the negative electrode of the diode D1, the Vin pin of the power supply voltage stabilizing chip U2 is also connected with the negative electrode of the diode D2, the negative electrode of the diode D2 is also connected with the stable power supply, the positive electrode of the diode D2 is grounded, and the positive electrode of the diode D1 is connected with the stable power supply.
[0037] The oscillation and integration circuit comprises: an inductor L1, a first pin of the inductor L1 being grounded, a second pin of the inductor L1 being connected with a resistor R7, the resistor R7 being connected with an emitter of a transistor Q3A, a base of the transistor Q3A being connected with a resistor R8, the other end of the resistor R8 being further connected with a +5V stable power supply, the base of the transistor Q3A being further connected with a base of a transistor Q3B, a collector of the transistor Q3A being connected with a resistor R9, a capacitor C6 and an eighth pin of an MCU chip U1, the other end of the resistor R9 being further connected with the +5V stable power supply, the other end of the capacitor C6 being grounded, a third pin of the inductor L1 being connected with an emitter of the transistor Q3B, the emitter of the transistor Q3B being further connected with the capacitor C4, the other end of the capacitor C4 being grounded.
[0038] The MCU chip U1 comprises a power-off storage module.
[0039] The working principle of the present application is that the main function of the calibrator is to provide power supply for the proximity switch and send a calibration signal, after the proximity switch receives the calibration signal of the calibrator, a voltage signal generated by the oscillation and integration circuit is recorded as a reference, and the reference is stored in the power-off storage module, the proximity switch reads the reference from the power-off storage module after each power-on, and compares the reference with a voltage signal generated by the existing oscillation and integration circuit. If the reference signal is exceeded, the output is output, otherwise, the output is not output.
[0040] When the calibration button of the calibrator is pressed, the calibrator can output 31V and 20V two groups of power supply voltage for switching, the calibrator outputs 31V after power-on, when the calibration button is pressed, 20V is output and delayed for 100mS, then 31V is output and delayed for 25mS, then 20V is output and delayed for 25mS, then 31V is output and delayed for 25mS, then 20V is output and delayed for 25mS, then 31V is output, the calibration signal is sent, and the calibration signal sending timing of the calibrator is as follows: Figure 9The whole calibration process needs 200mS. The time sequence method is used to prevent misoperation. When the proximity switch is powered on, it is detected whether the power voltage is higher than 30V. If it is higher than 30V, the calibration device is connected (the voltage range used by the user is 10-28V). If it is not higher than 30V, it directly enters the normal use mode. If it is 30V, it is interrupted every 1mS to detect whether the power voltage is lower than 21V. If the signal lower than 21V is not detected within 10 seconds, it directly exits the calibration and enters the normal use mode. When the signal lower than 21V is detected within 10 seconds, it starts timing. After 112mS, it is detected whether the voltage is higher than 30V. After 25mS, it is detected whether the voltage is lower than 20V. After 25mS, it is detected whether the voltage is higher than 30V. After 25mS, it is detected whether the voltage is lower than 20V. If all the conditions are met, it enters the calibration mode, starts sampling the sensor signal voltage, takes the voltage as the reference voltage, stores the voltage in the power-off storage module, and then exits the calibration mode and enters the normal use mode. If not, it exits the calibration mode and enters the normal use mode.
[0041] It will be obvious to a person skilled in the art that the application is not limited to the details of the above-described exemplary embodiments, but that the application can be implemented in other concrete forms without departing from the spirit or essential characteristics of the application. The embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the above description, and it is therefore intended that all changes and modifications that come within the meaning and range of equivalents of the claims are to be embraced by the application. Any reference signs in the claims should not be construed as limiting the claims to the figures in which the reference signs are used.
Claims
1. An intelligent indexable proximity switch characterized by, The utility model relates to a kind of calibration device and proximity switch, and the proximity switch It is provided with blue line, black line, brown line, three connection lines, when calibration, blue line is connected with the GND line of calibrator, brown line is connected with the VCC of calibrator, black line is proximity switch output line, without connection; The proximity switch includes: calibration signal receiving circuit, power supply circuit, MCU, temperature compensation circuit, output and protection circuit, LED display circuit, oscillation and integration circuit; The MCU includes: MCU chip U1, the resistance R1 in the temperature compensation circuit is connected to the 13th pin of MCU chip U1, the other end of resistance R1 is connected to the 15th pin of MCU chip U1, the other end of temperature sensor RT1 is connected to the other end of resistance R1, the other end of temperature sensor RT1 is grounded, the other end of temperature sensor RT1 is also connected to capacitor C3, the other end of capacitor C3 is also connected to the 15th pin of MCU chip U1, the 3rd pin of MCU chip U1 is grounded, the 5th pin of MCU chip U1 is connected to +5V stable power supply and capacitor C5, the other end of capacitor C5 is grounded; The calibration signal receiving circuit includes: diode D4, the anode of diode D4 is grounded, the cathode of diode D4 is connected to the 1st pin of MCU chip U1, the cathode of diode D4 is also connected to one end of resistance R2, the same end connected to diode D4 is also connected to resistance R3, the other end of resistance R3 is grounded, the other end of resistance R2 is connected to stable power supply; The oscillation and integration circuit includes: inductor L1, the 1st pin of inductor L1 is grounded, the 2nd pin of inductor L1 is connected to resistance R7, resistance R7 is connected to the emitter of triode Q3A, the base of triode Q3A is connected to resistance R8, the other end of resistance R8 is also connected to +5V stable power supply, the base of triode Q3A is also connected to the base of triode Q3B, the collector of triode Q3A is connected to resistance R9, capacitor C6 and the 8th pin of MCU chip U1, the other end of resistance R9 is also connected to +5V stable power supply, the other end of capacitor C6 is grounded, the 3rd pin of inductor L1 is connected to the emitter of triode Q3B, the emitter of triode Q3B is also connected to capacitor C4, the other end of capacitor C4 is grounded. The MCU also includes: ISP download chip P1, the 1st pin of ISP download chip P1 is connected to +5V stable power supply, the 2nd pin of ISP download chip P1 is connected to electricity, the 3rd pin of ISP download chip P1 is connected to the 18th pin of MCU chip U1.
2. The intelligent indexable proximity switch of claim 1, wherein, The LED display circuit includes display lamp LED1 and display lamp LED2, the anode of display lamp LED1 and the anode of display lamp LED2 are both connected to resistance R10, the other end of resistance R10 is connected to +5V stable power supply, the cathode of display lamp LED1 is connected to the 19th pin of MCU chip U1, the cathode of display lamp LED2 is connected to the 20th pin of MCU chip U1.
3. The smart indexable proximity switch of claim 1 or 2, wherein, 4. The smart indexable proximity switch of claim 1, wherein, The output and protection circuit comprises a transistor Q1, a negative electrode of a diode D3 connected with a collector of the transistor Q1, a positive electrode of the diode D3 grounded, a base of the transistor Q1 connected with a resistor R4, the other end of the resistor R4 connected with a 16th pin of an MCU chip U1, an emitter of the transistor Q1 connected with a base of a transistor Q2, the base of the transistor Q2 also connected with a resistor R6, the other end of the resistor R6 grounded, a collector of the transistor Q2 connected with a 17th pin of the MCU chip U1, and an emitter of the transistor Q2 grounded.
5. The intelligent indexable proximity switch of claim 1, wherein, The power supply circuit comprises a power supply voltage stabilizing chip U2, a GDN pin of the power supply voltage stabilizing chip U2 grounded, a Vout pin of the power supply voltage stabilizing chip U2 connected with a capacitor C1, the capacitor C1 connected with a stable power supply of +5V, the other end of the capacitor C1 grounded, a Vin pin of the power supply voltage stabilizing chip U2 connected with a negative electrode of a diode D1, the Vin pin of the power supply voltage stabilizing chip U2 also connected with a negative electrode of a diode D2, the negative electrode of the diode D2 also connected with a stable power supply, a positive electrode of the diode D2 grounded, and a positive electrode of the diode D1 connected with the stable power supply.
6. The intelligent indexable proximity switch of claim 1, wherein, The MCU chip U1 comprises a power-off storage module.
Citation Information
Patent Citations
Device for detecting working state of electromagnetic valve
CN106153086A