A sensor, a method and an apparatus for detecting a state of the sensor

By designing a sensor comprising a housing, a magnetic component, and a sensing component, which detects changes in current by utilizing changes in magnetic field, the problem of poor performance of proximity switches on metal doors is solved, achieving stable and rapid detection of the door's open and closed state.

CN118533202BActive Publication Date: 2025-11-28THE 711TH RES INST OF CHINA STATE SHIPBUILDING CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410524941.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2025-11-28
Estimated Expiration
2044-04-29

AI Technical Summary

Technical Problem

In the prior art, proximity switches used on metal doors, such as inductive, capacitive and photoelectric proximity switches, do not work well on metal surfaces, are easily interfered with, and are difficult to effectively detect the opening and closing status of the door.

Method used

Design a sensor including a housing, a magnetic component, a sensing component, and a circuit board. The magnetic component provides a magnetic field, the sensing component senses changes in the magnetic field to generate an electrical signal, and the circuit board adjusts the current to detect the opening and closing state of the door. The sensing circuit uses a Hall element and a resistor to determine the state by detecting changes in the current.

Benefits of technology

It enables stable, rapid, and interference-resistant detection of the opening and closing status of metal doors, meeting the monitoring needs of ship cabin doors and covers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118533202B_ABST
    Figure CN118533202B_ABST
Patent Text Reader

Abstract

The application discloses a sensor, a detection method and device of sensor state, and belongs to the technical field of sensing test. The sensor comprises a shell, a magnetic part, a sensing part and a circuit board. The magnetic part, the sensing part and the circuit board are arranged in the shell. The magnetic part provides a magnetic field and is in sliding connection with the shell. The sensing part is located in the magnetic field. When the magnetic part moves relative to the sensing part, the sensing part generates a first electric signal through the change of the magnetic field. The circuit board is provided with a sensing circuit. The sensing circuit is connected with a second electric signal as a power supply signal. Meanwhile, the sensing circuit is connected with the sensing part and the first electric signal. The current of the sensing circuit is adjusted through the first electric signal and the second electric signal. The working state of the sensor is confirmed by detecting the size of the current, and the opening and closing state of the target object is detected. The detection method comprises obtaining the current of the sensing circuit, determining the working state of the sensor through the current value, and further determining the opening and closing state of the target object.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of sensor testing, and particularly relates to a sensor, a sensor state detection method and device. BACKGROUND

[0002] At present, in order to detect the opening and closing state of a door body, most of which are made of metal, a proximity switch is generally arranged on the door body; however, the inductive proximity switch has high requirements for the stability of the frequency and amplitude of the excitation power supply, and has poor use effect on the surface of a metal object; the capacitive proximity switch has slow response speed and is sensitive to external interference; the photoelectric proximity switch is easily disturbed by light and is easily affected by pollution, so the use effect of the above proximity switches is poor. SUMMARY

[0003] The application aims to solve the technical problem that there is no suitable proximity switch for a door body made of metal in the prior art.

[0004] Technical scheme: In a first aspect, an embodiment of the application provides a sensor, comprising:

[0005] a shell;

[0006] a magnetic part, which is in sliding connection with the shell, and is configured to provide a magnetic field;

[0007] a sensing part, which is connected with the shell, is arranged in the magnetic field, and is configured to sense the change of the magnetic field to generate a first electric signal;

[0008] a circuit board, which is connected with the shell, and has a sensing circuit arranged thereon, the sensing circuit being configured to adjust its current in combination with the first electric signal and a second electric signal, the second electric signal being a power supply signal;

[0009] wherein the sensing part comprises a first terminal, a second terminal and a third terminal, the second terminal being configured to output the first electric signal, and the third terminal being configured to be grounded; the sensing circuit comprises a first resistor and a second resistor, the first resistor and the second resistor being configured to be connected to the second electric signal, the first resistor being connected with the first terminal, and the second resistor being connected with the second terminal.

[0010] In some embodiments, the sensing part comprises a Hall element.

[0011] In some embodiments, the circuit board further has a power supply circuit arranged thereon, the power supply circuit being connected with the sensing circuit, and being configured to be connected with an external power supply to output the second electric signal.

[0012] In some embodiments, the power supply circuit comprises:

[0013] a rectifier module configured to connect an external power supply and output a third electrical signal;

[0014] a voltage stabilizing module connected to the rectifier module, the voltage stabilizing module configured to receive the third electrical signal and output a second electrical signal;

[0015] an explosion-proof module connected to the voltage stabilizing module.

[0016] In some embodiments, the explosion-proof module comprises:

[0017] a first diode connected in parallel to the voltage stabilizing module;

[0018] a second diode connected in parallel to the first diode.

[0019] In some embodiments, the voltage stabilizing module comprises:

[0020] a first capacitor having one end connected to the rectifier module and the other end grounded, the first capacitor configured to receive the third electrical signal and output a fourth electrical signal;

