Three-mode magnetic axis keyboard system
By using a passive wake-up mechanism and chip mode switching, the high power consumption problem of the three-mode magnetic axis keyboard in sleep mode has been solved, thus realizing a low-power keyboard system.
Patent Information
- Application Number
- CN202520173261.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2026-01-09
- Estimated Expiration
- 2035-01-24
AI Technical Summary
Existing tri-mode magnetic axis keyboards consume too much power in sleep mode, causing the MCU to remain in a high-power state for a long time, which affects the user experience.
A passive wake-up mechanism is adopted, in which the MCU module wakes up the chip when it detects a button press, reducing the MCU's active polling. The chip switches from sleep mode to on/off mode, reducing power consumption.
This reduces the MCU's sleep power consumption to the level of hundreds of microamps, far below the 80mA of existing technologies, thus meeting the low power consumption requirements.
Smart Images

Figure CN223784705U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to the technical field of keyboard, more particularly to a three mode magnetic shaft keyboard system. BACKGROUND
[0002] The existing keyboard on the market is divided into single mode, double mode and three mode, and the difference of the three kinds of keyboards lies in that they can support several connection modes. Single mode keyboard only supports one connection mode, such as USB connection; double mode supports two connection modes, such as USB and Bluetooth connection; and three mode keyboard supports three connection modes, such as USB, Bluetooth and 2.4G wireless connection.
[0003] The three mode magnetic shaft keyboard is very suitable for users who need to apply in different scenes because of its flexible and diverse connection mode. The user can select the most suitable connection mode according to the actual application scene, so as to improve the user experience.
[0004] The application scheme of the existing three mode magnetic shaft keyboard on the market is that the MCU actively sends periodic polling signals to the chip and monitors whether the chip has data return at the same time. Even if the keyboard does not work for a long time, the MCU also needs to continuously and constantly send polling signals, which means that the MCU cannot be in sleep state, and the power consumption of the MCU is much larger than that of the chip. In this case, most of the system power consumption is contributed by the MCU, and even if the average power consumption of the chip is made to be the best, it is also difficult to realize low power consumption. Due to the excessively high sleep power consumption, the user will have more concerns when selecting the keyboard.
[0005] Therefore, it is urgent to develop a three mode magnetic shaft keyboard application scheme with low sleep power consumption. SUMMARY
[0006] In view of the defects in the prior art, the utility model provides a three mode magnetic shaft keyboard system, which fundamentally solves the problem of excessive sleep power consumption of the three mode magnetic shaft keyboard.
[0007] The utility model provides a three mode magnetic axle keyboard system, including a plurality of keys and a MCU module, the key arrangement is m row n column, m >=1, n >=1, every key includes a chip, every chip at least includes chip enable foot, chip mode control foot, chip magnetic signal response output foot and chip signal interrupt foot, wherein, the chip enable foot of chip in same column is connected to one enable end of MCU module together, the chip magnetic signal response output foot of chip in same row is connected together and forms an output end, every output end is connected to one sampling end of MCU module, the chip signal interrupt foot of all chips is connected to the interrupt signal end of MCU module together and is connected to power supply through pull up resistance, the MCU module can switch between working mode and dormancy mode, the chip mode control foot of all chips is connected to the control end of MCU module together to drive chip synchronous mode switching when MCU module mode switches, the MCU module sends polling signal to the chip in linear mode through the enable end of MCU module under working mode, and receives the signal of chip under switch mode through the interrupt signal end under dormancy mode.
[0008] Further, the MCU module and the chip are arranged as:
[0009] After the three mode magnetic axle keyboard is powered on, the MCU module enters working mode, the control end of MCU module sends low level signal, all chips are in linear mode, and the chip signal interrupt foot is in high resistance state; under working mode, the MCU module sends polling signal through the enable end of MCU module according to the polling cycle of N preset, the sampling end of MCU module collects the output end, detects whether a key is pressed according to the collected output voltage value; if it is detected that a key is pressed within the polling cycle of N preset, the MCU module will continuously send polling signal, the MCU module remains working mode, and the chip remains linear mode;
[0010] If the MCU module does not detect that a key is pressed again for N polling cycles after detecting that a key is pressed for the last time, the control end of the MCU module sends high level signal, all chips enter switch mode, the interrupt signal end of the MCU module opens interrupt detection, and the MCU module enters dormancy mode;
[0011] When the MCU module is in dormancy mode, if any key is pressed, the chip signal interrupt foot of the chip corresponding to the key outputs low level, the interrupt signal end of the MCU module receives low level signal, the MCU module is waken up, the control end of the MCU module sends low level signal, all chips switch to linear mode, and the MCU module enters working mode;
[0012] The above process is repeated until the three-mode magnetic shaft keyboard is powered off.
[0013] Further, the chip adopts a Hall chip.
[0014] Further, the chip enable pins of the chips in the same column are connected together to a selection switch, one movable contact of each selection switch is connected with an external OSC module, and the other movable contact is connected with an enable end of the MCU module.
[0015] Further, the chip enable pins of the chips in the same column are connected together to a selection switch, one movable contact of each selection switch is connected with an OSC unit of the MCU module, and the other movable contact is connected with an enable end of the MCU module.
[0016] Further, the chip adopts a hybrid chip comprising a TMR chip and a Hall chip.
[0017] Further, the power supply pins of the TMR chips in the chips in the same column are connected together to a drain of a PMOS tube, a source of the PMOS tube is connected to a power supply, and a gate of the PMOS tube is connected to a control end of the MCU module.
[0018] Further, the chip enable pin of the Hall chip is connected with the MCU module, and the MCU module outputs a high level to the chip enable pin of the Hall chip.
[0019] Further, the chip enable pin of the Hall chip is connected with an external OSC module.
[0020] Further, the chip enable pin of the Hall chip is connected with an OSC unit of the MCU module.
[0021] The utility model discloses a MCU passive wake-up replaces original active wake-up, if no key is pressed in active polling period after the power on of keyboard system, the MCU enters the sleep mode, and the chip is configured as switch mode, and the power consumption source is the switch average power consumption of chip and the total power consumption of the detection unit for interrupt detection of MCU, can make the sleep power consumption to be hundred microampere level, far less than the sleep power consumption of 80mA of existing market, thereby meet the demand of low power consumption. BRIEF DESCRIPTION OF DRAWINGS
[0022] Figure 1 It is the structure schematic diagram of three-mode magnetic shaft keyboard according to the utility model embodiment one.
[0023] Figure 2is the signal schematic diagram that the MCU module of three mode magnetic shaft keyboard enters sleep mode from working mode, the chip switches from linear mode to switch mode after power on according to the embodiment one of the utility model.
[0024] Figure 3 is the signal schematic diagram that the MCU module of three mode magnetic shaft keyboard keeps working mode, the chip keeps linear mode after power on according to the embodiment one of the utility model.
[0025] Figure 4 is the signal schematic diagram that the MCU module of three mode magnetic shaft keyboard enters sleep mode from working mode, the chip switches from linear mode to switch mode according to the embodiment one of the utility model.
[0026] Figure 5 is the signal schematic diagram that the MCU module of three mode magnetic shaft keyboard enters working mode from sleep mode, the chip switches from switch mode to linear mode according to the embodiment one of the utility model.
[0027] Figure 6 is the structure schematic diagram of three mode magnetic shaft keyboard according to the embodiment two of the utility model.
[0028] Figure 7 is the structure schematic diagram of three mode magnetic shaft keyboard according to the embodiment three of the utility model.
[0029] Figure 8 is the structure schematic diagram of three mode magnetic shaft keyboard according to the embodiment four of the utility model. DETAILED DESCRIPTION
[0030] The preferred embodiments of the utility model are described in detail below with reference to the drawings.
[0031] The three mode magnetic shaft keyboard system of the utility model includes a plurality of keys and an MCU module, these keys are arranged into m rows n columns by analogy matrix, m >= 1, n >= 1, each key includes a chip, and each chip includes at least chip enable foot, chip mode control foot, chip magnetic signal sensing output foot and chip signal interrupt foot, wherein the chip enable foot of the chip in the same column is connected to the MCU module together, the chip magnetic signal sensing output foot of the chip in the same row is connected to the MCU module together, the chip mode control foot of all chips is connected to the MCU module together, and the chip signal interrupt foot of all chips is connected to the power supply through pull-up resistance together.
[0032] The specific structure and working principle of the three mode magnetic shaft keyboard of the utility model are described below through several embodiments.
[0033] Embodiment one
[0034] In this embodiment, the chip is a Hall chip. As shown in Fig. 1, the three mode magnetic shaft keyboard of the utility model includes a plurality of keys and an MCU module, and these keys are arranged into m rows n columns by analogy matrix, m >= 1, n >= 1.Figure 1 As shown, the embodiment shows 6 keys arranged in 2 rows and 3 columns, and the corresponding chip numbers are 1-6. Each chip includes a chip enable pin EN, a chip mode control pin CTRL, a chip magnetic signal sensing output pin OUT, and a chip signal interrupt pin OD INT.
[0035] The EN pin of the No. 1 chip is connected with the EN pin of the No. 4 chip, and together connected to the first enable end EN1 of the MCU module; the EN pin of the No. 2 chip is connected with the EN pin of the No. 5 chip, and together connected to the second enable end EN2 of the MCU module; the EN pin of the No. 3 chip is connected with the EN pin of the No. 6 chip, and together connected to the third enable end EN3 of the MCU module.
[0036] The OUT pin of the No. 1 chip, the OUT pin of the No. 2 chip, and the OUT pin of the No. 3 chip are connected together to form a first output end OUT1, which is connected to the first sampling end ADC CH1 of the MCU module; the OUT pin of the No. 4 chip, the OUT pin of the No. 5 chip, and the OUT pin of the No. 6 chip are connected together to form a second output end OUT2, which is connected to the second sampling end ADC CH2 of the MCU module.
[0037] Meanwhile, the CTRL pins of the 6 chips are connected together to the control end MCU CTRL of the MCU module, the OD INT pins of the 6 chips are connected together to the interrupt signal end MCU OD INT of the MCU module, and the OD INT pins of the 6 chips are connected together to the power supply VCC through a pull-up resistor Rup. It should be understood that in addition to the above four pins, each linear Hall chip also includes other pins, for example, a chip power pin, a chip ground pin, etc. The embodiment only shows the key pins, and the functions and connection modes of the other pins are consistent with the prior art, and thus will not be described again.
[0038] The EN pin and the CTRL pin of the above chip are input pins, and the MCU module controls the high and low levels of the EN pin and the CTRL pin by sending low level signals or high level signals to the EN pin and the CTRL pin, thereby controlling the chip mode type. The correspondence between the high and low levels of the two pins and the chip mode type is shown in the following table:
[0039] EN pin CTRL pin Chip mode type High level Low level Linear-sleep mode High level High level Switch-sleep mode Low level Low level Linear-work mode Low level High level Switch-work mode
[0040] According to the above table, the chip when the CTRL pin is at a low level can be defined as a linear mode, and the chip when the CTRL pin is at a high level can be defined as a switch mode.
[0041] The OUT pin and the OD INT pin of the chip are output pins, and the output voltage value of the OUT pin is transmitted to the first output end OUT1 or the second output end OUT2, is collected by a sampling end of the MCU module, and whether a key is pressed is detected according to the collected output voltage value; for example, the output voltage values of the No. 1 chip, the No. 2 chip and the No. 3 chip are all transmitted to the first output end OUT1, and a plurality of output voltage values of the first output end OUT1 are collected by the first sampling end ADC CH1 of the MCU module. Since the chip is in the linear mode by default, the default state of the OD INT pin is high resistance.
[0042] The detection of whether a key is pressed according to the collected output voltage value can be determined by whether the absolute value of the output voltage value reaches a preset threshold value, or can be determined by whether the relative value of the output voltage value reaches a preset threshold value. When the MCU module detects that a key is pressed, the specific key that is pressed can be located by the signal type of the enable end EN1, EN2 and EN3 and the number of the output voltage value that reaches the preset threshold value. For example, as shown in Figure 2 When whether the absolute value reaches the preset threshold value is used as the determination rule, it is considered that the key in the first row and the second column is pressed when V15 is greater than the preset threshold value, and it is considered that the key in the second row and the first column is pressed when V21 is greater than the preset threshold value. When whether the relative value reaches the preset threshold value is used as the determination rule, it is considered that the key in the first row and the first column is pressed when the difference between V14 and V11 is greater than the preset threshold value, and it is considered that the key in the second row and the third column is pressed when the difference between V29 and V26 is greater than the preset threshold value.
[0043] As shown in Figure 3 After the three-mode magnetic shaft keyboard is powered on, the MCU module enters the working mode, a low-level signal is sent from the control end MCU CTRL of the MCU module, the CTRL pins of all the chips are in the low level, that is, all the chips are in the linear mode, and the OD INT pins are in the default high resistance state at this time. In the working mode, the MCU module sends an EN polling signal according to a preset N polling period, and in one EN polling period, the enable ends EN1, EN2 and EN3 of the MCU module send low-level signals in turn to make the EN pins of the corresponding chips in the low level. At the same time, the output voltage value of the first output end OUT1 is collected by the first sampling end ADC CH1 of the MCU module, the output voltage value of the second output end OUT2 is collected by the second sampling end ADC CH2 of the MCU module, and whether a key is pressed is detected according to the collected output voltage value. If it is detected that a key is pressed within the preset N polling period, the MCU module will continue to send the EN polling signal, the MCU module remains in the working mode, and the chip remains in the linear mode.
[0044] As shown in Figure 4As shown, if the MCU module does not detect a button being pressed again for N consecutive polling cycles after the last time a button is detected being pressed, the MCU module's control terminal MCU_CTRL sends a high-level signal to make the CTRL pin of all chips high, all chips enter the switching mode, the MCU module's interrupt signal terminal enables interrupt detection, that is, it detects the signal at its MCU_OD_INT terminal, and the MCU module enters sleep mode.
[0045] When the MCU module is in sleep mode, all units except the one used to detect the MCU_OD_INT terminal signal are in sleep mode. The sleep power consumption of the MCU module can be controlled within 100 microamps. When the MCU module is in sleep mode, all chips are configured in switching mode. The average power consumption of the chips in switching mode is at the microamp level.
[0046] like Figure 5 As shown, when the MCU module is in sleep mode, if any key is pressed, the OD_INT pin of the corresponding chip outputs a low level. The MCU module detects the low-level signal received at the MCU_OD_INT pin and is awakened. At this time, the MCU module's control terminal MCU_CTRL sends a low-level signal, and all chips switch to linear mode. Simultaneously, the MCU module clears the low-level signal at its MCU_OD_INT pin and enters working mode. This process is repeated until the tri-mode magnetic axis keyboard is powered off.
[0047] Example 2
[0048] This embodiment, based on Embodiment 1, adds an external low-power OSC (oscillator) module to reduce sleep power consumption. For example... Figure 6 As shown, the EN pins of chips 1 and 4 in the same column are connected together to the first selector switch. The two moving contacts of the first selector switch are connected to the first enable terminals EN1 of the OSC module and the MCU module, respectively. The EN pins of chips 2 and 5 are connected together to the second selector switch. The two moving contacts of the second selector switch are connected to the second enable terminals EN2 of the OSC module and the MCU module, respectively. The EN pins of chips 3 and 6 are connected together to the third selector switch. The two moving contacts of the third selector switch are connected to the third enable terminals EN3 of the OSC module and the MCU module, respectively.
[0049] The OSC module continuously outputs logic high and low levels at a specific frequency. The operating time and sleep time of the chip can be determined by controlling the frequency and duty cycle (i.e., the ratio of high to low levels) of the OSC module. When all chips are in switching mode, the EN pin of the chip switches to the moving contact connected to the OSC module via a selector switch, so that the output signal of the OSC module is simultaneously turned on by the enable pins of all chips. In this way, the power consumption of one OSC module can be reduced within each chip.
[0050] The working process and principle of the three-mode magnetic axis keyboard in this embodiment are the same as those in Embodiment 1, and will not be repeated here.
[0051] Example 3
[0052] Based on Embodiments 1 and 2, this embodiment replaces the external low-power OSC module with the long-cycle OSC unit built into the MCU module to reduce the number of electronic components, thereby achieving low power consumption and reducing costs.
[0053] like Figure 7 As shown, the EN pin of chip 1 is connected to the EN pin of chip 4, and together they are connected to the first selector switch. The two moving contacts of the first selector switch are connected to the first enable terminal EN1 of the MCU module and the OSC unit of the MCU module, respectively. The EN pin of chip 2 is connected to the EN pin of chip 5, and together they are connected to the second selector switch. The two moving contacts of the second selector switch are connected to the second enable terminal EN2 of the MCU module and the OSC unit of the MCU module, respectively. The EN pin of chip 3 is connected to the EN pin of chip 6, and together they are connected to the third selector switch. The two moving contacts of the third selector switch are connected to the third enable terminal EN3 of the MCU module and the OSC unit of the MCU module, respectively.
[0054] The working process and principle of the three-mode magnetic axis keyboard in this embodiment are the same as those in Embodiment 1 and Embodiment 2, and will not be repeated here.
[0055] Example 4
[0056] In this embodiment, the chip is a co-packaged chip including a TMR chip and a Hall chip. The chip with TMR material as the magnetic sensing element has better power consumption and signal-to-noise ratio than the chip with Hall as the magnetic sensing element. Therefore, a TMR chip can replace the original Hall chip in linear mode for sensing magnetic field changes; the Hall chip retains only its switching mode for waking up the MCU.
[0057] like Figure 8As shown in the illustration, this embodiment illustrates four buttons arranged in 2 rows and 2 columns, corresponding to chip numbers 7 to 10. Each chip includes a chip enable pin (VDD), a chip mode control pin (CTRL), a chip magnetic signal induction output pin (OUT), and a chip signal interrupt pin (OD_INT). In other words, the difference between this embodiment and Embodiment 1 is that the power supply pin (VDD) of the TMR chip replaces the EN pin of the Hall effect chip, and the output pin (OUT) of the TMR chip replaces the OUT pin of the Hall effect chip.
[0058] In this embodiment, the VDD pins of the TMR chip in chip 7 and chip 9 are connected together to the drain of the first PMOS transistor. The source of the first PMOS transistor is connected to the power supply VCC, and the gate of the first PMOS transistor is connected to the first control terminal Control_1 of the MCU module. Similarly, the VDD pins of the TMR chips in chips 8 and 10 are connected together to the drain of the second PMOS transistor. The source of the second PMOS transistor is connected to the power supply VCC, and the gate of the second PMOS transistor is connected to the second control terminal Control_2 of the MCU module. The enable pin of the Hall effect chip in the packaged chip is connected to the MCU module, and the MCU module outputs a high level to the enable pin of the Hall effect chip.
[0059] Apart from the aforementioned pins, the connection method of the remaining pins is the same as in Embodiment 1. Furthermore, the working process and principle of the three-mode magnetic axis keyboard in this embodiment are also the same as in Embodiment 1, and will not be repeated here.
[0060] Example 5
[0061] This embodiment is a combination of the solutions in Embodiment 4 and Embodiment 2. Specifically, the chip uses a co-packaged chip including a TMR chip and a Hall chip, and an external low-power OSC module is added. By connecting the enable pin of the Hall chip to the external OSC module, the overall sleep power consumption is reduced.
[0062] Example 6
[0063] This embodiment is a combination of the solutions in Embodiment 4 and Embodiment 3. Specifically, the chip uses a co-packaged chip including a TMR chip and a Hall chip, and the OSC unit built into the MCU module replaces the original built-in OSC module. By connecting the chip enable pin of the Hall chip to the OSC unit of the MCU module, the overall sleep power consumption is reduced.
[0064] The above description is merely a preferred embodiment of this utility model and is not intended to limit the scope of this utility model. Various variations can be made to the above embodiments of this utility model. For example, the CTRL pin of the Hall chip in embodiments four to six can also be directly pulled up to the power supply voltage. That is, all simple and equivalent changes and modifications made based on the claims and description of this utility model application fall within the protection scope of the claims of this utility model patent. Any aspects of this utility model not described in detail are conventional technical content.
Claims
1. A three-mode magnetic axis keyboard system, characterized in that, The system includes several buttons and an MCU module. The buttons are arranged in m rows and n columns, where m ≥ 1 and n ≥ 1. Each button includes a chip, and each chip includes at least a chip enable pin, a chip mode control pin, a chip magnetic signal induction output pin, and a chip signal interrupt pin. The chip enable pins of chips in the same column are connected together to an enable terminal of the MCU module. The chip magnetic signal induction output pins of chips in the same row are connected together to form an output terminal, and each output terminal is connected to a sampling terminal of the MCU module. The chip signal interrupt pins of all chips are connected together to the interrupt signal terminal of the MCU module and connected to a power supply via pull-up resistors. The MCU module can switch between a working mode and a sleep mode. The chip mode control pins of all chips are connected together to the control terminal of the MCU module to drive the chips to switch synchronously when the MCU module switches modes. In working mode, the MCU module sends a polling signal to the chips in linear mode through its enable terminal, and in sleep mode, it receives signals from the chips in switching mode through its interrupt signal terminal.
2. The three-mode magnetic axis keyboard system according to claim 1, characterized in that, The MCU module and the chip are configured as follows: After the tri-mode magnetic axis keyboard is powered on, the MCU module enters the working mode. The control terminal of the MCU module sends a low-level signal, all chips are in linear mode, and the signal interrupt pin of the chips is in a high-impedance state. In the working mode, the MCU module sends a polling signal through the enable terminal of the MCU module according to a preset N polling cycle. The sampling terminal of the MCU module collects the output terminal and detects whether a key is pressed based on the collected output voltage value. If a key is detected to be pressed within the preset N polling cycles, the MCU module will continue to send polling signals. The MCU module maintains the working mode, and the chips maintain the linear mode. If the MCU module does not detect a button press for N consecutive polling cycles after the last button press, the control terminal of the MCU module sends a high-level signal, all chips enter the switching mode, the interrupt signal terminal of the MCU module enables interrupt detection, and the MCU module enters sleep mode. When the MCU module is in sleep mode, if any button is pressed, the chip signal interrupt pin of the corresponding chip will output a low level. The interrupt signal terminal of the MCU module receives the low level signal, the MCU module is woken up, the control terminal of the MCU module sends a low level signal, all chips switch to linear mode, and the MCU module enters working mode. Repeat the above process until the three-mode magnetic axis keyboard is powered off.
3. The three-mode magnetic axis keyboard system according to claim 1, characterized in that, The chip used is a Hall effect chip.
4. A three-mode magnetic axis keyboard system according to claim 3, characterized in that, The chip enable pins of the chips in the same column are connected together to a selection switch. One moving contact of each selection switch is connected to an external OSC module, and the other moving contact is connected to an enable pin of the MCU module.
5. A three-mode magnetic axis keyboard system according to claim 3, characterized in that, The chip enable pins of the chips in the same column are connected together to a selection switch. One moving contact of each selection switch is connected to the OSC unit of the MCU module, and the other moving contact is connected to an enable terminal of the MCU module.
6. A three-mode magnetic axis keyboard system according to claim 1, characterized in that, The chip is a composite chip including a TMR chip and a Hall effect chip.
7. A three-mode magnetic axis keyboard system according to claim 6, characterized in that, The power supply pins of the TMR chips in the same column are connected together to the drain of a PMOS transistor, the source of the PMOS transistor is connected to the power supply, and the gate of the PMOS transistor is connected to a control terminal of the MCU module.
8. A three-mode magnetic axis keyboard system according to claim 6, characterized in that, The enable pin of the Hall chip is connected to the MCU module, and the MCU module outputs a high level to the enable pin of the Hall chip.
9. A three-mode magnetic axis keyboard system according to claim 6, characterized in that, The enable pin of the Hall chip is connected to an external OSC module.
10. A three-mode magnetic axis keyboard system according to claim 6, characterized in that, The enable pin of the Hall chip is connected to the OSC unit of the MCU module.