Capacitive pen, electronic device, and control method of capacitive pen

By introducing pressure and angle sensors into the capacitive pen, the pressure value is detected to switch the pen color and mode, solving the problem that existing capacitive pens cannot switch in real time, thus improving the user's writing efficiency and accuracy.

CN115756182BActive Publication Date: 2026-01-23GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111015956.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2026-01-23
Estimated Expiration
2041-08-31

AI Technical Summary

Technical Problem

Existing capacitive pens cannot switch between pen color and eraser mode in real time during writing, resulting in wasted user time.

Method used

By introducing a pressure device and an angle sensor into the capacitive pen, a first pressure value and a second pressure value are detected to switch the pen color and mode, and real-time switching is achieved in combination with the control circuit.

Benefits of technology

It enables real-time switching of pen color and eraser mode on the touchscreen with a capacitive pen, improving the user's writing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115756182B_ABST
    Figure CN115756182B_ABST
Patent Text Reader

Abstract

The application provides a capacitive pen, an electronic device and a control method of the capacitive pen. The capacitive pen comprises a body structure and a pressure device, wherein the body structure further comprises a pen tip, and the pressure device is used for detecting a first pressure value and / or a second pressure value. The first pressure value is used for determining whether the color of the handwriting of the capacitive pen on a touch screen needs to be switched, and the second pressure value is used for determining whether the capacitive pen is switched from a writing mode to an erasing mode. Therefore, in the scheme, the color of the handwriting of the capacitive pen on the touch screen can be changed according to the size of the first pressure value, and the capacitive pen is switched to the erasing mode according to the second pressure value, that is, the color of the capacitive pen and the erasing mode can be switched in real time, thereby solving the problem that the capacitive pen in the prior art cannot switch the color of the handwriting and the erasing mode in real time, and the time of the user is wasted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of capacitive pens, and more specifically, to a capacitive pen, an electronic device, and a method for controlling the capacitive pen. Background Technology

[0002] Currently available active capacitive pens typically require users to manually select settings on the drawing board or press buttons or the pen cap to change the line thickness and color while writing. This switching process necessitates stopping writing, manually adjusting the settings, and then resuming writing. This "stop writing" step wastes valuable writing time.

[0003] Currently available whiteboard erasers typically require users to touch the touchscreen with their palm or the end of a stylus to adjust the eraser. Furthermore, the eraser's erasing range is either not adjustable, the angle is not adjustable, or users need to click on the settings button on the touchscreen to adjust the erasing range, causing inconvenience and wasting users' time.

[0004] Therefore, existing capacitive pens cannot adjust the thickness and color of the writing, as well as the erasure range and angle of the eraser in real time, resulting in a waste of the user's time.

[0005] The information disclosed above in the background section is only intended to enhance the understanding of the background art of the art described herein. Therefore, the background art may contain certain information that does not constitute prior art known to those skilled in the art in this country. Summary of the Invention

[0006] The main objective of this application is to provide a capacitive pen, an electronic device, and a control method for the capacitive pen, in order to solve the problem in the prior art that capacitive pens cannot switch between pen color and eraser mode in real time, resulting in wasted user time.

[0007] According to one aspect of the present invention, a capacitive stylus is provided, comprising: a body structure including a pen tip; and a pressure device located on the body structure, the pressure device being configured to detect a received first pressure value and / or a second pressure value, the first pressure value being configured to determine whether the color of the pen strokes on a corresponding touchscreen needs to be switched, and the second pressure value being configured to determine whether the capacitive stylus is switched from a writing mode to an erasing mode, wherein in the writing mode, the capacitive stylus is configured to form written content on the touchscreen, and in the erasing mode, the capacitive stylus is configured to remove displayed content in a predetermined area of ​​the touchscreen.

[0008] Furthermore, the capacitive stylus also includes a control circuit electrically connected to the pressure device. The control circuit is used to issue a color switching signal when the first pressure value is greater than a first pressure threshold, and / or to issue an eraser switching signal when the second pressure value is greater than a second pressure threshold. The color switching signal is used to switch the color of the pen strokes on the touch screen, and the eraser switching signal is used to switch the capacitive stylus to the eraser mode.

[0009] Furthermore, the control circuit is also configured to: when the second pressure value is greater than the second pressure threshold, issue a first adjustment signal based on the second pressure value, the first adjustment signal being used to adjust the erasing area of ​​the capacitive stylus on the touch screen.

[0010] Furthermore, the pressure device further includes: a first pressure sensor for detecting the received first pressure value; and a second pressure sensor for detecting the received second pressure value.

[0011] Furthermore, the second pressure sensor is located on the side of the first pressure sensor away from the pen tip.

[0012] Furthermore, the capacitive stylus also includes: an angle sensor located on the main body structure, used to acquire angle parameters, the angle parameters including the changing angle of the capacitive stylus; the control circuit is also used to issue a second adjustment signal according to the angle parameters, the second adjustment signal being used to adjust the position of the capacitive stylus in the erasure area in the erase mode.

