Spring detection circuit, spring detection method and barrier gate

By analyzing motor state changes through detection and processing circuits, and combining hysteresis comparison and discharge circuits, the problem of difficulty in judging spring balance is solved, enabling accurate judgment of spring balance and improving equipment safety.

CN115479723BActive Publication Date: 2026-03-17GUANGDONG ANJUBAO INTELLIGENT CONTROL SYST +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-15
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Existing technology makes it difficult to accurately determine the balance of springs in access control equipment, which affects motor life and may cause equipment damage.

Method used

By using detection and processing circuits, the changes in power supply output voltage during the opening and closing of the motor are analyzed. Combined with hysteresis comparison circuits and discharge circuits, the elastic state of the spring is determined, thereby accurately judging the balance of the spring.

Benefits of technology

It enables accurate judgment of spring balance, protects motors and equipment, and improves the safety and reliability of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115479723B_ABST
    Figure CN115479723B_ABST
Patent Text Reader

Abstract

This application provides a spring detection circuit, a spring detection method, and a barrier gate thereof, belonging to the technical field of electronic circuits. The spring detection circuit, applied to access control equipment, includes a detection circuit and a processing circuit. The detection circuit is connected to the power supply in the access control equipment. The detection circuit detects first characteristic data representing the relationship between the power supply's output voltage and a preset voltage during one gate opening process, and second characteristic data representing the relationship between the power supply's output voltage and the preset voltage during one gate closing process. The processing circuit obtains the spring detection result based on the first and second characteristic data. By using the first and second characteristic data, the number of power supply state switching times during gate opening and closing can be obtained, thereby determining the spring's elasticity and accurately judging the spring's balance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of electronic circuits, and more specifically, to a spring detection circuit, a spring detection method, and a barrier gate thereof. Background Technology

[0002] Access control equipment, also known as road barriers or vehicle gates, is a device specifically designed to restrict the movement of motor vehicles on roads. It is widely used at vehicle entrances and exits in scenarios such as highway toll stations and parking lots to manage vehicle entry and exit.

[0003] The access control equipment typically includes: a motor, a barrier arm, a spring, and a power supply. The motor is used to drive the barrier arm to rise or fall, and the spring is used to keep the barrier arm stable during the rising or falling process.

[0004] Spring balancing devices are crucial for the smooth operation of access control equipment, especially gear-reducer type access control equipment. Uneven springs can affect motor lifespan and even damage the drive board. Currently, the balance of springs in the balancing device is often observed manually, but this method is difficult to accurately determine the spring balance. Summary of the Invention

[0005] This application provides a spring detection circuit, a spring detection method, and a barrier gate thereof, to solve the problem that the existing technology has difficulty in accurately determining the balance of the spring.

[0006] In a first aspect, this application provides a spring detection circuit applied to a channel access control device. The spring detection circuit includes: a detection circuit and a processing circuit. The detection circuit is connected to a power supply in the channel access control device. The detection circuit is used to detect first characteristic data representing the relationship between the output voltage of the power supply and a preset voltage during a gate opening process of the channel access control device, and to detect second characteristic data representing the relationship between the output voltage of the power supply and the preset voltage during a gate closing process of the channel access control device. The processing circuit is used to obtain the detection result of the spring based on the first characteristic data and the second characteristic data.

[0007] In this embodiment, during the opening and closing of the gate, the motor in the access control device switches between two working states: motor state and generator state. When the motor is in motor state, the output voltage of the power supply is lower than that when the motor is in generator state. The elasticity of the spring affects the working state of the motor, which in turn affects the output voltage of the power supply. Therefore, by using the first feature data and the second feature data, the number of times the power supply state switches during the opening and closing of the gate can be obtained, thereby determining the elasticity state of the spring and accurately judging the balance of the spring.

[0008] The elastic state of the spring can be determined by the number of state transitions during the opening and closing of the motor. Therefore, by comparing the output voltage of the power supply with a preset voltage, the number of state transitions during the opening and closing of the motor can be obtained, thereby determining the elastic state of the spring and achieving an accurate assessment of the spring's balance.

[0009] In conjunction with the technical solution provided in the first aspect above, in some possible implementations, the detection circuit includes: a hysteresis comparator circuit and a discharge circuit. The first terminal of the hysteresis comparator circuit is connected to the power supply, the second terminal of the hysteresis comparator circuit is used to receive the preset voltage, the output terminal of the hysteresis comparator circuit is connected to the processing circuit, the first terminal of the discharge circuit is connected to the power supply, the second terminal of the discharge circuit is connected to the output terminal of the hysteresis comparator circuit, the third terminal of the discharge circuit is grounded, and the discharge circuit is used to conduct when the hysteresis comparator circuit outputs a high voltage, so that the power supply is grounded through the discharge circuit.

[0010] In this embodiment, a hysteresis comparator circuit compares the output voltage of the power supply with a preset voltage, thereby determining the number of state transitions of the motor during the opening and closing processes using the signal output from the hysteresis comparator circuit. Simultaneously, a discharge circuit provides feedback; this feedback signal responds to the input signal of the hysteresis comparator circuit, enabling the hysteresis comparator circuit to quickly respond to the output signal and control the discharge circuit. Furthermore, the discharge circuit conducts when the hysteresis comparator circuit outputs a high voltage, allowing the power supply to be grounded through the discharge circuit, releasing excess electrical energy, protecting the power supply, and improving the safety of this solution.

[0011] In conjunction with the technical solution provided in the first aspect above, in some possible implementations, the detection circuit further includes: a second comparison circuit, a first terminal of the second comparison circuit being connected to the output terminal of the hysteresis comparison circuit, a second terminal of the second comparison circuit being used to receive a reference voltage, and an output terminal of the second comparison circuit being connected to the processing circuit, wherein the reference voltage is less than the highest voltage output by the output terminal of the hysteresis comparison circuit and greater than the lowest voltage output by the output terminal of the hysteresis comparison circuit.