[0021] a voltage stabilizer connected in parallel to the first capacitor, the voltage stabilizer configured to receive the fourth electrical signal and output a fifth electrical signal;

[0022] a second capacitor having one end connected to the voltage stabilizer and the other end grounded, the second capacitor configured to receive the fifth electrical signal and output the second electrical signal.

[0023] In some embodiments, the housing has a cavity and a first through-hole in communication with the cavity; the magnetic member, the inductive member, and the circuit board are disposed in the cavity.

[0024] Further comprising:

[0025] a cover plate connected to the housing and covering the first through-hole;

[0026] a first sealing member disposed between the cover plate and the housing, the first sealing member configured to seal the connection between the cover plate and the housing.

[0027] In some embodiments, the housing further has a second through-hole in communication with the cavity.

[0028] The trigger mechanism is arranged in the second through hole and connected with the magnetic member, and at least a part of the trigger mechanism is arranged outside the cavity.

[0029] In some embodiments, the trigger mechanism comprises:

[0030] The connecting member is arranged in the cavity and connected with the magnetic member;

[0031] The contact member is arranged in the first direction and arranged in the second through hole and connected with the connecting member, and an outer wall of the contact member is sealingly connected with an inner wall of the second through hole; and at least a part of the contact member is arranged outside the shell.

[0032] In some embodiments, the trigger mechanism further comprises a spring arranged in the cavity and arranged in the first direction.

[0033] One end of the spring is connected with an inner wall of the cavity, and the other end of the spring is connected with the connecting member.

[0034] In some embodiments, the shell further has a third through hole communicating with the cavity, and the third through hole is configured to provide a wiring channel.

[0035] Further comprising:

[0036] An explosion-proof hose;

[0037] An explosion-proof packing box, one end of the explosion-proof packing box is connected with the shell and communicates with the third through hole, and the other end of the explosion-proof packing box is connected with the explosion-proof hose.

[0038] In some embodiments, the shell further has a fourth through hole communicating with the cavity.

[0039] Further comprising a second sealing member connected with the shell, arranged in the fourth through hole and sealing the fourth through hole.

[0040] In a second aspect, the embodiments of the present application further provide a sensor state detection method based on any one of the first aspect, comprising the following steps:

[0041] Determining the current of the inductive circuit;

[0042] In response to the current satisfying a preset first current threshold, determining that the sensor is in a first state, and when the sensor is in the first state, the magnetic member is close to the inductive member.

[0043] determining that the sensor is in a second state in response to the current satisfying a preset second current threshold, the magnetic member being away from the inductive member when the sensor is in the second state;

[0044] determining that the sensor is in a third state in response to the current satisfying a preset third current threshold, the third state being a fault state of the sensor.

[0045] In a third aspect, the embodiments of the present application further provide a sensor state detection device, comprising:

[0046] a first module configured to determine a current of an inductive circuit;

[0047] a second module configured to determine that the sensor is in a first state in response to the current satisfying a preset first current threshold, the magnetic member being close to the inductive member when the sensor is in the first state; determine that the sensor is in a second state in response to the current satisfying a preset second current threshold, the magnetic member being away from the inductive member when the sensor is in the second state; determine that the sensor is in a third state in response to the current satisfying a preset third current threshold, the third state being a fault state of the sensor.

[0048] Advantages: Compared with the prior art, the sensor provided by the embodiments of the present application comprises a shell, a magnetic member, an inductive member and a circuit board, the magnetic member, the inductive member and the circuit board are arranged in the shell, the magnetic member provides a magnetic field and is in sliding connection with the shell, the inductive member is located in the magnetic field, the inductive member generates a first electric signal when the inductive member moves relative to the inductive member due to the change of the magnetic field, the circuit board is provided with an inductive circuit, the inductive circuit is connected with a second electric signal as a power supply signal, at the same time, the inductive circuit is connected with the inductive member and the first electric signal, the current of the inductive circuit is adjusted through the first electric signal and the second electric signal, the working state of the sensor is confirmed by detecting the size of the current, and the opening and closing state of the target object is detected; in the present application, the inductive member comprises a first terminal, a second terminal and a third terminal, the inductive circuit comprises a first resistor and a second resistor, the first resistor and the second resistor are connected in parallel and connected with the second electric signal, the first resistor is connected with the first terminal, and the second resistor is connected with the second terminal, after the magnetic member moves and the inductive member senses the change of the magnetic field, the first electric signal is generated, at this time, only the first resistor is connected with the circuit, the current in the inductive circuit changes, the working state of the sensor is obtained by detecting the current in the inductive circuit.

[0049] The embodiment of the present application provides a sensor state detection method, which is used for detecting the working state of the sensor provided by the embodiment of the present application. The detection method first acquires the current of an induction circuit in the sensor. When the current meets a first current threshold, a magnetic part is close to the induction part. When the current meets a second current threshold, the magnetic part is away from the induction part. When the current meets a third current threshold, the sensor is in a fault state. The working state of the sensor is determined by detecting the current value of the induction circuit in the sensor, and then the opening and closing state of the target object is determined. BRIEF DESCRIPTION OF DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.