[0013] Furthermore, the capacitive stylus also includes a wireless communication module, which is communicatively connected to the touchscreen.

[0014] Furthermore, the main body structure also includes a charging port and / or a battery compartment.

[0015] Furthermore, the capacitive pen also includes a pen tip sensor for detecting a third pressure value received at the pen tip.

[0016] According to another aspect of the present invention, an electronic device is also provided, comprising: any of the capacitive styluses described above; a touch screen communicatively connected to the capacitive stylus, wherein the touch screen is configured to display a switched color when it is determined that the color of the pen strokes on the touch screen needs to be switched, and / or the touch screen is configured to switch to eraser mode when it is determined that the capacitive stylus has switched from writing mode to eraser mode on the touch screen.

[0017] According to another aspect of the present invention, a method for controlling a capacitive stylus is also provided, comprising: acquiring a first pressure value and / or a second pressure value applied to the capacitive stylus; when the first pressure value is greater than a first pressure threshold, switching the color of the pen strokes on a corresponding touchscreen, and / or when the second pressure value is greater than a second pressure threshold, switching the capacitive stylus from a writing mode to an erasure mode, wherein in the writing mode, the capacitive stylus is used to form written content on the touchscreen, and in the erasure mode, the capacitive stylus is used to remove displayed content in a predetermined area of ​​the touchscreen.

[0018] Furthermore, after the capacitive stylus switches from writing mode to erase mode, the method further includes: acquiring the second pressure value in real time; and adjusting the erasing area of ​​the capacitive stylus on the touch screen according to the second pressure value when the second pressure value is greater than the second pressure threshold.

[0019] Furthermore, the method also includes: acquiring angle parameters, the angle parameters including the changing angle of the capacitive pen; and adjusting the position of the capacitive pen in the erasure area in the erase mode according to the angle parameters.

[0020] In this embodiment of the invention, the capacitive stylus includes a body structure and a pressure device. The body structure further includes a pen tip. The pressure device is used to detect a first pressure value and / or a second pressure value. Based on the first pressure value, it can be determined whether the pen color on the touchscreen needs to be switched. Based on the second pressure value, it can be determined whether the pen has switched from writing mode to eraser mode. Therefore, in this solution, the pen color on the touchscreen can be changed according to the magnitude of the first pressure value, and the eraser mode can be switched according to the second pressure value. This achieves real-time switching of the pen color and eraser mode, thereby solving the problem in the prior art where capacitive pens cannot switch pen color and eraser mode in real time, resulting in wasted user time. Attached Figure Description

[0021] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0022] Figure 1 A schematic diagram of a capacitive pen according to an embodiment of this application is shown;

[0023] Figure 2 A schematic diagram of a capacitive pen according to an embodiment of this application is shown;

[0024] Figure 3A schematic diagram of a method for measuring the angle parameters of a capacitive pen according to an embodiment of this application is shown;

[0025] Figure 4 A schematic diagram illustrating the use of a capacitive pen according to an embodiment of this application is shown.

[0026] Figure 5 A flowchart illustrating a capacitive pen control method according to an embodiment of this application is shown.

[0027] Figure 6 A flowchart illustrating a control device for a capacitive pen according to an embodiment of this application is shown.

[0028] The above figures include the following reference numerals:

[0029] 01. Body structure; 02. First pressure sensor; 03. Pen tip; 04. Control circuit; 05. Second pressure sensor; 06. Angle sensor; 07. Wireless communication module; 08. Charging port and / or battery compartment; 09. Pen tip sensor; 10. Touch screen; 11. Orthogonal projection; 12. Predetermined straight line; 13. Eraser; 14. Central axis of the eraser. Detailed Implementation

[0030] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0031] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0033] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element may be directly on the other element, or there may be an intermediate element present. Furthermore, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element, or "connected" to the other element via a third element.

[0034] As described in the background section, existing capacitive pens cannot switch between pen colors and eraser modes in real time, resulting in wasted user time. To address this issue, in a typical embodiment of this application, a capacitive pen, an electronic device, and a control method for the capacitive pen are provided.

[0035] According to an embodiment of this application, a capacitive pen is provided. Figure 1 This is a schematic diagram of the external structure of a capacitive pen according to an embodiment of this application. Figure 1 As shown, the capacitive stylus includes a body structure 01 and a pressure device. The body structure 01 includes a stylus tip 03. The pressure device is located on the body structure 01 and is used to detect a received first pressure value and / or a second pressure value. The first pressure value is used to determine whether the color of the stylus's writing on the corresponding touchscreen needs to be switched. The second pressure value is used to determine whether the stylus has switched from writing mode to eraser mode. In writing mode, the stylus is used to form written content on the touchscreen. In eraser mode, the stylus is used to remove displayed content from a predetermined area of ​​the touchscreen.