[0012] In this embodiment, the output signal of the hysteresis comparator circuit is compared with the reference voltage by the second comparator circuit, and the first feature data and the second feature data are output. This limits the voltage range of the first feature data and the second feature data, preventing damage to the processing circuit due to excessively high voltage of the first feature data and the second feature data, and improving the safety of this solution.

[0013] In conjunction with the technical solution provided in the first aspect above, in some possible implementations, the hysteresis comparison circuit includes: a first comparator and a feedback circuit; the first input terminal of the first comparator is connected to the power supply; the second input terminal of the first comparator is used to receive the preset voltage; the output terminal of the first comparator is connected to the first terminal of the second comparison circuit; the first terminal of the feedback circuit is connected to the output terminal of the first comparator; and the second terminal of the feedback circuit is connected to the first input terminal of the first comparator.

[0014] In this embodiment, a hysteresis circuit is constructed by using a feedback circuit and a first comparator, which allows the turn-on voltage and turn-off voltage of the comparator to be within a certain range, thereby improving the anti-interference capability of the hysteresis comparator circuit.

[0015] In conjunction with the technical solution provided in the first aspect above, in some possible implementations, the hysteresis comparator circuit further includes: a first voltage divider circuit, the first terminal of the first voltage divider circuit being connected to the power supply, and the second terminal of the first voltage divider circuit being connected to the first input terminal of the first comparator.

[0016] In this embodiment, the output voltage of the power supply is divided by a first voltage divider circuit to reduce the voltage at the first terminal of the first comparator, thereby preventing damage to the first comparator due to excessively high input voltage.

[0017] In conjunction with the technical solution provided in the first aspect above, in some possible implementations, the second comparison circuit includes: a second voltage divider circuit and a second comparator, wherein the first terminal of the second voltage divider circuit is connected to the output terminal of the hysteresis comparison circuit; the first input terminal of the second comparator is connected to the second terminal of the second voltage divider circuit, the second input terminal of the second comparator is used to receive the reference voltage, and the output terminal of the second comparator is connected to the processing circuit.

[0018] In this embodiment, the output voltage of the hysteresis comparator circuit is divided by a second voltage divider circuit, reducing the voltage at the first terminal of the second comparator circuit and preventing damage to the second comparator due to excessively high input voltage. Simultaneously, by setting the voltage value of the second comparator output signal, the voltage values ​​of the first and second feature data can be ensured to be within the voltage tolerance range of the processing circuit, preventing damage to the processing circuit and improving the safety of this solution.

[0019] Secondly, this application provides a spring detection method, comprising: acquiring first characteristic data representing the relationship between the output voltage of the power supply of the access control device and a preset voltage during a gate opening process, and acquiring second characteristic data representing the relationship between the output voltage of the power supply and the preset voltage during a gate closing process; and obtaining the detection result of the spring based on the first characteristic data and the second characteristic data.

[0020] In conjunction with the technical solution provided in the second aspect above, in some possible implementations, obtaining the detection result of the spring based on the first feature data and the second feature data includes: obtaining a first number of times the output voltage of the power supply is greater than the preset voltage in the first feature data, and obtaining a second number of times the output voltage of the power supply is greater than the preset voltage in the second feature data; if the difference between the first number and the second number is greater than a preset threshold, the detection result of the spring is elastic imbalance.

[0021] In this embodiment of the application, since the first feature data and the second feature data can respectively characterize the number of times the motor switches states during the opening and closing processes, and the number of times the motor switches states during the opening and closing processes is affected by the spring elasticity, when the difference between the first quantity and the second quantity is too large, it can be confirmed that the spring elasticity is unbalanced.

[0022] In conjunction with the technical solution provided in the second aspect above, in some possible implementations, obtaining the detection result of the spring based on the first feature data and the second feature data includes: obtaining a third number of times the output voltage of the power supply is less than the preset voltage in the first feature data, and obtaining a fourth number of times the output voltage of the power supply is less than the preset voltage in the second feature data; if the difference between the third number and the fourth number is greater than a preset threshold, the detection result of the spring is elastic imbalance.

[0023] In conjunction with the technical solution provided in the second aspect above, in some possible implementations, if the difference between the third quantity and the fourth quantity is greater than a preset threshold, the detection result of the spring is that the spring is unbalanced, including: if the difference between the third quantity and the fourth quantity is greater than the preset threshold, and the third quantity is greater than the fourth quantity, the detection result of the spring is that the spring is too elastic; if the difference between the third quantity and the fourth quantity is greater than the preset threshold, and the third quantity is less than the fourth quantity, the detection result of the spring is that the spring is too weak.

[0024] In this embodiment, when the spring's elasticity is too strong, during the opening process, the barrier arm slowly rises. When it reaches a certain position, the spring becomes too tight, and its force exceeds the barrier arm's weight. The spring pulls the barrier arm up, resulting in a lever-based, effort-saving state. The motor needs to decelerate and brake in advance. Overall, the spring acts as an external force to lift the barrier arm, and the motor operates as a generator, meaning the power supply's output voltage is greater than the preset voltage. When closing, due to the spring's strong force, the lever-based, effort-requiring state occurs. The motor needs to continuously apply force to lower the barrier arm, resulting in a motor-based, almost non-decelerating / braking phase. Therefore, the power supply's output voltage is less than the preset voltage. Thus, when the third quantity is greater than the fourth quantity, the spring's elasticity is confirmed to be too strong. When the spring's elasticity is too weak, the motor's state during opening is the same as when the spring's elasticity is too strong, and vice versa. Therefore, when the third quantity is less than the fourth quantity, the spring's elasticity is confirmed to be too strong.