[0051] Figure 1 The front view of the sensor provided by the embodiment of the present application is shown in the figure.

[0052] Figure 2 The partial sectional view of the sensor provided by the embodiment of the present application is shown in the figure.

[0053] Figure 3 The top view of the sensor provided by the embodiment of the present application is shown in the figure.

[0054] Figure 4 The structural diagram of the application case of the sensor provided by the embodiment of the present application is shown in the figure.

[0055] Figure 5 The circuit diagram of the power supply circuit in the sensor provided by the embodiment of the present application is shown in the figure.

[0056] Figure 6 The circuit diagram of the induction circuit in the sensor provided by the embodiment of the present application is shown in the figure.

[0057] Figure 7 The step flow chart of the sensor state detection method provided by the embodiment of the present application is shown in the figure.

[0058] Figure 8 The module connection diagram of the sensor state detection device provided by the embodiment of the present application is shown in the figure.

[0059] 100, housing; 110, chamber; 120, first through hole; 130, second through hole; 140, third through hole; 150, fourth through hole; 200, magnetic piece; 300, inductive piece; 310, first terminal; 320, second terminal; 330, third terminal; 500, circuit board; 510, induction circuit; 511, first resistor; 512, second resistor; 520, power supply circuit; 521, rectifier module; 522, voltage stabilizing module; 5221, first capacitor; 5222, voltage stabilizer; 5223, second capacitor; 523, explosion-proof module; 5231, first diode; 5232, second diode; 600, cover plate; 700, first sealing piece; 800, triggering mechanism; 810, connecting piece; 820, contact piece; 830, spring; 900, explosion-proof hose; 1000, explosion-proof stuffing box; 1100, second sealing piece; X, first direction; 1, first module; 2, second module. DETAILED DESCRIPTION

[0060] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person skilled in the art without creative work fall within the scope of protection of the present application.

[0061] The sensor provided by the embodiments of the present application can be applied in a ship explosive gas environment, and used as an indicator of a hatch door switch. The opening and closing states of the hatch door are reflected by the working state of the sensor, so as to achieve the purpose of monitoring the state of the hatch door. Specifically, the sensor of the present application can be arranged on a target object with opening and closing states such as a door and a cover. When the sensor of the present application is applied to a door, the sensor of the present application is installed on a door frame to monitor the opening and closing state of the door body; when the sensor of the present application is applied to a cover, the sensor of the present application is installed on a cover frame to monitor the opening and closing state of the cover body.

[0062] Please refer to Figures 1 to 6The embodiment of the application provides a sensor, which comprises a shell 100, a magnetic piece 200, an inductive piece 300 and a circuit board 500, the magnetic piece 200, the inductive piece 300 and the circuit board 500 are arranged in the shell 100, the magnetic piece 200 provides a magnetic field and is slidably connected with the shell 100, the inductive piece 300 is located in the magnetic field, the inductive piece 300 generates a first electric signal through the change of the magnetic field when the magnetic piece 200 moves relative to the inductive piece 300, the circuit board 500 is provided with an induction circuit 510, the induction circuit 510 is connected with a second electric signal as a power supply signal, meanwhile, the induction circuit 510 is connected with the inductive piece 300 and the first electric signal, the current of the induction circuit 510 is adjusted through the first electric signal and the second electric signal, the working state of the sensor is confirmed by detecting the size of the current, and the opening and closing state of a target object is detected; in the application, the inductive piece 300 comprises a first terminal 310, a second terminal 320 and a third terminal 330, the induction circuit 510 comprises a first resistor 511 and a second resistor 512, the first resistor 511 and the second resistor 512 are connected in parallel and connected with the second electric signal, the first resistor 511 is connected with the first terminal 310, the second resistor 512 is connected with the second terminal 320, after the magnetic piece 200 moves and the inductive piece 300 senses the change of the magnetic field, the first electric signal is generated, at this time, only the first resistor 511 is connected with the circuit, the current in the induction circuit 510 changes, the working state of the sensor is obtained by detecting the current in the induction circuit 510.

[0063] See Figure 2 and Figure 6In some embodiments, the sensing element 300 can be a Hall element, and the magnetic element 200 can be a magnetic steel. The Hall element is fixedly connected to the shell 100. When the magnetic steel moves relative to the shell 100, the relative position of the Hall element and the magnetic steel changes, and the position of the Hall element in the magnetic field also changes. The Hall element generates a first electrical signal based on the Hall effect. The first electrical signal is output to the sensing circuit 510 through the second terminal 320 to change the current value of the sensing circuit 510, and the state of the sensor is determined based on the different current values. Specifically, when the present application is applied to target opening and closing detection, in the Hall element, the first terminal 310 is an input terminal, and the first terminal 310 is connected to the Hall element through the first resistor 511 to supply a power signal. When the target is closed, the magnetic steel is close to the Hall element under the abutment of the target, and based on the Hall effect, the Hall element outputs a low level. At this time, the first resistor 511 and the second resistor 512 are connected to the sensing circuit 510, and the sensing circuit 510 has a first current value; when the door is opened, the magnetic steel loses the abutment of the door body, and the magnetic steel moves away from the Hall element, and based on the Hall effect, the Hall element outputs a high level, i.e., the first electrical signal. At this time, both ends of the second resistor 512 are connected to a positive voltage, and due to the lack of potential difference, no current flows through the second resistor 512. At this time, only the first resistor 511 is connected to the sensing circuit 510, and the sensing circuit 510 has a second current value. The state of the magnetic steel relative to the Hall element in the sensor is determined based on the different current values of the sensing circuit 510, so as to determine whether the target is in a closed state or an open state. Specifically, the Hall element in the present application is an HJ1 type Hall element, and outputs a digital signal.