[0036] The aforementioned capacitive stylus includes a body structure 01 and a pressure device. The body structure 01 further includes a stylus tip 03. The pressure device is used to detect a first pressure value and / or a second pressure value. Based on the first pressure value, it can be determined whether the color of the pen strokes on the touchscreen needs to be switched. Based on the second pressure value, it can be determined whether the pen strokes have switched from writing mode to eraser mode. Therefore, in this solution, the pen stroke color on the touchscreen can be changed according to the magnitude of the first pressure value, and the eraser mode can be switched according to the second pressure value. This achieves real-time switching of the pen stroke color and eraser mode, thereby solving the problem in the prior art where capacitive pens cannot switch stroke color and eraser mode in real time, resulting in wasted user time.

[0037] In the embodiments of this application, when the capacitive stylus is in eraser mode, the user can operate the stylus to clear the display content of a predetermined area on the touchscreen. This predetermined area is not only the location of the stylus tip, but can also be an area at a certain distance from the location of the stylus tip, so that the user can see their operation more clearly. Of course, the shape displayed on the touchscreen by the capacitive stylus in eraser mode can be a rectangle, but it is not limited to a rectangle; it can also be other shapes, or it can be that no shape is displayed at all.

[0038] In one embodiment of this application, the capacitive pen adopts an ergonomic triangular prism shape with a smooth appearance and no protruding or recessed buttons. Compared with a cylindrical capacitive pen, it is more comfortable for users to hold and can also increase the area for finger pressing.

[0039] Figure 2 This is a schematic diagram of the internal structure of a capacitive pen according to an embodiment of this application, as shown below. Figure 2 As shown, in one embodiment of this application, the capacitive stylus further includes a control circuit 04 electrically connected to the pressure device. The control circuit 04 is used to issue a color switching signal when the first pressure value is greater than a first pressure threshold, and / or to issue an eraser switching signal when the second pressure value is greater than a second pressure threshold. The color switching signal is used to switch the color of the stylus's strokes on the touchscreen, and the eraser switching signal is used to switch the stylus to eraser mode. In this embodiment, the first pressure threshold and the second pressure threshold are set thresholds. When the first pressure value is greater than the first pressure threshold, the control circuit issues a color switching signal. The stylus's stroke color changes once for every certain range increase in the first pressure value. When the second pressure value is greater than the second pressure threshold, the control circuit issues an eraser switching signal.

[0040] In another embodiment of this application, the control circuit is further configured to: when the second pressure value is greater than the second pressure threshold, issue a first adjustment signal based on the second pressure value, the first adjustment signal being used to adjust the erasing area of ​​the capacitive stylus on the touchscreen. In this embodiment, the user can also adjust the erasing area of ​​the eraser in eraser mode. As the second pressure value increases by a certain range, the erasing area of ​​the eraser increases by one level, thereby enabling the capacitive stylus to switch to eraser mode in real time and to adjust the erasing area of ​​the eraser. Specifically, in eraser mode, the shape of the capacitive stylus on the touchscreen can also be adjusted accordingly when the erasing range changes, making it easier for the user to see the current erasing range of the capacitive stylus.

[0041] To improve the durability of the capacitive pen, in another embodiment of this application, the internal structure of the capacitive pen is treated with a drop-proof and waterproof structure.

[0042] In another embodiment of this application, such as Figure 1 As shown, the pressure device further includes a first pressure sensor 02 for detecting the received first pressure value; and a second pressure sensor 05 for detecting the received second pressure value. In this embodiment, the pressure device also includes a first pressure sensor and a second pressure sensor. When the first pressure value acquired by the first pressure sensor is valid, the capacitive pen switches the pen color. The user can adjust the pressure applied to the first pressure sensor to make the first pressure value valid, thereby changing the pen's pen color. When the second pressure value acquired by the second pressure sensor is valid, the capacitive pen switches from writing mode to eraser mode. When the user wants to clearly understand the content in a predetermined area, they can adjust the pressure applied to the second pressure sensor to make the second pressure value valid, thereby putting the pen into eraser mode. This solution can solve the problem of the capacitive pen not being able to switch pen color and eraser mode in real time, resulting in wasted writing time for the user.

[0043] To prevent accidental activation of the first pressure sensor 02 and the second pressure sensor 05 during user operation, such as Figure 1 As shown, in another embodiment of this application, the second pressure sensor 05 is located on the side of the first pressure sensor 02 that is away from the pen tip 03.

[0044] In another embodiment of this application, such as Figure 2 As shown, the capacitive stylus also includes an angle sensor 06 located on the main body structure 01, used to acquire angle parameters, including the changing angle of the capacitive stylus. The control circuit is further used to issue a second adjustment signal based on the angle parameters, the second adjustment signal being used to adjust the position of the erasing area of ​​the capacitive stylus in the eraser mode. In this embodiment, if the erasing area displays a shape, such as a rectangle, the shape will change position according to the angle parameters. Of course, it may also not display any shape. Therefore, in eraser mode, the user can adjust the position of the erasing area by rotating the capacitive stylus, improving the accuracy of erasing written content and further improving the user's writing efficiency.