[0025] Thirdly, this application provides a barrier gate, comprising: a spring detection circuit and an alarm circuit. The spring detection circuit is used to acquire first characteristic data representing the relationship between the output voltage of the power supply of the access control device and a preset voltage during one gate opening process, and to acquire second characteristic data representing the relationship between the output voltage of the power supply and the preset voltage during one gate closing process; and to obtain the detection result of the spring based on the first characteristic data and the second characteristic data; the alarm circuit is used to issue a corresponding alarm prompt based on the above inspection results. Attached Figure Description

[0026] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a schematic diagram of the circuit structure of a spring detection circuit according to an embodiment of this application;

[0028] Figure 2 This is a schematic diagram of a signal representing feature data according to an embodiment of this application;

[0029] Figure 3 This is a schematic diagram of the circuit structure of another spring detection circuit shown in an embodiment of this application;

[0030] Figure 4This is a schematic diagram of the circuit structure of a hysteresis comparator circuit according to an embodiment of this application;

[0031] Figure 5 This is a schematic diagram of the circuit structure of another hysteresis comparator circuit shown in an embodiment of this application;

[0032] Figure 6 This is a schematic diagram of the circuit structure of another spring detection circuit shown in an embodiment of this application;

[0033] Figure 7 This is a schematic diagram of the circuit structure of another spring detection circuit shown in an embodiment of this application;

[0034] Figure 8 This is a schematic flowchart illustrating a spring detection method according to an embodiment of this application;

[0035] Figure 9 This is a structural block diagram of a barrier gate as shown in an embodiment of this application. Detailed Implementation

[0036] The terms “first,” “second,” “third,” etc., are used only for distinguishing descriptions and do not indicate a sequence number, nor should they be interpreted as indicating or implying relative importance.

[0037] Furthermore, terms such as "horizontal" and "vertical" do not imply that components must be absolutely horizontal or suspended, but rather that they can be slightly tilted. For example, "horizontal" simply means that its direction is more horizontal than "vertical," and does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0038] In the description of this application, unless otherwise expressly specified and limited, the term "connection" shall be interpreted broadly, for example, it may be a fixed connection, a detachable connection, or an integral connection; it may be a mechanical connection or an electrical connection; it may be a direct connection or an indirect connection through an intermediate medium; it may be a connection within two elements.

[0039] The technical solution of this application will now be described in detail with reference to the accompanying drawings.

[0040] Please see Figure 1 , Figure 1 This is a schematic diagram of a spring detection circuit according to an embodiment of the present application. The spring detection circuit is applied to a channel access management device and includes a detection circuit and a processing circuit.

[0041] The detection circuit is connected to the power supply in the access control device. The detection circuit is used to detect the first characteristic data representing the relationship between the power supply output voltage and the preset voltage during one gate opening process of the access control device, and to detect the second characteristic data representing the relationship between the power supply output voltage and the preset voltage during one gate closing process of the access control device.

[0042] Feature data can be represented using 0 and 1. For example, 1 indicates that the power supply's output voltage is greater than the preset voltage, and 0 indicates that the power supply's output voltage is less than the preset voltage. Alternatively, 0 indicates that the power supply's output voltage is greater than the preset voltage, and 1 indicates that the power supply's output voltage is less than the preset voltage.

[0043] For a clearer understanding of the specific representations of the first and second feature data, please refer to [link / reference needed]. Figure 2 The first and second feature data are both as follows: Figure 2 The square wave signal shown.

[0044] Figure 2 A high-level signal can represent 1 as described above, and a low-level signal can represent 0 as described above.

[0045] The processing circuit is used to obtain the detection result of the spring based on the first feature data and the second feature data.

[0046] In this process, the motor in the access control equipment switches between two working states: motor state and generator state during the opening and closing of the gate. When the motor is in motor state, the output voltage of the power supply is lower than that when the motor is in generator state. The elasticity of the spring affects the working state of the motor, which in turn affects the output voltage of the power supply. Therefore, by using the first and second characteristic data, the number of times the power supply state switches during the opening and closing of the gate can be obtained, thereby determining the elasticity of the spring and accurately judging the balance of the spring.

[0047] For example, when the spring is too strong, during the opening process, the barrier arm slowly rises. When it reaches a certain position, the spring's tension exceeds the barrier arm's weight, causing it to pull the arm up. This is a lever-based, effort-saving state, requiring the motor to decelerate and brake in advance. Overall, the spring acts as an external force to lift the arm, and the motor operates as a generator, meaning the power supply's output voltage is higher than the preset voltage. Conversely, when closing the barrier, the spring's strength is greater, creating a lever-based, effort-requiring state. The motor needs to continuously apply force to lower the barrier arm, operating as a motor with almost no deceleration or braking phase. This means the power supply's output voltage is lower than the preset voltage.

[0048] When the spring's elasticity is too weak, the motor's state during the opening process is the same as when the spring's elasticity is too strong, and vice versa.

[0049] In one implementation, the processing circuit can be an integrated circuit chip with data processing capabilities. The processing circuit can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0050] In one implementation, the detection circuit includes a hysteresis comparator circuit and a discharge circuit. For easier understanding, please refer to [link to relevant documentation]. Figure 3 .

[0051] like Figure 3 As shown, the first terminal of the hysteresis comparator circuit is connected to the power supply, the second terminal of the hysteresis comparator circuit is used to receive the preset voltage, and the output terminal of the hysteresis comparator circuit is connected to the processing circuit.

[0052] The first terminal of the discharge circuit is connected to the power supply, the second terminal of the discharge circuit is connected to the output terminal of the hysteresis comparator circuit, and the third terminal of the discharge circuit is grounded. The discharge circuit is used to turn on when the hysteresis comparator circuit outputs a high voltage, so that the power supply is grounded through the discharge circuit.

[0053] In one implementation, the discharge circuit may include a MOS (Metal-Oxide-Semiconductor Field-Effect Transistor) and a discharge resistor.