[0064] Please refer to Figure 2 , Figure 5 and Figure 6 In some embodiments, the circuit board 500 is also provided with a power supply circuit 520 connected to the sensing circuit 510. The power supply circuit 520 is used to adjust the power supply signal, and the power supply circuit 520 is configured to connect an external power supply and output a second electrical signal. Specifically, when the external power supply is an alternating current power supply, the power supply circuit 520 is connected to the external alternating current power supply, and the alternating current power supply is rectified and stabilized to generate a direct current signal available for the sensing circuit 510, i.e., a second electrical signal, to supply power to the sensing circuit 510.

[0065] Please refer to Figure 5In some embodiments, the power supply circuit 520 is configured to convert the external power supply current into direct current for rectification operation, and the rectification module 521 is arranged in the power supply circuit 520. Specifically, in the present application, the rectification module 521 is a single-phase bridge rectifier, the AC input end of the single-phase bridge rectifier is connected to the external AC power supply, the negative polarity output end of the single-phase bridge rectifier is grounded, and the positive polarity output end of the single-phase bridge rectifier is connected to the voltage stabilizing module 522 to output the rectified pulsating direct current, i.e., the third electric signal, to the voltage stabilizing module 522.

[0066] Referring to Figure 5 In some embodiments, the power supply circuit 520 is configured to stabilize the voltage variation range of the third electric signal for voltage stabilizing operation to generate direct current with a more stable amplitude, i.e., the second electric signal. The power supply circuit 520 is provided with the voltage stabilizing module 522, which is connected to the rectification module 521, receives the third electric signal, and outputs the second electric signal.

[0067] Referring to Figure 5 In some embodiments, the voltage stabilizing module 522 includes a first capacitor 5221, one end of which is connected to the positive polarity output end of the single-phase bridge rectifier, and the other end of which is grounded. After receiving the third electric signal, the first capacitor 5221 filters out high-frequency noise and interference in the third electric signal as an input end filter capacitor to generate a fourth electric signal. Specifically, in the present application, the first capacitor 5221 is a ceramic capacitor with a capacitance value of 0.01uf and a voltage rating of 35V.

[0068] Referring to Figure 5 In some embodiments, the voltage stabilizing module 522 further includes a voltage stabilizer 5222 connected in parallel with the first capacitor 5221 to receive the fourth electric signal, adjust the voltage amplitude of the fourth electric signal, and generate a fifth signal with a more stable amplitude. The input end of the voltage stabilizer 5222 is connected to one end of the first capacitor 5221 and connected to the single-phase bridge rectifier through the first capacitor 5221. Specifically, in the present application, the voltage stabilizer 5222 is a low dropout voltage regulator with a model number of LM2931AD-5.02R2G, which performs voltage stabilizing operation on the fourth signal.

[0069] Referring to Figure 5In some embodiments, the voltage stabilizing module 522 further comprises a second capacitor 5223, one end of the second capacitor 5223 is connected to the output end of the voltage stabilizer 5222, and the other end of the second capacitor 5223 is grounded to receive the fifth signal as an output end filtering capacitor to further filter the high-frequency noise and ripple of the fifth signal to generate a second electric signal. Specifically, the second capacitor 5223 in the present application is an electrolytic capacitor, the positive electrode of the electrolytic capacitor is externally connected to a 5V voltage, at the same time, the positive electrode of the electrolytic capacitor is connected to the output end of the voltage stabilizer 5222, in the present application, the electrolytic capacitor is a solid tantalum capacitor, the capacitance value of which is 22uf, and the voltage rating is 16V.

[0070] Referring to Figure 5 In some embodiments, the power supply circuit 520 is provided with an explosion-proof module 523 for the purpose of explosion prevention and double power supply protection to prevent voltage overvoltage, and the explosion-proof module 523 is connected to the voltage stabilizing module 522.

[0071] Referring to Figure 5 In some embodiments, the explosion-proof module 523 comprises a first diode 5231 and a second diode 5232, the first diode 5231 is connected in parallel to the voltage stabilizing module 522, and the second diode 5232 is connected in parallel to the first diode 5231. Specifically, the first diode 5231 and the second diode 5232 are both voltage stabilizing diodes, the maximum power of the first diode 5231 and the second diode 5232 is 1.5w, and the reverse breakdown voltage of the first diode 5231 and the second diode 5232 is 5.6V.

