A hall element power supply circuit and method for a magnetic flux shaft

By dynamically adjusting the power supply voltage of the Hall element through the main control module and the programmable step-down converter module, the problem of power supply mismatch after the key switch of the magnetic axis keyboard is solved, and the flexible compatibility and safe power supply of the Hall element are realized.

CN122247402APending Publication Date: 2026-06-19SHENZHEN MUSHANGWEI TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN MUSHANGWEI TECHNOLOGY CO LTD
Filing Date
2026-02-06
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

The Hall effect sensors in existing magnetic keyboards have a fixed power supply voltage, which may cause the key switches to malfunction after replacement, affecting compatibility and user experience.

Method used

The system employs a main control module and a programmable buck converter module. Through the programmable buck converter chip and pulse energy storage unit, the power supply voltage of the Hall element is dynamically adjusted, including the pulse signal output of the programmable buck converter chip and the control of the buck switching unit, to achieve flexible power supply voltage adjustment.

Benefits of technology

This allows for flexible adjustment of the power supply voltage for the Hall element, ensuring the normal operation of the Hall element in the new key switch and improving the flexibility and safety of power supply voltage adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122247402A_ABST
    Figure CN122247402A_ABST
Patent Text Reader

Abstract

This application provides a power supply circuit and method for Hall elements of magnetic flux shafts. The circuit includes a main control module and a programmable buck converter module. The main control module has a first communication terminal. The programmable buck converter module includes a programmable buck converter chip and a pulse energy storage unit. The programmable buck converter chip has a second communication terminal and a pulse signal output terminal. The second communication terminal of the programmable buck converter chip is connected to the first communication terminal of the main control module, and the pulse signal output terminal of the programmable buck converter chip is connected to the input terminal of the pulse energy storage unit. The output terminal of the pulse energy storage unit is used to supply power to the Hall element corresponding to the magnetic flux shaft. The main control module is used to control the pulse signal output by the pulse signal output terminal of the programmable buck converter chip to control the power supply voltage output by the pulse energy storage unit. This application can meet the operating voltage requirements of Hall elements of various magnetic flux shafts and improves the flexibility of power supply voltage adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power supply technology for Hall elements corresponding to magnetic flux shafts, specifically to a power supply circuit and power supply method for Hall elements of magnetic flux shafts. Background Technology

[0002] Magnetic axis keyboards, as a cutting-edge technological achievement in the field of input devices, embody the latest trends and directions in input device technology development. They cleverly utilize the Hall effect principle from physics to achieve a contactless operation mode during key actuation. This innovative design successfully transforms the traditional mechanical keyboard's physical contact-based switching mechanism into a completely new mechanism based on electromagnetic induction. Thanks to this technological innovation, unprecedented levels of response speed are achieved, triggering accuracy is significantly improved, and lifespan is dramatically extended, demonstrating superior performance advantages.

[0003] Specifically, each key switch in a magnetic axis keyboard meticulously integrates a miniature N / S permanent magnet and a highly sensitive Hall effect sensor. When a user presses a key, the relative distance between the permanent magnet and the Hall effect sensor gradually decreases. This change directly leads to an increase in magnetic field strength, which in turn causes a corresponding change in the Hall voltage, resulting in a rise or fall in its value. Conversely, when the user releases the key, the distance between them gradually increases, the magnetic field strength weakens, and the Hall voltage falls or rises again. The keyboard's control system accurately determines whether a key has been triggered by monitoring these subtle changes in the Hall voltage in real time. In this process, the sensitivity of the Hall effect sensor becomes a crucial factor in feeding back signals to the MCU (Microcontroller Unit), and its importance is self-evident.

[0004] However, existing magnetic switch keyboards on the market have a significant technical limitation. The power supply voltage provided to the Hall effect sensors is fixed, which presents a potential problem: when users need to replace the key switches for personalization or maintenance, the power supply voltage may be incompatible with the Hall effect sensors in the new switches. In this case, the new switches may not function properly, affecting the user experience. In summary, the main drawback of current magnetic switch keyboard technology is its inability to flexibly adjust the power supply voltage, directly resulting in poor key switch compatibility. Summary of the Invention

[0005] The purpose of this application is to overcome the shortcomings and deficiencies in the prior art and to provide a Hall element power supply circuit and power supply method for a magnetic flux shaft.

[0006] A first aspect of this application provides a Hall element power supply circuit for a magnetic flux axis, comprising: a main control module and a programmable buck converter module; wherein, the main control module is provided with a first communication terminal; the programmable buck converter module includes a programmable buck converter chip and a pulse energy storage unit; the programmable buck converter chip is provided with a second communication terminal and a pulse signal output terminal; the pulse energy storage unit is provided with an input terminal and an output terminal; The second communication terminal of the programmable buck converter chip is connected to the first communication terminal of the main control module, and the pulse signal output terminal of the programmable buck converter chip is connected to the input terminal of the pulse energy storage unit; the output terminal of the pulse energy storage unit is used to supply power to the Hall element corresponding to the magnetic flux axis; the main control module is used to control the pulse signal output by the pulse signal output terminal of the programmable buck converter chip to control the power supply voltage output by the pulse energy storage unit.