[0054] Specifically, when the power supply output voltage is greater than the preset voltage and the first comparator circuit outputs a high level, the MOSFET can be an NMOS (N-Metal-Oxide-Semiconductor Field-Effect Transistor). When the power supply output voltage is less than the preset voltage and the first comparator circuit outputs a high level, the MOSFET can be a PMOS (P-Metal-Oxide-Semiconductor Field-Effect Transistor).

[0055] The source of the MOSFET is grounded, the drain is connected to the power supply through a discharge resistor, and the gate is connected to the output of the first comparator circuit. When the MOSFET is an NMOS transistor, and the hysteresis comparator circuit outputs a high level, the NMOS transistor turns on and discharges through the discharge resistor, which consumes electrical energy as heat.

[0056] In one embodiment, the hysteresis comparator circuit includes a first comparator and a feedback circuit. A first input terminal of the first comparator is connected to a power supply, a second input terminal of the first comparator is used to receive a preset voltage, and the output terminal of the first comparator is connected to a first terminal of a second comparator circuit. A first terminal of the feedback circuit is connected to the output terminal of the first comparator, and a second terminal of the feedback circuit is connected to the first input terminal of the first comparator.

[0057] The first terminal can be either the non-inverting input terminal of the first comparator or the inverting input terminal of the first comparator. The specific setting can be determined according to actual needs, and there are no restrictions on it here.

[0058] The first comparator can be a comparator for any signal; there are no restrictions on its specific model.

[0059] To prevent damage to the first comparator due to excessively strong feedback signals, in one embodiment, the feedback circuit can consist of a parallel feedback capacitor and a first feedback resistor, and a second feedback resistor connected in series with the parallel feedback capacitor and the first feedback resistor. One end of the feedback capacitor is connected to the output terminal of the first comparator, the other end of the feedback capacitor is connected to the second feedback resistor, and the other end of the second feedback resistor is connected to the first input terminal of the first comparator. For easier understanding, please refer to [link to relevant documentation]. Figure 4 , Figure 4 In the diagram, resistor R1 is the first feedback resistor, resistor R2 is the second feedback resistor, and capacitor C1 is the feedback capacitor.

[0060] like Figure 4The first comparator of the hysteresis comparator circuit shown outputs a high level when the voltage input at the non-inverting input is greater than the upper threshold voltage, and outputs a low level when the voltage input at the non-inverting input is less than the lower threshold voltage.

[0061] The upper and lower threshold voltages can be determined based on the first feedback resistor, the second feedback resistor, the preset voltage, and the output voltage of the first comparator. For example, let VT+ represent the upper threshold voltage, VT- represent the lower threshold voltage, VREF represent the preset voltage, R3 represent the first feedback resistor, R4 represent the second feedback resistor, VOL represent the low-level output voltage, and VOH represent the high-level output voltage. Then, VT+ = (R4 / R3+1)*VREF - R4 / R3*VOL; VT- = (R4 / R3+1)*VREF - R4 / R3*VOH.

[0062] To prevent damage to the first comparator due to excessively high input voltage, in one embodiment, the hysteresis comparator circuit further includes a first voltage divider circuit, with a first terminal of the first voltage divider circuit connected to a power supply and a second terminal of the first voltage divider circuit connected to the first input terminal of the first comparator.

[0063] Understandably, a voltage divider circuit only needs to divide the output voltage of the power supply and input the divided output voltage to the first input terminal of the first comparator.

[0064] For example, a first voltage divider circuit may include a first voltage divider resistor and a second voltage divider resistor. The first terminal of the first voltage divider resistor is connected to a power supply, and the second terminal of the first voltage divider resistor is connected to the first input terminal of a first comparator. The first terminal of the second voltage divider resistor is connected to the first input terminal of the first comparator, and the second terminal of the second voltage divider resistor is grounded. For easier understanding, please refer to [link to relevant documentation]. Figure 5 , Figure 5 In the diagram, resistor R3 is the first voltage divider resistor, and resistor R4 is the second voltage divider resistor.

[0065] In one embodiment, the second input terminal of the first comparator is connected to a preset voltage circuit, which provides a preset voltage to the first comparator.

[0066] The preset voltage circuit may include a first preset voltage resistor and a second preset voltage resistor. One end of the first preset voltage resistor is connected to the second input terminal of the first comparator, and the other end of the first preset voltage resistor is connected to a fixed voltage. One end of the second preset voltage resistor is connected to the second input terminal of the first comparator, and the other end of the second preset voltage resistor is grounded.

[0067] Optionally, the preset voltage circuit may further include a preset voltage capacitor, one end of which is grounded to the second input terminal of the first comparator. This preset voltage capacitor can filter out noise and achieve a stable voltage effect.

[0068] To prevent damage to the processing circuit due to excessively high voltages of the first and second feature data, and to improve the safety of this solution, in one embodiment, the detection circuit further includes a second comparison circuit. The first terminal of the second comparison circuit is connected to the output terminal of the hysteresis comparison circuit, the second terminal of the second comparison circuit is used to receive a reference voltage, and the output terminal of the second comparison circuit is connected to the processing circuit. The reference voltage is less than the highest voltage output by the hysteresis comparison circuit and greater than the lowest voltage output by the hysteresis comparison circuit. For easier understanding, please refer to [link to relevant documentation]. Figure 6 .

[0069] The second comparator circuit compares the output signal of the hysteresis comparator circuit with the reference voltage and outputs the first characteristic data and the second characteristic data, thereby limiting the voltage range of the first characteristic data and the second characteristic data and preventing damage to the processing circuit due to excessively high voltage of the first characteristic data and the second characteristic data.

[0070] Please continue reading. Figure 6 In one embodiment, the second comparison circuit includes a second voltage divider circuit and a second comparator.

