Voltage regulation circuit, method, electronic device and readable storage medium

By adjusting the output voltage of the Hall circuit using Hall effect devices and adjustable resistors in the voltage regulation circuit, the problem of signal instability of the Hall circuit under different power supply voltage systems is solved, and the stability, compatibility and flexibility of the circuit are achieved.

CN117420870BActive Publication Date: 2026-05-26SHENZHEN ZHAOWEI MACHINERY&ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN ZHAOWEI MACHINERY&ELECTRONICS CO LTD
Filing Date
2023-11-10
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing Hall effect circuits cannot output stable level signals under different power supply voltage systems, resulting in unstable signal recognition and potentially causing system misjudgment.

Method used

The circuit employs a voltage regulation system, which includes a power supply unit, a Hall effect circuit unit, and a microcontroller unit. The Hall effect device determines the strength of the external magnetic field. If the strength exceeds the trigger threshold, the output of the Hall effect circuit unit is turned on, and the output voltage is adjusted according to the resistance value of the adjustable resistor. If the strength is less than the trigger threshold, the microcontroller unit receives a high-level voltage.

Benefits of technology

It achieves stable output voltage signals in different power supply voltage systems, improving the circuit's compatibility and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117420870B_ABST
    Figure CN117420870B_ABST
Patent Text Reader

Abstract

This application provides a voltage regulation circuit, method, electronic device, and readable storage medium, belonging to the field of circuit design technology. The voltage regulation circuit provided in this application includes a power supply unit, a Hall effect circuit unit, and a microcontroller unit. The Hall effect circuit unit includes an adjustable resistor and a Hall effect device. The power supply unit includes a fixed resistor and a Hall effect device, used to determine whether the external magnetic field strength is greater than or equal to a trigger threshold. If the external magnetic field strength is greater than or equal to the trigger threshold, the output terminal of the Hall effect device is turned on, allowing the output voltage of the Hall effect circuit unit to be adjusted according to the resistance value of the adjustable resistor. If the external magnetic field strength is less than the trigger threshold, the output terminal of the Hall effect device is not turned on, and the input terminal of the microcontroller unit receives the high-level voltage output by the power supply unit. Through the provided voltage regulation circuit, the same voltage signal can be output in different power supply voltage systems, improving the circuit's compatibility and flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic circuits, and more particularly to a voltage regulation circuit, method, electronic device, and readable storage medium. Background Technology

[0002] In existing technologies, Hall effect circuits are widely used to output level signals. However, such circuits can only output a fixed high or low voltage level, which cannot be adjusted. This causes the output parameters of the level signal to change under different power supply voltage systems, resulting in unstable signal recognition and even potential system misjudgment. Therefore, a new level signal output method is needed to solve the problem of unstable level signal output under different power supply voltage systems. Summary of the Invention

[0003] To address the aforementioned technical problems, embodiments of this application provide a voltage regulation circuit, method, electronic device, and computer-readable storage medium.

[0004] In a first aspect, embodiments of this application provide a voltage regulating circuit, which includes a power supply unit, a Hall circuit unit, and a microcontroller unit. The output terminal of the power supply unit is electrically connected to the input terminal of the Hall circuit unit and the input terminal of the microcontroller unit, respectively. The Hall circuit unit includes an adjustable resistor and a Hall device, and the power supply unit includes a fixed resistor.

[0005] The Hall effect device is used to determine whether the strength of the external magnetic field is greater than or equal to the trigger threshold.

[0006] If the external magnetic field strength is greater than or equal to the trigger threshold, the output terminal of the Hall device is turned on, so that the output voltage of the Hall circuit unit can be adjusted according to the resistance value of the adjustable resistor;

[0007] If the external magnetic field strength is less than the trigger threshold, the output terminal of the Hall device is not turned on, and the input terminal of the microcontroller unit receives the high-level voltage output by the power supply unit.

[0008] In one embodiment, the Hall circuit unit is connected in parallel with the microcontroller unit.

[0009] In one embodiment, the adjustable voltage range of the Hall circuit unit is determined by the ratio of the resistance value of the adjustable resistor to the resistance value of the fixed resistor.