[0072] Referring to Figure 1 In some embodiments, the power supply circuit 520 of the present application is further provided with an external wiring terminal, the external wiring terminal is connected to the AC input end of the single-phase bridge rectifier, the external wiring terminal is used to connect an external power supply, and then the external power supply is input into the single-phase bridge rectifier through the AC input end of the single-phase bridge rectifier. At the same time, the current of the power supply circuit 520 and the induction circuit 510 can be detected through the external wiring terminal, so as to determine the working state of the sensor through the current change.

[0073] Referring to Figure 2 and Figure 2 In some embodiments, the shell 100 has a cavity 110, and the magnetic member 200, the induction member 300 and the circuit board 500 are all arranged in the cavity 110 to protect the magnetic member 200, the induction member 300 and the circuit board 500.

[0074] In some embodiments, the circuit components on the circuit board 500 are made by a film coating technology, and the circuit board 500 is coated with a three-proof varnish for three-proof treatment to avoid salt mist, mold and water vapor erosion, so as to meet the three-proof requirements of marine devices working on the water surface.

[0075] Referring to Figure 1 In some embodiments, the shell 100 further has a first through hole 120, which is in communication with the shell 100. The internal components of the sensor, such as the magnetic piece 200, the inductive piece 300, and the circuit board 500, are installed into the chamber 110 of the shell 100 through the first through hole 120.

[0076] In some embodiments, two first through holes 120 are provided, and the two first through holes 120 are symmetrically arranged. The provision of two first through holes 120 can effectively improve the installation flexibility.

[0077] Referring to Figure 3 and Figure 3 In some embodiments, the sensor provided by the embodiments of the present application further includes a cover plate 600, which is connected with the shell 100 and covers the first through hole 120. Correspondingly, two cover plates 600 are provided to cover the two first through holes 120, respectively.

[0078] In some embodiments, the cover plate 600 and the shell 100 are connected and fixed by screws. Meanwhile, thread fasteners, lock washers, lock nuts, and other measures can be provided to prevent the connection from loosening, so as to meet the performance requirements of shock resistance and vibration resistance of marine devices.

[0079] Referring to Figures 1 to 4 In some embodiments, the sensor provided by the embodiments of the present application further includes a first sealing piece 700, which is arranged between the cover plate 600 and the shell 100 and is configured to seal the connection between the cover plate 600 and the shell 100. Correspondingly, two first sealing pieces 700 are provided to be arranged at the connection between the two cover plates 600 and the first through hole 120, respectively. Specifically, to ensure the sealing performance, the first sealing piece 700 is a conductive shielding sealing gasket, which can resist external radiation, improve electromagnetic compatibility, and prevent salt mist, mold, and water vapor from invading the inside of the shell 100, so as to meet the three-proofing requirements of marine devices working on the water surface.

[0080] Referring to Figure 2 In some embodiments, the shell 100 of the present application further has a second through hole 130, which is in communication with the chamber 110. To facilitate the movement of the magnetic piece 200, the sensor of the present application further includes a trigger mechanism 800, which is arranged in the second through hole 130 and connected with the magnetic piece 200. At least part of the trigger mechanism 800 is located outside the chamber 110. When an external target object contacts the trigger mechanism 800, the trigger mechanism 800 drives the magnetic piece 200 to move.

[0081] Referring to Figure 2In some embodiments, the trigger mechanism 800 comprises a connecting piece 810 and a contact piece 820. The connecting piece 810 is arranged in the cavity 110 and connected with the magnetic piece 200. The contact piece 820 extends along the first direction X and is arranged through the second through hole 130. The contact piece 820 is connected with the connecting piece 810. The outer wall of the contact piece 820 is sealingly connected with the inner wall of the second through hole 130, so as to avoid the salt mist, mold and water vapor from eroding into the shell 100, thereby meeting the three-proof requirements of the marine device working on the water surface. At least part of the contact piece 820 is located outside the shell 100. When the external target object abuts against the contact piece 820, the contact piece 820 drives the magnetic piece 200 to move along the first direction X.

[0082] Referring to Figure 2 In some embodiments, the trigger mechanism 800 further comprises a spring 830. The spring 830 is arranged in the cavity 110 and extends along the first direction X. One end of the spring 830 is connected with the inner wall of the cavity 110, and the other end of the spring 830 is connected with the connecting piece 810. When the contact piece 820 is pressed by the target object, the connecting piece 810 is driven to move along the first direction X. At this time, the induction circuit 510 outputs a first current value. The connecting piece 810 presses the spring 830 along the first direction X. The spring 830 is forced to compress. When the target object is a door panel, it indicates that the door panel is in a closed state. After the contact piece 820 cancels the pressing on the contact piece 820, the external pressure of the spring 830 disappears. The spring 830 rebounds and resets, and drives the connecting piece 810 to move along the first direction X. At this time, the induction circuit 510 outputs a second current value. When the target object is a door panel, it indicates that the door panel is in an open state.