[0071] The first terminal of the second voltage divider circuit is connected to the output terminal of the hysteresis comparator circuit; the first input terminal of the second comparator is connected to the second terminal of the second voltage divider circuit; the second input terminal of the second comparator is used to receive the reference voltage; and the output terminal of the second comparator is connected to the processing circuit.

[0072] The output voltage of the hysteresis comparator circuit is divided by a second voltage divider circuit, reducing the voltage at the first terminal of the second comparator circuit and preventing damage to the second comparator due to excessively high input voltage. Simultaneously, by setting the voltage value of the second comparator output signal, the voltage values ​​of the first and second characteristic data can be ensured to be within the voltage tolerance range of the processing circuit, preventing damage to the processing circuit and improving the safety of this solution.

[0073] The second comparator can be any type of comparator; there is no specific restriction on its model here.

[0074] The second voltage divider circuit may include a third voltage divider resistor and a fourth voltage divider resistor. The first terminal of the first voltage divider resistor is connected to the output terminal of the first comparator, and the second terminal of the first voltage divider resistor is connected to the first input terminal of the second comparator. The first terminal of the fourth voltage divider resistor is connected to the first input terminal of the second comparator, and the second terminal of the fourth voltage divider resistor is grounded.

[0075] To further understand the spring detection circuit described above, please refer to [link / reference]. Figure 7 It should be noted that, Figure 7 The principle shown is one of many embodiments of the spring detection circuit in this application; therefore, it cannot be used as a general rule. Figure 7 The manner shown is to be understood as a limitation of this application.

[0076] like Figure 7 As shown, the first terminal of the hysteresis comparator circuit is connected to the power supply, and the second terminal of the hysteresis comparator circuit is used to receive a preset voltage. The first terminal of the discharge circuit is connected to the power supply, the second terminal of the discharge circuit is connected to the output terminal of the hysteresis comparator circuit, and the third terminal of the discharge circuit is grounded. The first terminal of the second comparator circuit is connected to the output terminal of the hysteresis comparator circuit, the second terminal of the second comparator circuit is used to receive a reference voltage, and the output terminal of the second comparator circuit is connected to the processing circuit.

[0077] The preset voltage circuit includes a first preset voltage resistor R5 and a second preset voltage resistor R6. One end of the first preset voltage resistor R5 is connected to the second input terminal of the first comparator U1A, and the other end of the first preset voltage resistor R5 is connected to a fixed voltage. One end of the second preset voltage resistor R6 is connected to the second input terminal of the first comparator U1A, and the other end of the second preset voltage resistor R6 is grounded.

[0078] The discharge circuit includes an NMOS transistor and a discharge resistor R7. The source of the NMOS transistor is grounded, the drain is connected to the power supply through the discharge resistor R7, and the gate is connected to the output of the first comparator U1A.

[0079] in, Figure 7 In the spring detection circuit shown, resistor R10 is a pull-up resistor. Since comparator U1A has an open-collector output, R10 is needed as a pull-up resistor to achieve a high-level output. Similarly, R11 is also a pull-up resistor, used to enable comparator U1B to achieve a high-level output.

[0080] in, Figure 7 The specific implementation principles and methods of each circuit shown have been clearly described above, and will not be repeated here for the sake of brevity.

[0081] In one implementation, after acquiring the first feature data and the second feature data, the processing circuit also needs to determine whether the gate opening operation corresponding to the first feature data is a complete gate opening operation, and whether the gate closing operation corresponding to the second feature data is a complete gate closing operation. If it is not a complete gate opening operation, the corresponding first feature data is cleared; similarly, if it is not a complete gate closing operation, the corresponding second feature data is cleared.

[0082] A complete gate opening operation refers to the movement of the barrier arm from the lower limit position to the upper limit position. For example, when the barrier arm is horizontal when it is in the lower limit position and vertical when it is in the upper limit position, a complete gate opening operation is: the barrier arm moves from the horizontal position to the vertical position.

[0083] A complete gate closing operation refers to the movement of the gate arm from the upper limit position to the lower limit position. For example, when the gate arm is horizontal when it is in the lower limit position and vertical when it is in the upper limit position, a complete gate closing operation is: the gate arm moves from vertical to horizontal.

[0084] Optionally, a complete gate opening operation also requires that the time taken for the gate arm to move from the lower limit position to the upper limit position be less than a preset time, and a complete gate closing operation also requires that the time taken for the gate arm to move from the upper limit position to the lower limit position be less than a preset time.

[0085] The processing circuit obtains the spring detection result based on the first feature data and the second feature data in the following three ways.

[0086] In the first embodiment, the process by which the processing circuit obtains the detection result of the spring based on the first feature data and the second feature data can be as follows: First, the processing circuit obtains a first number of times in the first feature data that the output voltage of the power supply is greater than a preset voltage, and obtains a second number of times in the second feature data that the output voltage of the power supply is greater than a preset voltage; if the difference between the first number and the second number is greater than a preset threshold, the detection result of the spring is that the spring is unbalanced.

[0087] For example, if the preset threshold is 20, the first quantity is 300, and the second quantity is 301, the spring's elasticity is balanced because the difference between the first and second quantities is 1. If the preset threshold is 20, the first quantity is 300, and the second quantity is 250, the spring's elasticity is unbalanced because the difference between the first and second quantities is 50. This example is for illustrative purposes only and should not be construed as limiting the scope of this application.

[0088] The specific value of the aforementioned preset threshold can be set according to actual needs; there is no restriction on its specific value here.

[0089] Optionally, the spring's balance can be categorized into three levels: slightly unbalanced, balanced, and severely unbalanced. In this case, a first preset threshold and a second preset threshold can be set. The first preset threshold is greater than the second preset threshold. When the difference between the first and second preset thresholds is greater than the first preset threshold, the spring's detection result is severely unbalanced. When the difference between the first and second preset thresholds is greater than the second preset threshold but less than the first preset threshold, the spring's detection result is slightly unbalanced. When the difference between the first and second preset thresholds is less than the second preset threshold, the spring's detection result is balanced.