[0010] In one embodiment, the power supply unit further includes an external power source, which is electrically connected to a first end of the fixed resistor, and the second end of the fixed resistor is electrically connected to a Hall circuit unit at a first connection point, which is the output terminal of the power supply unit.

[0011] In one embodiment, the Hall circuit unit further includes a first capacitor and a second capacitor;

[0012] The first terminal of the first capacitor is electrically connected to the input terminal of the Hall device, and the second terminal of the first capacitor is electrically connected to the ground terminal of the Hall device to the ground wire;

[0013] The first terminal of the second capacitor is electrically connected to the first terminal of the adjustable resistor at the second connection point, the second terminal of the second capacitor is connected to the ground wire, and the output terminal of the Hall device is electrically connected to the second connection point.

[0014] The second end of the adjustable resistor is electrically connected to the first connection point.

[0015] In one embodiment, the Hall circuit unit further includes a TVS diode, the first end of which is electrically connected to the first connection point, and the second end of which is electrically connected to the ground wire;

[0016] The TVS diode is used for overvoltage protection of the Hall circuit unit.

[0017] In one embodiment, the Hall circuit unit further includes a test point, which is electrically connected to the second connection point.

[0018] Secondly, embodiments of this application provide a voltage regulation method applied to the voltage regulation circuit described in the first aspect, the method comprising:

[0019] The Hall effect device determines whether the strength of the external magnetic field is greater than or equal to the trigger threshold.

[0020] If the external magnetic field strength is greater than or equal to the trigger threshold, the output terminal of the Hall device is turned on, so that the output voltage of the Hall circuit unit can be adjusted according to the resistance value of the adjustable resistor;

[0021] If the external magnetic field strength is less than the trigger threshold, the output terminal of the Hall device is not turned on, and the input terminal of the microcontroller unit receives the high-level voltage output by the power supply unit.

[0022] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the computer program executes the voltage regulation circuit provided in the first aspect when the processor is running.

[0023] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a processor, executes the voltage regulation method provided in the second aspect.

[0024] The voltage regulation circuit provided in this application includes a power supply unit, a Hall effect circuit unit, and a microcontroller unit. The output terminal of the power supply unit is electrically connected to the input terminal of the Hall effect circuit unit and the input terminal of the microcontroller unit. The Hall effect circuit unit includes an adjustable resistor and a Hall effect device. The power supply unit includes a fixed resistor and a Hall effect device, which are used to determine whether the external magnetic field strength is greater than or equal to a trigger threshold. If the external magnetic field strength is greater than or equal to the trigger threshold, the output terminal of the Hall effect device is turned on, allowing the output voltage of the Hall effect circuit unit to be adjusted according to the resistance value of the adjustable resistor. If the external magnetic field strength is less than the trigger threshold, the output terminal of the Hall effect device is not turned on, and the input terminal of the microcontroller unit receives a high-level voltage output by the power supply unit. With the provided voltage regulation circuit scheme, if the output terminal of the Hall effect device is turned on, the output voltage of the Hall effect circuit unit can be adjusted according to the resistance value of the adjustable resistor, allowing the same voltage signal to be output in different power supply voltage systems, thus improving the circuit's compatibility and flexibility. Attached Figure Description

[0025] To more clearly illustrate the technical solutions of this application, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this application and should not be considered as a limitation on the scope of protection of this application. In the various drawings, similar components are numbered similarly.

[0026] Figure 1 A schematic diagram of a voltage regulation circuit provided in an embodiment of this application is shown;

[0027] Figure 2 This shows another structural schematic diagram of the voltage regulation circuit provided in an embodiment of this application;

[0028] Figure 3 A schematic diagram of the power supply unit in the voltage regulation circuit provided in this application embodiment is shown;

[0029] Figure 4 A schematic diagram of a Hall circuit unit in a voltage regulation circuit provided in this application embodiment is shown;

[0030] Figure 5 A schematic flowchart of the voltage regulation method provided in an embodiment of this application is shown.

[0031] Icons: 100-Voltage regulation circuit, 101-Power supply unit, 102-Hall circuit unit, 103-Micro control unit, 1011-First connection point, 1021-Hall device, 1022-Second connection point. Detailed Implementation