[0083] Referring to Figure 1 In some embodiments, the shell 100 further has a third through hole 140. The third through hole 140 is in communication with the cavity 110. The third through hole 140 is used to provide a wiring channel. The external power supply wire or signal transmission line and the like enters the cavity 110 through the third through hole 140 and is connected with the circuit board 500.

[0084] Referring to Figure 2 , Figure 4 and Figure 2 In some embodiments, in order to improve the safety of the wire harness in the third through hole 140 such as the power supply wire and the signal transmission line, the sensor provided by the embodiments of the present application further comprises an explosion-proof filler 1000 and an explosion-proof hose 900. One end of the explosion-proof filler 1000 is connected with the shell 100, and the explosion-proof filler 1000 is in communication with the third through hole 140. The other end of the explosion-proof filler 1000 is connected with the explosion-proof hose 900. The circuit such as the power supply wire and the signal transmission line sequentially passes through the explosion-proof hose 900 and the explosion-proof filler and enters the cavity 110, and then is connected with the circuit board 500 in the cavity 110, so as to realize explosion-proof protection.

[0085] Referring to Figure 7 In some embodiments, the shell 100 further has a fourth through hole 150 in communication with the chamber 110 and a second sealing member 1100 connected to the shell 100 and arranged in and sealing the fourth through hole 150 to avoid salt mist, mold and water vapor from invading the shell 100, meeting the three-proof requirements of marine devices working on the water surface; in the present application, the fourth through hole 150 is used for balancing the internal and external air pressure of the sensor, draining the accumulated water in the sensor, and performing gas permeability test and other operations, and at the same time, the internal components of the sensor can be maintained through the fourth through hole 150.

[0086] Specifically, the power supply circuit 520 of the sensor provided by the embodiments of the present application accesses external 24V alternating current, generates 5V direct current after rectification and voltage stabilization operation of the power supply circuit 520, and inputs the 5V direct current into the induction circuit 510 to provide 5V direct current for the induction circuit 510; in the present application, the first resistor 511 is a metal film resistor with R1=0Ω, which is used to limit the current of the induction circuit 510 within the working current range of the Hall element when the Hall element works, to avoid current abnormalities and damage to the Hall element, so as to achieve the purpose of explosion-proof; the second resistor 512 is a metal film resistor with R2=390Ω; taking the sensor provided by the embodiments of the present application arranged on a door as an example, when the door cover is closed and the magnetic steel is close to the Hall element, the Hall element outputs a low level, at this time, the first resistor 511 and the second resistor 512 are both connected to the circuit, and the first current value in the induction circuit 510 is 16.8mA (4+12.8=16.8mA); when the door cover is opened, the magnetic steel is far away from the Hall element, and the Hall element outputs a high level, at this time, only the first resistor 511 is connected to the circuit, so the second current value in the induction circuit 510 is 4mA; when the sensor fails, the third current value in the induction circuit 510 is lower than 1mA, the current signals in the power supply circuit 520 and the induction circuit 510 are collected through the external wiring terminal, and the opening and closing state of the door cover and the fault state of the sensor are judged through the current value.

[0087] In some embodiments, each component of the sensor provided by the embodiments of the present application is made of three-proof (moisture-proof, salt mist-proof and mold-proof) material to avoid salt mist, mold and water vapor erosion, meeting the three-proof requirements of marine devices working on the water surface.

[0088] It can be understood that the embodiment of the application provides a sensor, which comprises a shell 100, a magnetic piece 200, an inductive piece 300 and a circuit board 500, the magnetic piece 200, the inductive piece 300 and the circuit board 500 are arranged in the shell 100, the magnetic piece 200 provides a magnetic field and is in sliding connection with the shell 100, the inductive piece 300 is located in the magnetic field, the inductive piece 300 generates a first electric signal through the change of the magnetic field when the magnetic piece 200 moves relative to the inductive piece 300, the circuit board 500 is provided with an induction circuit 510, the induction circuit 510 is connected with a second electric signal as a power supply signal, at the same time, the induction circuit 510 is connected with the inductive piece 300 and the first electric signal, the current of the induction circuit 510 is adjusted through the first electric signal and the second electric signal, the working state of the sensor is confirmed by detecting the size of the current, and the opening and closing state of the target object is detected; in the application, the inductive piece 300 comprises a first terminal 310, a second terminal 320 and a third terminal 330, the induction circuit 510 comprises a first resistor 511 and a second resistor 512, the first resistor 511 and the second resistor 512 are connected in parallel and connected with the second electric signal, the first resistor 511 is connected with the first terminal 310, the second resistor 512 is connected with the second terminal 320, after the magnetic piece 200 moves and the inductive piece 300 senses the change of the magnetic field, the first electric signal is generated, at this time, only the first resistor 511 is connected with the circuit, the current in the induction circuit 510 changes, and the working state of the sensor is obtained by detecting the current in the induction circuit 510.

