CN107357472A - Touch system, touch pen and detection method thereof - Google Patents
Touch system, touch pen and detection method thereof Download PDFInfo
- Publication number
- CN107357472A CN107357472A CN201710090414.1A CN201710090414A CN107357472A CN 107357472 A CN107357472 A CN 107357472A CN 201710090414 A CN201710090414 A CN 201710090414A CN 107357472 A CN107357472 A CN 107357472A
- Authority
- CN
- China
- Prior art keywords
- sensing
- electrode
- quantities
- flag value
- frequency
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
- G06F3/03545—Pens or stylus
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Measurement Of Length, Angles, Or The Like Using Electric Or Magnetic Means (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种触控检测,尤其涉及一种触控笔及其检测方法。The invention relates to touch detection, in particular to a touch pen and a detection method thereof.
背景技术Background technique
触控装置,例如触控板(touch pad)或触控面板(touch panel)已广泛应用在电子产品,使用者可以利用手指或触控笔等物件在一触控装置的表面上进行操作,实现输入目的。触控笔的倾斜状态或方向可提供一些应用程式在执行特定功能时的参考依据。Touch devices, such as touch pads or touch panels, have been widely used in electronic products. Users can use objects such as fingers or stylus to operate on the surface of a touch device to realize Enter purpose. The tilt state or direction of the stylus can provide references for some applications when performing certain functions.
发明内容Contents of the invention
本发明的主要目的是提供一种触控笔及其检测方法。The main purpose of the present invention is to provide a touch pen and a detection method thereof.
为达成前述目的,本发明的触控笔用以在一触控装置上操作,该触控笔包含:To achieve the aforementioned purpose, the stylus of the present invention is used to operate on a touch device, and the stylus includes:
一笔身,沿着笔身轴向依序设有一第一电极、一第二电极以及一第三电极,该第二电极与该第三电极相隔一第一距离;以及A pen body is provided with a first electrode, a second electrode and a third electrode in sequence along the axis of the pen body, and the second electrode is separated from the third electrode by a first distance; and
一控制器,位于该笔身内部,该控制器提供具有第一频率的一第一驱动信号,具有第二频率的一第二驱动信号,以及具有第三频率的一第三驱动信号,该第一频率,该第二频率与该第三频率为三个不同的频率;A controller is located inside the pen body, the controller provides a first driving signal with a first frequency, a second driving signal with a second frequency, and a third driving signal with a third frequency, the first a frequency, the second frequency and the third frequency are three different frequencies;
其中,该第一电极、第二电极与第三电极,分别且同时接收该第一驱动信号、第二驱动信号与该第三驱动信号,该第二电极及该第三电极被用来在该触控装置上产生第二感应信息及第三感应信息,以供该触控装置判断该触控笔的一倾斜角或一方位信息,该第一电极被用来发射信号给该触控装置,以供该触控装置判断获得该触控笔的位置。Wherein, the first electrode, the second electrode and the third electrode respectively and simultaneously receive the first driving signal, the second driving signal and the third driving signal, the second electrode and the third electrode are used to The second sensing information and the third sensing information are generated on the touch device for the touch device to determine a tilt angle or an orientation information of the stylus, and the first electrode is used to transmit a signal to the touch device, It is used for the touch device to judge and obtain the position of the stylus.
本发明的触控笔的检测方法,用于判断该触控笔与一触控装置之间的倾斜角,该触控笔包括一第一电极、一第二电极以及一第三电极,该第二电极与该第三电极相隔一第一距离,该方法包含:The detection method of the stylus of the present invention is used for judging the inclination angle between the stylus and a touch device, the stylus includes a first electrode, a second electrode and a third electrode, the first electrode The second electrode is separated from the third electrode by a first distance, and the method includes:
(a)利用该触控装置检测该触控笔;(a) using the touch device to detect the stylus;
(b)对于步骤(a)的检测结果进行处理,获得对应一第一频率的一第一感应信息,对应一第二频率的一第二感应信息,以及一对应第三频率的第三感应信息;(b) Processing the detection result of step (a), obtaining a first sensing information corresponding to a first frequency, a second sensing information corresponding to a second frequency, and a third sensing information corresponding to a third frequency ;
(c)根据该第一感应信息计算该触控笔的位置;(c) calculating the position of the stylus according to the first sensing information;
(d)根据该第二感应信息计算一第二二维座标,以及根据该第三感应信息计算一第三二维座标;(d) calculating a second two-dimensional coordinate according to the second sensing information, and calculating a third two-dimensional coordinate according to the third sensing information;
(e)计算该第二二维座标与第三二维座标之间的一第二距离;以及(e) calculating a second distance between the second two-dimensional coordinate and the third two-dimensional coordinate; and
(f)根据该第一距离与该第二距离决定该倾斜角。(f) determining the inclination angle according to the first distance and the second distance.
本发明的又一触控笔的检测方法,用于判断该触控笔与一触控装置之间的方位信息,该触控笔包括一第一电极、一第二电极以及一第三电极,该第二电极与该第三电极相隔一第一距离,该第一电极、该第二电极与第三电极分别被同时施加具有第一频率、第二频率以及第三频率的驱动信号,该方法包含:Another detection method for a stylus of the present invention is used to determine the orientation information between the stylus and a touch device, the stylus includes a first electrode, a second electrode and a third electrode, The second electrode is separated from the third electrode by a first distance, the first electrode, the second electrode and the third electrode are respectively simultaneously applied with driving signals having a first frequency, a second frequency and a third frequency, the method Include:
(a)利用该触控装置检测该触控笔;(a) using the touch device to detect the stylus;
(b)对于步骤(a)的检测结果进行处理,获得对应该第一频率的一第一感应信息,对应该第二频率的一第二感应信息,与对应该第三频率的一第三感应信息;(b) Processing the detection result of step (a), obtaining a first induction information corresponding to the first frequency, a second induction information corresponding to the second frequency, and a third induction corresponding to the third frequency information;
(c)根据该第一感应信息计算该触控笔的位置;以及(c) calculating the position of the stylus according to the first sensing information; and
(d)根据该第二感应信息与第三感应信息决定一方位信息。(d) Determining an orientation information according to the second sensing information and the third sensing information.
本发明提供一种触控系统,包含有:The present invention provides a touch control system, including:
一触控笔,包含有:A stylus, including:
一笔身,沿着笔身轴向依序设有一第一电极、一第二电极以及一第三电极,该第二电极与该第三电极相隔一第一距离;以及A pen body is provided with a first electrode, a second electrode and a third electrode in sequence along the axis of the pen body, and the second electrode is separated from the third electrode by a first distance; and
一控制器,位于该笔身内部,该控制器提供具有第一频率的一第一驱动信号,具有第二频率的一第二驱动信号,以及具有第三频率的一第三驱动信号,该第一频率,该第二频率与该第三频率为三个不同的频率,其中,该第一电极、第二电极与第三电极,分别且同时接收该第一驱动信号、第二驱动信号与该第三驱动信号;以及A controller is located inside the pen body, the controller provides a first driving signal with a first frequency, a second driving signal with a second frequency, and a third driving signal with a third frequency, the first A frequency, the second frequency and the third frequency are three different frequencies, wherein the first electrode, the second electrode and the third electrode respectively and simultaneously receive the first driving signal, the second driving signal and the a third drive signal; and
一触控装置,用以检测该触控笔并对检测结果进行处理,获得对应该第一频率的一第一感应信息,对应该第二频率的一第二感应信息及对应该第三频率的一第三感应信息,该触控装置根据该第二感应信息及第三感应信息进行运算,以判断该触控笔的倾斜角或方位信息。A touch device for detecting the stylus and processing the detection result to obtain a first sensing information corresponding to the first frequency, a second sensing information corresponding to the second frequency and a sensing information corresponding to the third frequency A third sensing information, the touch device performs calculation according to the second sensing information and the third sensing information to determine the inclination angle or orientation information of the stylus.
以下结合附图和具体实施例对本发明进行详细描述,但不作为对本发明的限定。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments, but not as a limitation of the present invention.
附图说明Description of drawings
图1:本发明一触控系统的示意图。FIG. 1 : A schematic diagram of a touch control system of the present invention.
图2:本发明触控笔相对于触控装置的倾斜角的示意图。Fig. 2: A schematic diagram of the inclination angle of the stylus of the present invention relative to the touch device.
图3:本发明触控笔相对于触控装置的方位信息的示意图。FIG. 3 : A schematic diagram of the orientation information of the stylus relative to the touch device according to the present invention.
图4:本发明触控笔的电路方块图。Fig. 4: Circuit block diagram of the stylus of the present invention.
图5:本发明触控装置的示意图。Fig. 5: Schematic diagram of the touch device of the present invention.
图6:本发明触控笔的倾斜角检测方法的流程图。Fig. 6: a flow chart of the method for detecting the tilt angle of the stylus of the present invention.
图7:本发明第一电极~第三电极分别对应的第一感测信息~第三感测信息的示意图。FIG. 7 : A schematic diagram of first to third sensing information respectively corresponding to the first to third electrodes of the present invention.
图8:本发明第一二维座标~第三二维座标分别对应第一感测信息~第三感测信息的示意图。FIG. 8 : A schematic diagram of first to third two-dimensional coordinates corresponding to first to third sensing information in the present invention, respectively.
图9:本发明触控笔的方位信息检测方法的流程图。Fig. 9: a flow chart of the detection method of the orientation information of the stylus according to the present invention.
图10:本发明决定方位信息步骤第一实施例的流程图。Fig. 10: a flow chart of the first embodiment of the step of determining orientation information in the present invention.
图11A~图11C:本发明触控笔的第三电极与第二电极在第一方向上的三种相对位置关系示意图。11A to 11C are schematic diagrams of three relative positional relationships between the third electrode and the second electrode of the stylus of the present invention in the first direction.
图12:本发明第一旗标值、第二旗标值的组合对应不同方位信息的示意图。FIG. 12 : A schematic diagram of combinations of the first flag value and the second flag value corresponding to different orientation information in the present invention.
图13:本发明决定方位信息步骤第二实施例的流程图。Fig. 13: A flow chart of the second embodiment of the step of determining orientation information in the present invention.
图14:图13中决定第一旗标值、第二旗标值的第一实施例流程图。FIG. 14 : a flowchart of the first embodiment for determining the first flag value and the second flag value in FIG. 13 .
图15A~15C:本发明计算重心值的示意图。15A-15C: Schematic diagrams of calculating the center of gravity value of the present invention.
图16:图13中决定第一旗标值、第二旗标值的第二实施例流程图。FIG. 16 : a flowchart of the second embodiment for determining the first flag value and the second flag value in FIG. 13 .
具体实施方式detailed description
下面结合附图对本发明的结构原理和工作原理作具体的描述:Below in conjunction with accompanying drawing, structural principle and working principle of the present invention are specifically described:
请参考图1,为本发明一触控系统的示意图,该触控系统包含一触控笔100及一触控装置300,根据本发明,可以判断出该触控笔100的一倾斜角或一方位信息。首先说明倾斜角及方位信息的意义,请参考图2所示,倾斜角θ表示该触控笔100与触控装置300的表面之间所构成的夹角;另请参考图3的俯视图所示,在本发明的一实施例中,根据该触控装置300的水平方向与垂直方向,可以定义出东、西、南、北、东北、东南、西南、西北、中心等九个方位,方位信息即代表该触控笔100的前端到尾端是朝向上述哪一个方向。在其他的实施例中,根据该触控装置300的水平方向与垂直方向可以定义出更多的方位,例如360度,方位信息即代表该触控笔100的前端到尾端是朝向哪一个方位。请注意,图3中所标示的”中心”,并非意味着触控装置300的中心。基于方便理解,图3中的”中心”可以被视为触控笔100前端在触控装置300的位置。当触控笔几乎或完全垂直于触控装置300平面时,触控笔100的方位信息会被判断成”中心”,因为此时的触控笔,并不偏向其他八个方向之一。如图4所示,根据本发明一实施例,该触控笔100包含一笔身10及一控制器20,该笔身10的其中一端具有一笔头部H,在该笔头部H上沿着笔身10的轴向依序设有一第一电极11、一第二电极12及一第三电极13,其中该第二电极12及第三电极13之间相隔一第一距离D1。在图4所示的实施例中,该第一电极11~第三电极13为环形电极,环设于笔头部H。该第一电极11配置在该笔头部H的最前端。该控制器20位在笔身10的内部,用于提供具有第一频率的一第一驱动信号,具有第二频率的一第二驱动信号,以及具有第三频率的一第三驱动信号,其中,该第一频率~第三频率是三个不同的频率。在图4所示的实施例中,该控制器20包含有一第一信号产生器21、一第二信号产生器22及一第三信号产生器23,该第一信号产生器21电连接该第一电极11,该第二信号产生器22电连接该第二电极12,该第三信号产生器23电连接该第三电极13。该第一信号产生器11用以提供该第一驱动信号给该第一电极11,该第二信号产生器22用以提供该第二驱动信号给该第二电极12,该第三信号产生器23用以提供第三驱动信号给该第三电极13。该第一电极11、第二电极12与第三电极13分别且同时接收该第一驱动信号、第二驱动信号与该第三驱动信号,该第二电极12及该第三电极13被用来在该触控装置300上产生第二感应信息及第三感应信息,以供该触控装置300判断该触控笔100的一倾斜角或一方位信息,该第一电极11被用来发射信号给该触控装置300,以供该触控装置300获得该触控笔100的位置。在一实施例中,该控制器20同时且分别输出该第一、第二与第三驱动信号给该第一电极11、第二电极12以及第三电极13。在其他实施例中,第一电极11、第二电极12以及第三电极13设置在不同的位置,例如,第三电极13设置于笔身10的末端。Please refer to FIG. 1 , which is a schematic diagram of a touch control system according to the present invention. The touch control system includes a stylus 100 and a touch device 300. According to the present invention, it is possible to determine an inclination angle or a orientation information. Firstly, the meaning of the inclination angle and orientation information will be explained. Please refer to FIG. 2, the inclination angle θ represents the angle formed between the stylus 100 and the surface of the touch device 300; please also refer to the top view shown in FIG. , in an embodiment of the present invention, according to the horizontal direction and vertical direction of the touch device 300, nine directions such as east, west, south, north, northeast, southeast, southwest, northwest and center can be defined, and the direction information That is to say which direction the front end to the rear end of the stylus 100 is facing. In other embodiments, more orientations can be defined according to the horizontal direction and the vertical direction of the touch device 300, such as 360 degrees, and the orientation information represents which orientation the front end of the stylus 100 is facing from the rear end. . Please note that the “center” marked in FIG. 3 does not mean the center of the touch device 300 . For easy understanding, the “center” in FIG. 3 can be regarded as the position of the front end of the stylus 100 on the touch device 300 . When the stylus is almost or completely perpendicular to the plane of the touch device 300 , the orientation information of the stylus 100 will be judged as "center", because the stylus at this time is not biased towards one of the other eight directions. As shown in FIG. 4, according to an embodiment of the present invention, the stylus 100 includes a body 10 and a controller 20, one end of the body 10 has a head H, on the head H A first electrode 11 , a second electrode 12 and a third electrode 13 are arranged in sequence along the axis of the pen body 10 , wherein the second electrode 12 and the third electrode 13 are separated by a first distance D1 . In the embodiment shown in FIG. 4 , the first electrode 11 to the third electrode 13 are annular electrodes, which are arranged around the pen head H. As shown in FIG. The first electrode 11 is disposed at the front end of the pen head H. As shown in FIG. The controller 20 is located inside the pen body 10 and is used to provide a first driving signal with a first frequency, a second driving signal with a second frequency, and a third driving signal with a third frequency, wherein , the first to third frequencies are three different frequencies. In the embodiment shown in Figure 4, the controller 20 includes a first signal generator 21, a second signal generator 22 and a third signal generator 23, the first signal generator 21 is electrically connected to the first An electrode 11 , the second signal generator 22 is electrically connected to the second electrode 12 , and the third signal generator 23 is electrically connected to the third electrode 13 . The first signal generator 11 is used to provide the first driving signal to the first electrode 11, the second signal generator 22 is used to provide the second driving signal to the second electrode 12, and the third signal generator 23 is used for providing a third driving signal to the third electrode 13 . The first electrode 11, the second electrode 12 and the third electrode 13 respectively and simultaneously receive the first driving signal, the second driving signal and the third driving signal, the second electrode 12 and the third electrode 13 are used to The second sensing information and the third sensing information are generated on the touch device 300 for the touch device 300 to determine a tilt angle or an orientation information of the stylus 100, and the first electrode 11 is used to transmit signals For the touch device 300 , for the touch device 300 to obtain the position of the stylus 100 . In one embodiment, the controller 20 simultaneously and respectively outputs the first, second and third driving signals to the first electrode 11 , the second electrode 12 and the third electrode 13 . In other embodiments, the first electrode 11 , the second electrode 12 and the third electrode 13 are disposed at different positions, for example, the third electrode 13 is disposed at the end of the pen body 10 .
该触控装置300用于检测该触控笔100。检测的结果经过处理(例如傅立叶转换),可以得到对应该第一电极11的第一感应信息Sense_data1、对应该第二电极12的第二感应信息Sense_data2与对应该第三电极13的第三感应信息Sense_data3,其中,根据该第二感应信息Sense_data2与第三感应信息Sense_data3可决定该触控笔100的倾斜角或方位信息。该触控装置300可以是一触控板(touch pad)、一触控面板(Touch panel)或一绘图板(Graphic tablet/digitizer),在一实施例中,如图5所示,该触控装置300包含有沿一第一方向(如X方向)排列的多个第一感应电极310,沿一第二方向(如Y方向)排列的多个第二感应电极320,该多个第一感应电极310与该多个第二感应电极320绝缘垂直相交,惟其它配置方式亦是可行。The touch device 300 is used for detecting the stylus 100 . The detection results are processed (such as Fourier transform), and the first sensing information Sense_data1 corresponding to the first electrode 11, the second sensing information Sense_data2 corresponding to the second electrode 12, and the third sensing information corresponding to the third electrode 13 can be obtained. Sense_data3, wherein the tilt angle or orientation information of the stylus 100 can be determined according to the second sensing information Sense_data2 and the third sensing information Sense_data3. The touch device 300 can be a touch pad (touch pad), a touch panel (Touch panel) or a drawing board (Graphic tablet/digitizer). In one embodiment, as shown in FIG. 5, the touch The device 300 includes a plurality of first sensing electrodes 310 arranged along a first direction (such as the X direction), and a plurality of second sensing electrodes 320 arranged along a second direction (such as the Y direction). The electrodes 310 and the plurality of second sensing electrodes 320 are insulated and vertically intersect, but other configurations are also feasible.
请参考图6所示,为本发明的触控笔的检测方法的一实施例,可以用来检测触控笔的倾斜角θ。该检测方法可应用于前述触控系统,其中,该检测方法包含以下步骤:Please refer to FIG. 6 , which is an embodiment of the detection method of the stylus according to the present invention, which can be used to detect the inclination angle θ of the stylus. The detection method can be applied to the aforementioned touch system, wherein the detection method includes the following steps:
S61:同时施加一第一频率的一第一驱动信号、一第二频率的第二驱动信号与一第三频率的第三驱动信号分别至该第一电极、该第二电极与该第三电极;S61: Simultaneously apply a first driving signal of a first frequency, a second driving signal of a second frequency and a third driving signal of a third frequency to the first electrode, the second electrode and the third electrode respectively ;
S62:利用该触控装置检测该触控笔;S62: Using the touch device to detect the stylus;
S63:对检测结果进行处理,获得对应第一频率的一第一感应信息,对应第二频率的一第二感应信息,与对应第三频率的一第三感应信息;S63: Process the detection result to obtain a first sensing information corresponding to the first frequency, a second sensing information corresponding to the second frequency, and a third sensing information corresponding to the third frequency;
S64:根据该第一感应信息计算该触控笔的位置;S64: Calculate the position of the stylus according to the first sensing information;
S65:根据该第二感应信息计算一第二二维座标,以及根据该第三感应信息计算一第三二维座标;S65: Calculate a second two-dimensional coordinate according to the second sensing information, and calculate a third two-dimensional coordinate according to the third sensing information;
S66:计算该第二二维座标与第三二维座标之间的一第二距离;S66: Calculate a second distance between the second two-dimensional coordinate and the third two-dimensional coordinate;
S67:根据该第一距离D1与该第二距离D2决定一倾斜角。S67: Determine an inclination angle according to the first distance D1 and the second distance D2.
上述各步骤S61~S67进一步详细说明如后:The above steps S61-S67 are further described in detail as follows:
实现步骤S61的方式之一,由该触控笔100的控制器20同时输出第一频率的第一驱动信号给该第一电极11,第二频率的第二驱动信号给该第二电极12,第三频率的第三驱动信号给该第三电极13。One of the ways to realize step S61 is that the controller 20 of the stylus 100 simultaneously outputs the first driving signal of the first frequency to the first electrode 11 and the second driving signal of the second frequency to the second electrode 12, A third driving signal of a third frequency is given to the third electrode 13 .
步骤S62是藉由触控装置300检测触控笔100。触控笔100的三个电极11、12与13造成触控装置的感应电极310与320的电性变化。藉由感应电极310与320的电性变化可以判断触控笔100的状态。在一实施例中,在步骤S62从触控装置300的多个第一感应电极310与多个第二感应电极320接收感测资料。在另一实施中,从多个第一感应电极310或多个第二感应电极320接收感测资料,接收到的感测资料与各个第一感应电极310与各个第二感应电极320之间的电容量有关。Step S62 is to detect the stylus 100 by the touch device 300 . The three electrodes 11 , 12 and 13 of the stylus 100 cause electrical changes of the sensing electrodes 310 and 320 of the touch device. The state of the stylus 100 can be determined by the electrical changes of the sensing electrodes 310 and 320 . In one embodiment, in step S62 , sensing data are received from the plurality of first sensing electrodes 310 and the plurality of second sensing electrodes 320 of the touch device 300 . In another implementation, the sensing data is received from a plurality of first sensing electrodes 310 or a plurality of second sensing electrodes 320, and the received sensing data is related to the distance between each first sensing electrode 310 and each second sensing electrode 320. related to capacitance.
步骤S63是对于步骤S62的检测结果进行处理。在步骤S62进行检测的结果包括从多个第一感应电极310与/或多个第二感应电极320接收到的感测资料,该些感测资料经过处理(例如傅立叶转换)后,可以分别得到对应于该第一频率的第一感应信息Sense_data1,对应于第二频率的第二感应信息Sense_data2与对应于第三频率的的第三感应信息Sense_data3。Step S63 is to process the detection result of step S62. The result of the detection in step S62 includes sensing data received from multiple first sensing electrodes 310 and/or multiple second sensing electrodes 320, and these sensing data can be obtained respectively after processing (for example, Fourier transform). The first sensing information Sense_data1 corresponding to the first frequency, the second sensing information Sense_data2 corresponding to the second frequency, and the third sensing information Sense_data3 corresponding to the third frequency.
进一步而言,如图7所示,在该第一方向的该第一感应电极310的感测资料经过处理(例如傅立叶转换)后,可以得到第一组感应量X1_data,第二组感应量X2_data与第三组感应量X3_data;同样的,在该第二方向的第二感应电极320的感测资料经过处理(例如傅立叶转换)后,可以得到第四组感应量Y1_data,第五组感应量Y2_data与第六组感应量Y3_data。在这个例子中,该第一感应信息Sense_data1包含该第一组感应量X1_data与第四组感应量Y1_data;该第二感应信息Sense_data2包含该第二组感应量X2_data与第五组感应量Y2_data;该第三感应信息Sense_data3包含该第三组感应量X3_data与第六组感应量Y3_data。Further, as shown in FIG. 7 , after the sensing data of the first sensing electrode 310 in the first direction is processed (such as Fourier transform), the first group of sensing quantities X1_data and the second group of sensing quantities X2_data can be obtained. Similar to the third group of sensing quantities X3_data; similarly, after the sensing data of the second sensing electrode 320 in the second direction is processed (such as Fourier transform), the fourth group of sensing quantities Y1_data and the fifth group of sensing quantities Y2_data can be obtained. And the sixth group of sensing quantity Y3_data. In this example, the first sensing information Sense_data1 includes the first group of sensing quantities X1_data and the fourth group of sensing quantities Y1_data; the second sensing information Sense_data2 includes the second group of sensing quantities X2_data and the fifth group of sensing quantities Y2_data; The third sensing information Sense_data3 includes the third group of sensing quantities X3_data and the sixth group of sensing quantities Y3_data.
在上述步骤中,触控笔100的检测结果被解析出三组感应信息Sense_data1、Sense_data2与Sense_data3,每一组感应信息可以被理解为触控笔的一个电极对触控装置300所造成的影响。例如,第一组感应量X1_data即是代表第一电极11对多个感应电极310造成的电性变化。也就是说,解析出来的三组感应信息Sense_data1、Sense_data2与Sense_data3,分别对应第一电极11、第二电极12与第三电极13。In the above steps, the detection result of the stylus 100 is analyzed to obtain three sets of sensing information Sense_data1 , Sense_data2 and Sense_data3 , and each set of sensing information can be understood as the influence of an electrode of the stylus on the touch device 300 . For example, the first set of sensing quantities X1_data represents the electrical changes caused by the first electrode 11 to the plurality of sensing electrodes 310 . That is to say, the analyzed three sets of sensing information Sense_data1 , Sense_data2 and Sense_data3 correspond to the first electrode 11 , the second electrode 12 and the third electrode 13 respectively.
在步骤S64中,根据第一组感应量X1_data计算出第一位置x1,根据第四组感应量Y1_data计算出一第四位置y1,第一位置x1与第四位置y1组成第一二维座标P1(x1,y1)。在一实施例中,使用第一二维座标P1(x1,y1)作为触控笔100的位置。在其他实施例中,对第一组感应量X1_data与第四组感应量Y1_data,或者第一二维座标P1(x1,y1)进行补偿或其他处理,以决定触控笔100的位置。In step S64, the first position x1 is calculated according to the first set of sensing quantities X1_data, and a fourth position y1 is calculated according to the fourth set of sensing quantities Y1_data, and the first position x1 and the fourth position y1 form the first two-dimensional coordinates P1(x1,y1). In one embodiment, the first two-dimensional coordinate P1 (x1, y1) is used as the position of the stylus 100 . In other embodiments, compensation or other processing is performed on the first set of sensing quantities X1_data and the fourth set of sensing quantities Y1_data, or the first two-dimensional coordinates P1(x1, y1), to determine the position of the stylus 100 .
在步骤S65中,根据第二组感应量X2_data计算出第二位置x2,根据第五组感应量Y2_data计算出一第五位置y2,第二位置x2与第五位置y2组成一第二二维座标P2(x2,y2)。根据第三组感应量X3_data计算出第三位置x3,根据第六组感应量Y3_data计算出一第六位置y3,第三位置x3与第六位置y3组成一第三二维座标P3(x3,y3)。In step S65, the second position x2 is calculated according to the second set of sensing quantities X2_data, and a fifth position y2 is calculated according to the fifth set of sensing quantities Y2_data. The second position x2 and the fifth position y2 form a second two-dimensional seat Label P2(x2,y2). The third position x3 is calculated according to the third set of sensing quantities X3_data, and a sixth position y3 is calculated according to the sixth set of sensing quantities Y3_data. The third position x3 and the sixth position y3 form a third two-dimensional coordinate P3(x3, y3).
根据X方向与Y方向的感应量来计算二维座标,是触控领域的人士所熟知,在此不再赘述。Calculating the two-dimensional coordinates according to the sensing quantities in the X direction and the Y direction is well known to those in the field of touch control, and will not be repeated here.
在步骤S66,计算该第二二维座标P2(x2,y2)与第三二维座标P3(x3,y3)之间的一第二距离D2。在一实施例中,将该第二二维座标P2(x2,y2)与第三二维座标(x3,y3)代入公式计算出该第二距离D2,如图8所示。In step S66 , a second distance D2 between the second two-dimensional coordinate P2 ( x2 , y2 ) and the third two-dimensional coordinate P3 ( x3 , y3 ) is calculated. In one embodiment, the second two-dimensional coordinate P2 (x2, y2) and the third two-dimensional coordinate (x3, y3) are substituted into the formula The second distance D2 is calculated, as shown in FIG. 8 .
在步骤S67,根据该第一距离D1与该第二距离D2进行三角函数运算获得倾斜角θ。倾斜角θ表示该触控笔100相对该触控装置300的倾斜角度,在一实施例中,利用三角函数arccos(D2/D1)计算出该倾斜角θ,如图2所示。在一实施例中,步骤S62到S67是由触控装置300所包括的一控制器330(如图1所示)执行,该控制器330耦接该多个感应电极310与320。触控装置300的控制器330所计算出的倾斜角θ被传送至一主机(host),例如电脑的中央处理器(CPU)。In step S67 , the inclination angle θ is obtained by performing a trigonometric operation according to the first distance D1 and the second distance D2 . The tilt angle θ represents the tilt angle of the stylus 100 relative to the touch device 300 , and in one embodiment, the tilt angle θ is calculated by using the trigonometric function arccos(D2/D1), as shown in FIG. 2 . In one embodiment, steps S62 to S67 are executed by a controller 330 (as shown in FIG. 1 ) included in the touch device 300 , and the controller 330 is coupled to the plurality of sensing electrodes 310 and 320 . The tilt angle θ calculated by the controller 330 of the touch device 300 is sent to a host, such as a central processing unit (CPU) of a computer.
请参考图9所示,为本发明触控笔的检测方法的另一实施例,可以用来检测触控笔的方位信息。该检测方法可以应用于前述触控统,该检测方法包含以下步骤:Please refer to FIG. 9 , which is another embodiment of the detection method of the stylus of the present invention, which can be used to detect the orientation information of the stylus. The detection method can be applied to the aforementioned touch system, and the detection method includes the following steps:
S91:同时施加一第一频率的一第一驱动信号、一第二频率的第二驱动信号与一第三频率的第三驱动信号分别至该第一电极、该第二电极与该第三电极;S91: Simultaneously apply a first driving signal of a first frequency, a second driving signal of a second frequency and a third driving signal of a third frequency to the first electrode, the second electrode and the third electrode respectively ;
S92:利用该触控装置检测该触控笔;S92: Using the touch device to detect the stylus;
S93:对检测结果进行处理,获得对应第一频率的一第一感应信息,对应第二频率的一第二感应信息,与对应第三频率的一第三感应信息;S93: Process the detection result to obtain a first sensing information corresponding to the first frequency, a second sensing information corresponding to the second frequency, and a third sensing information corresponding to the third frequency;
S94:根据该第一感应信息计算该触控笔的位置;S94: Calculate the position of the stylus according to the first sensing information;
S95:根据该第二感应信息与第三感应信息决定一方位信息。S95: Determine a piece of orientation information according to the second sensing information and the third sensing information.
步骤S91、S92、S93与S94的技术内容请参考上述步骤S61、S62、S63与S64的说明,在此不再赘述。For the technical content of steps S91 , S92 , S93 and S94 , please refer to the description of the above steps S61 , S62 , S63 and S64 , and details will not be repeated here.
请参考图10所示,实现步骤S95决定方位信息的第一实施例包含有以下步骤:Please refer to FIG. 10 , the first embodiment for realizing step S95 to determine the orientation information includes the following steps:
S101:根据该第二感应信息Sense_data2计算在第一方向上的一第二位置x2以及在第二方向上的一第五位置y2。S101: Calculate a second position x2 in the first direction and a fifth position y2 in the second direction according to the second sensing information Sense_data2.
S102:根据第三感应信息Sense_data3计算在该第一方向上的一第三位置x3以及在第二方向上的一第六位置y3。S102: Calculate a third position x3 in the first direction and a sixth position y3 in the second direction according to the third sensing information Sense_data3.
S103:计算第三位置x3与第二位置x2之间的第一差值Δx。例如以第三位置x3减去第二位置x2获得该第一差值Δx。S103: Calculate a first difference Δx between the third position x3 and the second position x2. The first difference Δx is obtained, for example, by subtracting the second position x2 from the third position x3.
S104:判断该第一差值Δx对应的一第一旗标值f1。在一实施例中,实现步骤S104的方式是将该第一差值Δx与一第一预设范围(-TH1~TH1)进行比较以决定一第一旗标值f1。第一差值Δx可以被理解为触控笔100的第三电极13与第二电极12在第一方向(如X方向)上的相对位置关系。如图11A~图11C所示,如果第一差值Δx为正值,代表第三电极13在第二电极12的右边,如果第一差值Δx为负值,代表第三电极13在第二电极12的左边。在一实施例中,当第一差值Δx≧TH1时,第一旗标值f1被设定为3。当第一差值Δx≦-TH1时,第一旗标值f1被设定为1,当-TH1<Δx<TH1时,第一旗标值f1被设定为2。S104: Determine a first flag value f1 corresponding to the first difference Δx. In one embodiment, step S104 is implemented by comparing the first difference Δx with a first preset range (−TH1˜TH1) to determine a first flag value f1. The first difference Δx can be understood as the relative positional relationship between the third electrode 13 and the second electrode 12 of the stylus 100 in the first direction (such as the X direction). As shown in Figures 11A to 11C, if the first difference Δx is positive, it means that the third electrode 13 is on the right side of the second electrode 12, and if the first difference Δx is negative, it means that the third electrode 13 is on the right side of the second electrode 12. to the left of electrode 12. In one embodiment, when the first difference Δx≧TH1, the first flag value f1 is set to 3. When the first difference Δx≦-TH1, the first flag value f1 is set to 1, and when -TH1<Δx<TH1, the first flag value f1 is set to 2.
S105:计算第六位置y3与第五位置y2之间的第二差值Δy。例如以第六位置y3减去第五位置y2获得该第二差值Δy。S105: Calculate a second difference Δy between the sixth position y3 and the fifth position y2. The second difference Δy is obtained, for example, by subtracting the fifth position y2 from the sixth position y3 .
S106:判断该第二差值Δy对应的一第二旗标值f2。在一实施例中,步骤S106将该第二差值Δy与一第二预设范围(-TH2~TH2)进行比较以决定一第二旗标值f2。该第二差值Δy可以被理解为触控笔100的第三电极13与第二电极12在第二方向(如Y方向)上的相对位置关系。如果第一差值Δy为正值,代表第三电极13在第二电极12的上方。如果第一差值Δy为负值,代表第三电极13在第二电极12的下方。在一实施例中,当第一差值Δy≧TH2时,第二旗标值f2被设定为3。当第二差值Δy≦-TH2时,第二旗标值f2被设定为1,当-TH2<Δy<TH2时,第二旗标值f2被设定为2。在这个实施例中,第二旗标值f2代表触控笔100在第二方向上的倾斜状态。S106: Determine a second flag value f2 corresponding to the second difference Δy. In one embodiment, step S106 compares the second difference Δy with a second preset range (−TH2˜TH2) to determine a second flag value f2. The second difference Δy can be understood as the relative positional relationship between the third electrode 13 and the second electrode 12 of the stylus 100 in the second direction (such as the Y direction). If the first difference Δy is positive, it means that the third electrode 13 is above the second electrode 12 . If the first difference Δy is a negative value, it means that the third electrode 13 is below the second electrode 12 . In one embodiment, when the first difference Δy≧TH2, the second flag value f2 is set to 3. When the second difference Δy≦-TH2, the second flag f2 is set to 1, and when -TH2<Δy<TH2, the second flag f2 is set to 2. In this embodiment, the second flag value f2 represents the tilt state of the stylus 100 in the second direction.
S107:根据该第一旗标值f1及该第二旗标值f2决定该方位信息。在前述的实施例中,第一旗标值f1与第二旗标值f2各别有3种可能数值,第一旗标值f1与第二旗标值f2可产生9种组合(f1,f2)。图12显示这九种组合(f1,f2)与方位的对应关系。每一种组合(f1,f2)对应一个方位。因此,根据第一旗标值f1及第二旗标值f2,即可判断出触控笔100是对应于哪一个方位。方位信息在图12的示例中,以图面方向为基准,第一方向为水平方向,其正向标记为+X,第二方向的方向为垂直方向,其正向标记为+Y,但在不同实施例中,该第一方向、第二方向不限于图12所示的延伸方向。S107: Determine the orientation information according to the first flag value f1 and the second flag value f2. In the aforementioned embodiment, the first flag value f1 and the second flag value f2 respectively have 3 possible values, and the first flag value f1 and the second flag value f2 can produce 9 combinations (f1, f2 ). Figure 12 shows the correspondence between the nine combinations (f1, f2) and orientation. Each combination (f1, f2) corresponds to an orientation. Therefore, according to the first flag value f1 and the second flag value f2, it can be determined which orientation the stylus 100 corresponds to. In the example of Figure 12, the orientation information is based on the direction of the drawing. The first direction is the horizontal direction, and its forward direction is marked as +X, and the direction of the second direction is the vertical direction, and its forward direction is marked as +Y. In different embodiments, the first direction and the second direction are not limited to the extending directions shown in FIG. 12 .
图13提供前述步骤S95的第二实施例。图13使用图7所示的感应资料。在图7所示的实施例中,第二感应信息Sense_data2包含该第二组感应量X2_data与第五组感应量Y2_data。该第三感应信息Sense_data3包含该第三组感应量X3_data与第六组感应量Y3_data。图13的内容包括:FIG. 13 provides a second embodiment of the aforementioned step S95. Figure 13 uses the sensing data shown in Figure 7 . In the embodiment shown in FIG. 7 , the second sensing information Sense_data2 includes the second group of sensing quantities X2_data and the fifth group of sensing quantities Y2_data. The third sensing information Sense_data3 includes the third group of sensing quantities X3_data and the sixth group of sensing quantities Y3_data. The contents of Figure 13 include:
S131:根据该第二组感应量X2_data与第三组感应量X3_data进行运算,决定第一旗标值f1;S131: Perform calculations according to the second set of sensing quantities X2_data and the third set of sensing quantities X3_data to determine a first flag value f1;
S132:根据该第五组感应量Y2_data与第六组感应量Y3_data进行运算,决定第二旗标值f2;S132: Perform calculations according to the fifth set of sensing quantities Y2_data and the sixth set of sensing quantities Y3_data to determine a second flag value f2;
S133:根据该第一旗标值f1与该第二旗标值f2决定该方位信息。S133: Determine the orientation information according to the first flag value f1 and the second flag value f2.
在步骤S131中,决定第一旗标值f1的一实施例如图14的步骤S141至S143所示。在步骤S132中,决定第二旗标值f2的一实施例如图14的步骤S144至S146所示。以下说明图14所示的步骤:In step S131 , an embodiment of determining the first flag value f1 is shown in steps S141 to S143 of FIG. 14 . In step S132 , an embodiment of determining the second flag value f2 is shown in steps S144 to S146 of FIG. 14 . The steps shown in Figure 14 are explained below:
S141:以该第二组感应量X2_data中的最大值所对应的第一感应电极310为一第一原点。请参考图15A~15C的示意图,第二组感应量X2_data如上方的波形所示,该第二组感应量X2_data的最大值(峰值)是对应第n条的感应电极310。在步骤S141即是以该第n条的感应电极310作为第一原点,也就是座标0。在第一原点左方的第一感应电极310的座标为负值,在第一原点右方的第一感应电极310的座标为正值。S141: Take the first sensing electrode 310 corresponding to the maximum value of the second group of sensing quantities X2_data as a first origin. Please refer to the schematic diagrams of FIGS. 15A-15C , the second group of sensing quantities X2_data is shown in the upper waveform, and the maximum value (peak value) of the second group of sensing quantities X2_data corresponds to the nth sensing electrode 310 . In step S141 , the nth sensing electrode 310 is used as the first origin, that is, coordinate 0 . The coordinates of the first sensing electrodes 310 on the left of the first origin are negative values, and the coordinates of the first sensing electrodes 310 on the right of the first origin are positive values.
S142:根据该第一原点及该第三组感应量X3_data计算一第七位置G1。第七位置G1代表在该第一方向上相对于该第一原点的一维座标。计算一维座标的一个方法是以各个感应电极310的感应量与其位置的乘积的总合除以感应量的总合,藉由该第三组感应量X3_data及其对应的多个第一感应电极310的位置,即可以计算第七位置G1。在图15A中,第七位置G1为正值,位于第一原点0的右方,在图15B中,第七位置G1为负值,位于第一原点0的左方。在图15C中,第七位置G1非常接近第一原点0。S142: Calculate a seventh position G1 according to the first origin and the third group of sensing quantities X3_data. The seventh position G1 represents a one-dimensional coordinate relative to the first origin in the first direction. One method of calculating the one-dimensional coordinates is to divide the sum of the products of the sensing quantities of each sensing electrode 310 and their positions by the sum of the sensing quantities, and use the third set of sensing quantities X3_data and the corresponding plurality of first sensing electrodes 310, that is, the seventh position G1 can be calculated. In FIG. 15A , the seventh position G1 is a positive value and is located to the right of the first origin 0 . In FIG. 15B , the seventh position G1 is a negative value and is located to the left of the first origin 0 . In FIG. 15C , the seventh position G1 is very close to the first origin 0 .
S143:判断该第七位置G1对应的第一旗标值f1。在一实施例中,步骤S143将该第七位置G1与一第三预设范围(-TH3~TH3)进行比较以得到该第一旗标值f1。在一实施例中,当第七位置G1≧TH3时,第一旗标值f1被设定为3。当第七位置G1≦-TH3时,第一旗标值f1被设定为1,当-TH3<第七位置G1<TH3时,第一旗标值f1被设定为2。S143: Determine the first flag value f1 corresponding to the seventh position G1. In one embodiment, step S143 compares the seventh position G1 with a third preset range (-TH3˜TH3) to obtain the first flag value f1. In one embodiment, when the seventh position G1≧TH3, the first flag value f1 is set to 3. When the seventh position G1≦-TH3, the first flag value f1 is set to 1, and when -TH3<the seventh position G1<TH3, the first flag value f1 is set to 2.
S144:以该第五组感应量Y2_data中的最大值所对应的第二感应电极320为一第二原点。此步骤判断第五组感应量Y2_data的最大值(峰值),并以该最大值所对应的第m条的感应电极320作为第二原点,也就是座标0。在第二原点上方的第二感应电极320的座标为正值,在第二原点下方的第二感应电极320的座标为负值。S144: Use the second sensing electrode 320 corresponding to the maximum value of the fifth group of sensing quantities Y2_data as a second origin. In this step, the maximum value (peak value) of the fifth group of sensing quantities Y2_data is determined, and the m-th sensing electrode 320 corresponding to the maximum value is used as the second origin, that is, the coordinate 0 . The coordinates of the second sensing electrodes 320 above the second origin are positive values, and the coordinates of the second sensing electrodes 320 below the second origin are negative values.
S145:根据该第二原点及该第六组感应量Y3_data计算一第八位置G2。第八位置G2代表在该第二方向上相对于该第二原点的一维座标。计算一维座标的一个方法是以各个感应电极320的感应量与其位置的乘积的总合除以感应量的总合,藉由该第六组感应量Y3_data及其对应的多个第二感应电极320的位置,即可以计算第八位置G2。S145: Calculate an eighth position G2 according to the second origin and the sixth group of sensing quantities Y3_data. The eighth position G2 represents a one-dimensional coordinate relative to the second origin in the second direction. One method for calculating the one-dimensional coordinates is to divide the sum of the products of the sensing quantities of each sensing electrode 320 and their positions by the sum of the sensing quantities, and use the sixth set of sensing quantities Y3_data and its corresponding plurality of second sensing electrodes 320, that is, the eighth position G2 can be calculated.
S146:判断该第八位置G2对应的第二旗标值f2。在一实施例中,步骤S146将该第八位置G2与一第四预设范围(-TH4~TH4)进行比较以得到该第二旗标值f2。在一实施例中,当第八位置G2≧TH4时,第二旗标值f2被设定为3。当第八位置G2≦-TH4时,第二旗标值f2被设定为1,当S146: Determine the second flag value f2 corresponding to the eighth position G2. In one embodiment, step S146 compares the eighth position G2 with a fourth preset range (-TH4˜TH4) to obtain the second flag value f2. In one embodiment, when the eighth position G2≧TH4, the second flag value f2 is set to 3. When the eighth position G2≦-TH4, the second flag value f2 is set to 1, when
-TH4<第八位置G2<TH4时,第二旗标值f2被设定为2。When -TH4<eighth position G2<TH4, the second flag value f2 is set to 2.
在步骤S131中,决定第一旗标值f1的另一实施例如图16的步骤S161至S164所示。在步骤S132中,决定第二旗标值f2的另一实施例如图16的步骤S165至S168所示。以下说明图16所示的步骤:In step S131 , another embodiment of determining the first flag value f1 is shown in steps S161 to S164 of FIG. 16 . In step S132 , another embodiment of determining the second flag value f2 is shown in steps S165 to S168 of FIG. 16 . The steps shown in Figure 16 are explained below:
S161:以该第二组感应量X2_data中的最大值所对应的第一感应电极310为一第一原点。关于步骤S161的内容,请参考前述步骤141的说明,在此不再赘述。S161: Take the first sensing electrode 310 corresponding to the maximum value of the second group of sensing quantities X2_data as a first origin. For the content of step S161, please refer to the description of step 141 above, which will not be repeated here.
S162:根据该第三组感应量X3_data,计算在该第一原点一侧的第一感应量总和SUM1与在该第一原点的另一侧的第二感应量总和SUM2。这个步骤可以被理解为以该第一原点为基准点将第三组感应量X3_data的分布划分为两侧,计算第三组感应量X3_data之中在该第一原点一侧(例如朝着第一方向的正向的一侧)分布的感应量总和,获得第一感应量总和SUM1。计算第三组感应量X3_data之中在该第一原点另一侧(例如朝着第一方向的负向的一侧)分布的感应量总和,获得第二感应量总和SUM2。举例来说,根据第二组感应量X2_data的分布决定以第10条感应电极310为第一原点。第三组感应量X3_data包括第8条到第12条感应电极310的感应量,依序为5、10、20、30与8。在这个例子中,第一感应量总和SUM1为(30+8)等于38,第二感应量总和SUM2为(5+10)等于15。在第三组感应量X3_data中,第10条感应电极310的感应量20并不列入计算。S162: According to the third group of sensing quantities X3_data, calculate a first sum of sensing quantities SUM1 on one side of the first origin and a second sum of sensing quantities SUM2 on the other side of the first origin. This step can be understood as dividing the distribution of the third group of inductive quantities X3_data into two sides with the first origin as the reference point, and calculating the third group of inductive quantities X3_data on the side of the first origin (for example, toward the first The sum of the induction quantities distributed on the positive side of the direction) to obtain the first induction quantity sum SUM1. Calculate the sum of the induction quantities distributed on the other side of the first origin (for example, the negative side of the first direction) in the third group of induction quantities X3_data to obtain the second sum of induction quantities SUM2. For example, the tenth sensing electrode 310 is determined as the first origin according to the distribution of the sensing quantity X2_data of the second group. The third group of sensing values X3_data includes sensing values of the 8th to 12th sensing electrodes 310 , which are 5, 10, 20, 30 and 8 in sequence. In this example, the first induction sum SUM1 is (30+8) equal to 38, and the second induction sum SUM2 is (5+10) equal to 15. In the third group of sensing values X3_data, the sensing value 20 of the tenth sensing electrode 310 is not included in the calculation.
S163:计算该第一感应量总和SUM1与该第二感应量总和SUM2的第三差值d3。例如以第一感应量总和SUM1减去第二感应量总和SUM2获得第三差值d3。S163: Calculate a third difference d3 between the first sum of induction quantities SUM1 and the second sum of induction quantities SUM2. For example, the third difference d3 is obtained by subtracting the second sum SUM2 of sensing quantities from the first sum sum SUM1 of sensing quantities.
S164:判断该第三差值d3对应的第一旗标值f1。在一实施例中,步骤S164将该第三差值d3与一第五预设范围(-TH5~TH5)进行比较,以决定第一旗标值f1。在一实施例中,当第三差值d3≧TH5时,第一旗标值f1的数值被设定为3。当第三差值d3≦-TH5时,第一旗标值f1被设定为1,当-TH5<d3<TH5时,第一旗标值f1被设定为2。在根据步骤S164的一实施例中,如果|SUM1-SUM2|<TH5,则将第一旗标值f1设定为2。如果|SUM1-SUM2|>TH5,而且SUM1>SUM2,则将第一旗标值f1设定为3,如果|SUM1-SUM2|>TH5,而且SUM1<SUM2,则将第一旗标值f1设定为1。S164: Determine the first flag value f1 corresponding to the third difference d3. In one embodiment, step S164 compares the third difference d3 with a fifth preset range (-TH5˜TH5) to determine the first flag value f1. In one embodiment, when the third difference value d3≧TH5, the value of the first flag value f1 is set to 3. When the third difference d3≦-TH5, the first flag value f1 is set to 1, and when -TH5<d3<TH5, the first flag value f1 is set to 2. In an embodiment according to step S164, if |SUM1-SUM2|<TH5, set the first flag value f1 to 2. If |SUM1-SUM2|>TH5, and SUM1>SUM2, set the first flag value f1 to 3, if |SUM1-SUM2|>TH5, and SUM1<SUM2, then set the first flag value f1 set to 1.
S165:以该第五组感应量Y2_data中的最大值所对应的第二感应电极320为一第二原点。关于步骤S165的内容,请参考前述步骤144的说明,在此不再赘述。S165: Use the second sensing electrode 320 corresponding to the maximum value of the fifth group of sensing quantities Y2_data as a second origin. For the content of step S165, please refer to the description of step 144 above, which will not be repeated here.
S166:根据该第六组感应量Y3_data,计算在该第二原点一侧的第三感应量总和SUM3与在该第二原点的另一侧的第四感应量总和SUM4。这个步骤可以被理解为以该第二原点为基准点将第六组感应量Y3_data的分布划分为两侧,计算第六组感应量Y3_data之中在该第二原点一侧(例如朝着第二方向的正向的一侧)分布的感应量总和,获得第三感应量总和SUM3。计算第六组感应量Y3_data之中在该第二原点另一侧(例如朝着第二方向的负向的一侧)分布的感应量总和,获得第四感应量总和SUM4。举例来说,根据第五组感应量Y2_data的分布决定以第10条感应电极320为第二原点。第六组感应量Y3_data包括第8条到第12条感应电极320的感应量,依序为5、10、20、30与8。在这个例子中,第三感应量总和SUM3为(30+8)等于38,第四感应量总和SUM4为(5+10)等于15。在第六组感应量Y3_data中,第10条感应电极320的感应量20并不列入计算。S166: According to the sixth group of sensing quantities Y3_data, calculate a third sum of sensing quantities SUM3 on one side of the second origin and a fourth sum of sensing quantities SUM4 on the other side of the second origin. This step can be understood as dividing the distribution of the sixth group of inductive quantities Y3_data into two sides with the second origin as the reference point, and calculating the sixth group of inductive quantities Y3_data on the side of the second origin (for example, toward the second The sum of the induction quantities distributed on the positive side of the direction) to obtain the third sum of induction quantities SUM3. Calculate the sum of the induction quantities distributed on the other side of the second origin (for example, the side facing the negative side of the second direction) in the sixth group of induction quantities Y3_data to obtain the fourth sum of induction quantities SUM4. For example, the tenth sensing electrode 320 is determined as the second origin according to the distribution of the fifth group of sensing quantities Y2_data. The sixth group of sensing values Y3_data includes sensing values of the 8th to 12th sensing electrodes 320 , which are 5, 10, 20, 30 and 8 in sequence. In this example, the third induction quantity sum SUM3 is (30+8) equal to 38, and the fourth induction quantity sum SUM4 is (5+10) equal to 15. In the sixth group of sensing values Y3_data, the sensing value 20 of the tenth sensing electrode 320 is not included in the calculation.
S167:计算该第三感应量总和SUM3与该第四感应量总和SUM4的第四差值d4。例如以第三感应量总和SUM3减去第四感应量总和SUM4获得第四差值d4。S167: Calculate a fourth difference d4 between the third sum of sensing quantities SUM3 and the fourth sum of sensing quantities SUM4. For example, the fourth difference d4 is obtained by subtracting the fourth sum SUM4 of sensing quantities from the third sum sum SUM3 of sensing quantities.
S168:判断该第四差值d4对应的第二旗标值f2。在一实施例中,步骤S168将该第四差值d4与一第六预设范围(-TH6~TH6)进行比较,以决定第二旗标值f2。在一实施例中,当第四差值d4≧TH6时,第二旗标值f2被设定为3。当第四差值d4≦-TH6时,第二旗标值f2被设定为1,当–TH6<d4<TH6时,第二旗标值f2被设定为2。在根据步骤S168的一实施例中,如果|SUM3-SUM4|<TH6,则将第二旗标值f2设定为2。如果|SUM3-SUM4|>TH6,而且SUM3>SUM4,则将第二旗标值f2设定为3,如果|SUM3-SUM4|>TH6,而且SUM3<SUM4,则将第二旗标值f2设定为1。S168: Determine the second flag value f2 corresponding to the fourth difference d4. In one embodiment, step S168 compares the fourth difference d4 with a sixth preset range (-TH6˜TH6) to determine the second flag value f2. In one embodiment, when the fourth difference d4≧TH6, the second flag value f2 is set to 3. When the fourth difference d4≦−TH6, the second flag value f2 is set to 1, and when −TH6<d4<TH6, the second flag value f2 is set to 2. In an embodiment according to step S168, if |SUM3−SUM4|<TH6, then set the second flag value f2 to 2. If |SUM3-SUM4|>TH6, and SUM3>SUM4, set the second flag value f2 to 3, if |SUM3-SUM4|>TH6, and SUM3<SUM4, then set the second flag value f2 set to 1.
综上所述,本发明的触控笔的第二电极及第三电极可在触控装置上感应产生第二感应信息及第三感应信息,以供该触控装置根据第二感应信息及第三感应信息判断该触控笔相对该触控装置的一倾斜角及/或一方位信息,该倾斜角或方位信息可提供应用程式在执行特定功能时的参考依据。To sum up, the second electrode and the third electrode of the stylus of the present invention can generate the second sensing information and the third sensing information on the touch device, so that the touch device can generate the second sensing information and the third sensing information according to the second sensing information and the third sensing information. The three sensing information determines an inclination angle and/or an orientation information of the stylus relative to the touch device, and the inclination angle or orientation information can provide a reference for the application program to execute a specific function.
当然,本发明还可有其它多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。Certainly, the present invention also can have other multiple embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and deformations according to the present invention, but these corresponding Changes and deformations should belong to the scope of protection of the appended claims of the present invention.
Claims (24)
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201662333853P | 2016-05-10 | 2016-05-10 | |
US62/333,853 | 2016-05-10 | ||
TW106102572 | 2017-01-24 | ||
TW106102572A TWI612446B (en) | 2016-05-10 | 2017-01-24 | Touching system, stylus, and detecting method for the stylus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107357472A true CN107357472A (en) | 2017-11-17 |
Family
ID=60272085
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710090414.1A Pending CN107357472A (en) | 2016-05-10 | 2017-02-20 | Touch system, touch pen and detection method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107357472A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108762533A (en) * | 2018-05-30 | 2018-11-06 | 京东方科技集团股份有限公司 | Electronic pen and inclination person's handwriting regulating system |
CN109683733A (en) * | 2019-01-02 | 2019-04-26 | 京东方科技集团股份有限公司 | Stylus, touch panel, display device and sensing method of touch control |
CN110794977A (en) * | 2018-08-03 | 2020-02-14 | 矽统科技股份有限公司 | Bidirectional active stylus and sensing system |
US11093050B2 (en) | 2018-05-30 | 2021-08-17 | Hefei Boe Optoelectronics Technology Co., Ltd. | Electronic pen and inclined handwriting adjustment method thereof, inclined handwriting adjustment system, and adjustment method thereof |
CN113325961A (en) * | 2021-06-11 | 2021-08-31 | 武汉华星光电半导体显示技术有限公司 | Touch control pen and electronic equipment |
WO2021196023A1 (en) * | 2020-03-31 | 2021-10-07 | 深圳市汇顶科技股份有限公司 | Active pen and signal transmission method |
WO2022078495A1 (en) * | 2020-10-15 | 2022-04-21 | 维沃移动通信有限公司 | Stylus and control method therefor, and electronic device |
WO2023134408A1 (en) * | 2022-01-11 | 2023-07-20 | 荣耀终端有限公司 | Information transmission method and apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120327042A1 (en) * | 2011-06-22 | 2012-12-27 | Harley Jonah A | Stylus orientation detection |
US9182856B2 (en) * | 2011-10-28 | 2015-11-10 | Atmel Corporation | Capacitive force sensor |
CN105094380A (en) * | 2014-05-23 | 2015-11-25 | 株式会社和冠 | Position detector and position pointer |
TW201614437A (en) * | 2014-05-13 | 2016-04-16 | Egalax Empia Technology Inc | Transmitter, touch sensitive processing apparatus and controlling method thereof and touch sensitive system |
-
2017
- 2017-02-20 CN CN201710090414.1A patent/CN107357472A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120327042A1 (en) * | 2011-06-22 | 2012-12-27 | Harley Jonah A | Stylus orientation detection |
US9182856B2 (en) * | 2011-10-28 | 2015-11-10 | Atmel Corporation | Capacitive force sensor |
TW201614437A (en) * | 2014-05-13 | 2016-04-16 | Egalax Empia Technology Inc | Transmitter, touch sensitive processing apparatus and controlling method thereof and touch sensitive system |
CN105094380A (en) * | 2014-05-23 | 2015-11-25 | 株式会社和冠 | Position detector and position pointer |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108762533B (en) * | 2018-05-30 | 2020-07-28 | 京东方科技集团股份有限公司 | Electronic pen and inclined handwriting adjusting system |
US11093050B2 (en) | 2018-05-30 | 2021-08-17 | Hefei Boe Optoelectronics Technology Co., Ltd. | Electronic pen and inclined handwriting adjustment method thereof, inclined handwriting adjustment system, and adjustment method thereof |
CN108762533A (en) * | 2018-05-30 | 2018-11-06 | 京东方科技集团股份有限公司 | Electronic pen and inclination person's handwriting regulating system |
CN110794977A (en) * | 2018-08-03 | 2020-02-14 | 矽统科技股份有限公司 | Bidirectional active stylus and sensing system |
WO2020140947A1 (en) * | 2019-01-02 | 2020-07-09 | 京东方科技集团股份有限公司 | Stylus, touch panel, display device, and touch sensing method |
CN109683733B (en) * | 2019-01-02 | 2021-01-26 | 京东方科技集团股份有限公司 | Touch pen, touch panel, display device and touch sensing method |
CN109683733A (en) * | 2019-01-02 | 2019-04-26 | 京东方科技集团股份有限公司 | Stylus, touch panel, display device and sensing method of touch control |
US11379059B2 (en) | 2019-01-02 | 2022-07-05 | Beijing Boe Display Technology Co., Ltd. | Stylus, touch panel, display device and touch sensing method |
WO2021196023A1 (en) * | 2020-03-31 | 2021-10-07 | 深圳市汇顶科技股份有限公司 | Active pen and signal transmission method |
WO2022078495A1 (en) * | 2020-10-15 | 2022-04-21 | 维沃移动通信有限公司 | Stylus and control method therefor, and electronic device |
US12093472B2 (en) | 2020-10-15 | 2024-09-17 | Vivo Mobile Communication Co., Ltd. | Stylus and control method therefor, and electronic device |
CN113325961A (en) * | 2021-06-11 | 2021-08-31 | 武汉华星光电半导体显示技术有限公司 | Touch control pen and electronic equipment |
WO2023134408A1 (en) * | 2022-01-11 | 2023-07-20 | 荣耀终端有限公司 | Information transmission method and apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107357472A (en) | Touch system, touch pen and detection method thereof | |
US9448667B2 (en) | Coordinate detecting device | |
TWI503723B (en) | Capacitive touch panel and method for detecting touch spot | |
US9569045B2 (en) | Stylus tilt and orientation estimation from touch sensor panel images | |
TWI506520B (en) | Method for detecting touch spot of capacitive touch panel | |
CN108710453B (en) | Touch panel, electronic equipment and information processing method | |
US20120249599A1 (en) | Method of identifying a multi-touch scaling gesture and device using the same | |
US20120249440A1 (en) | method of identifying a multi-touch rotation gesture and device using the same | |
EP2929423A1 (en) | Multi-touch symbol recognition | |
US20150378497A1 (en) | Determining finger separation through groove analysis in a touch screen device | |
WO2014112132A1 (en) | Information apparatus and information processing method | |
US20110221695A1 (en) | Touch panel and touch sensing method thereof | |
CN102929438A (en) | Optical touch device and method for detecting coordinates of touch points thereof | |
TWI360770B (en) | Object detection for a capacitive ito touchpad | |
JP2012146026A (en) | Touch panel device and touch panel detection position correction method | |
TWI612446B (en) | Touching system, stylus, and detecting method for the stylus | |
JP2017021516A (en) | Electronic apparatus, and contact coordinate processing program | |
CN204155245U (en) | Touch-screen, display device | |
EP3309660B1 (en) | Method for detecting input device, and detection device | |
US20130027342A1 (en) | Pointed position determination apparatus of touch panel, touch panel apparatus, electronics apparatus including the same, method of determining pointed position on touch panel, and computer program storage medium | |
CN107850969B (en) | Apparatus and method for detecting gesture on touch pad | |
TW201409295A (en) | Touch device and method of sampling touch points for touch panel | |
CN108399023B (en) | Gradient derivation device and method | |
US10303299B2 (en) | Use of groove analysis in a touch screen device to determine occurrence of an elongated touch by a single finger | |
KR101598807B1 (en) | Method and digitizer for measuring slope of a pen |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20200811 |