[0090] For example, if the first preset threshold is 20, the second preset threshold is 40, the first quantity is 300, and the second quantity is 301, the spring's elasticity is balanced because the difference between the first and second quantities is 1. If the first preset threshold is 20, the second preset threshold is 40, the first quantity is 300, and the second quantity is 330, the spring's elasticity is slightly unbalanced because the difference between the first and second quantities is 30. If the first preset threshold is 20, the second preset threshold is 40, the first quantity is 300, and the second quantity is 250, the spring's elasticity is severely unbalanced because the difference between the first and second quantities is 50. These examples are for illustrative purposes only and should not be construed as limiting the scope of this application.

[0091] The specific values ​​of the first preset threshold and the second preset threshold mentioned above can be set according to actual needs, and there are no restrictions on their specific values ​​here.

[0092] In one implementation, the spring's balance can be categorized as excessively elastic, balanced, or insufficiently elastic. In this case, if the difference between the first quantity and the second quantity is greater than a preset threshold, and the first quantity is greater than the second quantity, the spring's detection result is excessively elastic. If the difference between the first quantity and the second quantity is greater than a preset threshold, and the first quantity is less than the second quantity, the spring's detection result is insufficiently elastic.

[0093] For example, if the preset threshold is 20, the first quantity is 300, and the second quantity is 250, the spring's elasticity is too strong because the difference between the first and second quantities is 50, and the first quantity is greater than the second quantity. Conversely, if the preset threshold is 20, the first quantity is 300, and the second quantity is 330, the spring's elasticity is too weak because the difference between the first and second quantities is 30, and the first quantity is less than the second quantity. These examples are for illustrative purposes only and should not be construed as limiting the scope of this application.

[0094] In the second implementation, the process by which the processing circuit obtains the detection result of the spring based on the first feature data and the second feature data can be as follows: first, obtain a third number of times in the first feature data that the output voltage of the power supply is less than a preset voltage, and obtain a fourth number of times in the second feature data that the output voltage of the power supply is less than a preset voltage; if the difference between the third number and the fourth number is greater than a preset threshold, the detection result of the spring is that the spring is unbalanced.

[0095] Optionally, the spring's balance can be categorized into three levels: slightly unbalanced, balanced, and severely unbalanced. In this case, a third and a fourth preset threshold can be set. The third preset threshold is greater than the fourth preset threshold. When the difference between the third and fourth preset thresholds is greater than the third preset threshold, the spring's detection result is severely unbalanced. When the difference between the third and fourth preset thresholds is greater than the fourth preset threshold but less than the third preset threshold, the spring's detection result is slightly unbalanced. When the difference between the third and fourth preset thresholds is less than the fourth preset threshold, the spring's detection result is balanced.

[0096] The specific values ​​of the third and fourth preset thresholds mentioned above can be set according to actual needs, and their specific values ​​are not limited here.

[0097] The second implementation method is consistent with the spring grading method of the first implementation method. The principle of determining the spring detection result based on the third and fourth quantities is the same as the principle of determining the spring detection result based on the first and second quantities in the first implementation method. For the sake of brevity, it will not be elaborated here.

[0098] In the third implementation, the process by which the processing circuit obtains the spring detection result based on the first feature data and the second feature data can be as follows: First, it acquires a first duration during which the output voltage of the power supply is greater than a preset voltage in the first feature data, and a second duration during which the output voltage of the power supply is greater than the preset voltage in the second feature data. If the difference between the first duration and the second duration is greater than the preset duration, the spring detection result is elastic imbalance.

[0099] It is understandable that the first duration can also be the duration during which the output voltage of the power supply in the first feature data is less than the preset voltage, and correspondingly, the second duration can also be the duration during which the output voltage of the power supply in the second feature data is less than the preset voltage.

[0100] The third implementation method is consistent with the spring grading method of the first implementation method. The principle of determining the spring detection result based on the first duration, the second duration, and the preset duration is the same as the principle of determining the spring detection result based on the first quantity, the second quantity, and the preset threshold in the first implementation method. For the sake of brevity, it will not be elaborated here.

[0101] In one implementation, to improve the accuracy of spring detection results, the processing circuit can further acquire multiple sets of first feature data and second feature data. For each set of first feature data and second feature data, a first number of times the power supply output voltage in the first feature data exceeds a preset voltage, and a second number of times the power supply output voltage in the second feature data exceeds a preset voltage, are acquired, and the difference between the first number and the second number is calculated. Based on the calculated differences corresponding to each set of first feature data and second feature data, an average value of the differences is obtained. The detection result of the spring is determined based on this average value and a preset threshold.

[0102] For example, if the processing circuit acquires three sets of first feature data and second feature data, then for each set of first feature data and second feature data, it calculates a first difference, a second difference, and a third difference, with each difference corresponding to a different set of first feature data and second feature data. The average of the first difference, the second difference, and the third difference is calculated, and the detection result of the spring is obtained based on this average and a preset threshold.

[0103] The process and principle of obtaining the spring detection result based on the average value and the preset threshold are the same as the principle of determining the spring detection result based on the first quantity, the second quantity and the preset threshold in the first embodiment. For the sake of brevity, they will not be repeated here.

[0104] In one implementation, the processing circuit is also used to control the channel entrance / exit management device to issue a warning signal based on the detection result of the spring.

[0105] For example, when the balance of the spring is divided into slight imbalance, balance, and severe imbalance, if the spring is detected as balanced, no signal is issued; if the spring is detected as slightly unbalanced, the control channel entrance and exit management equipment issues a warning signal; if the spring is detected as severely unbalanced, the control channel entrance and exit management equipment issues an alarm signal.

[0106] In addition, when the spring detection result shows a severe imbalance, the processing circuit can also control the barrier gate of the access control equipment to operate at the lowest speed to prevent the barrier gate from causing damage to vehicles and pedestrians during operation.