[0045] In one specific embodiment, there are three angle sensors 06, which are arranged internally at 90-degree angles to each other, such as... Figure 3As shown, a three-dimensional coordinate system is formed. When using a new touchscreen for the first time, a second pressure sensor is needed to zero-calibrate the angle sensors: Place the side of the angle sensor facing the main body of the touchscreen, position the stylus perpendicular to the top and bottom edges of the touchscreen, and then press the second pressure sensor. When the second pressure value is valid, the rotation angles of the three angle sensors are zeroed. When the stylus is rotated, the three zero-calibrated angle sensors can measure the angles between the stylus and the x, y, and z axes of the three-dimensional coordinate system, respectively. Since the length of the stylus is fixed and known, the angle between the central axis of the stylus's orthogonal projection and the line perpendicular to the top and bottom edges of the touchscreen can be calculated using these three angles and the stylus's length. This angle is the eraser angle. After calculating the eraser angle, the position and angle of the eraser can be determined using the contact point between the stylus tip and the screen as the center.

[0046] like Figure 2 As shown, in another embodiment of this application, the capacitive stylus further includes a wireless communication module 07 for communicating with the touchscreen. The data transmitted may include a first pressure value; if the stylus includes a second pressure sensor, the data may also include a second pressure value; if the stylus includes an angle sensor, the data may also include angle data. Of course, the transmitted data is not limited to data obtained by the stylus, but also includes data calculated by the control circuit.

[0047] In another embodiment of this application, such as Figure 1 As shown, the aforementioned main body structure 01 also includes a charging port and / or a battery compartment 08. In this embodiment, the capacitive pen has three power supply methods. When using it, the user can use one or a combination of two of these methods to avoid running out of power and ensure the user's writing efficiency.

[0048] In another embodiment of this application, such as Figure 2 As shown, the capacitive stylus also includes a pen tip sensor 09, used to detect the third pressure value received at the pen tip 03. The third pressure value is used to adjust the thickness of the pen strokes on the corresponding touchscreen. The greater the third pressure value, the thicker the pen strokes on the corresponding touchscreen, thus realizing real-time adjustment of the pen stroke thickness.

[0049] This application embodiment also provides an electronic device, including any of the above-described capacitive stylus and a touch screen, wherein the touch screen is communicatively connected to the capacitive stylus, and the touch screen is used to display the switched color when it is determined that the color of the pen strokes on the touch screen needs to be switched, and / or the touch screen is used to switch to eraser mode when it is determined that the capacitive stylus has switched from writing mode to eraser mode on the touch screen.

[0050] The aforementioned electronic device includes a capacitive pen and a touchscreen, which are connected via communication. The capacitive pen includes a body structure and a pressure device. The body structure includes a pen tip, and the pressure device is used to detect a first pressure value and / or a second pressure value. Based on the first pressure value, it can be determined whether the pen color on the touchscreen needs to be switched, and based on the second pressure value, it can be determined whether the pen has switched from writing mode to eraser mode. Therefore, in this solution, the pen color on the touchscreen can be changed according to the magnitude of the first pressure value, and the eraser mode can be switched according to the second pressure value. This achieves real-time switching of the pen color and eraser mode, thereby solving the problem in the prior art where capacitive pens cannot switch pen color and eraser mode in real time, resulting in wasted user time.

[0051] In the embodiments of this application, when the capacitive stylus is in eraser mode, the user can operate the stylus to clear the display content of a predetermined area on the touchscreen. This predetermined area is not only the location of the stylus tip, but can also be an area at a certain distance from the stylus tip, allowing the user to see their operation more clearly. Of course, the shape displayed on the touchscreen by the stylus in eraser mode can be rectangular, but is not limited to rectangles; it can also be other shapes, or even not display any shape at all. Simultaneously, the user can adjust the erasing range in this mode. For every certain increase in the second pressure value, the erasing range increases by one level, thus enabling the stylus to switch to eraser mode in real time and adjust the erasing range. Specifically, in eraser mode, the shape of the stylus on the touchscreen can also be adjusted accordingly as the erasing range changes, making it easier for the user to see the current erasing range of the stylus.

[0052] The aforementioned electronic devices can use an MCU to process the acquired data, but are not limited to this type of control circuit; other control methods can also be adopted.

[0053] This application also provides a method for controlling a capacitive pen. Figure 4 This is a flowchart of a capacitive pen control method according to an embodiment of this application. Figure 4 As shown, the method includes the following steps:

[0054] Step S101: Obtain the first pressure value and / or the second pressure value applied to the capacitive pen;