[0032] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.

[0033] The components of the embodiments of this application described and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of this application provided in the drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0034] In the following, the terms “comprising,” “having,” and their cognates, which may be used in various embodiments of this application, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as excluding, firstly, the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations thereof.

[0035] Furthermore, the terms "first," "second," and "third" are used only to distinguish descriptions and should not be interpreted as indicating or implying relative importance.

[0036] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of this application pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be construed as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of this application.

[0037] Example 1

[0038] See Figure 1 and Figure 2The voltage regulation circuit 100 includes a power supply unit 101, a Hall circuit unit 102, and a microcontroller unit 103. The output terminal of the power supply unit 101 is electrically connected to the input terminal of the Hall circuit unit 102 and the input terminal of the microcontroller unit 103, respectively. The Hall circuit unit 102 includes an adjustable resistor VR1 and a Hall device 1021. The power supply unit 101 includes a fixed resistor R1. The Hall device 1021 is used to determine whether the external magnetic field strength is greater than or equal to a trigger threshold. If the external magnetic field strength is greater than or equal to the trigger threshold, the output terminal of the Hall device 1021 is turned on, so that the output voltage of the Hall circuit unit 102 can be adjusted according to the resistance value of the adjustable resistor VR1. If the external magnetic field strength is less than the trigger threshold, the output terminal of the Hall device 1021 is not turned on, and the input terminal of the microcontroller unit 103 receives the high-level voltage output by the power supply unit 101.

[0039] In this embodiment, the main function of the power supply unit 101 is to provide a stable power supply voltage, such as 12V or 24V. Its output terminal is connected to the Hall circuit unit 102 and the microcontroller unit 103 through wires or interfaces to provide a stable power supply for the Hall circuit unit 102 and the microcontroller unit 103 to ensure their normal operation. The Hall circuit unit 102 includes an adjustable resistor VR1, a Hall device 1021 and related circuits. The Hall device 1021 is used to detect the magnetic field strength and determine whether the entire Hall circuit unit 102 is conducting. The input terminal of the Hall circuit unit 102 is electrically connected to the output terminal of the power supply unit 101. The power supply unit 101 includes a fixed resistor R1. The fixed resistor R1 and the adjustable resistor VR1 are connected in series to realize the voltage division function. The microcontroller unit 103 is a small computer or controller that controls external devices, such as display modules or host computers, according to a preset interface or communication protocol.

[0040] In this embodiment, the Hall device 1021 can be selected as A1212LLHLT-T, which is a latching and bipolar switch based on the Hall effect. It includes an input terminal, an output terminal, and a ground terminal. The output terminal is connected to the drain of the MOSFET, and the ground terminal is connected to the source of the MOSFET. The Hall device 1021 is sensed by making the Hall device 1021 into probes of various specifications and placing them in the magnetic field to be measured. Since the Hall device 1021 is only sensitive to the magnetic induction intensity perpendicular to the surface of the Hall plate, the magnetic field lines must be perpendicular to the device surface. After power is applied, the magnetic induction intensity of the measured magnetic field can be obtained from the output voltage. The trigger threshold of the Hall device 1021 can be found in the technical manual or datasheet provided by the Hall device 1021 manufacturer. Based on the trigger threshold information, the minimum magnetic field strength required is determined in order to trigger the MOSFET at the output terminal of the Hall device 1021 to conduct.

[0041] In this embodiment, when the external magnetic field strength reaches the trigger threshold of the Hall device 1021, the MOS transistor at the output terminal of the Hall device 1021 is turned on. If the resistance value of the adjustable resistor increases, the voltage division ratio in the circuit will also increase, causing the input voltage of the microcontroller unit 103 to rise. Conversely, if the resistance value of the adjustable resistor decreases, the voltage division ratio decreases, and the input voltage of the microcontroller unit 103 decreases. By adjusting the resistance value of the adjustable resistor VR1, the output voltage of the Hall circuit unit 102 can be adjusted.

