Dual-hall magnetic pole pairing recognition device and door cover opening structure and control method
Patent Information
- Application Number
- CN202611322891.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2026-08-25
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-03
AI Technical Summary
In existing technologies, single magnetic field conditions are easily affected by unpaired magnets, resulting in a high probability of false triggering. Furthermore, the dual-channel independent input method occupies the input terminal of the control unit and relies on software logic judgment, which increases the complexity of the system.
A dual Hall magnetic pole pairing identification device is adopted, which uses the opposite effective inductive magnetic poles of two Hall chips for pairing identification. The two open-drain output terminals are connected in parallel through hardware circuit to form a single signal. A high level is output only when both Hall chips meet the magnetic field threshold and magnetic pole matching; otherwise, a low level is output.
This reduces the probability of false triggering by unpaired magnets, reduces the occupancy of the control unit's input terminals, simplifies software logic judgment, and improves the reliability and efficiency of the system.
Smart Images

Figure CN123027982A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of magnetic induction recognition and automatic door cover control technology, and in particular to a dual Hall magnetic pole pairing recognition device, a door cover anti-mistaken trigger opening structure, and a control method that utilizes two Hall chips with opposite effective induction magnetic poles to pair and identify with corresponding magnets, and combines them into a single-channel judgment signal through hardware merging at the open-leak output terminal. Background Technology
[0002] In products such as car storage boxes, small appliance flip covers, robot expansion slot covers, and equipment compartment covers, Hall effect chips can be used to detect the proximity of magnets, and the control unit can drive the cover to open based on the detection results. When using a single Hall effect chip, the system usually determines whether the magnetic field at a single location meets the triggering conditions. When an external magnet forms a sufficient magnetic field at the corresponding location, it may cause unexpected triggering.
[0003] Therefore, it is necessary to provide a technical solution that can simultaneously utilize spatial position conditions and magnetic pole direction conditions for pairing identification, and can combine the two detection conditions into a single signal on the hardware side, so as to reduce the probability of false triggering caused by unpaired magnets, while reducing the occupancy of the control unit input terminal and software logic processing. Summary of the Invention
[0004] There is an inherent technical bias among those skilled in the art: when two conditions need to be met simultaneously to trigger the door to open, the usual approach for improvement is to add sensors and send multiple sensor signals to the controller separately, relying on software programs to complete the logical judgment; they generally do not think of making differentiated magnetic pole selections for the sensors and then using hardware circuits to directly complete the condition merging, thereby reducing the burden on the controller pins and software operations.
[0005] While existing publicly available technologies include general circuits for parallel connection of open-drain devices to achieve line-AND, and some dual Hall effect detection devices, most are applied to position speed measurement and lock detection. There is no disclosed technical solution for differentiated selection where one Hall effect sensor responds only to the south pole and another responds only to the north pole. Nor is there a complete technical solution for matching magnetic poles of the pairing device with hardware in parallel and inputting a single signal to the MCU to prevent accidental opening of the door cover. Existing technologies also do not provide corresponding technical insights.
[0006] The technical problem to be solved by this invention is that single magnetic field conditions are easily affected by unpaired magnets, and the dual-channel independent input method occupies a lot of control unit input terminals and relies on software logic judgment. The invention provides a dual Hall magnetic pole pairing identification device, a door cover anti-false triggering opening structure and control method.
[0007] To solve the above-mentioned technical problems, the present invention adopts the following technical solution: A dual Hall effect magnetic pole pairing identification device includes a first Hall chip, a second Hall chip, a pairing device, a control unit, and a pull-up resistor. The pairing device includes a first magnet and a second magnet. The effective sensing magnetic poles of the first Hall chip and the second Hall chip are opposite to each other; the magnetic pole of the first magnet facing the first Hall chip matches the effective sensing magnetic pole of the first Hall chip, and the magnetic pole of the second magnet facing the second Hall chip matches the effective sensing magnetic pole of the second Hall chip, and the magnetic poles of the two magnets facing the corresponding Hall chips are opposite to each other.
[0008] Both the first and second Hall effect chips have open-drain output terminals. When each Hall effect chip senses a magnetic field that matches its effective sensing magnetic pole and reaches a magnetic threshold, the corresponding open-drain output terminal is in a high-impedance release state; when no matching magnetic field reaching the magnetic threshold is sensed or the magnetic field direction is mismatched, the corresponding open-drain output terminal is in a pull-down state. The two open-drain output terminals are connected in parallel to form a common signal node. The common signal node is connected to a pull-up power supply via a pull-up resistor and then to a signal input terminal of the control unit. Thus, the common signal node forms a high level only when both open-drain output terminals are in a high-impedance release state; when either open-drain output terminal is in a pull-down state, the common signal node forms a low level.
[0009] Preferably, the effective sensing magnetic pole of the first Hall chip is the south pole, and the effective sensing magnetic pole of the second Hall chip is the north pole; the side of the first magnet facing the first Hall chip is the south pole, and the side of the second magnet facing the second Hall chip is the north pole. The above north and south pole configurations can also be interchanged. It should be noted that this invention does not directly apply a known open-drain parallel circuit; if only two ordinary omnipolar Hall chips are used in open-drain parallel connection, they can still be falsely triggered by an external magnet, failing to achieve the false trigger prevention effect of this invention. This invention deeply couples the selection of differentiated magnetic pole Hall chips, the magnetic pole pairing mechanical structure, and the hardware lines and circuitry, thereby achieving unexpected technical effects.
[0010] Preferably, both the first Hall chip and the second Hall chip are active high. That is, when the Hall chip has not reached the magnetic threshold, it outputs a low level; when the Hall chip reaches the magnetic threshold, the output terminal is in a high-impedance state and can output a high level through a pull-up resistor.
[0011] Preferably, the first magnet and the second magnet correspond to the corresponding effective sensing areas. At the predetermined pairing position, the effective directional magnetic field generated by the corresponding magnet at the corresponding Hall chip reaches the magnetic threshold, while the magnetic field generated at the non-corresponding Hall chip is insufficient to cause the non-corresponding Hall chip to enter the matching state.
[0012] Preferably, the pull-up resistor can be located between the output terminal of the Hall chip and the common signal node, or between the common signal node and the pull-up power supply, or it can be an integrated pull-up resistor in the signal input terminal of the control unit.
[0013] This invention also provides a door cover anti-accidental triggering opening structure, including a door cover, a base, a drive mechanism, and the aforementioned dual Hall effect magnetic pole pairing identification device. The door cover and the base are movably connected. Two Hall effect chips are disposed at two spaced-apart sensing positions on the base or the door cover. The control unit is connected to the drive mechanism, and the drive mechanism is connected to the door cover. When the common signal node is high, the control unit outputs an opening control signal to the drive mechanism; when the common signal node is low, the control unit outputs a closing control signal to the drive mechanism.
[0014] This invention also provides a method for preventing accidental triggering of door opening control: two Hall chips detect magnetic fields at two sensing positions respectively; two open-drain output terminals are connected in parallel to form a common signal node and pulled up by a pull-up resistor; when both Hall chips detect a matching magnetic field that reaches the magnetic threshold, both open-drain output terminals are released, the common signal node forms a high level, and the control unit detects the high level through a single signal input terminal and outputs an opening control signal; when at least one Hall chip does not meet the matching condition, the corresponding open-drain output terminal pulls down the common signal node, the control unit detects a low level and does not trigger the door to open.
[0015] Compared with the prior art, the present invention has at least the following beneficial effects: First, by having two separate sensing positions and opposite magnetic pole conditions participate in the pairing determination, the difficulty of unpaired magnets simultaneously meeting all triggering conditions is increased, thereby reducing the probability of false triggering.
[0016] Second, by using the parallel connection of the open-drain output terminals, a single-channel level signal is formed on the hardware side that is "valid only if both conditions are met simultaneously". The control unit does not need to collect the two original Hall signals separately before executing the software and logic.
[0017] Third, the common signal node only occupies one signal input terminal of the control unit, which helps to save input terminal resources and simplify wiring; Fourth, when the pairing device is oriented incorrectly, only one magnet is in place, or at least one magnetic pole is mismatched, the common signal node remains at an invalid level, thus forming a pairing constraint on the hardware side. Attached Figure Description
[0018] Figure 1 This is a schematic diagram of the structure of a dual Hall magnetic pole pairing identification device.
[0019] Figure 2 A schematic diagram of the structure for preventing accidental opening of the door cover.
[0020] Figure 3 A flowchart illustrating the method for controlling the opening of a door cover to prevent accidental triggering. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings. Example 1
[0022] See Figure 1 This embodiment discloses a dual Hall magnetic pole pairing identification device, which includes a first Hall chip 1, a second Hall chip 2, and a pairing device 3. The first Hall chip 1 and the second Hall chip 2 are arranged at intervals along the area to be identified, forming a first sensing position and a second sensing position; a first magnet 31 and a second magnet 32 are fixed on the pairing device 3, and the installation distance between the two magnets corresponds to the distance between the two sensing positions.
[0023] The effective sensing magnetic poles of the first Hall chip 1 and the second Hall chip 2 are opposite to each other.
[0024] The first Hall chip 1 outputs a high-level signal only when it receives a magnetic field reaching the magnetic threshold in the south-pole direction at its first sensing position, and the second Hall chip 2 outputs a high-level signal only when it receives a magnetic field reaching the magnetic threshold in the north-pole direction at its second sensing position. Correspondingly, the side of the first magnet 31 facing the first Hall chip 1 is configured as the south pole, and the side of the second magnet 32 facing the second Hall chip 2 is configured as the north pole. Alternatively, the south and north pole configurations can be completely interchanged, as long as the effective sensing magnetic poles of the two Hall chips are opposite to each other and the two magnets correspond to them respectively.
[0025] Both Hall effect chips have open-drain output terminals. When the magnetic pole of the magnet matches the effective sensing magnetic pole of the Hall effect chip and reaches the magnetic threshold, the open-drain output transistor is cut off, and the open-drain output terminal is in a high-resistance release state. When the Hall effect chip does not detect a sufficiently strong matching magnetic field, or when the direction of the detected magnetic field does not match the effective sensing magnetic pole, the open-drain output transistor is turned on, causing the open-drain output terminal to be in a pull-down state.
[0026] The open-drain output terminals of the first Hall effect chip 1 and the second Hall effect chip 2 are directly connected in parallel to form a common signal node 4. The common signal node 4 is connected to a logic pull-up power supply via a pull-up resistor 5. When both Hall effect chips are simultaneously in a matched state, both open-drain output terminals are released, and the common signal node 4 is pulled high by the pull-up resistor 5. If either Hall effect chip is not in a matched state, the corresponding open-drain output terminal pulls down the common signal node 4, keeping it at a low level. Therefore, this common node electrically forms a wired AND condition that is valid only if both conditions are met simultaneously.
[0027] The logical state of this embodiment can be represented as follows: First Hall effect chip Second Hall effect chip Output Judgment Result match match high level Pairing successful match Mismatch low level Unsuccessful pairing Mismatch match low level Unsuccessful pairing Mismatch Mismatch low level Unsuccessful pairing To reduce magnetic field crosstalk between the two magnets and between the magnets and non-corresponding Hall chips, a predetermined distance is maintained between the two sensing positions. A matching design is implemented based on the magnet's magnetic flux, the working distance between the magnet and the Hall chip, and the Hall chip's magnetic threshold. When the pairing device is in the correct position, the effective directional magnetic field generated by the corresponding magnet at the corresponding Hall chip reaches the magnetic threshold, while the magnetic field generated by the same magnet at the other Hall chip is insufficient to change the other Hall chip's determination state. Therefore, even if the magnetic fields overlap in space, the independence of the two channels' determinations is maintained.
[0028] The first Hall effect chip 1 and the second Hall effect chip 2 can share the same DC power supply and system ground to reduce the number of wiring harnesses. The pull-up resistor 5 of the common signal node 4 can be implemented in two ways: first, the internal pull-up resistor of the chip is enabled at the input terminal of the control unit, and the common signal node is directly connected to this input terminal; second, an external pull-up resistor is set between the common signal node and the logic power supply, and then the common signal node is connected to the input terminal of the control unit. The judgment logic is the same in both methods. Example 2
[0029] See Figure 2 In this embodiment, the dual Hall magnetic pole pairing identification device of Embodiment 1 is applied to a vehicle storage box. The door cover 6 is rotatably connected to the base 7 of the storage box. The base 7 is equipped with a control unit and a drive motor 8. The output shaft of the drive motor 8 drives the door cover 6 to open and close via gears, connecting rods, cams or other transmission components.
[0030] A pairing slot is provided in the identification area of the base 7 near the door cover 6. The first Hall chip 1 and the second Hall chip 2 are fixed inside the base 7 and spaced apart from each other to form two sensing positions. The pairing device 3 can be a key, identification piece, or handheld pairing piece that matches the shape of the pairing slot. The pairing device 3 has a first magnet 31 and a second magnet 32 fixed inside, so that when the pairing device 3 enters or approaches the pairing slot in the correct direction, the first magnet 31 corresponds to the first Hall chip 1 and the second magnet 32 corresponds to the second Hall chip 2.
[0031] In another installation configuration, the first Hall chip and the second Hall chip can also be positioned at two spaced-apart locations on the door cover, with the pairing device approaching the corresponding area from the outside of the door cover. Regardless of whether the Hall chip is installed on the base side or the door cover side, as long as it belongs to the door cover opening structure and maintains two independent corresponding sensing positions, the combined common signal node in Embodiment 1 can be used.
[0032] The open-drain outputs of two Hall effect chips are connected in parallel to form a common signal node 4, which is connected to one I / O input of the control unit 9. The control unit 9 does not need to set up two separate I / O ports to read the raw outputs of the first Hall effect chip 1 and the second Hall effect chip 2; instead, it only needs to determine the single-channel level of the common signal node 4. When the control unit 9 receives a valid high-level signal, it outputs an open control signal to the drive motor 8; the drive motor 8 actuates and opens the door cover 6 via the transmission assembly. When the control unit 9 receives a low-level signal, it outputs a close control signal to the drive motor 8; the drive motor 8 actuates and closes the door cover 6 via the transmission assembly. A limit switch can be installed between the door cover 6 and the base 7. When the drive motor 8 receives both the close control signal and a close signal from the limit switch, the drive motor 8 will not operate.
[0033] During normal pairing, the pairing device 3 is at the designed insertion depth or near position and maintains the designed orientation. The two magnets simultaneously reach their respective sensing areas and their magnetic poles match. The open-drain output terminals of the two Hall sensors are released simultaneously, and the common signal is pulled up to a high level, opening the door. If only one magnet approaches, the pairing device is not fully in place, the pairing device is placed in reverse, causing at least one set of magnetic poles to mismatch, or an external local magnet generates a magnetic field that meets the conditions only at one sensing position, then at least one Hall channel remains in a pulled-down state, the common signal remains low, and thus the door opening is not triggered.
[0034] This structure does not rely on the premise that "no external magnet can open it." Instead, it significantly raises the threshold for simultaneously meeting the effective conditions by using two separate positions and opposite magnetic pole conditions. Compared with structures that only detect the presence or absence of a single magnetic field, it reduces the probability of false triggering caused by unpaired magnets. Example 3
[0035] This embodiment illustrates the applicable forms of the same identification module in different door cover products. For small household appliance flip covers, the first Hall chip and the second Hall chip can be installed at two positions near the edge of the flip cover or on the fixed side of the body, respectively, and the pairing device is equipped with two corresponding magnets; the control unit can use 5V, 3.3V, or the product's existing logic power supply system, as long as the Hall chip, pull-up power supply, and control unit input level are compatible. When the common signal is valid, the control unit drives the micro motor or electromagnetic drive mechanism to open the flip cover.
[0036] For robot expansion slot covers or equipment hatch covers, two Hall effect sensor positions can be placed on either side of the slot opening, hatch, or cover, ensuring sufficient space between the two sensor positions. The pairing device can be a maintenance key, special tool, accessory, or identification component compatible with the equipment. The common signal is only valid when the pairing device is in the designed position and orientation, and both magnetic poles are simultaneously matched. This allows for hardware-side dual-condition identification without increasing the number of independent input terminals of the control unit.
[0037] The hinge method of the door cover, the model of the drive motor, and the form of the transmission components in each application scenario can be selected according to the product structure without affecting the signal merging relationship of the dual Hall magnetic pole pairing identification device. Example 4
[0038] See Figure 3 This embodiment presents a control method based on the aforementioned hardware. The core of this method's judgment is formed by a hardware common signal node, and the control unit only performs single-channel level acquisition and corresponding action control.
[0039] Step S1: Keep the door closed. Connect a single input terminal of the control unit to a common signal node. The common signal node forms a defined high-level reference through an internal or external pull-up resistor. The first Hall chip and the second Hall chip monitor the direction of the magnetic field at their respective sensing positions and whether the magnetic threshold has been reached.
[0040] Step S2: When the pairing device approaches the identification area, the first Hall chip determines whether its open-drain output terminal is released or pulled down based on the magnetic field state at the first sensing position, and the second Hall chip independently determines whether its open-drain output terminal is released or pulled down based on the magnetic field state at the second sensing position. The two output terminals, connected in parallel, directly and jointly determine the level of the common signal node.
[0041] Step S3: If both the first and second magnets are in their corresponding positions and their magnetic poles match the first and second Hall chips respectively, thus enabling both Hall channels to meet the activation conditions, then both open-drain output terminals will be released, and the common signal node will form a valid high level through the pull-up resistor. After the control unit acquires this valid level, it outputs an opening control signal to the drive mechanism to open the door.
[0042] Step S4: If only one magnet is in place, the pairing device has not reached the predetermined position, the pairing device is reversed causing at least one set of magnetic poles to mismatch, or there is no pairing device, then at least one Hall channel does not meet the operating conditions and pulls the common signal node down to a low level. When the control unit acquires the low-level signal, it outputs a closing control signal triggered by the magnetic pairing signal, driving the motor to close the door. When the limit switch detects that the door is closed, the drive motor stops working.
[0043] In this control method, the logical relationship of "whether two conditions are met simultaneously" is completed by the hardware connection of two open-drain output terminals. The control unit only needs to perform a single-channel level judgment on the common signal node, so it does not need to occupy two independent Hall input terminals, nor does it need to read two original signals in the software before executing the AND logic.
Claims
1. A dual Hall magnetic pole pairing identification device, characterized in that: It includes a first Hall chip, a second Hall chip, and a pairing device, wherein the pairing device includes a first magnet and a second magnet; The effective sensing magnetic poles of the first Hall chip are opposite to those of the second Hall chip; The magnetic pole of the first magnet facing the first Hall chip matches the effective sensing magnetic pole of the first Hall chip, and the magnetic pole of the second magnet facing the second Hall chip matches the effective sensing magnetic pole of the second Hall chip. The magnetic poles of the first magnet and the second magnet facing the corresponding Hall chips are opposite to each other. The open-drain output terminals of the first Hall chip and the second Hall chip are connected in parallel to form a common signal node, which is then connected to a signal input terminal of the control unit.
2. The dual Hall magnetic pole pairing identification device according to claim 1, characterized in that: The effective magnetic field of the first Hall chip is the south pole, and the effective magnetic field of the second Hall chip is the north pole; the side of the first magnet facing the first Hall chip is the south pole, and the side of the second magnet facing the second Hall chip is the north pole.
3. The dual Hall magnetic pole pairing identification device according to claim 1, characterized in that: Both the first Hall chip and the second Hall chip are active high.
4. A door cover anti-accidental triggering opening structure, comprising a door cover, a base, and a drive mechanism, characterized in that: It also includes the dual Hall magnetic pole pairing identification device according to any one of claims 1 to 3; The door cover is movably connected to the base; The first Hall chip and the second Hall chip are disposed at two spaced-apart sensing positions on the base or the door cover; the common signal node is connected to a signal input terminal of the control unit. The control unit is connected to the drive mechanism; the drive mechanism is connected to the door cover and is used to drive the door cover to perform opening and closing actions.
5. The door cover anti-accidental triggering opening structure according to claim 4, characterized in that: The door cover is any one of the following: a vehicle storage box door cover, a small appliance flip cover, a robot expansion slot cover, or an equipment compartment door cover.
6. A method for preventing accidental triggering of door opening control, characterized in that, When the first Hall chip senses an effective magnetic pole and the second Hall chip senses an effective magnetic pole and simultaneously reaches the magnetic threshold, the open-drain output terminals of the first Hall chip and the second Hall chip simultaneously release signals to the common signal node, and output a high-level signal to the control unit through the pull-up resistor. When only the first Hall chip senses an effective magnetic pole, or the second Hall chip senses an effective magnetic pole, or neither the first Hall chip nor the second Hall chip senses an effective magnetic pole, the open-drain output terminal of the first Hall chip and / or the open-drain output terminal of the second Hall chip pulls down the signal of the common signal node and outputs a low-level signal to the control unit. When the control unit receives a high-level signal, it sends an open signal to the drive mechanism, which then drives the door cover to open. When the control unit receives a low-level signal, it sends a close signal to the drive mechanism, which then drives the door cover to close.