[0055] Step S102: When the first pressure value is greater than the first pressure threshold, switch the color of the pen strokes on the corresponding touch screen, and / or when the second pressure value is greater than the second pressure threshold, switch the pen from writing mode to eraser mode. In the writing mode, the pen is used to form writing content on the touch screen. In the eraser mode, the pen is used to remove display content in a predetermined area of ​​the touch screen.

[0056] In the above method, a first pressure value and / or a second pressure value applied to the capacitive stylus are first obtained. Then, if the first pressure value is greater than a first pressure threshold, the color of the pen strokes on the corresponding touchscreen is switched. If the second pressure value is greater than a second pressure threshold, the pen strokes are switched from writing mode to eraser mode. In writing mode, the pen strokes are used to form written content on the touchscreen. In eraser mode, the pen strokes are used to remove displayed content in a predetermined area of ​​the touchscreen. Therefore, this solution can change the pen stroke color on the touchscreen according to the magnitude of the first pressure value and switch to eraser mode according to the second pressure value, thus achieving real-time switching of pen stroke color and eraser mode. This solves the problem in the prior art where the pen stroke color and eraser mode cannot be switched in real time, resulting in wasted user time.

[0057] The first and second pressure thresholds are preset thresholds. When the first pressure value exceeds the first pressure threshold, the stylus switches the pen color. The pen color changes once for every certain range the first pressure value increases. When the second pressure value exceeds the second pressure threshold, the stylus switches to eraser mode. In eraser mode, the user can clear the content displayed on a predetermined area of ​​the touchscreen. This predetermined area can be the location of the pen tip or an area at a certain distance from the tip, allowing the user to see their actions more clearly. The shape displayed on the touchscreen in eraser mode can be rectangular, but not limited to rectangles; it can also be other shapes, or it can simply not display any shape.

[0058] In another embodiment of this application, after the capacitive stylus switches from writing mode to eraser mode, the method further includes: acquiring the second pressure value in real time; and adjusting the erasing area of ​​the capacitive stylus on the touchscreen based on the second pressure value when the second pressure value is greater than the second pressure threshold. In this embodiment, the user can also adjust the erasing area of ​​the eraser in eraser mode. As the second pressure value increases by a certain range, the erasing area of ​​the eraser increases by one level, thereby enabling the capacitive stylus to switch to eraser mode in real time and adjust the erasing area. Specifically, in eraser mode, the shape of the capacitive stylus on the touchscreen can also be adjusted accordingly when the erasing range changes, making it easier for the user to see the current erasing range of the capacitive stylus.

[0059] In another embodiment of this application, the method further includes: acquiring angle parameters, the angle parameters including the changing angle of the capacitive stylus; and adjusting the position of the erasable area of ​​the capacitive stylus in the eraser mode according to the angle parameters. In this embodiment, if the erasable area displays a shape, such as a rectangle, the shape will change position according to the angle parameters. Of course, no shape may be displayed. Therefore, in eraser mode, the user can adjust the position of the erasable area by rotating the capacitive stylus, improving the accuracy of erasing written content and further improving the user's writing efficiency.

[0060] In one specific embodiment of this application, the aforementioned angle parameter refers to the changing angle of the capacitive pen. Subsequently, the angle of the eraser is adjusted according to the changing angle of the capacitive pen. Specifically, the adjustment amount is the same as the changing angle of the capacitive pen, so that the adjustment amount of the eraser is the same as the changing angle of the capacitive pen.

[0061] Specifically, the angle of change of the capacitive stylus can be calculated based on the difference between the target angles of the stylus at two moments. The target angle at each moment is the angle between the orthogonal projection of the central axis of the stylus at the current moment and a predetermined straight line. The predetermined straight line is a straight line on the touchscreen that is perpendicular to the top and bottom edges. Specifically, the target angle at a given moment can be calculated as follows: Figure 5 As shown, the center point of the eraser 13 is the position of the capacitive pen tip 03. The orthogonal projection 11 of the central axis 14 of the eraser and the central axis of the capacitive pen on the touch screen 10 is on the same straight line. The angle between the orthogonal projection 11 and the predetermined straight line 12 is the target angle to be calculated.

[0062] The target angle is calculated as follows:

[0063] Step 1: Zeroing the angle sensor of the capacitive pen;

[0064] Step 2: Assume the included angles measured by the three angle sensors are α, β, and γ, and the length of the capacitive pen is L. According to the definition of a three-dimensional coordinate system, the coordinates of the tail end of the central axis of the capacitive pen in the coordinate system are: (LCosα,LCosβ,LCosγ);

[0065] Step 3: Based on the projection matrix The orthogonal projection r of the central axis V of the capacitive pen onto the xy-axis plane can be calculated: That is, the coordinates of r are (LCosα,LCosβ,0).

[0066] Therefore, the target angle at a given moment corresponds to the tangent value y: y = LCosβ / LCosα = Cosβ / Cosα. Then, the arctangent function value of y is calculated, and the obtained value is the target angle.

[0067] Therefore, the target angle at a given moment is arctan(Cosβ / Cosα). The difference between the target angles at two moments is the change in the capacitive pen angle, and the eraser angle is adjusted accordingly.