[0042] In this embodiment, if the external magnetic field strength is less than the trigger threshold of the Hall device 1021, the Hall device 1021 is not turned on, the MOS transistor at the output terminal is not turned on and is in the cut-off state, and the input terminal of the microcontroller unit 103 will receive a high-level voltage output by the power supply unit 101.

[0043] The voltage regulating circuit 100 provides a stable power supply through the power supply unit 101, the Hall circuit unit 102 detects the magnetic field strength and generates a corresponding voltage signal, and the microcontroller unit 103 controls external devices according to the received voltage signal. This voltage regulating circuit 100 can be used in various systems that require a stable voltage power supply.

[0044] In one embodiment, the Hall circuit unit 102 is connected in parallel with the microcontroller unit 103.

[0045] It should be noted that the conventional Hall circuit unit 102 requires a power supply terminal, a signal output terminal, and a ground terminal. In this embodiment, the microcontroller unit 103 is connected in parallel with the Hall circuit unit 102. The Hall circuit unit 102 does not require an additional output port, which enables the microcontroller unit 103 connected in parallel to obtain the required voltage output signal. This simplifies the circuit design and connection method, reduces the number of ports on the circuit board, reduces costs, and improves the space utilization of the circuit board.

[0046] In one embodiment, the adjustable voltage range of the Hall circuit unit 102 is determined by the ratio of the resistance value of the adjustable resistor VR1 to the resistance value of the fixed resistor R1.

[0047] In this embodiment, the adjustable resistor and the fixed resistor in the voltage regulation circuit are connected in series. By adjusting the resistance value of the adjustable resistor, the voltage division ratio between the adjustable resistor and the fixed resistor can be changed. This voltage division ratio determines the output voltage of the Hall effect circuit unit. When the resistance value of the adjustable resistor increases, the voltage division ratio increases, resulting in an increase in the output voltage of the Hall effect circuit unit. Conversely, when the resistance value of the adjustable resistor decreases, the voltage division ratio decreases, and the output voltage of the Hall effect circuit unit decreases. Specifically, when the voltage of the external power supply to the power supply unit is different, the adjustable resistor can be adjusted to change the voltage. The value, through the equation The output voltage of the Hall circuit unit can be calculated, where The voltage of the Hall circuit unit and the microcontroller unit. External voltage for the power supply unit and These are adjustable and fixed resistor values, respectively, to achieve the same high and low level signals output under different supply voltages.

[0048] In one embodiment, please refer to Figure 3 The power supply unit 101 also includes an external power supply VCC, which is electrically connected to the first end of the fixed resistor R1. The second end of the fixed resistor R1 is electrically connected to the Hall circuit unit 102 at the first connection point 1011, which is the output terminal of the power supply unit 101.

[0049] In this embodiment, the power supply unit 101 includes an external power supply VCC and a fixed resistor R1. The resistance value of the fixed resistor R1 is fixed. Its first end is electrically connected to the external power supply VCC, and its second end is electrically connected to the Hall circuit unit 102. By being electrically connected to the Hall circuit unit 102, the intensity and distribution of the current can be changed, thereby affecting the output voltage. The external power supply VCC is a device that provides a constant voltage. It is connected to the first end of the fixed resistor R1 and provides power to the entire power supply unit. The first connection point 1011 is the output terminal of the power supply unit 101. It is located between the second end of the fixed resistor R1 and the Hall circuit unit 102. The power supply unit 101 provides a stable voltage through the external power supply and adjusts the output voltage distribution through the fixed resistor R1 and the Hall circuit unit 102 to meet the needs of the microcontroller unit 103.

[0050] In one embodiment, please refer to Figure 4 The Hall circuit unit 102 further includes a first capacitor C1 and a second capacitor C2; the first end of the first capacitor C1 is electrically connected to the input end of the Hall device 1021, and the second end of the first capacitor C1 is electrically connected to the ground end of the Hall device 1021 to the ground wire; the first end of the second capacitor C2 is electrically connected to the first end of the adjustable resistor VR1 to the second connection point 1022, the second end of the second capacitor C2 is connected to the ground wire, and the output end of the Hall device 1021 is electrically connected to the second connection point 1022; the second end of the adjustable resistor VR1 is electrically connected to the first connection point 1011.