[0089] Correspondingly, please refer to Figure 8 The embodiment of the application also provides a sensor state detection method, which is used for detecting the working state of the sensor provided by the embodiment of the application, and specifically comprises the following steps:

[0090] Step 1: determining the current of the induction circuit 510;

[0091] Step 2: in response to the current satisfying a preset first current threshold value, it is determined that the sensor is in a first state, when the sensor is in the first state, the magnetic piece 200 is close to the inductive piece 300; in response to the current satisfying a preset second current threshold value, it is determined that the sensor is in a second state, when the sensor is in the second state, the magnetic piece 200 is away from the inductive piece 300; in response to the current satisfying a preset third current threshold value, it is determined that the sensor is in a third state, and the third state is a fault state of the sensor.

[0092] Specifically, the first current preset and the second current threshold are determined based on the working state of the first resistor 511 and the second resistor 512. Taking the case that the sensor provided by the embodiment of the present application is applied to a door as an example, when the door body is closed and the magnetic steel is close to the Hall element, the Hall element outputs a low level, at this time, the first resistor 511 and the second resistor 512 are both connected to the sensing circuit 510, the sensing circuit 510 has a first current value, the first current threshold a is confirmed based on the first current value, and at the same time, in order to improve the detection sensitivity, a margin range is added to the first current threshold a, taking the circuit parameters of the present application as an example, the first current threshold a satisfies: 16mA≤a≤18mA. When the door cover is opened, the magnetic steel is far away from the Hall element, and the Hall element outputs a high level, at this time, only the first resistor 511 is connected to the circuit, the sensing circuit 510 has a second current value, the second current threshold b is confirmed based on the second current value, and at the same time, in order to improve the detection sensitivity, a margin range is added to the second current threshold b, taking the circuit parameters of the present application as an example, the second current threshold b satisfies: 3mA≤b≤5Ma. When the sensor fails, it is confirmed that the sensing circuit 510 has a third current value, and the third current threshold c is confirmed based on the third current value, taking the circuit parameters of the present application as an example, the third current threshold c satisfies: c≤1mA.

[0093] It can be understood that the embodiment of the present application provides a sensor state detection method for detecting the working state of the sensor provided by the embodiment of the present application. The method first acquires the current of the sensing circuit 510 in the sensor. When the current satisfies the first current threshold, the magnetic member 200 is close to the sensing member 300. When the current satisfies the second current threshold, the magnetic member 200 is far away from the sensing member 300. When the current satisfies the third current threshold, the sensor is in a fault state. The present application determines the working state of the sensor by detecting the current value of the sensing circuit 510 in the sensor, and then determines the opening and closing state of the target object, thereby realizing the detection of the opening and closing state of the target object.

[0094] Please refer to ​ Correspondingly, the embodiment of the present application also provides a sensor state detection device for detecting the working state of the sensor provided by the embodiment of the present application, which comprises:

[0095] The first module 1 is configured to determine the current of the sensing circuit 510;

[0096] The second module 2 is configured to determine that the sensor is in a first state in response to the current satisfying a preset first current threshold, and that the magnetic member 200 is close to the sensing member 300 when the sensor is in the first state; determine that the sensor is in a second state in response to the current satisfying a preset second current threshold, and that the magnetic member 200 is far away from the sensing member 300 when the sensor is in the second state; and determine that the sensor is in a third state in response to the current satisfying a preset third current threshold, and that the third state is a fault state of the sensor.

[0097] The above describes in detail a sensor, a sensor state detection method and device provided by the embodiments of the present application. The principles and implementation manners of the present application are described by using specific examples. The above embodiment description is only used to help understand the method of the present application and its core idea. Meanwhile, for those skilled in the art, the specific implementation manners and application ranges will be changed according to the idea of the present application. In conclusion, the content of the specification should not be understood as a limitation of the present application.

Claims

1. A sensor, characterized in that, include: Casing (100); A magnetic element (200) is slidably connected to the housing (100) and is configured to provide a magnetic field. A sensor (300) is connected to the housing (100), the sensor (300) is disposed in the magnetic field, and the sensor (300) is configured to sense changes in the magnetic field to generate a first electrical signal; A circuit board (500) is connected to the housing (100). A sensing circuit (510) is provided on the circuit board (500). The sensing circuit (510) is configured to adjust its own current in combination with a first electrical signal and a second electrical signal. The second electrical signal is a power supply signal. The sensing element (300) includes a first terminal (310), a second terminal (320), and a third terminal (330). The second terminal (320) is configured to output the first electrical signal, and the third terminal (330) is configured to be grounded. The sensing circuit (510) includes a first resistor (511) and a second resistor (512). The first resistor (511) and the second resistor (512) are configured to be connected to the second electrical signal. The first resistor (511) is connected to the first terminal (310), and the second resistor (512) is connected to the second terminal (320).

