Hall sensor fault detection circuit and electronic equipment
By designing the Hall sensor fault detection circuit, using the voltage detection unit to output the fault voltage value, and the control unit determining the fault condition, the problem that the existing circuit cannot detect the Hall sensor fault is solved, ensuring the normal operation and safety of the load.
Patent Information
- Application Number
- CN202323055054.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-10
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2033-11-10
AI Technical Summary
The existing circuit cannot detect the specific fault condition of the Hall sensor, resulting in misjudgment of the door switch status, which poses a safety hazard.
A Hall sensor fault detection circuit is designed, including a Hall sensing unit, a voltage detection unit and a control unit. By detecting the status signal of the Hall sensor and outputting the corresponding fault voltage value, the control unit determines the fault situation based on the voltage value and performs Handle accordingly.
It achieves accurate detection of Hall sensor faults, ensures normal load operation, and reduces safety hazards.
Smart Images

Figure CN221613013U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electronic circuits, in particular to a Hall sensor fault detection circuit and electronic equipment. Background Art
[0002] As smart electrical appliances such as car refrigerators, household refrigerators, and wine cabinets continue to penetrate into people's lives, Hall sensors are used in various electrical appliances that need to detect the state of door switches. They output high and low levels to the control circuit through magnetic field induction, and the control circuit judges the state of door switches to control the start and stop of loads such as compressors, fans, and lighting. However, the Hall sensors used in these electrical appliances do not have fault detection functions. When the Hall sensors fail, the control circuits of these electrical appliances can only detect fixed high or low levels, and thus believe that the door is always open or closed, resulting in abnormal start and stop operations of the loads.
[0003] In the prior art, the door switch can only be judged by detecting the high and low level digital signals output by the Hall sensor, and then the door switch status is uploaded, and the electrical equipment makes corresponding load output control. However, it is unable to identify specific situations such as missing connection of the Hall sensor, loose wiring or short circuit of the detection circuit, which causes the microcontroller to misjudge that the door is always open or always closed, which is inconsistent with the actual door switch status. The electrical equipment makes wrong control and works abnormally, which poses a great safety hazard.
[0004] Therefore, in order to solve the above problems, the utility model provides a Hall sensor fault detection circuit and electronic equipment which can detect the specific fault conditions of the Hall sensor. Utility Model Content
[0005] The utility model provides a Hall sensor fault detection circuit and electronic equipment, aiming to solve the problem that the existing circuit cannot detect the specific fault condition of the Hall sensor.
[0006] In order to solve the above technical problems, the utility model provides, on the one hand, a Hall sensor fault detection circuit, which includes: a Hall sensor unit, which is used to detect a status signal of the Hall sensor, and the status signal includes a fault status signal; a voltage detection unit, one end of which is connected to the Hall sensor unit, and the other end is used to connect to a control unit, the voltage detection unit is used to output a corresponding fault voltage value according to the fault status signal, and the control unit is used to determine the specific fault condition of the Hall sensor according to the fault voltage value.
[0007] Furthermore, the Hall sensing unit includes a first pull-up module and a voltage divider module, one end of the first pull-up module is used to connect to the Hall sensor, the other end of the first pull-up module is connected to one end of the voltage divider module and the voltage detection unit, and the other end of the voltage divider module is grounded.
[0008] Furthermore, the first pull-up module includes a first pull-up resistor and a second pull-up resistor, one end of the first pull-up resistor is used to be connected to the VCC pin of the Hall sensor and the input voltage, the other end of the first pull-up resistor is used to be connected to the OUT pin of the Hall sensor and one end of the second pull-up resistor, and the other end of the second pull-up resistor is connected to one end of the voltage divider module and the voltage detection unit.
[0009] Further, the voltage dividing module includes a voltage dividing resistor, one end of the voltage dividing resistor is connected between the second pull-up resistor and the voltage detection unit, and the other end of the voltage dividing resistor is grounded.
[0010] Furthermore, the Hall sensing unit also includes a first filter capacitor and a second filter capacitor, one end of the first filter capacitor is used to connect to the VCC pin of the Hall sensor and the input voltage, and the other end of the first filter capacitor is grounded; one end of the second filter capacitor is used to connect to the OUT pin of the Hall sensor and the first pull-up module, and the other end of the second filter capacitor is grounded.
[0011] Further, the voltage detection unit includes a second pull-up module, a protection module, a current limiting module and a third filter capacitor, one end of the second pull-up module is used to connect to the input voltage, and the other end of the second pull-up module is connected to the Hall sensor unit; one end of the protection module is connected to the second pull-up module and the Hall sensor unit, and the other end of the protection module is grounded; one end of the current limiting module is connected to the second pull-up module and the protection module, and the other end of the current limiting module is used to connect to the control unit; one end of the third filter capacitor is connected to the current limiting module, and the other end of the third filter capacitor is grounded.
[0012] Furthermore, the second pull-up module includes a third pull-up resistor, one end of the third pull-up resistor is used to be connected to the input voltage, and the other end of the third pull-up resistor is connected to the Hall sensor unit.
[0013] Furthermore, the protection module includes an electrostatic diode, a cathode of the electrostatic diode is connected to the other end of the third pull-up resistor and the voltage detection unit, and an anode of the electrostatic diode is grounded.
[0014] Furthermore, the current limiting module includes a current limiting resistor, one end of the current limiting resistor is connected to the other end of the third pull-up resistor and the Hall sensor unit, and the other end of the current limiting resistor is used to be connected to the control unit.
[0015] On the other hand, the utility model further provides an electronic device, which includes a Hall sensor, a control unit and the above-mentioned Hall sensor fault detection circuit, wherein the Hall sensor fault detection circuit is connected between the Hall sensor and the control unit.
[0016] The Hall sensor fault detection circuit and electronic device disclosed by the utility model detect the working state of the Hall sensor through a voltage detection unit and output a corresponding voltage value. The control unit can determine the specific fault condition of the Hall sensor according to the specific voltage value, and thus output a corresponding fault state signal according to the fault condition of the Hall sensor, so that the control unit can take corresponding processing measures in time, ensuring that the controlled load operates normally. The Hall sensor fault detection circuit disclosed by the utility model solves the problem that the existing circuit cannot detect the specific fault condition of the Hall sensor. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the utility model, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a structural schematic diagram of a Hall sensor fault detection circuit provided by an embodiment of the utility model;
[0019] Figure 2 yes Figure 1 The circuit schematic diagram of the Hall sensor unit;
[0020] Figure 3 yes Figure 1 Circuit diagram of the medium voltage detection unit;
[0021] Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of the utility model;
[0022] Reference numerals:
[0023] 10. Hall sensor fault detection circuit; 11. Hall sensor unit; 111. First pull-up module; 112. Voltage divider module; 12. Voltage detection unit; 121. Second pull-up module; 122. Protection module; 123. Current limiting module; 100. Electronic device; 20. Control unit. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0025] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0026] It should also be understood that the terms used in this utility model specification are only for the purpose of describing specific embodiments and are not intended to limit the utility model. As used in this utility model specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0027] It should be further understood that the term “and / or” used in the present specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0028] Figures 1 to 4An embodiment of the Hall sensor fault detection circuit provided by the utility model is shown. The Hall sensor fault detection circuit 10 of this embodiment is used for an electronic device 100 that needs to be equipped with a Hall sensor, especially an electronic device 100 that needs to detect the specific fault condition of the Hall sensor, such as a car refrigerator, a household refrigerator, a wine cabinet and other electronic devices 100, which includes a Hall sensor unit 11 and a voltage detection unit 12, wherein the Hall sensor unit 11 is used to detect the state signal of the Hall sensor U1, and the state signal includes a fault state signal; one end of the voltage detection unit 12 is connected to the Hall sensor unit 11, and the other end is used to connect to the control unit 20, the voltage detection unit 12 is used to output a corresponding fault voltage value according to the fault state signal, and the control unit 20 is used to determine the specific fault condition of the Hall sensor U1 according to the fault voltage value. It should be noted that in this embodiment, the state signal also includes a normal state signal, and the voltage detection unit 12 can output a corresponding voltage value according to the normal state signal of the Hall sensor U1, so as to determine the door switch state corresponding to the electronic device when the Hall sensor U1 is in a normal working state. In this embodiment, the voltage detection unit 12 detects the working state of the Hall sensor U1 and outputs a corresponding voltage value. The control unit 20 can determine the specific fault condition of the Hall sensor U1 according to the specific fault voltage value, and thus output a corresponding fault status signal according to the fault condition of the Hall sensor U1, so that the control unit can take corresponding processing measures in time to ensure the normal operation of the controlled load.
[0029] In one embodiment, such as this embodiment, Figure 2As shown, the Hall sensor unit 11 includes a first pull-up module 111 and a voltage divider module 112, one end of the first pull-up module 111 is used to connect to the Hall sensor U1, the other end of the first pull-up module 111 is connected to one end of the voltage divider module 112 and the voltage detection unit 12, and the other end of the voltage divider module 112 is grounded. Specifically, the first pull-up module 111 includes a first pull-up resistor R1 and a second pull-up resistor R2, one end of the first pull-up resistor R1 is used to connect to the VCC pin and the input voltage of the Hall sensor U1, the other end of the first pull-up resistor R1 is used to connect to the OUT pin of the Hall sensor U1 and one end of the second pull-up resistor R2, the other end of the second pull-up resistor R2 is connected to one end of the voltage divider module 112 and the voltage detection unit 12. The voltage divider module 112 includes a voltage divider resistor R3, one end of the voltage divider resistor R3 is connected between the second pull-up resistor R2 and the voltage detection unit 12, and the other end of the voltage divider resistor R3 is grounded. It should be noted that, in the present embodiment, the resistance of the first pull-up resistor R1 is 10KΩ, the resistance of the second pull-up resistor R2 is 22KΩ, the resistance of the voltage divider resistor R3 is 22KΩ, the input voltage is 5V, the model of the Hall sensor U1 is MT8315XET, and the OUT pin of the Hall sensor U1 is an open-drain output pin.
[0030] Furthermore, the Hall sensor unit 11 also includes a first filter capacitor C2 and a second filter capacitor C3, one end of the first filter capacitor C2 is used to connect to the VCC pin and the input voltage of the Hall sensor U1, and the other end of the first filter capacitor C2 is grounded; one end of the second filter capacitor C3 is used to connect to the OUT pin of the Hall sensor U1 and the first pull-up module 111, and the other end of the second filter capacitor C3 is grounded.
[0031] In one embodiment, such as the present embodiment, as shown in FIG. 3 , the voltage detection unit 12 includes a second pull-up module 121, a protection module 122, a current limiting module 123 and a third filter capacitor C11, one end of the second pull-up module 121 is used to connect to the input voltage, and the other end of the second pull-up module 121 is connected to the Hall sensor unit 11; one end of the protection module 122 is connected to the second pull-up module 121 and the Hall sensor unit 11, and the other end of the protection module 122 is grounded; one end of the current limiting module 123 is connected to the second pull-up module 121 and the protection module 122, and the other end of the current limiting module 123 is used to connect to the control unit; one end of the third filter capacitor C11 is connected to the current limiting module 123, and the other end of the third filter capacitor C11 is grounded. Specifically, the second pull-up module 121 includes a third pull-up resistor R20, one end of the third pull-up resistor R20 is used to connect to the input voltage, and the other end is connected to the Hall sensor unit 11. One end of the third pull-up resistor R20 is connected to the 5V input voltage, and the other end is connected to the OUT pin of the Hall sensor U1 via the second pull-up resistor R2. It should be noted that in this embodiment, the resistance of the third pull-up resistor R20 is 10KΩ.
[0032] Further, the protection module 122 includes an electrostatic diode ESD1, the cathode of the electrostatic diode ESD1 is connected to the other end of the third pull-up resistor R20 and the voltage detection unit 12, and the anode of the electrostatic diode ESD1 is grounded. Wherein, the electrostatic diode can avoid the influence of electrostatic discharge in the circuit to play a protective role against overvoltage and static electricity. The current limiting module 123 includes a current limiting resistor R23, one end of the current limiting resistor R23 is connected to the other end of the third pull-up resistor R20 and the Hall sensor unit 11, and the other end of the current limiting resistor R23 is used to connect to the control unit. Wherein, the control unit can be a single-chip microcomputer, that is, the other end of the current limiting resistor R23 is used for the I / O pin connection of the single-chip microcomputer to provide a specific voltage value to the single-chip microcomputer, wherein the voltage value includes the voltage value of the normal state and the voltage value of the fault state. The single-chip microcomputer can determine the working state (normal or fault) of the Hall sensor U1 according to different voltage values, and then control the electronic device 100 to take corresponding measures. Optionally, in this embodiment, the resistance of the current limiting resistor R23 is 1KΩ.
[0033] It should be noted that, in this embodiment, terminals CN1 and CN3 are provided between the Hall sensor unit 11 and the voltage detection unit 12, wherein the Hall sensor unit 11 is connected to the terminal CN1, and the voltage detection unit 12 is connected to the terminal CN3, and the Hall sensor unit 11 and the voltage detection unit 12 are connected through the terminal CN1 and CN3. It can be understood that the same pin ends on the terminal CN1 and CN3 are connected, wherein the pin No. 1 of the terminal CN1 is the HALL pin, which is connected to the OUT pin of the Hall sensor via the second pull-up resistor R2, the pin No. 2 of the terminal CN1 is grounded, and the pin No. 3 of the terminal CN1 is connected to the input voltage (5V); the pin No. 1 of the terminal CN3 is connected between the third pull-up resistor R3 and the electrostatic diode ESD1, the pin No. 2 of the terminal CN3 is grounded, and the pin No. 3 of the terminal CN3 is connected to the 5V input voltage.
[0034] For ease of understanding, the working process of the Hall sensor detection circuit 10 is described as follows:
[0035] When the Hall sensor U1 detects a magnetic field without abnormality, the OUT pin of the Hall sensor U1 is connected to GND, the second pull-up resistor R2 and the voltage divider resistor R3 are connected in parallel to the voltage divider resistor. At this time, the pull-up resistor in the circuit is the third pull-up resistor R20, and the voltage detection unit 12 outputs a voltage value V Door =(VCC / ((R2*R3) / (R2+R3)+R20))*((R2*R3) / (R2+R3))=(5 / ((22000*22000) / (22000+22000)+10000))*((22000*22000) / (22000+22000))=2.619V; that is, the door switch state of the electronic device is off at this time.
[0036] When the Hall sensor U1 is normal and does not detect a magnetic field, the OUT pin of the Hall sensor U1 is disconnected from GND, the first pull-up resistor R1 and the second pull-up resistor R2 are connected in series to form a pull-up resistor of the Hall sensor unit 11, and then connected in parallel with the third pull-up resistor R3 to form a total pull-up resistor; the voltage divider resistor is R3, and at this time the voltage value V output by the voltage detection unit 12 is Door=(VCC / ((((R1+R2)*R20) / ((R1+R2)+R20))+R3))*R3=(5 / ((((10000+22000)*10000) / ((10000+22000)+10000))+22000))*22000=3.714V, that is, the door switch state of the electronic device is open at this time. It should be noted that the internal circuit of the Hall sensor U1 has an NPN transistor. When a magnetic field is detected, the OUT pin of the Hall sensor U1 is connected to GND; when there is no magnetic field, the OUT pin of the Hall sensor U1 is disconnected from the internal circuit of the Hall sensor U1.
[0037] When the Hall sensor U1 is disconnected or the wiring is loose and in poor contact, there is no voltage divider resistor in the circuit, then V Door =The voltage across the third pull-up resistor R20 = VCC = 5V, that is, an open circuit fault occurs in the Hall sensor U1 at this time.
[0038] When the HALL pin (ie, OUT pin) of the Hall sensor U1 is short-circuited to GND, the third pull-up resistor R3 of the voltage detection unit 12 is grounded, and V Door =GND=0V, that is, a short circuit fault occurs in the Hall sensor U1.
[0039] In summary, the Hall sensor detection circuit 10 of the present application changes the previous high and low level detection into AD voltage detection of a specific voltage value, thereby realizing that the detected voltage value can be used to determine whether the Hall sensor U1 is in a normal working state or an abnormal state; and by setting different voltage values to correspond to different states, the specific fault condition of the Hall sensor U1 can be determined according to the specific voltage value, so that the single-chip microcomputer can make corresponding countermeasures according to the specific fault condition to ensure the normal operation of the electronic equipment and reduce safety hazards.
[0040] In an embodiment, such as this embodiment, an electronic device 100 is also provided. Figure 4 , the electronic device 100 includes a Hall sensor U1, a control unit 20 and the above-mentioned Hall sensor fault detection circuit 10. Among them, the Hall sensor fault detection circuit 10 is connected between the Hall sensor U1 and the control unit 20. The electronic device 100 can be an electrical device that needs to detect the door switch state, such as a car refrigerator, a household refrigerator, a wine cabinet, etc. The Hall sensor U1 detects the magnetic field signal to provide a corresponding voltage value to the control unit 20, so that the control unit 20 determines the working state of the Hall sensor U1 according to the voltage value, and then controls the corresponding load to work according to the working state of the Hall sensor U1. Among them, the control unit 20 can be a single-chip microcomputer.
[0041] The Hall sensor fault detection circuit and electronic device provided by the utility model detect the working state of the Hall sensor through the voltage detection unit and output the corresponding voltage value. The control unit can determine the specific fault condition of the Hall sensor according to the specific fault voltage value, and thus output the corresponding fault state signal according to the fault condition of the Hall sensor, so that the control unit can take corresponding processing measures in time, ensuring the normal operation of the controlled load. The Hall sensor fault detection circuit disclosed by the utility model solves the problem that the existing circuit cannot detect the specific fault condition of the Hall sensor.
[0042] The above is only a specific implementation of the utility model, but the protection scope of the utility model is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the utility model, and these modifications or replacements should be included in the protection scope of the utility model. Therefore, the protection scope of the utility model should be based on the protection scope of the claims.
Claims
1. A Hall sensor fault detection circuit, It is characterized in that include: A Hall sensor unit, the Hall sensor unit is used to detect a state signal of a Hall sensor, the state signal includes a fault state signal; A voltage detection unit, one end of which is connected to the Hall sensor unit, and the other end is used to connect to the control unit, the voltage detection unit is used to output a corresponding fault voltage value according to the fault status signal, and the control unit is used to determine the specific fault condition of the Hall sensor according to the fault voltage value.
2. The Hall sensor fault detection circuit according to claim 1, It is characterized in that The Hall sensor unit includes a first pull-up module and a voltage divider module, one end of the first pull-up module is used to connect to the Hall sensor, the other end of the first pull-up module is connected to one end of the voltage divider module and the voltage detection unit, and the other end of the voltage divider module is grounded.
3. The Hall sensor fault detection circuit according to claim 2, It is characterized in that The first pull-up module includes a first pull-up resistor and a second pull-up resistor, one end of the first pull-up resistor is used to be connected to the VCC pin of the Hall sensor and the input voltage, the other end of the first pull-up resistor is used to be connected to the OUT pin of the Hall sensor and one end of the second pull-up resistor, and the other end of the second pull-up resistor is connected to one end of the voltage divider module and the voltage detection unit.
4. The Hall sensor fault detection circuit according to claim 3, It is characterized in that The voltage dividing module comprises a voltage dividing resistor, one end of the voltage dividing resistor is connected between the second pull-up resistor and the voltage detection unit, and the other end of the voltage dividing resistor is grounded.
5. The Hall sensor fault detection circuit according to claim 2, It is characterized in that The Hall sensor unit also includes a first filter capacitor and a second filter capacitor, one end of the first filter capacitor is used to connect to the VCC pin of the Hall sensor and the input voltage, and the other end of the first filter capacitor is grounded; one end of the second filter capacitor is used to connect to the OUT pin of the Hall sensor and the first pull-up module, and the other end of the second filter capacitor is grounded.
6. The Hall sensor fault detection circuit according to claim 1, It is characterized in that The voltage detection unit includes a second pull-up module, a protection module, a current limiting module and a third filter capacitor, one end of the second pull-up module is used to connect to the input voltage, and the other end of the second pull-up module is connected to the Hall sensor unit; one end of the protection module is connected to the second pull-up module and the Hall sensor unit, and the other end of the protection module is grounded; one end of the current limiting module is connected to the second pull-up module and the protection module, and the other end of the current limiting module is used to connect to the control unit; one end of the third filter capacitor is connected to the current limiting module, and the other end of the third filter capacitor is grounded.
7. The Hall sensor fault detection circuit according to claim 6, It is characterized in that The second pull-up module includes a third pull-up resistor, one end of the third pull-up resistor is used to be connected to the input voltage, and the other end of the third pull-up resistor is connected to the Hall sensor unit.
8. The Hall sensor fault detection circuit according to claim 7, It is characterized in that The protection module comprises an electrostatic diode, a cathode of the electrostatic diode is connected to the other end of the third pull-up resistor and the voltage detection unit, and an anode of the electrostatic diode is grounded.
9. The Hall sensor fault detection circuit according to claim 8, It is characterized in that The current limiting module includes a current limiting resistor, one end of the current limiting resistor is connected to the other end of the third pull-up resistor and the Hall sensor unit, and the other end of the current limiting resistor is used to be connected to the control unit.
10. An electronic device, It is characterized in that The electronic device comprises a Hall sensor, a control unit and a Hall sensor fault detection circuit according to any one of claims 1 to 9, wherein the Hall sensor fault detection circuit is connected between the Hall sensor and the control unit.