[0051] In this embodiment, the first capacitor C1 serves as a filter and protector in the circuit, filtering out power supply noise. Simultaneously, the second capacitor C2 prevents the Hall device 1021 from experiencing excessive bias voltage when there is no magnetic field, thus protecting it from damage. Furthermore, to ensure the safe and stable operation of the circuit, the ground wire is designed to connect the ground terminal of the Hall device 1021 to the second terminal of the first capacitor C1 and the second terminal of the second capacitor C2. This ensures that all electrical signals use the ground wire as a reference, avoiding unnecessary potential differences. At the same time, the ground wire can effectively introduce electromagnetic interference from the system into the ground, thereby reducing its impact on the circuit.

[0052] In one embodiment, please refer again Figure 4 The Hall circuit unit 102 further includes a TVS diode D1, the first end of which is electrically connected to the first connection point 1011, and the second end of which is electrically connected to the ground wire; the TVS diode D1 is used for overvoltage protection of the Hall circuit unit 102.

[0053] In this embodiment, the TVS diode D1 is a special type of diode capable of withstanding and discharging high voltage instantaneously, thereby protecting other components in the circuit from overvoltage. In the Hall circuit unit 102, the first end of the TVS diode D1 is electrically connected to the first connection point 1011, thus forming a complete circuit together with the Hall device 1021 and the adjustable resistor VR1. The second end of the TVS diode D1 is electrically connected to the ground wire, enabling the TVS diode D1 to effectively introduce overvoltage to the ground wire, thereby preventing overvoltage from damaging other components in the circuit. When the voltage received by the Hall circuit unit 102 exceeds its normal range, the TVS diode D1 is triggered, and its resistance suddenly drops, causing the overvoltage to be quickly introduced to the ground wire, thereby protecting other components in the circuit. At the same time, the characteristics of the TVS diode D1 also enable it to withstand high voltage without thermal damage, making it a very reliable overvoltage protection component. By using the TVS diode D1, the stability and reliability of the Hall circuit unit 102 can be enhanced, preventing overvoltage from damaging it.

[0054] In one embodiment, the Hall circuit unit 102 further includes a test point T5, which is electrically connected to the second connection point 1022.

[0055] In this embodiment, the Hall circuit unit 102 further includes a test point T5, which is electrically connected to the second connection point 1022. At the reserved test point, only one probe needs to be moved to test the capacitance value of the second capacitor C2 and the resistance value of the adjustable resistor VR1. It is not necessary to connect the probe to both ends of each component separately, which saves testing time and reduces possible errors.

[0056] The voltage regulation circuit provided in this application includes a power supply unit, a Hall effect circuit unit, and a microcontroller unit. The output terminal of the power supply unit is electrically connected to the input terminal of the Hall effect circuit unit and the input terminal of the microcontroller unit. The Hall effect circuit unit includes an adjustable resistor and a Hall effect device. The power supply unit includes a fixed resistor and a Hall effect device, which are used to determine whether the external magnetic field strength is greater than or equal to a trigger threshold. If the external magnetic field strength is greater than or equal to the trigger threshold, the output terminal of the Hall effect device is turned on, allowing the output voltage of the Hall effect circuit unit to be adjusted according to the resistance value of the adjustable resistor. If the external magnetic field strength is less than the trigger threshold, the output terminal of the Hall effect device is not turned on, and the input terminal of the microcontroller unit receives the high-level voltage output by the power supply unit. Through the provided voltage regulation circuit scheme, the same voltage signal can be output in different power supply voltage systems, improving the circuit's compatibility and flexibility.

[0057] Example 2

[0058] Furthermore, this application provides a voltage regulation method applied to the voltage regulation circuit provided in embodiment 1.

[0059] See Figure 5 The voltage regulation method includes:

[0060] Step S701: The Hall device determines whether the external magnetic field strength is greater than or equal to the trigger threshold;

[0061] Step S702: If the external magnetic field strength is greater than or equal to the trigger threshold, the output terminal of the Hall device is turned on, so that the output voltage of the Hall circuit unit can be adjusted according to the resistance value of the adjustable resistor;

