Control circuit for reducing working power consumption of magnetic axis keyboard
By controlling the power-on state of the magnetic field strength detection device through a time-sharing circuit and a multi-channel analog switch, the problem of high power consumption of the magnetic axis keyboard is solved, and power consumption is effectively reduced.
Patent Information
- Application Number
- CN202520473020.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2035-03-18
AI Technical Summary
Because magnetic axis keyboards require real-time detection of changes in magnetic field strength for each key, the linear Hall sensor is continuously powered, resulting in high power consumption.
The power-on time and sequence of the magnetic field strength detection devices are controlled by a time-division circuit and a multi-channel analog switch. Only one or several magnetic field strength detection devices are in the power-on state, while the other detection devices are in the power-off state. The keyboard usage status is obtained by periodically switching power supplies.
It effectively reduces the power consumption of magnetic axis keyboards and reduces unnecessary current consumption.
Smart Images

Figure CN223957540U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to the field of magnetic shaft keyboard, especially a control circuit for reducing the working power consumption of magnetic shaft keyboard. BACKGROUND
[0002] The magnetic shaft keyboard can meet more personalized demands and provide extreme use experience because each key can be set with sensitivity, and the key does not need to contact a spring piece, and the key can be triggered faster, more sensitively and more stably with longer service life, so the magnetic shaft keyboard has wide development space.
[0003] The magnetic shaft keyboard is designed by using Hall effect technology, when a user strikes a key of the keyboard, a linear Hall sensor detects the change of the magnetic field strength generated by a permanent magnet, the linear Hall sensor outputs a corresponding detection voltage value, and a microprocessor adopts matrix scanning, that is, the keys are arranged into rows and columns, the detection voltage value is obtained by scanning the row and column combination, and then the input value of the user is judged, however, the keyboard includes multiple keys, each key is provided with a linear Hall sensor, each linear Hall sensor needs to detect the change of the magnetic field strength in real time, and the linear Hall sensor needs large current when working, so that the keyboard has large power consumption when working. SUMMARY
[0004] The utility model provides a control circuit for reducing the working power consumption of magnetic shaft keyboard to more exactly solve the problem of large power consumption of the magnetic shaft keyboard when working.
[0005] The utility model discloses the following technical scheme realizes:
[0006] The utility model provides a control circuit for reducing the working power consumption of magnetic shaft keyboard, including power, circuit board, a plurality of keyboard main parts and a plurality of magnetic field strength detection pieces, the circuit board is equipped with time-sharing circuit, multiplex analog switch, analog-digital converter and microprocessor, and the microprocessor includes first control module, second control module and analysis module;
[0007] The magnetic field strength detection piece includes power-off state and power-on state, and the power is connected with the magnetic field strength detection piece through the time-sharing circuit and is used to power the magnetic field strength detection piece, so that the magnetic field strength detection piece changes from the power-off state to the power-on state;
[0008] Any keyboard main part includes a magnetic piece, and the magnetic field strength detection piece is used for detecting the change of the magnetic field strength generated by the corresponding magnetic piece and outputting the corresponding analog detection value respectively;
[0009] The multiplex analog switch is used for selecting any analog detection value and sending to the analog-digital converter;
[0010] The analog-digital converter is used to convert the analog detection value into a digital detection value and send to the microprocessor;
[0011] The analysis module of the microprocessor is used to analyze the digital detection value to determine the use state of the keyboard body;
[0012] The first control module is used to control the time-sharing circuit to control the energization time and sequence of the magnetic field strength detection piece respectively;
[0013] The second control module is used to control the multi-way analog switch to control the time and sequence of the analog detection value sent to the analog-digital converter respectively;
[0014] The first control module and the second control module cooperate to make the analog detection value output by the magnetic field strength detection piece in the energization state correspond to be sent to the analog-digital converter, and only one or several magnetic field strength detection pieces are in the energization state.
[0015] Further, the microprocessor further comprises a timer, the timer generates a periodic trigger signal, and the periodic trigger signal is used to trigger the time-sharing circuit, the multi-way analog switch, the first control module and the second control module to operate periodically to complete the periodic scanning of all the keyboard bodies.
[0016] Further, in any of the periods, the first control module controls the time-sharing circuit to make the magnetic field strength detection piece be energized in sequence until all the magnetic field strength detection pieces complete one energization.
[0017] Further, the number of the magnetic field strength detection pieces in the energization state is one or several, and part of the magnetic field strength detection pieces are in the de-energization state.
[0018] Further, in the period, the second control module controls the multi-way analog switch to make the time and sequence of the analog detection value sent to the analog-digital converter correspond to the time and sequence of the magnetic field strength detection piece energized respectively.
[0019] Further, any of the keyboard bodies further comprises a key cap, a key shaft and an elastic piece, the key shaft connects the key cap, and the magnetic piece is arranged on the key shaft; any of the keyboard bodies is located on one side of the circuit board, and the elastic piece connects the keyboard body and the circuit board respectively to make the magnetic piece close to or away from the magnetic field strength detection piece.
[0020] Furthermore, each of the magnetic field strength detection devices is located on the side of the circuit board away from the keyboard body, and the number and position of the magnetic field strength detection devices correspond to the number and position of the keyboard body, respectively. The magnetic field strength detection devices are used to detect the magnetic field strength of the magnetic components and output the corresponding simulated detection value.
[0021] Furthermore, the input terminal of the time-sharing circuit is connected to the power supply, and the time-sharing circuit has multiple output terminals. The output terminals of the time-sharing circuit are respectively connected to the input terminals of the magnetic field strength detection device, and are used to control the energizing time and sequence of the magnetic field strength detection device respectively.
[0022] Furthermore, the multi-channel analog switch has multiple input terminals, each of which is connected to the output terminal of the magnetic field strength detector. The output terminal of the multi-channel analog switch is connected to the input terminal of the analog-to-digital converter. The multi-channel analog switch is used to select any analog detection value output by the magnetic field strength detector and send it to the analog-to-digital converter.
[0023] Furthermore, the output of the analog-to-digital converter is connected to the microprocessor. The analog-to-digital converter is used to convert the analog detection value into the digital detection value and send the digital detection value to the microprocessor.
[0024] The beneficial effects of this utility model are:
[0025] This invention proposes a control circuit for reducing the power consumption of a magnetic axis keyboard. The circuit includes a power supply, a circuit board, multiple keyboard bodies, and multiple magnetic field strength detectors. The circuit board is equipped with a time-sharing circuit, a multi-channel analog switch, an analog-to-digital converter, and a microprocessor. The microprocessor includes a first control module, a second control module, and an analysis module. The magnetic field strength detectors are used to detect changes in the magnetic field strength generated by magnetic components in the corresponding keyboard bodies and output corresponding analog detection values. This invention proposes that the microprocessor controls the time-sharing circuit through the first control module to control the energizing time and sequence of the magnetic field strength detectors, and controls the multi-channel analog switch through the second control module to control the timing and sequence of sending the analog detection values to the analog-to-digital converter. The first and second control modules cooperate to ensure that the analog detection values output by the energized magnetic field strength detectors are sent to the analog-to-digital converter, with only one or more detectors energized while the rest are de-energized. By energizing all magnetic field strength detectors in turn to obtain the keyboard body's usage status, and keeping the remaining detectors de-energized, the invention avoids all detectors needing to be constantly energized, effectively reducing the keyboard's power consumption. Attached Figure Description
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the present application will be further described below in conjunction with the drawings and embodiments. The drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the premise of not paying creative labor.
[0027] Figure 1 It is a schematic diagram of the principle of the traditional magnetic shaft keyboard matrix scanning;
[0028] Figure 2 It is a schematic diagram of the traditional magnetic shaft keyboard system;
[0029] Figure 3 It is a working structure diagram of the keyboard main body of an embodiment of the present application;
[0030] Figure 4 It is a schematic diagram of a control circuit for reducing the working power consumption of the magnetic shaft keyboard in an embodiment of the present application;
[0031] Figure 5 It is a schematic diagram of the first control module controlling the time-sharing circuit in an embodiment of the present application.
[0032] Label explanation: 10, circuit board; 20, keyboard main body; 30, magnetic field strength detection piece; 40, power supply; 11, time-sharing circuit; 12, multi-channel analog switch; 13, analog-digital converter; 14, microprocessor; 21, key cap; 22, key shaft; 23, magnetic piece; 141, first control module; 142, second control module. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below in conjunction with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0034] Please refer to Figure 1 and Figure 2 , for example Figure 1The traditional magnetic shaft keyboard matrix scanning principle diagram is shown, which divides the magnetic shaft keyboard into an array matrix of m rows and n columns, each row-column intersection represents a key, and each key is installed with a magnetic piece 23 and a corresponding magnetic field strength sensing piece below. The magnetic field strength sensing piece usually adopts a linear Hall sensor. When a key is pressed, the linear Hall sensor can sense the change of the magnetic field strength generated by the magnetic piece 23 and output a corresponding analog detection value. The MCU (Microcontroller Unit) 14 reads the analog detection value output by the linear Hall sensor at the row-column intersection through different ADC (Analog to Digital Converter) 13 input ports. The microprocessor 14 reads all rows and columns to realize one-time full keyboard scanning, thereby obtaining the input value of the user on the keyboard. The microprocessor 14 continuously scans periodically to continuously obtain the input value of the user on the keyboard.
[0035] More specifically, as Figure 2 The traditional magnetic shaft keyboard system principle diagram is shown. The entire keyboard system includes a magnetic piece 23, a linear Hall sensor, a MUX (Multiplexer) 12, an ADC (Analog to Digital Converter) 13, and a MCU (Microcontroller Unit) 14. When the keyboard is in working condition, all linear Hall sensors are powered. According to the use state of different keys, the linear Hall sensors output different analog detection values and send them to the multiplexing analog switch 12. The multiplexing analog switch 12 can only select the analog detection value of one linear Hall sensor at a time and send it to the analog-digital converter 13. The analog-digital converter 13 converts the analog detection value into a digital detection value and sends it to the microprocessor 14. The microprocessor 14 determines the use state of a key according to the digital detection value. Until the multiplexing analog switch 12 sends the analog detection values of all linear Hall sensors one by one, the microprocessor completes one full keyboard scanning and obtains the input value of the user on the keyboard. The microprocessor 14 continuously scans the keyboard periodically to continuously obtain the input value of the user. Since each key may be used at any time, all linear Hall sensors on the keyboard must be in a powered state. The working current of the entire keyboard will include the working current of all linear Hall sensors, resulting in high power consumption of the magnetic shaft keyboard.
[0036] Please refer to Figures 3-5The utility model provides a control circuit for reducing magnetic axle keyboard work power consumption, including power 40, circuit board 10, a plurality of keyboard main body 20 and a plurality of magnetic field intensity detection piece 30, circuit board 10 is equipped with time sharing circuit 11, multiplex analog switch 12, analog digital converter 13 and microprocessor 14, and microprocessor 14 includes first control module 141, second control module 142 and analysis module, magnetic field intensity detection piece 30 includes power off state and power on state, and power 40 connects magnetic field intensity detection piece 30 through time sharing circuit 11, and is used to power supply respectively to magnetic field intensity detection piece 30, to make magnetic field intensity detection piece 30 change from power off state to power on state, any keyboard main body 20 includes magnetic piece 23, and magnetic field intensity detection piece 30 is used to detect the change of the magnetic field intensity generated to corresponding magnetic piece 23 respectively, and respectively outputs corresponding analog detection value, multiplex analog switch 12 is used for selecting any analog detection value and sends to analog digital converter 13, analog digital converter 13 is used for converting analog detection value into digital detection value, and sends to microprocessor 14, and the analysis module of microprocessor 14 is used to analyze digital detection value, to judge the use state of keyboard main body 20, first control module 141 is used to control time sharing circuit 11, to control the power on time and sequence of magnetic field intensity detection piece 30 respectively, second control module 142 is used to control multiplex analog switch 12, to control the time and sequence of analog detection value and send to analog digital converter 13 respectively, first control module 141 and second control module 142 cooperate, to make the analog detection value of power on state magnetic field intensity detection piece 30 output correspond to send to analog digital converter 13, and only one or several magnetic field intensity detection piece 30 is in power on state all the time.
[0037] The application discloses a control circuit for reducing the working power consumption of a magnetic shaft keyboard, which comprises a power supply 40, a circuit board 10, a plurality of keyboard bodies 20 and a plurality of magnetic field strength detection pieces 30. The circuit board 10 is provided with a time-sharing circuit 11, a multi-path analog switch 12, an analog-digital converter 13 and a microprocessor 14. The microprocessor 14 comprises a first control module 141, a second control module 142, an analysis module and a timer. Any keyboard body 20 comprises a key cap 21, a key shaft 22, a magnetic piece 23 and an elastic piece. The key shaft 22 is connected with the key cap 21, and the magnetic piece 23 is arranged on the key shaft 22. Any keyboard body 20 is located on one side of the circuit board 10. The elastic piece is connected with the keyboard body 20 and the circuit board 10 respectively, so that the magnetic piece 23 is close to or far away from the magnetic field strength detection piece 30. The magnetic field strength detection piece 30 comprises a power-off state and a power-on state. The input end of the time-sharing circuit 11 is connected with the power supply 40. The time-sharing circuit 11 is provided with a plurality of output ends. The output ends of the time-sharing circuit 11 are respectively connected with the input ends of the magnetic field strength detection pieces 30, and are used for respectively controlling the power-on time and sequence of the magnetic field strength detection pieces 30, so that the magnetic field strength detection pieces 30 are changed from the power-off state to the power-on state. Any magnetic field strength detection piece 30 is located on the side of the circuit board 10 which is far away from the keyboard body 20. The number and position of the magnetic field strength detection pieces 30 correspond to the number and position of the keyboard bodies 20 respectively. When the magnetic field strength detection piece 30 is in the power-on state, the magnetic field strength detection piece 30 is used for detecting the changed magnetic field strength generated by the magnetic piece 23, and outputs corresponding analog detection values. The multi-path analog switch 12 is provided with a plurality of input ends. The input ends of the multi-path analog switch 12 are respectively connected with the output ends of the magnetic field strength detection pieces 30. The output end of the multi-path analog switch 12 is connected with the input end of the analog-digital converter 13. The multi-path analog switch 12 is used for selecting the analog detection values output by any magnetic field strength detection piece 30 and sending the analog detection values to the analog-digital converter 13. The output end of the analog-digital converter 13 is connected with the microprocessor 14. The analog-digital converter 13 is used for converting the analog detection values into digital detection values, and sending the digital detection values to the microprocessor 14. The analysis module of the microprocessor 14 analyzes the digital detection values, and further judges the use state of the single keyboard body 20.The timer of the microprocessor 14 generates a periodic trigger signal, which is used to trigger the time-sharing circuit 11, the multipath analog switch 12, the first control module 141 and the second control module 142 to operate periodically, in any period, the first control module 141 controls the time-sharing circuit 11 to sequentially energize the magnetic field strength detection pieces 30, and the second control module 142 controls the multipath analog switch 12 to make the time and sequence of sending the analog detection value to the analog-digital converter 13 correspond to the time and sequence of energizing the magnetic field strength detection pieces 30, the number of the magnetic field strength detection pieces 30 in the energized state is always one or several, and the rest of the magnetic field strength detection pieces 30 are in the de-energized state, until all the magnetic field strength detection pieces 30 complete energization once, and the microprocessor 14 obtains all the digital detection values, the microprocessor 14 completes a keyboard scan, thereby obtaining the input value of the user, and the microprocessor 14 continuously and periodically performs full keyboard scan, thereby continuously obtaining the input value of the user.
[0038] The utility model provides microprocessor 14 controls time-sharing circuit 11 through the first control module 141 to control the energization time and sequence of magnetic field strength detection piece 30 respectively, controls multipath analog switch 12 through the second control module 142 to control the time and sequence of sending analog detection value to analog-digital converter 13, and the first control module 141 and the second control module 142 cooperate to make the analog detection value of the magnetic field strength detection piece 30 in the energized state correspond to send to analog-digital converter 13, and only one or several magnetic field strength detection pieces 30 are in the energized state, and the rest are in the de-energized state, the use state of the keyboard main body 20 is obtained by sequentially energizing all the magnetic field strength detection pieces 30, and the rest of the magnetic strength detection pieces are in the de-energized state, so that all the magnetic field strength detection pieces 30 do not need to be in the energized state all the time, and the keyboard working power consumption is effectively reduced.
[0039] Please refer to Figure 3 Any keyboard main body 20 comprises a key cap 21, a key shaft 22, a magnetic piece 23 and an elastic piece, the key shaft 22 is connected to the key cap 21, and the magnetic piece 23 is arranged on the key shaft 22, any keyboard main body 20 is located on one side of the circuit board 10, and the elastic piece is connected to the keyboard main body 20 and the circuit board 10 respectively, so that the magnetic piece 23 is close to or away from the magnetic field strength detection piece 30.
[0040] In a specific implementation: any keyboard body 20 includes a key cap 21, a key shaft 22, a magnetic piece 23 and an elastic piece, the key shaft 22 is connected to the key cap 21, and the magnetic piece 23 is arranged on the key shaft 22. In a specific embodiment, the magnetic piece 23 can adopt a permanent magnet, which generates a magnetic field. Any keyboard body 20 is located on one side of the circuit board 10, and the elastic piece is connected to the keyboard body 20 and the circuit board 10 respectively, so that the magnetic piece 23 is close to or away from the magnetic field strength detection piece 30. In a specific embodiment, when the user presses the key, the magnetic piece 23 is close to the magnetic field strength detection piece 30.
[0041] Please refer to Figure 3 and Figure 4 The magnetic field strength detection piece 30 includes a power-off state and a power-on state, the input end of the time-sharing circuit 11 is connected to the power supply 40, the time-sharing circuit 11 is provided with a plurality of output ends, and the output ends of the time-sharing circuit 11 are respectively connected to the input ends of the magnetic field strength detection piece 30 and are used to respectively control the power-on time and sequence of the magnetic field strength detection piece 30, so that the magnetic field strength detection piece 30 is changed from the power-off state to the power-on state.
[0042] In a specific implementation: the magnetic field strength detection piece 30 includes a power-off state and a power-on state, in a specific embodiment, the magnetic field strength detection piece 30 adopts a linear Hall sensor; the input end of the time-sharing circuit 11 is connected to the power supply 40, in a specific embodiment, the power supply 40 can adopt a battery or a power grid, which is used to provide electric energy; the time-sharing circuit 11 is provided with a plurality of output ends, the number of the output ends corresponds to the number of the magnetic field strength detection piece 30, the magnetic field strength detection piece 30 is respectively connected to the output ends of the time-sharing circuit 11, the time-sharing circuit 11 is controlled by the microprocessor 14, the control of the power-on time and sequence of the magnetic field strength detection piece 30 is realized, and only one or more magnetic field strength detection pieces 30 are in the power-on state at all times.
[0043] More specifically, if a certain magnetic shaft keyboard has N linear Hall sensors, the power-on time and sequence of each linear Hall sensor are controlled by the time-sharing circuit 11. When only one linear Hall sensor is in the power-on state at all times, assuming that the linear Hall sensor numbered 1 is in the power-on state, the linear Hall sensors numbered 2 to N are in the power-off state. At the same time, only one linear Hall sensor in the entire magnetic shaft keyboard consumes power, thereby greatly reducing the working power consumption of the entire magnetic shaft keyboard.
[0044] Please refer to Figure 3 and Figure 4, the magnetic field strength detection pieces 30 are all located on the side of the circuit board 10 away from the keyboard body 20, and the number and position of the magnetic field strength detection pieces 30 correspond to the number and position of the magnetic pieces 23 in the keyboard body 20, that is, each magnetic piece 23 has a corresponding magnetic field strength detection piece 30, and each magnetic field strength detection piece 30 is internally provided with a wire, and the direction of the wire is perpendicular to the direction of the magnetic field generated by the magnetic piece 23, when the magnetic field strength detection piece 30 is in an energized state, the user strikes the keyboard body 20, and the magnetic piece 23 in the keyboard body 20 is close to the magnetic field strength detection piece 30, the strong magnetic strength applied to the magnetic field strength detection piece 30 increases, the magnetic field strength changes, the charge carriers in the wire inside the magnetic field strength detection piece 30 will be subjected to the Lorentz force, causing the charges to accumulate on both sides, forming a potential difference, that is, the magnetic field strength detection piece 30 outputs a corresponding analog detection value, in a specific embodiment, the analog detection value can be a voltage value.
[0045] In a specific implementation: all magnetic field strength detection pieces 30 are electrically connected with the circuit board 10 and located on the side of the circuit board 10 away from the keyboard body 20, and the number and position of the magnetic field strength detection pieces 30 correspond to the number and position of the magnetic pieces 23 in the keyboard body 20, that is, each magnetic piece 23 has a corresponding magnetic field strength detection piece 30, and each magnetic field strength detection piece 30 is internally provided with a wire, and the direction of the wire is perpendicular to the direction of the magnetic field generated by the magnetic piece 23, when the magnetic field strength detection piece 30 is in an energized state, the user strikes the keyboard body 20, and the magnetic piece 23 in the keyboard body 20 is close to the magnetic field strength detection piece 30, the strong magnetic strength applied to the magnetic field strength detection piece 30 increases, the magnetic field strength changes, the charge carriers in the wire inside the magnetic field strength detection piece 30 will be subjected to the Lorentz force, causing the charges to accumulate on both sides, forming a potential difference, that is, the magnetic field strength detection piece 30 outputs a corresponding analog detection value, in a specific embodiment, the analog detection value can be a voltage value.
[0046] Please refer to Figure 3 and Figure 4 , the multi-channel analog switch 12 is provided with a plurality of input ends, the input ends of the multi-channel analog switch 12 are respectively connected with the output ends of the magnetic field strength detection pieces 30, the output end of the multi-channel analog switch 12 is connected with the input end of the analog-digital converter 13, and the multi-channel analog switch 12 is used to select the analog detection value output by any magnetic field strength detection piece 30 and send it to the analog-digital converter 13.
[0047] In a specific implementation: the multi-channel analog switch 12 is provided with a plurality of input ends, the number of the input ends corresponds to the number of the magnetic field strength detection pieces 30, the output ends of the magnetic field strength detection pieces 30 are connected with the input ends of the multi-channel analog switch 12, the output end of the multi-channel analog switch 12 is connected with the input end of the analog-digital converter 13, the multi-channel analog switch 12 is controlled by the microprocessor 14, and the multi-channel analog switch 12 selects the analog detection value output by one magnetic field strength detection piece 30 and sends it to the analog-digital converter 13.
[0048] Please refer to Figure 3 and Figure 4 , the output end of the analog-digital converter 13 is connected with the microprocessor 14, the analog-digital converter 13 is used to convert the analog detection value into a digital detection value and send it to the microprocessor 14, and the analysis module of the microprocessor 14 analyzes the digital detection value to determine the use state of the single keyboard body 20.
[0049] In a specific implementation, the output end of the analog-digital converter 13 is connected to the microprocessor 14, the analog-digital converter 13 is used to convert the analog detection value into a digital detection value and send the digital detection value to the microprocessor 14, the analysis module of the microprocessor 14 analyzes the digital detection value, and then judges the use state of the single keyboard body 20, in a specific embodiment, when the keyboard body 20 is not used, the microprocessor 14 obtains an initial value, the microprocessor 14 compares the obtained digital detection value with the initial value, and then analyzes the use state of the keyboard body 20.
[0050] Please refer to Figures 3-5 The timer of the microprocessor 14 generates a periodic trigger signal, the periodic trigger signal is used to trigger the time-sharing circuit 11, the multi-path analog switch 12, the first control module 141 and the second control module 142 to run periodically, in any period, the first control module 141 controls the time-sharing circuit 11 to make the magnetic field intensity detection piece 30 be sequentially powered on, the second control module 142 controls the multi-path analog switch 12 to make the time and sequence of sending the analog detection value to the analog-digital converter 13 correspond to the time and sequence of powering on the magnetic field intensity detection piece 30, the number of the magnetic field intensity detection pieces 30 in the powered-on state is always one or several, and the rest of the magnetic field intensity detection pieces 30 are in the powered-off state, until all the magnetic field intensity detection pieces 30 complete a power-on, and the microprocessor 14 obtains all the digital detection values, the microprocessor 14 completes a keyboard scan, thereby obtaining the input value of the user, the microprocessor 14 continuously and periodically performs a full keyboard scan, thereby continuously obtaining the input value of the user.
[0051] In specific implementation: the timer of the microprocessor 14 generates periodic trigger signals, which are used to trigger the time-sharing circuit 11, the multiplex analog switch 12, the first control module 141, and the second control module 142 to operate periodically. Within one cycle, a full key scan of the keyboard is performed, thereby obtaining the user's input value within that cycle. Within any cycle, the first control module 141 controls the time-sharing circuit 11 to sequentially power on the magnetic field strength detector 30, and the second control module 142 controls the multiplex analog switch 12 to ensure that the time and order in which the analog detection values are sent to the analog-to-digital converter 13 are synchronized with those of the magnetic field strength detector 30. The timing and sequence of power-on correspond to the fact that only one or more magnetic field strength detectors 30 are always powered on, while the rest are powered off, until all magnetic field strength detectors 30 have been powered on once and the analog detection values have been converted into digital detection values and analyzed by the microprocessor 14 to obtain the user input value. Within one scan cycle, the magnetic field strength detectors 30 are powered on in turn through the time-division circuit 11, so that only one or more magnetic field strength detectors 30 are always powered on, while the rest are powered off, thus avoiding all magnetic field strength detectors being powered on and effectively reducing the power consumption of the magnetic axis keyboard.
[0052] More specifically, the linear Hall sensor requires a certain time T1 to achieve stable output after being powered on, the channel switching time T2 of the multi-channel analog switch 12, and the sampling conversion time T3 of the analog-to-digital converter 13. Therefore, the processing time of a single key is T = T1 + T2 + T3. In order to reduce the processing time of a single key, i.e., to speed up the scanning frequency of the entire keyboard, in actual design, several linear Hall sensors can be powered on simultaneously in sequence. In a specific embodiment, when processing the output of the linear Hall sensor numbered 1, the linear Hall sensor numbered 2 is also powered on. This design can reduce the processing time of the next key, i.e., save the power-on time of the linear Hall sensors, thereby accelerating the full-key scanning time of the keyboard. In actual design, the number of linear Hall sensors that are simultaneously powered on 40 can be set according to parameters such as the power-on time of the linear Hall sensors and the conversion rate of the analog-to-digital converter 13, and the channel switching of the multi-channel analog switch 12 maintains a certain timing relationship.
[0053] More specifically, such as Figure 5 The schematic diagram shown is of the first control module 141 controlling the time-division circuit 11. The time-division circuit 11 is implemented by the first control module 141. The first control module 141 decodes the control data sent by the microprocessor 14 and controls the power supply 40 of each linear Hall sensor respectively. In a specific embodiment, the decoding circuit is implemented by a serial-to-parallel conversion circuit. For example, a common serial shift register can be used. The specific circuit can be implemented by cascading several serial shift registers to control multiple linear Hall sensors.
[0054] The above only represents the preferred embodiments of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation, or direct or indirect application in other related technical fields, which are made by using the content of the present application specification and drawings, are also included in the patent protection scope of the present application.
Claims
1. A control circuit for reducing the operating power consumption of a magnetic shaft keyboard, characterized by The keyboard comprises a power supply, a circuit board, a plurality of keyboard bodies and a plurality of magnetic field strength detection members, the circuit board is provided with time-sharing circuit, multipath analog switch, analog-digital converter and microprocessor, the microprocessor comprises first control module, second control module and analysis module; The magnetic field strength detection member comprises power-off state and power-on state, the power supply is connected with the magnetic field strength detection member through the time-sharing circuit and used for powering the magnetic field strength detection member, so that the magnetic field strength detection member is changed from the power-off state to the power-on state; Any of the keyboard bodies comprises magnetic member, the magnetic field strength detection member is used for detecting the change of the magnetic field strength generated by the corresponding magnetic member and outputting the corresponding analog detection value; The multipath analog switch is used for selecting any of the analog detection value to send to the analog-digital converter; The analog-digital converter is used for converting the analog detection value into digital detection value and sending to the microprocessor; The analysis module of the microprocessor is used for analyzing the digital detection value to determine the use state of the keyboard body; The first control module is used for controlling the time-sharing circuit to control the power-on time and sequence of the magnetic field strength detection member; The second control module is used for controlling the multipath analog switch to control the time and sequence of the analog detection value sent to the analog-digital converter; The first control module and the second control module are cooperated to run, so that the analog detection value outputted by the magnetic field strength detection member in the power-on state is sent to the analog-digital converter, and only one or several magnetic field strength detection members are in the power-on state.
2. The control circuit for reducing the working power consumption of a magnetic shaft keyboard according to claim 1, characterized in that, The microprocessor further comprises timer, the timer generates periodic trigger signal, the periodic trigger signal is used for triggering the time-sharing circuit, the multipath analog switch, the first control module and the second control module to run periodically to complete the periodic scanning of all the keyboard bodies.
3. The control circuit for reducing the working power consumption of a magnetic shaft keyboard according to claim 2, characterized in that, In any of the periods, the first control module controls the time-sharing circuit to make the magnetic field strength detection member power on in sequence until all the magnetic field strength detection members complete power-on once.
4. The control circuit for reducing the working power consumption of a magnetic shaft keyboard according to claim 3, characterized in that, The number of the magnetic field strength detection members in the power-on state is one or several, and part of the magnetic field strength detection members are in the power-off state.
5. The control circuit for reducing the working power consumption of a magnetic shaft keyboard according to claim 4, characterized in that, In the period, the second control module controls the multipath analog switch to make the time and sequence of the analog detection value sent to the analog-digital converter correspond to the time and sequence of the magnetic field strength detection member powered on.
6. The control circuit for reducing the operating power consumption of a magnetic shaft keyboard according to claim 1, wherein Any of the keyboard bodies further comprises key cap, key shaft and elastic member, the key shaft is connected with the key cap, and the magnetic member is arranged on the key shaft; any of the keyboard bodies is located on one side of the circuit board, and the elastic member is connected with the keyboard body and the circuit board respectively to make the magnetic member close to or away from the magnetic field strength detection member.
7. The control circuit for reducing the working power consumption of a magnetic shaft keyboard according to claim 6, characterized in that, Any of the magnetic field strength detection pieces is located on a side of the circuit board away from the keyboard body, and the number and position of the magnetic field strength detection pieces correspond to the number and position of the keyboard body respectively, the magnetic field strength detection pieces are used for detecting the magnetic field strength of the magnetic pieces and outputting corresponding analog detection values.
8. The control circuit for reducing the working power consumption of a magnetic shaft keyboard according to claim 7, characterized in that, The input end of the time-sharing circuit is connected with the power supply, the time-sharing circuit is provided with a plurality of output ends, the output ends of the time-sharing circuit are respectively connected with the input ends of the magnetic field strength detection pieces, and are used for respectively controlling the energization time and sequence of the magnetic field strength detection pieces.
9. The control circuit for reducing the working power consumption of a magnetic shaft keyboard according to claim 8, characterized in that, The multi-way analog switch is provided with a plurality of input ends, the input ends of the multi-way analog switch are respectively connected with the output ends of the magnetic field strength detection pieces, the output end of the multi-way analog switch is connected with the input end of the analog-digital converter, and the multi-way analog switch is used for selecting the analog detection value output by any of the magnetic field strength detection pieces to send to the analog-digital converter.
10. The control circuit for reducing the working power consumption of a magnetic shaft keyboard according to claim 9, wherein, The output end of the analog-digital converter is connected with the microprocessor, and the analog-digital converter is used for converting the analog detection value into the digital detection value and sending the digital detection value to the microprocessor.