2. The sensor according to claim 1, characterized in that, The sensing element (300) includes a Hall element.

3. The sensor according to claim 1, characterized in that, The circuit board (500) is also provided with a power supply circuit (520), which is connected to the sensing circuit (510). The power supply circuit (520) is configured to connect to an external power source and output a second electrical signal.

4. The sensor according to claim 3, characterized in that, The power supply circuit (520) includes: A rectifier module (521) is configured to connect to the external power supply and output a third electrical signal; A voltage regulator module (522) is connected to the rectifier module (521), and the voltage regulator module (522) is configured to receive the third electrical signal and output a second electrical signal; An explosion-proof module (523) is connected to the voltage regulator module (522).

5. The sensor according to claim 4, characterized in that, The explosion-proof module (523) includes: The first diode (5231) is connected in parallel with the voltage regulator module (522); The second diode (5232) is connected in parallel with the first diode (5231).

6. The sensor according to claim 4, characterized in that, The voltage regulator module (522) includes: A first capacitor (5221) is connected at one end to the rectifier module (521) and at the other end to ground. The first capacitor (5221) is configured to receive the third electrical signal and output a fourth electrical signal. A voltage regulator (5222) is connected in parallel with the first capacitor (5221). The voltage regulator (5222) is configured to receive the fourth electrical signal and output a fifth electrical signal. The second capacitor (5223) has one end connected to the voltage regulator (5222) and the other end grounded. The second capacitor (5223) is configured to receive the fifth electrical signal and output the second electrical signal.

7. The sensor according to claim 1, characterized in that, The housing (100) has a cavity (110) and a first through hole (120), the first through hole (120) communicating with the cavity (110); the magnetic component (200), the sensing component (300) and the circuit board (500) are all disposed in the cavity (110); Also includes: A cover plate (600) is connected to the housing (100) and covers the first through hole (120); A first seal (700) is disposed between the cover plate (600) and the housing (100), and the first seal (700) is configured to seal the connection between the cover plate (600) and the housing (100).

8. The sensor according to claim 7, characterized in that, The housing (100) also has a second through hole (130) that communicates with the chamber (110); It also includes a triggering mechanism (800) which passes through the second through hole (130) and is connected to the magnetic element (200), at least a portion of which is located outside the chamber (110).

9. The sensor according to claim 8, characterized in that, The triggering mechanism (800) includes: A connector (810) is connected to the magnetic element (200) and is disposed in the chamber (110); A contact (820) extends along a first direction (X), passes through the second through hole (130), and is connected to the connector (810). The outer wall of the contact (820) is sealed to the inner wall of the second through hole (130). At least a portion of the contact (820) is located outside the housing (100).

10. The sensor according to claim 9, characterized in that, The triggering mechanism (800) further includes a spring (830), which is disposed in the chamber (110) and extends along the first direction (X); One end of the spring (830) is connected to the inner wall of the chamber (110), and the other end of the spring (830) is connected to the connector (810).

11. The sensor according to claim 7, characterized in that, The housing (100) also has a third through hole (140) communicating with the chamber (110), and the third through hole (140) is configured to provide a wiring channel; Also includes: Explosion-proof flexible hose (900); An explosion-proof stuffing box (1000) is provided, one end of which is connected to the housing (100) and communicates with the third through hole (140), and the other end of which is connected to the explosion-proof hose (900).

12. The sensor according to claim 7, characterized in that, The housing (100) also has a fourth through hole (150) that communicates with the chamber (110); It also includes a second seal (1100), which is connected to the housing (100) and disposed in the fourth through hole (150) to seal the fourth through hole (150).

13. A method for detecting the state of a sensor based on any one of claims 1-12, characterized in that, Includes the following steps: Determine the current of the sensing circuit (510); In response to the current satisfying a preset first current threshold, the sensor is determined to be in a first state. When the sensor is in the first state, the magnetic element (200) approaches the sensing element (300). In response to the current satisfying a preset second current threshold, the sensor is determined to be in a second state. When the sensor is in the second state, the magnetic element (200) moves away from the sensing element (300). In response to the current satisfying a preset third current threshold, the sensor is determined to be in a third state, which is a fault state of the sensor.

14. A sensor state detection device, characterized in that, include: The first module (1) is configured to determine the current of the sensing circuit (510); The second module (2) is configured to determine that the sensor is in a first state in response to the current meeting a preset first current threshold, wherein when the sensor is in the first state, the magnetic element (200) is close to the sensing element (300); to determine that the sensor is in a second state in response to the current meeting a preset second current threshold, wherein when the sensor is in the second state, the magnetic element (200) is away from the sensing element (300); and to determine that the sensor is in a third state in response to the current meeting a preset third current threshold, wherein the third state is a fault state of the sensor.

Citation Information

Patent Citations

  • Motor uni-current sensor controlling method and apparatus based on four switch inversion bridge

    CN101453182A

  • System for monitoring ultrasonic elliptical vibration cutting state on line by utilizing electrical characteristic of energy transducer

    CN101712128A