[0068] This application also provides a control device for a capacitive pen. It should be noted that the control device for the capacitive pen in this application can be used to execute the control method for a capacitive pen provided in this application. The control device for the capacitive pen provided in this application is described below.

[0069] Figure 6 This is a schematic diagram of a control device for a capacitive pen according to an embodiment of this application. Figure 6 As shown, the device includes:

[0070] The first acquisition unit 20 is used to acquire the first pressure value and / or the second pressure value acting on the capacitive pen.

[0071] The control unit 30 is configured to switch the color of the pen strokes on the corresponding touch screen when the first pressure value is greater than the first pressure threshold, and / or switch the pen from writing mode to eraser mode when the second pressure value is greater than the second pressure threshold. In the writing mode, the pen is used to form writing content on the touch screen, and in the eraser mode, the pen is used to remove display content in a predetermined area of ​​the touch screen.

[0072] In the aforementioned device, the first acquisition unit acquires a first pressure value and / or a second pressure value. Then, the control unit switches the color of the pen's writing on the corresponding touchscreen when the first pressure value is greater than a first pressure threshold, and / or switches the pen from writing mode to eraser mode when the second pressure value is greater than a second pressure threshold. In writing mode, the pen forms writing content on the touchscreen; in eraser mode, the pen removes display content from a predetermined area of ​​the touchscreen. Therefore, this solution allows for real-time switching of the pen's color and eraser mode based on the first pressure value and the second pressure value, thus solving the problem of wasted user time caused by the inability of the pen to switch writing color and eraser mode in the prior art.

[0073] The first and second pressure thresholds are preset thresholds. When the first pressure value exceeds the first pressure threshold, the stylus switches the pen color. The pen color changes once for every certain range the first pressure value increases. When the second pressure value exceeds the second pressure threshold, the stylus switches to eraser mode. In eraser mode, the user can clear the content displayed on a predetermined area of ​​the touchscreen. This predetermined area can be the location of the pen tip or an area at a certain distance from the tip, allowing the user to see their actions more clearly. The shape displayed on the touchscreen in eraser mode can be rectangular, but not limited to rectangles; it can also be other shapes, or it can simply not display any shape.

[0074] In another embodiment of this application, after the capacitive stylus switches from writing mode to eraser mode, the first acquisition unit is further configured to acquire a second pressure value in real time, and the control unit is further configured to adjust the erasing area of ​​the capacitive stylus on the touchscreen according to the second pressure value when the second pressure value is greater than the second pressure threshold. In this embodiment, the user can also adjust the erasing area of ​​the eraser in eraser mode. When the second pressure value increases by a certain range, the erasing area of ​​the eraser increases by one level, thereby realizing the real-time switching of the capacitive stylus to eraser mode and the adjustment of the erasing area of ​​the eraser. Specifically, in eraser mode, when the erasing range changes, the shape of the capacitive stylus on the touchscreen can also be adjusted accordingly, which makes it easier for the user to see the erasing range corresponding to each erasing step.

[0075] In another embodiment of this application, the device further includes a second acquisition unit for acquiring angle parameters, including the changing angle of the capacitive stylus. The control unit is also configured to adjust the position of the erasable area of ​​the capacitive stylus in the eraser mode according to the angle parameters. In this embodiment, if the erasable area displays a shape, such as a rectangle, the shape will change position according to the angle parameters. Alternatively, no shape may be displayed. Therefore, in eraser mode, the user can adjust the position of the erasable area by rotating the capacitive stylus, improving the accuracy of erasing written content and further enhancing the user's writing efficiency.

[0076] The control device for the capacitive pen includes a processor and a memory. The first acquisition unit, the second acquisition unit, the control unit, etc., are all stored as program units in the memory. The processor executes the program units stored in the memory to achieve the corresponding functions.

[0077] The processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured; adjusting kernel parameters allows for real-time adjustment of handwriting color, saving the user's writing time.

[0078] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0079] To enable those skilled in the art to better understand the technical solution of this application, the technical solution and technical effects of this application will be described below in conjunction with specific embodiments.

[0080] Example

[0081] The capacitive pen in this embodiment is as follows: Figure 1 and 2 As shown, the specific structure is described above and will not be described again here. The specific working method of this capacitive pen includes:

[0082] Adjust the thickness of the pen strokes in real time: such as Figure 2As shown, in writing mode, the user changes the third pressure value at the tip 03 of the capacitive pen. The tip sensor 09 detects the third pressure value and transmits it to the capacitive pen's MCU control circuit. The MCU control circuit uses a pre-set algorithm to detect the third pressure value. If the third pressure value is greater than a set threshold, it is converted into a specified stroke thickness signal; otherwise, it is discarded. When the third pressure value is valid, the MCU control circuit transmits the valid stroke thickness signal to the wireless communication module 07. The wireless communication module 07 transmits the stroke thickness signal. After receiving the stroke thickness signal, the touchscreen transmits it to the touchscreen's MCU control circuit. The touchscreen MCU adjusts the stroke thickness on the touchscreen in real time based on the received stroke thickness signal, completing one stroke thickness adjustment.