[0107] Please see Figure 8 , Figure 8 The spring testing method provided in this application will be described below in conjunction with... Figure 8 The steps involved are explained.

[0108] S100: Acquire first characteristic data representing the relationship between the output voltage of the power supply of the access control device and the preset voltage during one gate opening process, and acquire second characteristic data representing the relationship between the output voltage of the power supply and the preset voltage during one gate closing process.

[0109] In one implementation, after acquiring the first feature data and the second feature data, it is also necessary to determine whether the gate opening operation corresponding to the first feature data is a complete gate opening operation, and whether the gate closing operation corresponding to the second feature data is a complete gate closing operation. If it is not a complete gate opening operation, the corresponding first feature data is cleared; similarly, if it is not a complete gate closing operation, the corresponding second feature data is cleared.

[0110] S200: The detection result of the spring is obtained based on the first feature data and the second feature data.

[0111] There are three ways to obtain the detection results of the spring based on the first feature data and the second feature data.

[0112] In the first embodiment, the process of obtaining the detection result of the spring based on the first feature data and the second feature data may be: obtaining a first number of times the output voltage of the power supply is greater than a preset voltage in the first feature data, and obtaining a second number of times the output voltage of the power supply is greater than a preset voltage in the second feature data; if the difference between the first number and the second number is greater than a preset threshold, the detection result of the spring is elastic imbalance.

[0113] In the second implementation, the process by which the processing circuit obtains the detection result of the spring based on the first feature data and the second feature data can be as follows: first, obtain a third number of times in the first feature data that the output voltage of the power supply is less than a preset voltage, and obtain a fourth number of times in the second feature data that the output voltage of the power supply is less than a preset voltage; if the difference between the third number and the fourth number is greater than a preset threshold, the detection result of the spring is that the spring is unbalanced.

[0114] In the third implementation, the process by which the processing circuit obtains the spring detection result based on the first feature data and the second feature data can be as follows: First, it acquires a first duration during which the output voltage of the power supply is greater than a preset voltage in the first feature data, and a second duration during which the output voltage of the power supply is greater than the preset voltage in the second feature data. If the difference between the first duration and the second duration is greater than the preset duration, the spring detection result is elastic imbalance.

[0115] The three implementation methods described above are based on the same principles and steps as the three implementation methods described above for obtaining the detection results of the spring based on the first feature data and the second feature data. For the sake of brevity, they will not be repeated here.

[0116] This spring detection method can be applied to the processing circuit in the spring detection circuit described above, and it can also be applied to other electronic devices with data processing capabilities.

[0117] The spring detection method provided in this application embodiment has the same implementation principle and technical effect as the method executed by the processing circuit in the aforementioned spring detection circuit. For the sake of brevity, any parts not mentioned in the method embodiment can be referred to the corresponding content in the aforementioned spring detection circuit embodiment.

[0118] Please see Figure 9 , Figure 9 The present application provides a structural block diagram of a barrier gate 10, which includes a spring detection circuit 100 and an alarm circuit 200.

[0119] The spring detection circuit 100 is used to acquire first characteristic data representing the relationship between the output voltage of the power supply of the access control device and the preset voltage during one gate opening process, and to acquire second characteristic data representing the relationship between the output voltage of the power supply and the preset voltage during one gate closing process; and to obtain the spring detection result based on the first characteristic data and the second characteristic data.

[0120] The alarm circuit 200 is used to issue corresponding alarm prompts based on the above inspection results.

[0121] The specific implementation principle and implementation method of the spring detection circuit 100 have been clearly described above, and will not be repeated here for the sake of brevity.

[0122] The alarm circuit 200 is used to issue corresponding alarm prompts based on the detection results. For example, when the balance of the spring is divided into three levels: slightly unbalanced, balanced, and severely unbalanced, if the spring's detection result is balanced, the alarm circuit 200 will not issue a prompt, or it will issue a prompt indicating that the spring is balanced. If the spring's detection result is slightly unbalanced, the alarm circuit 200 will issue a warning indicating slightly unbalanced springs. If the spring's detection result is severely unbalanced, the alarm circuit 200 will issue an alarm indicating severely unbalanced springs. These examples are for illustrative purposes only and should not be construed as limiting the scope of this application.

[0123] The spring's prompts can be any one or a combination of many prompting methods, such as sound prompts, light prompts, vibration prompts, and display interface prompts; there are no restrictions on the specific prompting method here.

[0124] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A spring detection circuit, characterized by, The spring detection circuit is applied to a channel entrance and exit management device, and comprises: a detection circuit connected with a power supply in the channel entrance and exit management device, the detection circuit being configured to detect first characteristic data representing a relationship between an output voltage of the power supply and a preset voltage during a process of opening a gate of the channel entrance and exit management device once, and to detect second characteristic data representing the relationship between the output voltage of the power supply and the preset voltage during a process of closing the gate of the channel entrance and exit management device once; a processing circuit configured to obtain a detection result of the spring according to the first characteristic data and the second characteristic data; wherein the processing circuit is specifically configured to obtain a first number of times when the output voltage of the power supply is greater than the preset voltage in the first characteristic data, and to obtain a second number of times when the output voltage of the power supply is greater than the preset voltage in the second characteristic data; and if a difference between the first number and the second number is greater than a preset threshold, the detection result of the spring is spring unbalance. Alternatively, the processing circuit is specifically configured to obtain a third number of times when the output voltage of the power supply is less than the preset voltage in the first characteristic data, and to obtain a fourth number of times when the output voltage of the power supply is less than the preset voltage in the second characteristic data; and if a difference between the third number and the fourth number is greater than a preset threshold, the detection result of the spring is spring unbalance. Alternatively, the processing circuit is specifically configured to obtain a first time length when the output voltage of the power supply is greater than the preset voltage in the first characteristic data, and to obtain a second time length when the output voltage of the power supply is greater than the preset voltage in the second characteristic data; and if a difference between the first time length and the second time length is greater than a preset time length, the detection result of the spring is spring unbalance. The detection circuit comprises: a hysteresis comparison circuit, a first end of the hysteresis comparison circuit being connected with the power supply, a second end of the hysteresis comparison circuit being configured to receive the preset voltage, and an output end of the hysteresis comparison circuit being connected with the processing circuit; a discharge circuit, a first end of the discharge circuit being connected with the power supply, a second end of the discharge circuit being connected with the output end of the hysteresis comparison circuit, and a third end of the discharge circuit being grounded, the discharge circuit being configured to be turned on when the hysteresis comparison circuit outputs a high voltage, so that the power supply is grounded through the discharge circuit.