[0007] In one embodiment, the pulse energy storage unit includes an energy storage inductor; The first end of the energy storage inductor is the input end of the pulse energy storage unit, and the second end of the energy storage inductor is the output end of the pulse energy storage unit.

[0008] In one embodiment, the programmable buck converter chip is provided with a voltage feedback terminal; the voltage feedback terminal of the programmable buck converter chip is connected to the output terminal of the pulse energy storage unit through a voltage divider module.

[0009] In one implementation, the main control module is provided with a unit switch signal output terminal; the programmable buck converter module further includes a buck switch unit, which is provided with a first unit terminal, a second unit terminal and a unit drive terminal; The output terminal of the pulse energy storage unit is connected to the first unit terminal of the step-down switch unit. The second unit terminal of the step-down switch unit is used to connect to the Hall element corresponding to the magnetic flux axis. The unit drive terminal of the step-down switch unit is connected to the unit switch signal output terminal of the main control module. The main control module is used to control the switching state of the step-down switch unit through the unit switch signal output terminal. When the step-down switch unit is in the on state, the step-down switch unit supplies power to the Hall element corresponding to the magnetic flux axis. When the step-down switch unit is in the off state, the step-down switch unit stops supplying power.

[0010] In one implementation, the buck switching unit includes a PMOS switch and an NMOS switch; The source of the PMOS switch is the first terminal of the buck switching unit, the drain of the PMOS switch is the second terminal of the buck switching unit, the gate of the PMOS switch is connected to the drain of the NMOS switch, the gate of the NMOS switch is the unit driving terminal of the buck switching unit, and the source of the NMOS switch is grounded.

[0011] In one implementation, the Hall element power supply circuit corresponding to the magnetic flux shaft further includes a first step-down power supply module, a second step-down power supply module, and a third step-down power supply module; wherein the output voltages of the first step-down power supply module, the second step-down power supply module, and the third step-down power supply module are different; The main control module is further provided with a first switch signal output terminal, a second switch signal output terminal and a third switch signal output terminal. The main control module is connected to the first step-down power supply module, the second step-down power supply module and the third step-down power supply module through the first switch signal output terminal, the second switch signal output terminal and the third switch signal output terminal respectively. The main control module is used to control the switching state of the first step-down power supply module, the second step-down power supply module and the third step-down power supply module through the first switch signal output terminal, the second switch signal output terminal and the third switch signal output terminal respectively. The module voltage output terminals of the first step-down power supply module, the second step-down power supply module, and the third step-down power supply module are respectively used to connect to the Hall element corresponding to the magnetic flux axis.

[0012] Compared to related technologies, the Hall element power supply circuit for the magnetic flux shaft of this application includes a main control module and a programmable buck converter module. The programmable buck converter module includes a programmable buck converter chip and a pulse energy storage unit. The main control module outputs a voltage control signal to the second communication terminal of the programmable buck converter chip through the first communication terminal, so that the programmable buck converter chip outputs a pulse signal corresponding to the voltage control signal to the pulse energy storage unit. The pulse energy storage unit stores and releases energy according to the duty cycle of the received pulse signal to output a power supply voltage corresponding to the pulse signal to the Hall element corresponding to the magnetic flux shaft. This can meet the working voltage requirements of Hall elements of various magnetic flux shafts, so that after the Hall element of the magnetic flux shaft is replaced in the magnetic axis keyboard, the Hall element of the new magnetic flux shaft can also operate normally, improving the flexibility of power supply voltage adjustment. Furthermore, the main control module can control the switching states of the programmable step-down converter module, the first step-down power supply module, the second step-down power supply module, and the third step-down power supply module respectively through the unit switch signal output terminal, the first switch signal output terminal, the second switch signal output terminal, and the third switch signal output terminal. This allows the module to select one of the programmable step-down converter module, the first step-down power supply module, the second step-down power supply module, and the third step-down power supply module to supply power to the Hall element corresponding to the magnetic flux axis. This further improves the flexibility of power supply voltage adjustment and avoids multiple modules with different power supply voltages simultaneously supplying power to the Hall element of the magnetic flux axis, thereby improving the safety of power supply to the Hall element of the magnetic flux axis.

[0013] A second aspect of this application provides a method for powering a Hall element of a magnetic flux shaft, applied to the main control module of the Hall element power supply circuit of the magnetic flux shaft as described above, the method comprising: The pulse signal output by the programmable buck converter chip is controlled to control the power supply voltage output by the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis; The real-time travel value of the Hall element corresponding to the magnetic flux shaft is collected as the first voltage when the travel value is at the minimum preset travel value, and the real-time travel value of the Hall element corresponding to the magnetic flux shaft is collected as the second voltage when the travel value is at the maximum preset travel value. The duty cycle of the pulse signal output by the programmable buck converter chip is adjusted according to the voltage difference between the first voltage and the second voltage, so as to adjust the power supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis.