[0062] Step S703: If the external magnetic field strength is less than the trigger threshold, the output terminal of the Hall device is not turned on, and the input terminal of the microcontroller unit receives the high-level voltage output by the power supply unit.

[0063] The voltage regulation method provided in this embodiment is applied to the voltage regulation circuit provided in Embodiment 1 and can realize the corresponding function of the voltage regulation circuit provided in Embodiment 1. To avoid repetition, it will not be described again here.

[0064] Example 3

[0065] Furthermore, this application provides an electronic device including the voltage regulating circuit provided in the above embodiments.

[0066] The electronic device provided in this embodiment of the invention can execute the steps of the voltage regulation circuit provided in the above method embodiment 1. To avoid repetition, it will not be described again here.

[0067] Example 4

[0068] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the voltage regulation method provided in Embodiment 2.

[0069] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0070] The computer-readable storage medium provided in this embodiment can implement the voltage regulation method provided in Embodiment 1. To avoid repetition, it will not be described again here.

[0071] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes that element.

[0072] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0073] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A voltage regulating circuit, characterized in that, The voltage regulation circuit includes a power supply unit, a Hall circuit unit, and a microcontroller unit. The output terminal of the power supply unit is electrically connected to the input terminal of the Hall circuit unit and the input terminal of the microcontroller unit, respectively. The Hall circuit unit includes an adjustable resistor and a Hall device. The power supply unit includes a fixed resistor and an external power supply. The external power supply is electrically connected to the first terminal of the fixed resistor, and the second terminal of the fixed resistor is electrically connected to the Hall circuit unit at a first connection point, which is the output terminal of the power supply unit. The Hall effect circuit unit further includes a first capacitor and a second capacitor. A first terminal of the first capacitor is electrically connected to the input terminal of the Hall effect device, and a second terminal of the first capacitor is electrically connected to the ground terminal of the Hall effect device via a ground wire. A first terminal of the second capacitor is electrically connected to the first terminal of the adjustable resistor at a second connection point, and a second terminal of the second capacitor is connected to the ground wire. The output terminal of the Hall effect device is electrically connected to the second connection point. The second terminal of the adjustable resistor is electrically connected to the first connection point. The adjustable voltage range of the Hall effect circuit unit is determined by the ratio of the resistance value of the adjustable resistor to the resistance value of the fixed resistor. The Hall effect device is used to determine whether the strength of the external magnetic field is greater than or equal to the trigger threshold. If the external magnetic field strength is greater than or equal to the trigger threshold, the output terminal of the Hall device is turned on, so that the output voltage of the Hall circuit unit can be adjusted according to the resistance value of the adjustable resistor; If the external magnetic field strength is less than the trigger threshold, the output terminal of the Hall device is not turned on, and the input terminal of the microcontroller unit receives the high-level voltage output by the power supply unit.

2. The voltage regulating circuit according to claim 1, characterized in that, The Hall circuit unit is connected in parallel with the microcontroller unit.

3. The voltage regulating circuit according to claim 1, characterized in that, The Hall circuit unit further includes a TVS diode, the first end of which is electrically connected to the first connection point, and the second end of which is electrically connected to the ground wire. The TVS diode is used for overvoltage protection of the Hall circuit unit.

4. A voltage regulating circuit according to claim 1, characterized in that, The Hall circuit unit also includes a test point, which is electrically connected to the second connection point.

5. A voltage regulation method, characterized in that, The method, applied to the voltage regulating circuit according to any one of claims 1-4, comprises: The Hall effect device determines whether the strength of the external magnetic field is greater than or equal to the trigger threshold. If the external magnetic field strength is greater than or equal to the trigger threshold, the output terminal of the Hall device is turned on, so that the output voltage of the Hall circuit unit can be adjusted according to the resistance value of the adjustable resistor; If the external magnetic field strength is less than the trigger threshold, the output terminal of the Hall device is not turned on, and the input terminal of the microcontroller unit receives the high-level voltage output by the power supply unit.

6. An electronic device, characterized in that, Includes the voltage regulating circuit as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, It stores a computer program that, when run on a processor, executes the voltage regulation method of claim 5.