[0083] Adjust handwriting color in real time: such as Figure 2 As shown, in writing mode, when the user presses the position of the first pressure sensor 02, the first pressure sensor 02 detects a first pressure value and transmits it to the capacitive stylus MCU control circuit. The MCU control circuit uses a pre-set algorithm to detect the first pressure value. If the first pressure value is greater than a set threshold, a color switching signal is generated; otherwise, it is discarded. When the first pressure value is valid, the MCU control circuit transmits the valid color switching signal to the wireless communication module 07. The wireless communication module 07 transmits the aforementioned color switching signal. After receiving the color switching signal, the touchscreen transmits it to the touchscreen's MCU control circuit. The touchscreen MCU adjusts the pen color on the touchscreen in real time based on the received color switching signal, completing one pen color adjustment.

[0084] Switch to eraser mode in real time and adjust the eraser coverage area: such as Figure 2As shown, in writing mode, the user holds the end of the pen and continuously presses the second pressure sensor 05 with their thumb. The second pressure sensor 05 detects the second pressure value and transmits the pressure value signal to the capacitive pen MCU control circuit module. According to the program algorithm set in the MCU control circuit, the second pressure value is detected. When the second pressure value is greater than the set threshold, a valid eraser range signal is generated (if the second pressure value is less than the specified threshold, it is considered that the second pressure sensor is not pressed, and the eraser range signal is 0). Otherwise, it is discarded. The MCU control circuit transmits the valid eraser range signal to the wireless communication module 07. The wireless communication module 07 transmits the eraser range signal. The touch screen receives the eraser range signal and transmits it to the touch screen's MCU control circuit. The touch screen MCU adjusts to eraser mode in real time according to the received eraser range signal and can adjust the eraser range on the touch screen. When the second pressure value increases by a certain range, the eraser range increases by one level (if the eraser range signal is 0, the eraser mode is switched to writing mode), completing one eraser range adjustment.

[0085] Real-time adjustment of the eraser angle: such as Figure 2 As shown, in eraser mode, angle sensor 06 collects angle parameters and transmits them to the MCU control circuit of the capacitive stylus. The MCU control circuit detects the angle parameters according to the program algorithm set in the MCU control circuit. If the angle is valid, the angle of the capacitive stylus is calculated; otherwise, it is discarded. The MCU control circuit transmits the valid angle signal to the wireless communication module 07. The wireless communication module 07 transmits the angle signal. The touch screen receives the angle signal and transmits it to the MCU control circuit of the touch screen. The touch screen MCU sets the eraser range based on the received angle signal and the coordinates of the stylus tip. It then displays the eraser with the specified eraser range and angle on the orthogonal projection, completing one eraser angle adjustment.

[0086] As can be seen from the above description, the embodiments of this application achieve the following technical effects:

[0087] 1) The capacitive pen of this application includes a body structure and a pressure device. The body structure further includes a pen tip. The pressure device is used to detect a first pressure value and / or a second pressure value. Based on the first pressure value, it can be determined whether the pen color on the touch screen needs to be switched. Based on the second pressure value, it can be determined whether the pen has switched from writing mode to eraser mode. Therefore, in this solution, the pen color on the touch screen can be changed according to the magnitude of the first pressure value and the eraser mode can be switched according to the second pressure value. This achieves real-time switching of the pen color and eraser mode, thereby solving the problem in the prior art where capacitive pens cannot switch pen color and eraser mode in real time, resulting in wasted user time.

[0088] 2) The electronic device of this application includes the aforementioned capacitive pen and the aforementioned touch screen. The capacitive pen includes a body structure and a pressure device, wherein the body structure includes a pen tip, and the pressure device is used to detect a first pressure value and / or a second pressure value. Based on the first pressure value, it can be determined whether the pen color on the touch screen needs to be switched, and based on the second pressure value, it can be determined whether the pen has switched from writing mode to eraser mode. Therefore, in this solution, the pen color on the touch screen can be changed according to the magnitude of the first pressure value, and the pen can switch to eraser mode according to the second pressure value. This achieves real-time switching of the pen color and eraser mode, thereby solving the problem in the prior art where the capacitive pen cannot switch the pen color and eraser mode in real time, resulting in wasted user time.

[0089] 3) The capacitive pen control method of this application first obtains a first pressure value and / or a second pressure value. Then, when the first pressure value is greater than a first pressure threshold, the color of the pen strokes on the corresponding touch screen is switched. When the second pressure value is greater than a second pressure threshold, the pen strokes are switched from writing mode to eraser mode. In writing mode, the pen strokes are used to form written content on the touch screen. In eraser mode, the pen strokes are used to remove displayed content in a predetermined area of ​​the touch screen. Therefore, in this solution, the pen stroke color on the touch screen can be changed according to the magnitude of the first pressure value and the eraser mode can be switched according to the second pressure value. This achieves real-time switching of pen stroke color and eraser mode, thereby solving the problem in the prior art where the pen stroke color and eraser mode cannot be switched in real time, resulting in wasted user time.

