Multifunctional capacitance pen, capacitance pen multifunctional switching method and storage medium
Through the magnetic induction detection of the rotating part and Hall element, combined with the processing unit and the preset mapping table, the convenient multi-functional switching of the capacitive pen is realized, which solves the problems of accidental touch and space occupation in the existing technology, and improves the convenience and convenience of switching. Accuracy.
Patent Information
- Application Number
- CN202410724444.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-10
AI Technical Summary
Existing capacitive pens have problems with false touches in multi-function switching methods and require a large PCB area for toggle switches, which results in inconvenient switching and takes up space.
The method of combining the rotating part and the Hall element is used to detect the rotation angle through the changes in the magnetic induction intensity of the magnetic part and the Hall element. The processing unit and the preset mapping table are used to switch the capacitive pen function to achieve convenient multi-function switching.
It provides a multi-functional switching method that does not occupy the PCB area, reduces the risk of accidental touches, and improves the convenience and accuracy of function switching of the capacitive pen.
Smart Images

Figure CN118625941A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of capacitive pens, and in particular to a multifunctional capacitive pen, a capacitive pen multifunctional switching method and a storage medium. Background Art
[0002] As a tool for users to use tablets, IPADs and capacitive screens, capacitive pens generally have multiple functions for operating the screen, such as writing or erasing text.
[0003] In the prior art, the capacitive stylus has the following methods for switching multiple functions: one is by continuously pressing a button, and the other is by toggling a multi-level switch. However, both methods have some problems in some cases. Among them, the method of triggering by continuously pressing a button may cause the problem of accidental touch; the method of switching by toggling a multi-level toggle switch requires a relatively large PCB area to place the toggle switch. Summary of the invention
[0004] The main purpose of the present invention is to provide a multifunctional capacitive stylus, aiming to provide a multifunctional capacitive stylus that is convenient to switch to corresponding functions.
[0005] To achieve the above object, the multifunctional capacitive stylus pen provided by the present invention comprises: A rotating part, the rotating part is rotatably arranged on the pen body, the rotating part forms a receiving cavity, the rotating part is provided with a magnetic member, and the magnetic member is arranged on the inner side wall of the receiving cavity; A circuit board, the circuit board is arranged on the pen body, at least a part of the structure of the circuit board extends into the accommodating cavity, and a Hall element is arranged at one end of the circuit board close to the rotating part; A processing unit is connected to the Hall element; the processing unit is used to switch the function of the capacitive pen according to the voltage value output by the Hall element and a preset mapping table.
[0006] Optionally, the magnetic member and the Hall element are located at the same height in the axial direction of the pen body.
[0007] Optionally, the Hall element is a 3D Hall sensor.
[0008] Optionally, the processing unit is connected to the 3D Hall sensor via an I2C bus.
[0009] The present invention also provides a capacitive stylus multi-function switching method, the capacitive stylus multi-function switching method comprising: Detecting the voltage output by the Hall element; Determining the rotation angle between the Hall element and the magnetic component according to the output voltage of the Hall element and a preset mapping table; The function of the capacitive stylus is switched according to the rotation angle.
[0010] Optionally, the step of switching the function of the capacitive stylus according to the rotation angle specifically includes: If the rotation angle is less than the first preset angle, the capacitive pen function is switched to the corresponding first preset function; If the rotation angle is greater than a second preset angle, switching the capacitive pen function to a corresponding second preset function; If the rotation angle is greater than or equal to the first preset angle, and the rotation angle is less than or equal to the second preset angle, the capacitive pen function is switched to the corresponding third preset function.
[0011] Optionally, the step of switching the function of the capacitive stylus according to the rotation angle specifically includes: If the rotation angle is equal to the first preset angle, the capacitive stylus function is switched to the corresponding first preset function; If the rotation angle is equal to the second preset angle, the capacitive pen function is switched to the corresponding second preset function; If the rotation angle is equal to the third preset angle, the capacitive pen function is switched to the corresponding third preset function.
[0012] Optionally, the first preset angle is -30°; the second preset angle is 0°; and the third preset angle is 30°.
[0013] The present invention also proposes a storage medium, on which a capacitive pen multi-function switching program is stored. When the capacitive pen multi-function switching program is executed by a processor, the capacitive pen multi-function switching method is implemented.
[0014] The present invention provides a multifunctional capacitive pen, a capacitive pen multifunctional switching method and a storage medium, wherein the multifunctional capacitive pen comprises: a rotating part, the rotating part is rotatably arranged on the pen body, the rotating part forms a receiving cavity, the rotating part is provided with a magnetic part, and the magnetic part is arranged on the inner side wall of the receiving cavity; a circuit board, the circuit board is arranged on the pen body, at least part of the structure of the circuit board extends into the receiving cavity, and a Hall element is arranged at one end of the circuit board close to the rotating part; a processing unit, the processing unit is connected to the Hall element; the processing unit is used to switch the function of the capacitive pen according to the voltage value output by the Hall element and a preset mapping table. The present invention obtains the corresponding function of the capacitive pen represented by the voltage value obtained by the Hall element according to the magnetic induction intensity and the preset mapping table, and switches the function of the capacitive pen to the corresponding function through the processing unit, thereby realizing the switching of the function of the capacitive pen. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0016] Figure 1 It is a structural schematic diagram of an embodiment of a multifunctional capacitive stylus of the present invention; Figure 2 It is a structural schematic diagram of another embodiment of the multifunctional capacitive stylus of the present invention; Figure 3 It is a structural schematic diagram of an embodiment of a capacitive stylus multi-function switching method of the present invention.
[0017] Description of Figure Numbers: 10. Rotating part; 20. Circuit board; 30. Hall element; 40. Magnetic part.
[0018] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0021] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0022] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0023] The prior art capacitive stylus multi-function switching method has error problems or requires a large PCB board area to prevent the dial switch. This solution aims to provide a convenient multi-function switching method that does not require the PCB board area.
[0024] The present invention provides a multifunctional capacitive stylus, the multifunctional capacitive stylus comprising: A rotating part 10, the rotating part 10 is rotatably disposed on the pen body, the rotating part 10 forms a receiving cavity, the rotating part 10 is provided with a magnetic member 40, and the magnetic member 40 is disposed on the inner side wall of the receiving cavity; A circuit board 20, wherein the circuit board 20 is disposed on the pen body, and at least a portion of the circuit board 20 extends into the accommodating cavity. A Hall element 30 is disposed at one end of the circuit board 20 close to the rotating part 10; A processing unit is connected to the Hall element 30; the processing unit is used to switch the function of the capacitive pen according to the voltage value output by the Hall element 30 and a preset mapping table.
[0025] It should be understood that the capacitive stylus includes a stylus body; the stylus body is convenient for users to hold and also has the function of accommodating electronic components; the electronic components of the capacitive stylus are placed in the accommodating cavity in the stylus body. The circuit board 20 of the capacitive stylus is placed in the stylus body, and the Hall element 30 is arranged in the circuit board 20. This solution does not limit the size, shaft diameter and shape of the stylus body.
[0026] The rotating part 10 is rotatably arranged on the pen body, and a receiving cavity is formed on the rotating part 10. The rotating part 10 is provided with a magnetic part 40, and the magnetic part 40 is arranged on the inner wall of the receiving cavity. The rotating part 10 is arranged on the pen body; it should be understood that the rotating part 10 can be arranged at any section of the pen body; specifically, the rotating part 10 can be arranged at the end of the pen body away from the pen tip, or the rotating part 10 can be arranged at the end of the pen body close to the pen tip, or the rotating part 10 can be arranged at the middle end of the pen body. This solution does not limit the length of the rotating part 10. A receiving cavity is formed inside the rotating part 10, and the receiving cavity can be consistent with the axial diameter of the receiving cavity of the pen body, or there can be a difference. In one implementation, the receiving cavity of the rotating part 10 can be a cylinder.
[0027] The circuit board 20 is arranged on the pen body; it should be understood that the circuit board 20 and the pen body remain relatively stationary; when the rotating part 10 rotates under the action of an external force, the circuit board 20 remains stationary. In addition, at least part of the structure of the circuit board 20 extends into the accommodating cavity of the rotating part 10. Considering the circuit board 20 extending into the accommodating cavity, when the rotating part 10 rotates, the circuit board 20 extending into the accommodating cavity is stationary; that is, the rotating part 10 rotates compared to the circuit board 20. A Hall element 30 is provided at one end of the circuit board 20 close to the rotating part 10; in one embodiment, a Hall element 30 is provided on the circuit board 20 extending into the accommodating cavity. In another embodiment, the Hall element 30 may not enter the accommodating cavity.
[0028] The inner wall of the rotating part 10 is provided with a magnetic member 40, and the magnetic member 40 includes a magnetic material; and the magnetic induction intensity of the magnetic material can cause a significant change in the voltage output by the Hall element 30 when an angle offset occurs with the Hall element 30. The magnetic material may include electrical steel, nickel-based alloy, ferrite material or rare earth alloy, etc. In particular, the magnetic member 40 includes a magnet.
[0029] The magnetic member 40 is arranged on the inner side of the rotating part 10, and can rotate with the rotation of the rotating part 10. The circuit board 20 and the Hall element 30 remain stationary. It is easy to understand that the Hall element 30 in this scheme can be a linear Hall element 30, that is, the output voltage is proportional to the strength of the external magnetic field. The magnetic field strength is provided by the magnetic member 40; in this scheme, the voltage value on the Hall element 30 is related to the magnetic field strength received on the Hall element 30. The magnetic field strength is related to the positional relationship between the Hall element 30 and the magnetic member 40. It is easy to understand that the magnetic lines of the magnetic member 40 are scattered throughout the space; therefore, the Hall element 30 does not need to be at the same height as the magnetic member 40 in the axial direction of the pen body, and can also generate voltage according to the magnetic field strength.
[0030] It is easy to understand that the magnetic field strength of the two poles of the magnetic part 40 is stronger, and the magnetic field strength is stronger at a position closer to the magnetic part 40. In this embodiment, the magnetic part 40 is fixedly arranged on the inner wall of the accommodating cavity to eliminate the error caused by the change in the position and orientation of the magnetic part 40. The user rotates the rotating part 10 to change the angle and distance between the magnetic part 40 and the Hall element 30, thereby changing the magnetic field strength at the Hall element 30, thereby changing the voltage value output by the Hall element 30.
[0031] The processing unit is connected to the Hall element 30, obtains the voltage value output by the Hall element 30, and switches the function of the capacitive pen according to the voltage value and a preset mapping table. The capacitive pen has multiple functions, but only one of the functions can be realized at the same time. When it is necessary to switch to other functions of the capacitive pen, it is necessary to switch the function of the capacitive pen. The processing unit can be electrically connected to the Hall element 30. The present invention does not limit the installation position of the processing unit.
[0032] In one embodiment, the R&D personnel can obtain different voltage values output by the Hall element 30 when the rotating part 10 rotates through experiments. Then, the capacitive pen function corresponding to a certain voltage interval or voltage value can be set. The preset mapping table can indicate the capacitive pen functions corresponding to different output voltage values of the Hall element 30. The processing unit can include a controller such as MCU, FPGA or SOC, and the controller can control the capacitive pen to realize different functions by running different programs.
[0033] However, it is easy to understand that it is difficult for users to determine how to rotate the rotating part 10 to switch to the desired function. In order to facilitate users to determine how to rotate the rotating part 10 to switch the corresponding function, a connection between the rotation angle and the capacitive stylus function can be established.
[0034] In another embodiment, the R&D personnel can obtain the mapping relationship between the output voltage value of the Hall element 30 and the rotation angle through experiments. The preset mapping table can be used to indicate the rotation angle of the rotating part 10 corresponding to different output voltages of the Hall element 30. After the processing unit obtains the rotation angle of the rotating part 10 according to the voltage value output by the Hall element 30 and the preset mapping table, it obtains the corresponding capacitive pen function according to the mapping relationship between the rotation angle and the capacitive pen function, and switches to the corresponding capacitive pen function. The capacitive pen function may include writing, drawing, taking notes, annotating or erasing, etc. Among them, the mapping relationship between the rotation angle and the capacitive pen function can be determined by the R&D personnel.
[0035] The present invention provides a multifunctional capacitive pen, which comprises: a rotating part 10, which is rotatably arranged on the pen body, the rotating part 10 is formed with a receiving cavity, the rotating part 10 is provided with a magnetic part 40, and the magnetic part 40 is arranged on the inner side wall of the receiving cavity; a circuit board 20, which is arranged on the pen body, at least part of the structure of the circuit board 20 extends into the receiving cavity, and a Hall element 30 is arranged at one end of the circuit board 20 close to the rotating part 10; a processing unit, which is connected to the Hall element 30; the processing unit is used to switch the function of the capacitive pen according to the voltage value output by the Hall element 30 and a preset mapping table. The present invention obtains the corresponding function of the capacitive pen represented by the voltage value obtained by the Hall element 30 according to the magnetic induction intensity and the preset mapping table, and switches the function of the capacitive pen to the corresponding function through the processing unit, thereby realizing the switching of the function of the capacitive pen.
[0036] In order to make the voltage output by the Hall element 30 change more obviously when the magnetic element 40 rotates, the positions of the magnetic element 40 and the Hall element 30 may be adjusted.
[0037] In one embodiment, the magnetic member 40 and the Hall element 30 are located at the same height in the axial direction of the pen body. The voltage output by the Hall element 30 changes most significantly when the magnetic member 40 rotates.
[0038] In one embodiment, the Hall element 30 is a 3D Hall sensor.
[0039] 3D Hall sensor is a new type of magnetic sensor that can detect changes in magnetic field in three dimensions (X, Y, Z axis), while ordinary Hall sensors can usually only detect magnetic field in one or two dimensions (X, Y axis). By integrating multiple Hall elements, 3D Hall sensor can provide more detailed magnetic field distribution information, thereby achieving higher precision measurement. Compared with ordinary Hall sensors, 3D Hall sensor provides higher sensitivity and more comprehensive spatial magnetic field measurement capabilities. It can not only detect magnetic field strength, but also output three-dimensional magnetic field information.
[0040] If the magnetic member 40 and the Hall element 30 are located at the same height in the axial direction of the pen body, the Hall element 30 may be a common Hall sensor. If the magnetic member 40 and the Hall element 30 are located at different heights in the axial direction of the pen body, the Hall element 30 may be a 3D Hall sensor.
[0041] In one embodiment, the processing unit is connected to the 3D Hall sensor via an I2C bus.
[0042] The multifunctional capacitive stylus generally has other functional modules in addition to the processing unit and the Hall element 30. The processing unit and the functional modules are connected via an I2C bus, so that the processing unit can be connected to more functional modules.
[0043] The present invention also proposes a capacitive stylus multi-function switching method, the capacitive stylus multi-function switching method comprising: Step S10, detecting the voltage output by the Hall element 30; Step S20, determining the rotation angle between the Hall element 30 and the magnetic member 40 according to the output voltage of the Hall element 30 and a preset mapping table; Step S30: switching the function of the capacitive stylus according to the rotation angle.
[0044] It should be noted that the execution subject of this method is a processing unit in the capacitive stylus. The processing unit may include a controller such as an MCU, an FPGA or a SOC. The user rotates the rotating part 10 to change the position of the magnetic part 40 relative to the Hall element 30, resulting in a change in the voltage output by the Hall element 30.
[0045] The voltage value output by the Hall element 30 can be detected first, and then the rotation angle of the Hall element 30 and the magnetic part 40 can be determined according to the voltage value output by the Hall element 30 and the preset mapping table. Among them, the preset mapping table can be a mapping relationship between the output voltage of the Hall element 30 and the rotation angle measured by the R&D personnel through experiments. It should be noted that when the R&D personnel conduct experiments, the rotation starting point and the rotation angle range of the rotating part 10 are the same as those when used by the user. In one embodiment, the rotation starting point can be the position corresponding to the minimum value in the rotation angle range. In another embodiment, the rotation starting point can be the position corresponding to the maximum value in the rotation angle range. In yet another embodiment, the rotation starting point can be the position corresponding to an angle of 0°.
[0046] The function of the capacitive pen is switched according to the rotation angle. The rotation angle can be divided into intervals, and each divided interval corresponds to a different capacitive pen function. When the rotation angle is obtained, the corresponding capacitive pen function can be obtained according to the corresponding relationship. The processing unit controls the capacitive pen to realize the corresponding capacitive pen function.
[0047] It should be understood that the number of the deviation intervals can be the same as the number of types of capacitive pen functions. The division method of each deviation interval is not limited in the present invention. In one embodiment, it can be divided equally. In another embodiment, the intervals can be divided according to whether it is a commonly used function; specifically, commonly used functions correspond to larger intervals; uncommon functions correspond to smaller intervals.
[0048] In one embodiment, the step of switching the function of the capacitive stylus according to the rotation angle specifically includes: If the rotation angle is less than the first preset angle, the capacitive pen function is switched to the corresponding first preset function; If the rotation angle is greater than a second preset angle, switching the capacitive pen function to a corresponding second preset function; If the rotation angle is greater than or equal to the first preset angle, and the rotation angle is less than or equal to the second preset angle, the capacitive pen function is switched to the corresponding third preset function.
[0049] In this embodiment, the rotation angle is divided into three intervals according to the first preset angle and the second preset angle. Corresponding to the first preset function, the second preset function and the third preset function respectively. Among them, the first preset angle and the second preset angle are determined by the R&D personnel or by the user. Specifically, the R&D personnel can save and use them in the form of a program after determining the first preset angle and the second preset angle. The user can use the relevant APP to modify and adjust the first preset angle and the second preset angle.
[0050] The first to third preset functions may also be determined by a developer or a user. In particular, the first preset function, the second preset function or the third preset function may be a blank function; and the processing unit controls the capacitive stylus pen to enter sleep mode.
[0051] In one embodiment, the step of switching the function of the capacitive stylus according to the rotation angle specifically includes: If the rotation angle is equal to the first preset angle, the capacitive stylus function is switched to the corresponding first preset function; If the rotation angle is equal to the second preset angle, the capacitive pen function is switched to the corresponding second preset function; If the rotation angle is equal to the third preset angle, the capacitive pen function is switched to the corresponding third preset function.
[0052] In this embodiment, when the rotation angle is a specific value, the corresponding preset function is switched. The first preset angle, the second preset angle, the third preset angle, the first preset function, the second preset function, and the third preset function can all be determined by R&D personnel or users.
[0053] In one embodiment, the first preset angle may be a minimum value of the rotation angle interval, the second preset angle may be a median value of the rotation angle interval, and the third preset angle may be a maximum value of the rotation angle interval. The rotating portion 10 may be labeled to indicate the positions of the first preset angle to the third preset angle.
[0054] Considering the structural stability of the pen body, the angle of the rotating portion 10 cannot be too large, as a too large angle will reduce the stability of the pen body.
[0055] In one embodiment, the first preset angle is -30°; the second preset angle is 0°; and the third preset angle is 30°. The first preset angle to the third preset angle divide -30° to 30° into three parts, corresponding to different capacitive stylus functions. The angle range of the rotating portion 10 is -30° to 30°.
[0056] It should be noted that if the magnetic member 40 is disposed on the outside of the rotating portion 10 and the rotating portion 10 is a pen cap or an ornament, the rotating portion 10 can rotate arbitrarily.
[0057] The present invention also proposes a storage medium, on which a capacitive pen multi-function switching program is stored, and when the capacitive pen multi-function switching program is executed by a processor, the capacitive pen multi-function switching method is implemented. The above descriptions are only optional embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings, or directly / indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.
Claims
1. A multifunctional capacitive stylus, It is characterized in that The multifunctional capacitive stylus comprises: A rotating part, the rotating part is rotatably arranged on the pen body, the rotating part forms a receiving cavity, the rotating part is provided with a magnetic member, and the magnetic member is arranged on the inner side wall of the receiving cavity; A circuit board, the circuit board is arranged on the pen body, at least a part of the structure of the circuit board extends into the accommodating cavity, and a Hall element is arranged at one end of the circuit board close to the rotating part; A processing unit is connected to the Hall element; the processing unit is used to switch the function of the capacitive pen according to the voltage value output by the Hall element and a preset mapping table.
2. The multifunctional capacitive stylus pen as claimed in claim 1, It is characterized in that The magnetic member and the Hall element are located at the same height in the axial direction of the pen body.
3. The multifunctional capacitive stylus according to claim 1 or 2, It is characterized in that The Hall element is a 3D Hall sensor.
4. The multifunctional capacitive stylus pen as claimed in claim 3, It is characterized in that The processing unit is connected to the 3D Hall sensor via an I2C bus.
5. A capacitive stylus multi-function switching method, It is characterized in that The capacitive stylus multi-function switching method comprises: Detecting the voltage output by the Hall element; Determining the rotation angle between the Hall element and the magnetic component according to the output voltage of the Hall element and a preset mapping table; The function of the capacitive stylus is switched according to the rotation angle.
6. The capacitive stylus multi-function switching method as claimed in claim 5, It is characterized in that The step of switching the function of the capacitive stylus according to the rotation angle specifically includes: If the rotation angle is less than the first preset angle, the capacitive pen function is switched to the corresponding first preset function; If the rotation angle is greater than a second preset angle, the capacitive pen function is switched to a corresponding second preset function; If the rotation angle is greater than or equal to the first preset angle, and the rotation angle is less than or equal to the second preset angle, the capacitive pen function is switched to the corresponding third preset function.
7. The capacitive stylus multi-function switching method as claimed in claim 5, It is characterized in that The step of switching the function of the capacitive stylus according to the rotation angle specifically includes: If the rotation angle is equal to the first preset angle, the capacitive stylus function is switched to the corresponding first preset function; If the rotation angle is equal to the second preset angle, the capacitive pen function is switched to the corresponding second preset function; If the rotation angle is equal to the third preset angle, the capacitive pen function is switched to the corresponding third preset function.
8. The capacitive stylus multi-function switching method as claimed in claim 7, It is characterized in that The first preset angle is -30°; the second preset angle is 0°; and the third preset angle is 30°.
9. A storage medium, It is characterized in that The storage medium stores a capacitive pen multi-function switching program, and when the capacitive pen multi-function switching program is executed by the processor, the capacitive pen multi-function switching method according to any one of claims 5 to 8 is implemented.
Citation Information
Cited By
Digital pen
WO2026209964A1