[0014] As one implementation, the step of adjusting the duty cycle of the pulse signal output by the programmable buck converter chip according to the voltage difference between the first voltage and the second voltage, so as to adjust the supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis, includes: If the absolute value of the voltage difference is within the preset voltage difference reference range, the duty cycle of the pulse signal output by the programmable buck converter chip is maintained to maintain the power supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis.

[0015] As one implementation, the step of adjusting the duty cycle of the pulse signal output by the programmable buck converter chip according to the voltage difference between the first voltage and the second voltage, so as to adjust the supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis, includes: If the absolute value of the voltage difference is greater than the voltage difference reference range, the duty cycle of the pulse signal output by the programmable buck converter chip is reduced to decrease the supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis.

[0016] As one implementation, the step of adjusting the duty cycle of the pulse signal output by the programmable buck converter chip according to the voltage difference between the first voltage and the second voltage, so as to adjust the supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis, includes: If the absolute value of the voltage difference is less than the voltage difference reference range, the duty cycle of the pulse signal output by the programmable buck converter chip is increased to increase the supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis.

[0017] Compared to related technologies, the Hall element power supply method for the magnetic flux shaft of this application controls the pulse signal output by the programmable buck converter chip to control the power supply voltage output by the pulse energy storage unit to the Hall element corresponding to the magnetic flux shaft; then, it acquires a first voltage when the real-time travel value of the Hall element corresponding to the magnetic flux shaft is the minimum preset travel value, and a second voltage when the real-time travel value of the Hall element corresponding to the magnetic flux shaft is the maximum preset travel value; then, it adjusts the duty cycle of the pulse signal output by the programmable buck converter chip according to the voltage difference between the first voltage and the second voltage, so as to adjust the output voltage of the pulse energy storage unit. The supply voltage to the Hall element corresponding to the magnetic flux axis is adjusted based on the voltage difference between the first voltage when the real-time travel value of the Hall element of the magnetic flux axis is at its minimum preset travel value and the second voltage when the real-time travel value is at its maximum preset travel value. This allows for adjustment of the duty cycle of the pulse signal output by the programmable step-down converter chip, thereby adjusting the supply voltage from the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis. This helps meet the operating voltage requirements of Hall elements of various magnetic flux axes, ensuring that the Hall element of the new magnetic flux axis can operate normally after the magnetic axis keyboard is replaced, thus improving the flexibility of supply voltage adjustment.

[0018] To provide a clearer understanding of this application, the specific embodiments of this application will be described below in conjunction with the accompanying drawings. Attached Figure Description

[0019] Figure 1 This is a module connection diagram of the Hall element power supply circuit for a magnetic flux shaft according to an embodiment of this application.

[0020] Figure 2 This is a schematic diagram of the main control module of the Hall element power supply circuit for a magnetic flux shaft according to an embodiment of this application.

[0021] Figure 3 This is a schematic diagram of a programmable buck converter module for the Hall element power supply circuit of the magnetic flux shaft according to an embodiment of this application.

[0022] Figure 4 This is a schematic diagram of a Hall element for a magnetic flux shaft according to an embodiment of this application.

[0023] Figure 5 This is a schematic diagram of the connection of the step-down power supply module of the Hall element power supply circuit for the magnetic flux shaft according to an embodiment of this application.

[0024] Figure 6 This is a schematic diagram of a first step-down power supply module according to an embodiment of this application.

[0025] Figure 7 This is a schematic diagram of a second step-down power supply module according to an embodiment of this application.

[0026] Figure 8 This is a schematic diagram of a third step-down power supply module according to an embodiment of this application.

[0027] Figure 9 A flowchart illustrating a method for supplying power to a Hall element of a magnetic flux shaft according to an embodiment of this application.

[0028] 10. Hall element power supply circuit for magnetic flux axis; 11. Main control module; 13. Programmable step-down conversion module; 133. Pulse energy storage unit; 135. Step-down switching unit; 15. First step-down power supply module; 17. Second step-down power supply module; 19. Third step-down power supply module; 30. Hall element. Detailed Implementation

[0029] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0030] It should be understood that the described embodiments are merely some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of the embodiments of this application.

[0031] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances. The singular forms "a," "the," and "the" used in this application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. The word "if" as used herein can be interpreted as "when," "when," or "in response to determination."

[0032] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0033] Please see Figure 1 , Figure 2 and Figure 3 , Figure 1 This is a module connection diagram of the Hall element power supply circuit 10 of the magnetic flux shaft according to the first embodiment of this application. Figure 2 This is a schematic diagram of the main control module 11 according to the first embodiment of this application. Figure 3 This is a schematic diagram of the programmable buck converter module 13 according to the first embodiment of this application.