[0090] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A capacitive pen, characterized in that, include: The main body structure, including the pen tip; A pressure device is located on the main body structure. The pressure device is used to detect a first pressure value and / or a second pressure value. The first pressure value is used to determine whether the color of the pen strokes on the corresponding touch screen needs to be switched. The second pressure value is used to determine whether the pen strokes have switched from writing mode to eraser mode. In writing mode, the pen strokes are used to form writing content on the touch screen. In eraser mode, the pen strokes are used to remove display content in a predetermined area of ​​the touch screen. The capacitive stylus further includes a control circuit electrically connected to the pressure device. The control circuit is configured to issue a color switching signal when the first pressure value is greater than a first pressure threshold, and / or issue an eraser switching signal when the second pressure value is greater than a second pressure threshold. The color switching signal is used to switch the color of the stylus's strokes on the touchscreen, and the eraser switching signal is used to switch the stylus to eraser mode. The capacitive stylus also includes an angle sensor, which is located on the main body structure and is used to acquire angle parameters, including the changing angle of the capacitive stylus. The control circuit is also used to issue a second adjustment signal according to the angle parameter, the second adjustment signal being used to adjust the position of the capacitive pen in the eraser mode of the eraser.

2. The capacitive pen according to claim 1, characterized in that, The control circuit is further configured to: when the second pressure value is greater than the second pressure threshold, issue a first adjustment signal based on the second pressure value, wherein the first adjustment signal is used to adjust the erasing area of ​​the capacitive stylus on the touch screen.

3. The capacitive pen according to claim 1, characterized in that, The pressure device also includes: A first pressure sensor is used to detect the received first pressure value; A second pressure sensor is used to detect the received second pressure value.

4. The capacitive pen according to claim 1, characterized in that, The second pressure sensor is located on the side of the first pressure sensor away from the pen tip.

5. The capacitive pen according to claim 1, characterized in that, The capacitive pen also includes: The wireless communication module is connected to the touchscreen.

6. The capacitive pen according to claim 1, characterized in that, The main body structure also includes a charging port and / or a battery compartment.

7. The capacitive pen according to claim 1, characterized in that, The capacitive pen also includes: A pen tip sensor is used to detect a third pressure value received at the pen tip.

8. An electronic device, characterized in that, The electronic device includes: The capacitive pen according to any one of claims 1 to 7; A touchscreen is communicatively connected to the capacitive stylus. The touchscreen is used to display the switched color when it is determined that the color of the pen strokes on the touchscreen needs to be switched, and / or to switch to erase mode when it is determined that the capacitive stylus has switched from writing mode to erase mode on the touchscreen.

9. A method for controlling a capacitive stylus, characterized in that, include: Acquire a first pressure value and / or a second pressure value applied to the capacitive pen; When the first pressure value is greater than the first pressure threshold, the color of the pen strokes on the corresponding touchscreen is switched; and / or when the second pressure value is greater than the second pressure threshold, the pen is switched from writing mode to eraser mode. In writing mode, the pen is used to create written content on the touchscreen; in eraser mode, the pen is used to remove displayed content from a predetermined area of ​​the touchscreen. The capacitive stylus further includes a control circuit electrically connected to a pressure device. The control circuit is configured to issue a color switching signal when the first pressure value is greater than a first pressure threshold, and / or issue an eraser switching signal when the second pressure value is greater than a second pressure threshold. The color switching signal is used to switch the color of the stylus's strokes on the touchscreen, and the eraser switching signal is used to switch the stylus to eraser mode. The capacitive stylus also includes an angle sensor located on the main body structure, used to acquire angle parameters, including the changing angle of the capacitive stylus; The control circuit is also used to issue a second adjustment signal according to the angle parameter, the second adjustment signal being used to adjust the position of the capacitive pen in the eraser mode of the eraser.

10. The method according to claim 9, characterized in that, After the capacitive stylus switches from writing mode to eraser mode, the method further includes: The second pressure value is acquired in real time; If the second pressure value is greater than the second pressure threshold, the erasing area of ​​the capacitive stylus on the touch screen is adjusted according to the second pressure value.

11. The method according to claim 9, characterized in that, The method further includes: Obtain angle parameters, including the changing angle of the capacitive pen; Based on the angle parameters, adjust the position of the capacitive stylus in the eraser mode to erase the area.

Citation Information

Patent Citations

  • Drawing method and drawing system based on touch pen, and related device

    CN106527947A

  • Apparatus and method for supporting eraser function of digitizer pen in digitizer system

    US20120293425A1