2. The spring detection circuit of claim 1, wherein, The detection circuit further comprises: a second comparison circuit, a first end of the second comparison circuit being connected with the output end of the hysteresis comparison circuit, a second end of the second comparison circuit being configured to receive a reference voltage, and an output end of the second comparison circuit being connected with the processing circuit, wherein the reference voltage is less than a highest voltage output by the output end of the hysteresis comparison circuit and greater than a lowest voltage output by the output end of the hysteresis comparison circuit.

3. The spring detection circuit of claim 2, wherein, The hysteresis comparison circuit comprises: a first comparator, a first input end of the first comparator being connected with the power supply, a second input end of the first comparator being configured to receive the preset voltage, and an output end of the first comparator being connected with the first end of the second comparison circuit; A feedback circuit, a first end of the feedback circuit is connected with an output end of the first comparator, a second end of the feedback circuit is connected with a first input end of the first comparator; A first voltage dividing circuit, a first end of the first voltage dividing circuit is connected with the power supply, a second end of the first voltage dividing circuit is connected with the first input end of the first comparator.

4. The spring detection circuit of claim 2, wherein, The second comparison circuit comprises: A second voltage dividing circuit, a first end of the second voltage dividing circuit is connected with an output end of the hysteresis comparison circuit; A second comparator, a first input end of the second comparator is connected with a second end of the second voltage dividing circuit, a second input end of the second comparator is used for receiving the reference voltage, an output end of the second comparator is connected with the processing circuit.

5. A spring detection method characterized by, The processor applied to the spring detection circuit in any one of claims 1-4, comprising: Obtaining first feature data representing the relationship between the output voltage of the power supply of the channel entrance and exit management device and the preset voltage in the process of opening the gate once, and obtaining second feature data representing the relationship between the output voltage of the power supply and the preset voltage in the process of closing the gate once. Obtaining the detection result of the spring according to the first feature data and the second feature data. Wherein, obtaining the detection result of the spring according to the first feature data and the second feature data, comprising: Obtaining a first number of the output voltage of the power supply greater than the preset voltage in the first feature data, and obtaining a second number of the output voltage of the power supply greater than the preset voltage in the second feature data; if the difference between the first number and the second number is greater than a preset threshold, the detection result of the spring is elastic imbalance; or, Obtaining a third number of the output voltage of the power supply less than the preset voltage in the first feature data, and obtaining a fourth number of the output voltage of the power supply less than the preset voltage in the second feature data; if the difference between the third number and the fourth number is greater than a preset threshold, the detection result of the spring is elastic imbalance; or, Obtaining a first time length of the output voltage of the power supply greater than the preset voltage in the first feature data, and obtaining a second time length of the output voltage of the power supply greater than the preset voltage in the second feature data; if the difference between the first time length and the second time length is greater than a preset time length, the detection result of the spring is elastic imbalance.

6. The spring detection method of claim 5, wherein, If the difference between the third number and the fourth number is greater than a preset threshold, the detection result of the spring is elastic imbalance, comprising: If the difference between the third number and the fourth number is greater than a preset threshold, and the third number is greater than the fourth number, the detection result of the spring is elastic overstrength; If the difference between the third number and the fourth number is greater than a preset threshold, and the third number is less than the fourth number, the detection result of the spring is elastic understrength.

7. A barrier gate characterized by, Comprising: The spring detection circuit according to any one of claims 1-4, is configured to obtain first characteristic data representing a relationship between an output voltage of a power supply of a channel entrance and exit management device and a preset voltage during a process of opening a gate of the channel entrance and exit management device, and obtain second characteristic data representing the relationship between the output voltage of the power supply and the preset voltage during a process of closing the gate of the channel entrance and exit management device, and obtain a detection result of the spring according to the first characteristic data and the second characteristic data; an alarm circuit configured to send a corresponding alarm prompt according to the detection result; wherein the spring detection circuit is specifically configured to obtain a first number of the output voltage of the power supply being greater than the preset voltage in the first characteristic data, and obtain a second number of the output voltage of the power supply being greater than the preset voltage in the second characteristic data; and if a difference between the first number and the second number is greater than a preset threshold, the detection result of the spring is spring imbalance; alternatively, the spring detection circuit is specifically configured to obtain a third number of the output voltage of the power supply being less than the preset voltage in the first characteristic data, and obtain a fourth number of the output voltage of the power supply being less than the preset voltage in the second characteristic data; and if a difference between the third number and the fourth number is greater than a preset threshold, the detection result of the spring is spring imbalance; alternatively, the spring detection circuit is specifically configured to obtain a first time length of the output voltage of the power supply being greater than the preset voltage in the first characteristic data, and obtain a second time length of the output voltage of the power supply being greater than the preset voltage in the second characteristic data; and if a difference between the first time length and the second time length is greater than a preset time length, the detection result of the spring is spring imbalance. ​

Citation Information

Patent Citations

  • Barrier gate spring fault early warning method

    CN111665008A

  • Barrier gate lifting rod spring fracture detection device, barrier gate and monitoring method

    CN113484366A