[0034] The Hall element power supply circuit 10 corresponding to the magnetic flux shaft includes: a main control module 11 and a programmable step-down converter module 13; wherein, the main control module 11 is provided with a first communication terminal ( Figure 2 The programmable buck converter module 13 includes a programmable buck converter chip (the PB8 and PB9 terminals of U1); Figure 3 The programmable buck converter chip is equipped with a second communication terminal (U6) and a pulse energy storage unit 133; the ... Figure 3 The pulse energy storage unit 133 has an input terminal and an output terminal; the pulse energy storage unit 133 is provided with an input terminal and an output terminal. The second communication terminal of the programmable buck converter chip is connected to the first communication terminal of the main control module 11, and the pulse signal output terminal of the programmable buck converter chip is connected to the input terminal of the pulse energy storage unit 133; the output terminal of the pulse energy storage unit 133 is used to supply power to the Hall element 30 corresponding to the magnetic flux axis; the main control module 11 is used to control the pulse signal output by the pulse signal output terminal of the programmable buck converter chip to control the power supply voltage output by the pulse energy storage unit 133.

[0035] The voltage input terminal of the programmable buck converter chip ( Figure 3 The VIN terminal of U6 is connected to the power supply.

[0036] Please see Figure 4 The magnetic flux shaft includes multiple Hall elements 30 connected in parallel. Figure 4 (HU1-HU66 in the series).

[0037] In one feasible embodiment, the pulse energy storage unit 133 includes an energy storage inductor ( Figure 3 L in the middle) and energy storage filter capacitor ( Figure 3 (C125 in the middle). The first end of the energy storage inductor is the input end of the pulse energy storage unit 133, and the second end of the energy storage inductor is the output end of the pulse energy storage unit 133.

[0038] The main control module 11 of this application (i.e., MCU) Figure 2 The U1 in the programmable buck converter chip sends signal commands to the SCL and SDA terminals of the programmable buck converter chip through its PB8 and PB9 terminals. This causes the internal PWM control SW of the programmable buck converter chip to change the switching frequency, thereby controlling the duty cycle of the pulse signal output from the SW terminal of the programmable buck converter chip. The energy storage inductor L stores and releases energy according to the duty cycle of the pulse signal, and the energy is filtered by the energy storage filter capacitor C125, thereby stabilizing the output supply voltage to the Hall element 30 corresponding to the magnetic flux axis. When it is necessary to adjust the supply voltage to the Hall element 30 corresponding to the magnetic flux axis, the main control module 11 changes the signal commands sent through its PB8 and PB9 terminals, which changes the duty cycle of the pulse signal output from the SW terminal of the programmable buck converter chip. This changes the frequency and value of energy storage and release by the energy storage inductor L according to the duty cycle of the pulse signal, thereby changing the supply voltage to the Hall element 30 corresponding to the magnetic flux axis.

[0039] In one feasible embodiment, the programmable buck converter chip is provided with a voltage feedback terminal; the voltage feedback terminal of the programmable buck converter chip is connected to a voltage divider module ( Figure 3R27 and R25 in the pulse energy storage unit 133 are connected to the output terminal of the pulse energy storage unit 133.

[0040] The voltage feedback terminal of the programmable buck converter chip monitors the output of the energy storage inductor through a voltage divider module, which helps to ensure the accuracy of the power supply voltage output.

[0041] In one feasible embodiment, the main control module 11 is provided with a unit switch signal output terminal ( Figure 2 The programmable buck converter module 13 further includes a buck switch unit 135, which has a first unit terminal, a second unit terminal, and a unit drive terminal. The output terminal of the pulse energy storage unit 133 is connected to the first unit terminal of the step-down switch unit 135. The second unit terminal of the step-down switch unit 135 is used to connect to the Hall element 30 corresponding to the magnetic flux axis. The unit drive terminal of the step-down switch unit 135 is connected to the unit switch signal output terminal of the main control module 11. The main control module 11 is used to control the switching state of the step-down switch unit 135 through the unit switch signal output terminal. When the step-down switch unit 135 is in the switch-on state, the step-down switch unit 135 supplies power to the Hall element 30 corresponding to the magnetic flux axis. When the step-down switch unit 135 is in the switch-off state, the step-down switch unit 135 stops supplying power.

[0042] Compared to related technologies, the Hall element power supply circuit 10 for the magnetic flux axis of this application includes a main control module 11 and a programmable buck converter module 13. The programmable buck converter module 13 includes a programmable buck converter chip and a pulse energy storage unit 133. The main control module 11 outputs a voltage control signal to the second communication terminal of the programmable buck converter chip through the first communication terminal, so that the programmable buck converter chip outputs a pulse signal corresponding to the voltage control signal to the pulse energy storage unit 133. The pulse energy storage unit 133 stores and releases energy according to the duty cycle of the received pulse signal, so as to output a power supply voltage corresponding to the pulse signal to the Hall element 30 corresponding to the magnetic flux axis. This can meet the working voltage requirements of Hall elements 30 of various magnetic flux axes, so that after the Hall element 30 of the magnetic flux axis keyboard is replaced, the Hall element 30 of the new magnetic flux axis can also operate normally, improving the flexibility of power supply voltage adjustment.

[0043] Please see Figure 3 In one feasible embodiment, the buck switching unit 135 includes a PMOS switch ( Figure 3 Q5 in the middle) and NMOS switch ( Figure 3 (Q6 in the middle) The source of the PMOS switch is the first unit terminal of the buck switch unit 135, the drain of the PMOS switch is the second unit terminal of the buck switch unit 135, the gate of the PMOS switch is connected to the drain of the NMOS switch, the gate of the NMOS switch is the unit driving terminal of the buck switch unit 135, and the source of the NMOS switch is grounded.

[0044] The source of the PMOS switch is connected to the gate of the PMOS switch through a resistor.

[0045] Please see Figure 5 In one feasible embodiment, the Hall element power supply circuit 10 corresponding to the magnetic flux axis further includes a first step-down power supply module 15, a second step-down power supply module 17, and a third step-down power supply module 19; wherein the output voltages of the first step-down power supply module 15, the second step-down power supply module 17, and the third step-down power supply module 19 are different. The main control module 11 is also provided with a first switch signal output terminal ( Figure 2 PB10 of U1), the second switch signal output terminal ( Figure 2 PB11 of U1 and the third switch signal output terminal ( Figure 2 (PB12 of U1), the main control module 11 is connected to the first step-down power supply module 15, the second step-down power supply module 17 and the third step-down power supply module 19 through the first switch signal output terminal, the second switch signal output terminal and the third switch signal output terminal respectively. The main control module 11 is used to control the switching state of the first step-down power supply module 15, the second step-down power supply module 17 and the third step-down power supply module 19 through the first switch signal output terminal, the second switch signal output terminal and the third switch signal output terminal respectively. The module voltage output terminals of the first step-down power supply module 15, the second step-down power supply module 17 and the third step-down power supply module 19 are respectively used to connect to the Hall element 30 corresponding to the magnetic flux axis.

[0046] Please see Figure 6 The first step-down power supply module 15 includes a first step-down chip ( Figure 6 The first step-down chip includes a first voltage input terminal and a first voltage output terminal, and the first switching unit includes a first connection terminal, a second connection terminal, and a first driving terminal. The first voltage input terminal of the first step-down chip is connected to the power supply, and the first voltage output terminal of the first step-down chip is connected to the first connection terminal of the first switching unit; the second connection terminal of the first switching unit is the module voltage output terminal of the first step-down power supply module 15; the first driving terminal of the first switching unit is connected to the first switching signal output terminal of the main control module 11.

[0047] The first switching unit includes a first PMOS transistor ( Figure 6 Q1) and the first NMOS transistor ( Figure 6 (Q11 in the middle). The source of the first PMOS transistor is the first connection terminal of the first switching unit, the drain of the first PMOS transistor is the second connection terminal of the first switching unit, the gate of the first PMOS transistor is connected to the drain of the first NMOS transistor, the gate of the first NMOS transistor is the first driving terminal of the first switching unit, and the source of the first NMOS transistor is grounded.

[0048] The first switching unit also includes a pull-down resistor ( Figure 6 (R17 in the diagram), the source of the first PMOS transistor is connected to the gate of the first PMOS transistor via the pull-down resistor.

[0049] The first switching unit also includes a first filter capacitor ( Figure 6 (C32 in the first PMOS transistor), the drain of the first PMOS transistor is grounded through the first filter capacitor.

[0050] Please see Figure 7 The second step-down power supply module 17 includes a second step-down chip ( Figure 7 The second step-down chip includes a second voltage input terminal and a second voltage output terminal, and the second switching unit includes a third connection terminal, a fourth connection terminal, and a second driving terminal; wherein, the output voltage of the second step-down chip is greater than that of the first step-down chip. The second voltage input terminal of the second step-down chip is connected to the power supply, and the second voltage output terminal of the second step-down chip is connected to the third connection terminal of the second switching unit; the fourth connection terminal of the second switching unit is the module voltage output terminal of the second step-down power supply module 17; the second drive terminal of the second switching unit is connected to the second switch signal output terminal of the main control module 11.

[0051] The second switching unit includes a second PMOS transistor ( Figure 7 Q13 in the second NMOS transistor (Q13) and the second NMOS transistor (Q13) Figure 7 (Q12 in the middle). The source of the second PMOS transistor is the third connection terminal of the second switching unit, the drain of the second PMOS transistor is the fourth connection terminal of the second switching unit, the gate of the second PMOS transistor is connected to the drain of the second NMOS transistor, the gate of the second NMOS transistor is the second driving terminal of the second switching unit, and the source of the second NMOS transistor is grounded.

[0052] Please see Figure 8 The third step-down power supply module 19 includes a third step-down chip ( Figure 8 The third step-down chip includes a third voltage input terminal and a third voltage output terminal, and the third switching unit includes a fifth connection terminal, a sixth connection terminal, and a third driving terminal; wherein, the output voltage of the third step-down chip is less than that of the first step-down chip. The third voltage input terminal of the third step-down chip is connected to the power supply, and the third voltage output terminal of the third step-down chip is connected to the fifth connection terminal of the third switching unit; the sixth connection terminal of the third switching unit is the module voltage output terminal of the third step-down power supply module 19; the third driving terminal of the third switching unit is connected to the third switching signal output terminal of the main control module 11.

[0053] The third switching unit includes a third PMOS transistor ( Figure 8 Q4) and the third NMOS transistor ( Figure 8 (Q15 in the text) The source of the third PMOS transistor is the fifth connection terminal of the third switching unit, the drain of the third PMOS transistor is the sixth connection terminal of the third switching unit, the gate of the third PMOS transistor is connected to the drain of the third NMOS transistor, the gate of the third NMOS transistor is the third driving terminal of the third switching unit, and the source of the third NMOS transistor is grounded.

[0054] In this embodiment, the main control module 11 can also control the switching states of the programmable step-down converter module 13, the first step-down power supply module 15, the second step-down power supply module 17, and the third step-down power supply module 19 respectively through the unit switch signal output terminal, the first switch signal output terminal, the second switch signal output terminal, and the third switch signal output terminal. This allows the module to select one of the programmable step-down converter module 13, the first step-down power supply module 15, the second step-down power supply module 17, and the third step-down power supply module 19 to supply power to the Hall element 30 corresponding to the magnetic flux axis. This further improves the flexibility of power supply voltage adjustment and avoids multiple modules with different power supply voltages simultaneously supplying power to the Hall element 30 of the magnetic flux axis, thereby improving the safety of power supply to the Hall element 30 of the magnetic flux axis.

[0055] Please see Figure 9The second embodiment of this application provides a power supply method for the Hall element 30 of a magnetic flux shaft, applied to the main control module of the Hall element power supply circuit of the magnetic flux shaft as described above. The method includes: S1: Control the pulse signal output by the programmable buck converter chip to control the power supply voltage output by the pulse energy storage unit to the Hall element 30 corresponding to the magnetic flux axis; S2: Collect the first voltage when the real-time travel value of the Hall element 30 corresponding to the magnetic flux shaft is the minimum preset travel value, and the second voltage when the real-time travel value of the Hall element 30 corresponding to the magnetic flux shaft is the maximum preset travel value; S3: Adjust the duty cycle of the pulse signal output by the programmable buck converter chip according to the voltage difference between the first voltage and the second voltage, so as to adjust the power supply voltage of the pulse energy storage unit to the Hall element 30 corresponding to the magnetic flux axis.

[0056] In a feasible embodiment, step S3: adjusting the duty cycle of the pulse signal output by the programmable buck converter chip according to the voltage difference between the first voltage and the second voltage, so as to adjust the supply voltage of the pulse energy storage unit to the Hall element 30 corresponding to the magnetic flux axis, includes: S31: If the absolute value of the voltage difference is within the preset voltage difference reference range, maintain the duty cycle of the pulse signal output by the programmable buck converter chip to maintain the power supply voltage of the pulse energy storage unit to the Hall element 30 corresponding to the magnetic flux axis.

[0057] The center value of the voltage difference reference range is the linear width value of the magnetic axis switch of the Hall element 30 of the standard magnetic flux axis (e.g., 1260mV). The upper and lower limits of the voltage difference reference range are set by the user. For example, the upper and lower limits of the voltage difference reference range can be set to ±5mV of the supply voltage.

[0058] In a feasible embodiment, step S3: adjusting the duty cycle of the pulse signal output by the programmable buck converter chip according to the voltage difference between the first voltage and the second voltage, so as to adjust the supply voltage of the pulse energy storage unit to the Hall element 30 corresponding to the magnetic flux axis, includes: S32: If the absolute value of the voltage difference is greater than the voltage difference reference range, reduce the duty cycle of the pulse signal output by the programmable buck converter chip to reduce the supply voltage of the pulse energy storage unit to the Hall element 30 corresponding to the magnetic flux axis.

[0059] Wherein, greater than the voltage difference reference range means greater than the maximum value of the voltage difference reference range.

[0060] In a feasible embodiment, step S3: adjusting the duty cycle of the pulse signal output by the programmable buck converter chip according to the voltage difference between the first voltage and the second voltage, so as to adjust the supply voltage of the pulse energy storage unit to the Hall element 30 corresponding to the magnetic flux axis, includes: S33: If the absolute value of the voltage difference is less than the voltage difference reference range, the duty cycle of the pulse signal output by the programmable buck converter chip is increased to increase the supply voltage of the pulse energy storage unit to the Hall element 30 corresponding to the magnetic flux axis.

[0061] Wherein, less than the voltage difference reference range means less than the minimum value of the voltage difference reference range.

[0062] As a feasible implementation method, the power supply method for the Hall element 30 of the magnetic flux shaft in this embodiment can actively acquire voltage differences for use as the power supply voltage through a calibration mode. In fact, adaptive sensitivity selection means selecting a suitable power supply voltage for the Hall element 30. Entering calibration mode allows for faster selection of a suitable power supply voltage. For example, even without entering calibration mode, the voltage can be automatically captured and switched during use, but this is a relatively lengthy process because the user may not press the button to its maximum travel. Entering calibration mode requires the user to effectively press the button to its maximum travel once within this mode. This can be understood as one being automatic and the other passive. The MCU captures the voltage difference quantified by the ADC module. This voltage difference is |V1-V2| (the difference between the values ​​from rest to bottoming out, where V1 is the first voltage when the real-time travel value is the minimum preset travel value, and V2 is the second voltage when the real-time travel value is the maximum preset travel value, where the minimum preset travel value can be set to 0). The current magnetic flux can be calculated from the voltage difference. For example, the normal operating voltage requirement of the Hall element 30 of the flux shaft before replacement is 5V, its sensitivity is 3.0mV / Gs, and the corresponding magnetic change of the magnetic shaft switch is 420Gs, that is, the voltage difference from rest to bottoming out is 420×3=1260mV, which is within the voltage difference reference range; the voltage difference from rest to bottoming out of the Hall element 30 of the flux shaft after replacement is 1575mV, which is significantly greater than the preset voltage difference reference range, indicating that the current supply voltage is greater than the normal operating voltage requirement of the Hall element 30 of the replaced flux shaft. At this time, the duty cycle of the pulse signal output by the programmable step-down converter chip is reduced to reduce the supply voltage of the pulse energy storage unit to the Hall element 30 corresponding to the flux shaft, until the voltage difference from rest to bottoming out of the Hall element 30 of the replaced flux shaft is within the preset voltage difference reference range.

[0063] Compared to related technologies, the power supply method for the Hall element 30 of the magnetic flux shaft in this application controls the pulse signal output by the programmable buck converter chip to control the power supply voltage output by the pulse energy storage unit to the Hall element 30 corresponding to the magnetic flux shaft; then, it collects a first voltage when the real-time travel value of the Hall element 30 corresponding to the magnetic flux shaft is the minimum preset travel value, and a second voltage when the real-time travel value of the Hall element 30 corresponding to the magnetic flux shaft is the maximum preset travel value; then, it adjusts the duty cycle of the pulse signal output by the programmable buck converter chip according to the voltage difference between the first voltage and the second voltage, so as to adjust the power supply voltage output by the pulse energy storage unit to the Hall element 30. The power supply voltage of the Hall element 30 corresponding to the magnetic flux axis is adjusted based on the voltage difference between the first voltage when the real-time travel value of the Hall element 30 of the magnetic flux axis is at its minimum preset travel value and the second voltage when the real-time travel value is at its maximum preset travel value. This allows for adjustment of the duty cycle of the pulse signal output by the programmable step-down converter chip, thereby adjusting the power supply voltage output by the pulse energy storage unit to the Hall element 30 corresponding to the magnetic flux axis. This helps meet the operating voltage requirements of the Hall element 30 for various magnetic flux axes, ensuring that the new Hall element 30 can operate normally after the magnetic flux axis keyboard is replaced, thus improving the flexibility of power supply voltage adjustment.

[0064] It should be noted that the power supply method for the Hall element 30 of the magnetic flux shaft provided in the second embodiment of this application is based on the same concept as the power supply circuit for the Hall element of the magnetic flux shaft in the first embodiment of this application. The implementation process is detailed in the first embodiment and will not be repeated here.

[0065] The device embodiments described above are merely illustrative. The components described as separate parts may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this application according to actual needs. Those skilled in the art can understand and implement this without any inventive effort.

[0066] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0067] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function selected in one or more boxes.

[0068] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function selected in one or more boxes.

[0069] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0070] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0071] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0072] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. 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 apparatus that includes that element.

[0073] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A Hall element power supply circuit for a magnetic flux shaft, characterized in that, include: The system includes a main control module and a programmable buck converter module. The main control module has a first communication terminal. The programmable buck converter module includes a programmable buck converter chip and a pulse energy storage unit. The programmable buck converter chip has a second communication terminal and a pulse signal output terminal. The pulse energy storage unit has an input terminal and an output terminal. The second communication terminal of the programmable buck converter chip is connected to the first communication terminal of the main control module, and the pulse signal output terminal of the programmable buck converter chip is connected to the input terminal of the pulse energy storage unit; the output terminal of the pulse energy storage unit is used to supply power to the Hall element corresponding to the magnetic flux axis; the main control module is used to control the pulse signal output by the pulse signal output terminal of the programmable buck converter chip to control the power supply voltage output by the pulse energy storage unit.

2. The Hall element power supply circuit for the magnetic flux shaft according to claim 1, characterized in that: The pulse energy storage unit includes an energy storage inductor; The first end of the energy storage inductor is the input end of the pulse energy storage unit, and the second end of the energy storage inductor is the output end of the pulse energy storage unit.

3. The Hall element power supply circuit for the magnetic flux shaft according to claim 1, characterized in that: The programmable buck converter chip is provided with a voltage feedback terminal; the voltage feedback terminal of the programmable buck converter chip is connected to the output terminal of the pulse energy storage unit through a voltage divider module.

4. The Hall element power supply circuit for the magnetic flux shaft according to claim 1, characterized in that: The main control module is provided with a unit switch signal output terminal; the programmable step-down converter module also includes a step-down switch unit, which is provided with a first unit terminal, a second unit terminal and a unit drive terminal; The output terminal of the pulse energy storage unit is connected to the first unit terminal of the step-down switch unit. The second unit terminal of the step-down switch unit is used to connect to the Hall element corresponding to the magnetic flux axis. The unit drive terminal of the step-down switch unit is connected to the unit switch signal output terminal of the main control module. The main control module is used to control the switching state of the step-down switch unit through the unit switch signal output terminal. When the step-down switch unit is in the on state, the step-down switch unit supplies power to the Hall element corresponding to the magnetic flux axis. When the step-down switch unit is in the off state, the step-down switch unit stops supplying power.

5. The Hall element power supply circuit for the magnetic flux shaft according to claim 4, characterized in that: The buck switching unit includes a PMOS switch and an NMOS switch; The source of the PMOS switch is the first terminal of the buck switching unit, the drain of the PMOS switch is the second terminal of the buck switching unit, the gate of the PMOS switch is connected to the drain of the NMOS switch, the gate of the NMOS switch is the unit driving terminal of the buck switching unit, and the source of the NMOS switch is grounded.

6. The Hall element power supply circuit for the magnetic flux shaft according to claim 4, characterized in that: The power supply circuit for the Hall element corresponding to the magnetic flux shaft further includes a first step-down power supply module, a second step-down power supply module, and a third step-down power supply module; wherein, the output voltages of the first step-down power supply module, the second step-down power supply module, and the third step-down power supply module are different; The main control module is further provided with a first switch signal output terminal, a second switch signal output terminal and a third switch signal output terminal. The main control module is connected to the first step-down power supply module, the second step-down power supply module and the third step-down power supply module through the first switch signal output terminal, the second switch signal output terminal and the third switch signal output terminal respectively. The main control module is used to control the switching state of the first step-down power supply module, the second step-down power supply module and the third step-down power supply module through the first switch signal output terminal, the second switch signal output terminal and the third switch signal output terminal respectively. The module voltage output terminals of the first step-down power supply module, the second step-down power supply module, and the third step-down power supply module are respectively used to connect to the Hall element corresponding to the magnetic flux axis.

7. A method for powering a Hall element on a magnetic flux shaft, characterized in that, The main control module applied to the Hall element power supply circuit of the magnetic flux shaft as described in any one of claims 1-6, the method comprising: The pulse signal output by the programmable buck converter chip is controlled to control the power supply voltage output by the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis; The real-time travel value of the Hall element corresponding to the magnetic flux shaft is collected as the first voltage when the travel value is at the minimum preset travel value, and the real-time travel value of the Hall element corresponding to the magnetic flux shaft is collected as the second voltage when the travel value is at the maximum preset travel value. The duty cycle of the pulse signal output by the programmable buck converter chip is adjusted according to the voltage difference between the first voltage and the second voltage, so as to adjust the power supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis.

8. The power supply method for the Hall element of the magnetic flux shaft according to claim 7, characterized in that, The step of adjusting the duty cycle of the pulse signal output by the programmable buck converter chip based on the voltage difference between the first voltage and the second voltage, so as to adjust the supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis, includes: If the absolute value of the voltage difference is within the preset voltage difference reference range, the duty cycle of the pulse signal output by the programmable buck converter chip is maintained to maintain the power supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis.

9. The power supply method for the Hall element of the magnetic flux shaft according to claim 7, characterized in that, The step of adjusting the duty cycle of the pulse signal output by the programmable buck converter chip based on the voltage difference between the first voltage and the second voltage, so as to adjust the supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis, includes: If the absolute value of the voltage difference is greater than the voltage difference reference range, the duty cycle of the pulse signal output by the programmable buck converter chip is reduced to decrease the supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis.

10. The power supply method for the Hall element of the magnetic flux shaft according to claim 7, characterized in that, The step of adjusting the duty cycle of the pulse signal output by the programmable buck converter chip based on the voltage difference between the first voltage and the second voltage, so as to adjust the supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis, includes: If the absolute value of the voltage difference is less than the voltage difference reference range, the duty cycle of the pulse signal output by the programmable buck converter chip is increased to increase the supply voltage of the pulse energy storage unit to the Hall element corresponding to the magnetic flux axis.