TWI622921B - Capacitance value detecting method of touch device - Google Patents

Capacitance value detecting method of touch device Download PDF

Info

Publication number
TWI622921B
TWI622921B TW106130510A TW106130510A TWI622921B TW I622921 B TWI622921 B TW I622921B TW 106130510 A TW106130510 A TW 106130510A TW 106130510 A TW106130510 A TW 106130510A TW I622921 B TWI622921 B TW I622921B
Authority
TW
Taiwan
Prior art keywords
capacitance value
touch device
detecting
instantaneous
value
Prior art date
Application number
TW106130510A
Other languages
Chinese (zh)
Other versions
TW201913346A (en
Inventor
林宜興
王蒲偉
Original Assignee
仁寶電腦工業股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 仁寶電腦工業股份有限公司 filed Critical 仁寶電腦工業股份有限公司
Priority to TW106130510A priority Critical patent/TWI622921B/en
Application granted granted Critical
Publication of TWI622921B publication Critical patent/TWI622921B/en
Publication of TW201913346A publication Critical patent/TW201913346A/en

Links

Landscapes

  • Position Input By Displaying (AREA)

Abstract

本案係關於一種觸控裝置之電容值偵測方法,包括步驟:提供觸控裝置;偵測觸控裝置之至少一受偵測點之起始電容值,並將起始電容值設定為基礎電容值;偵測受偵測點之瞬時電容值,將瞬時電容值與基礎電容值相減得到一差值,並判斷差值是否大於門檻值;計算受偵測點之座標值並記錄;判斷差值是否小於該門檻值;等待一設定時間,於設定時間內停止計算瞬時電容值與基礎電容值之差值;以及根據瞬時電容值更新基礎電容值。藉此,可避免觸控裝置由於其機構的微變形,產生誤判為受到觸控的情況,進而提升觸控裝置判定受觸控與否之準確率。The present invention relates to a method for detecting a capacitance value of a touch device, comprising the steps of: providing a touch device; detecting an initial capacitance value of at least one detected point of the touch device, and setting a starting capacitance value as a basic capacitance Value; detecting the instantaneous capacitance value of the detected point, subtracting the instantaneous capacitance value from the basic capacitance value to obtain a difference, and determining whether the difference is greater than the threshold value; calculating the coordinate value of the detected point and recording; determining the difference Whether the value is less than the threshold value; waiting for a set time, stopping calculating the difference between the instantaneous capacitance value and the base capacitance value within the set time; and updating the base capacitance value according to the instantaneous capacitance value. In this way, it is possible to prevent the touch device from being misjudged as being touched due to the micro-deformation of the mechanism, thereby improving the accuracy of the touch device determining whether the touch is or not.

Description

觸控裝置之電容值偵測方法Capacitance value detection method of touch device

本案係關於一種觸控裝置之電容值偵測方法,尤指一種根據瞬時電容值更新基礎電容值之電容值偵測方法。The present invention relates to a method for detecting a capacitance value of a touch device, and more particularly to a method for detecting a capacitance value based on a value of a transient capacitance value.

隨著科技的進步,各式各樣的觸控裝置亦隨之發展,與傳統以滑鼠或按鍵之操作方式相比,觸控操作方式具有更為簡便且人性化等優點。觸控裝置依其原理可分為電阻式、電容式、聲波式及紅外線式等,其中電容式觸控裝置係廣泛地運用於智慧型手機及平板電腦等電子裝置當中。With the advancement of technology, various touch devices have also developed. Compared with the traditional mouse or button operation mode, the touch operation mode has the advantages of being simpler and more user-friendly. According to the principle, the touch device can be divided into a resistive type, a capacitive type, an acoustic wave type, and an infrared type. The capacitive touch device is widely used in electronic devices such as smart phones and tablet computers.

一般而言,電容式觸控裝置係透過檢測觸控裝置之電容值的變化,以判定裝置是否受到觸控。亦即,當觸控裝置偵測到的電容值超過一定大小時,觸控裝置則判定為受到觸控,並執行相對應的動作。In general, a capacitive touch device detects whether a device is touched by detecting a change in a capacitance value of the touch device. That is, when the capacitance value detected by the touch device exceeds a certain size, the touch device determines that the touch device is touched and performs a corresponding action.

然而,由於電容值亦會因環境因素產生變化,使得觸控裝置於未受到觸控時產生錯誤的判定,執行非操作者所預期的動作。或者,亦可能因觸控裝置之機構的微變形,使偵測到的電容值過高,而誤判為受到觸控。However, since the capacitance value also changes due to environmental factors, the touch device generates an erroneous determination when it is not touched, and performs an action that is not expected by the operator. Or, due to the micro-deformation of the mechanism of the touch device, the detected capacitance value is too high, and the error is judged to be touched.

故此,如何發展一種有別於往的觸控裝置之電容值偵測方法,以改善習知技術中的問題與缺點,以免因環境因素造成的電容值變化,而使得觸控裝置錯誤判定為受觸控,同時避免觸控裝置由於其機構的微變形,產生誤判偵測到的電容值為受到觸控的情況,進而提升觸控裝置判定受觸控與否之準確率,實為目前技術領域中的重點課題。Therefore, how to develop a capacitance value detection method different from the touch device to improve the problems and shortcomings in the prior art, so as to avoid the change of the capacitance value caused by environmental factors, and the touch device is erroneously determined to be subject to Touching, while avoiding the micro-deformation of the touch device, the false detection of the detected capacitance value is subject to touch, thereby improving the accuracy of the touch device determining whether the touch is or not, which is currently the technical field. Key topics in the process.

本案之主要目的為提供一種觸控裝置之電容值偵測方法,俾解決並改善前述先前技術之問題與缺點。The main purpose of the present invention is to provide a method for detecting a capacitance value of a touch device, which solves and improves the problems and disadvantages of the foregoing prior art.

本案之另一目的為提供一種觸控裝置之電容值偵測方法,於判斷觸控裝置受觸控結束後,等待一設定時間,於設定時間內停止計算瞬時電容值與基礎電容值之差值,以避免觸控裝置由於其機構的微變形,產生誤判為受到觸控的情況,進而提升觸控裝置判定受觸控與否之準確率。Another object of the present invention is to provide a method for detecting a capacitance value of a touch device. After determining that the touch device is touched, it waits for a set time, and stops calculating the difference between the instantaneous capacitance value and the basic capacitance value within the set time. In order to prevent the touch device from being misjudged as being touched due to the micro-deformation of the mechanism, the accuracy of the touch device determining whether the touch is controlled or not is improved.

本案之另一目的為提供一種觸控裝置之電容值偵測方法,其係於瞬時電容值與基礎電容值之差值小於門檻值時,根據瞬時電容值更新基礎電容值,以使環境因素造成的電容值變化不會令觸控裝置判定為受觸控。Another object of the present invention is to provide a capacitance detecting method for a touch device, which is to update the basic capacitance value according to the instantaneous capacitance value when the difference between the instantaneous capacitance value and the basic capacitance value is less than the threshold value, so as to cause environmental factors The change in capacitance value does not cause the touch device to be determined to be touched.

本案之另一目的為提供一種觸控裝置之電容值偵測方法,當複數個受偵測點之瞬時電容值與基礎電容值之差值為負值時,係根據複數個受偵測點之瞬時電容值更新基礎電容值,以避免大面積負值的不正常情況造成觸控誤判。Another object of the present invention is to provide a method for detecting a capacitance value of a touch device. When a difference between a instantaneous capacitance value of a plurality of detected points and a base capacitance value is a negative value, the method is based on a plurality of detected points. The instantaneous capacitance value updates the base capacitance value to avoid the misjudgment of the touch caused by the abnormality of the large area negative value.

本案之另一目的為提供一種觸控裝置之電容值偵測方法,於判斷複數個受偵測點之差值為負值時,係等待一設定時間,於該設定時間內停止計算該瞬時電容值與該基礎電容值之差值,以避免由於不正常情況,產生誤判為受到觸控的情況,進而提升觸控裝置判定受觸控與否之準確率。Another object of the present invention is to provide a method for detecting a capacitance value of a touch device. When determining that a difference between a plurality of detected points is a negative value, waiting for a set time, stopping calculating the instantaneous capacitance within the set time. The difference between the value and the value of the base capacitor is to avoid the occurrence of a misjudgment due to an abnormal situation, thereby improving the accuracy of the touch device determining whether the touch is or not.

為達上述目的,本案之一較佳實施態樣為提供一種觸控裝置之電容值偵測方法,包括步驟:(a) 提供一觸控裝置;(b) 偵測該觸控裝置之至少一受偵測點之一起始電容值,並將該起始電容值設定為一基礎電容值;(c) 偵測該受偵測點之一瞬時電容值,將該瞬時電容值與該基礎電容值相減得到一差值,並判斷該差值是否大於一門檻值;(d) 計算該受偵測點之座標值並記錄;(e) 判斷該差值是否小於該門檻值;(f) 等待一設定時間,於該設定時間內停止計算該瞬時電容值與該基礎電容值之差值;以及(g) 根據該瞬時電容值更新該基礎電容值;其中,當該步驟(c)之判斷結果為是,係於該步驟(c)後執行該步驟(d)及該步驟(e);當該步驟(c)之判斷結果為否,係於該步驟(c)後執行該步驟(g),並重新執行該步驟(b)之後之步驟;且當該步驟(e)之判斷結果為是,係於該步驟(e)後執行該步驟(f),並重新執行該步驟(b)之後之步驟;當該步驟(e)之判斷結果為否,係於該步驟(e)後執行該步驟(d) ,並重新執行該步驟(e)。In order to achieve the above object, a preferred embodiment of the present invention provides a method for detecting a capacitance value of a touch device, comprising the steps of: (a) providing a touch device; and (b) detecting at least one of the touch device. The starting capacitance value is set by one of the detected points, and the initial capacitance value is set to a basic capacitance value; (c) detecting a transient capacitance value of the detected point, the instantaneous capacitance value and the basic capacitance value Subtracting to obtain a difference, and determining whether the difference is greater than a threshold; (d) calculating the coordinate value of the detected point and recording; (e) determining whether the difference is less than the threshold; (f) waiting a set time, stopping to calculate a difference between the instantaneous capacitance value and the base capacitance value within the set time; and (g) updating the base capacitance value according to the instantaneous capacitance value; wherein, the judgment result of the step (c) If yes, the step (d) and the step (e) are performed after the step (c); if the result of the step (c) is no, the step (c) is performed after the step (c) And re-executing the steps after the step (b); and when the judgment result of the step (e) is YES, after the step (e) Performing the step (f) and re-executing the step after the step (b); when the judgment result of the step (e) is no, the step (d) is executed after the step (e), and the step is re-executed Step (e).

體現本案特徵與優點的一些典型實施例將在後段的說明中詳細敘述。應理解的是本案能夠在不同的態樣上具有各種的變化,其皆不脫離本案的範圍,且其中的說明及圖式在本質上係當作說明之用,而非架構於限制本案。Some exemplary embodiments embodying the features and advantages of the present invention are described in detail in the following description. It is to be understood that the present invention is capable of various modifications in various aspects, and is not intended to limit the scope of the invention.

請參閱第1圖、第2圖及第3圖,其中第1圖係顯示本案較佳實施例之觸控裝置之電容值偵測方法之流程圖,第2圖係顯示本案較佳實施例之電容值偵測方法適用之觸控裝置之架構方塊圖,以及第3圖係顯示本案觸控裝置之時間-瞬時電容值關係圖。如第1圖、第2圖及第3圖所示,本案較佳實施例之觸控裝置之電容值偵測方法係包括以下步驟:首先,如步驟S10所示,提供觸控裝置1,其中觸控裝置1為例如但不限於觸控式手機。其次,如步驟S20所示,偵測觸控裝置1之至少一受偵測點之起始電容值,並將該起始電容值設定為基礎電容值。Please refer to FIG. 1 , FIG. 2 and FIG. 3 , wherein FIG. 1 is a flow chart showing a method for detecting a capacitance value of a touch device according to a preferred embodiment of the present invention, and FIG. 2 is a view showing a preferred embodiment of the present invention. The block diagram of the touch device used for the capacitance value detection method, and the third figure show the time-instantaneous capacitance value relationship diagram of the touch device of the present invention. As shown in FIG. 1 , FIG. 2 and FIG. 3 , the method for detecting the capacitance value of the touch device according to the preferred embodiment of the present invention includes the following steps. First, as shown in step S10 , the touch device 1 is provided. The touch device 1 is, for example but not limited to, a touch mobile phone. Next, as shown in step S20, the initial capacitance value of at least one detected point of the touch device 1 is detected, and the initial capacitance value is set as the basic capacitance value.

接著,如步驟S30所示,偵測該受偵測點之瞬時電容值,將該瞬時電容值與基礎電容值相減得到一差值,並判斷該差值是否大於門檻值。當步驟S30之判斷結果為是,即代表觸控裝置1受到觸控,係於步驟S30後執行步驟S40及步驟S50,步驟S40係計算該受偵測點之座標值並記錄,以使觸控裝置1根據該座標值進行相對應的動作,而步驟S50係判斷該差值是否小於該門檻值。當步驟S50之判斷結果為是,即代表觸控裝置1不再受到觸控,係於步驟S50後執行該步驟S60,並重新執行步驟S20之後之步驟,其中步驟S60係等待一設定時間,於該設定時間內停止計算瞬時電容值與基礎電容值之差值。於一些實施例中,當步驟S50之判斷結果為否,即代表觸控裝置1仍受到觸控,係於步驟S50後執行步驟S40,以計算該受偵測點之座標值並記錄,並重新執行步驟S50。Then, as shown in step S30, detecting the instantaneous capacitance value of the detected point, subtracting the instantaneous capacitance value from the basic capacitance value to obtain a difference, and determining whether the difference is greater than a threshold value. If the result of the determination in step S30 is YES, that is, the touch device 1 is touched, step S30 is followed by step S40 and step S50. Step S40 is to calculate the coordinate value of the detected point and record it to make the touch. The device 1 performs a corresponding action according to the coordinate value, and step S50 determines whether the difference is less than the threshold value. If the result of the determination in step S50 is YES, that is, the touch device 1 is no longer touched, the step S60 is performed after the step S50, and the step after the step S20 is re-executed, wherein the step S60 waits for a set time. The calculation of the difference between the instantaneous capacitance value and the base capacitance value is stopped within the set time. In some embodiments, if the result of the determination in step S50 is no, that is, the touch device 1 is still touched, step S40 is performed to perform the step S40 to calculate the coordinate value of the detected point and record, and then re- Step S50 is performed.

於一些實施例中,當步驟S30之判斷結果為否,係於步驟S30後執行步驟S70,並重新執行步驟S20之後之步驟,其中步驟S70係根據瞬時電容值更新基礎電容值。於另一些實施例中,當步驟S30之判斷結果為否,且該差值係不小於負雜訊門檻值且不大於正雜訊門檻值時,此瞬時電容值變化可能為溫度、濕度等環境因素所造成,係於步驟S30後執行步驟S70,根據瞬時電容值更新基礎電容值,藉此使環境因素造成的電容值變化不會令觸控裝置判定為受觸控。In some embodiments, when the result of the determination in step S30 is no, step S70 is performed after step S30, and the step after step S20 is re-executed, wherein step S70 updates the base capacitance value according to the instantaneous capacitance value. In other embodiments, when the determination result in step S30 is no, and the difference is not less than the negative noise threshold and not greater than the positive noise threshold, the instantaneous capacitance value may be an environment such as temperature and humidity. The factor is caused by performing step S70 after step S30, and updating the basic capacitance value according to the instantaneous capacitance value, so that the change of the capacitance value caused by the environmental factor does not cause the touch device to determine that it is touched.

根據本案之構思,觸控裝置1係包括複數個感測元件10、控制元件11以及儲存元件12,其中感測元件10係為電容式觸控感測器,例如In-cell內嵌式觸控面板,控制元件11係為例如控制晶片、微處理器或中央處理器,儲存元件12係為例如快閃記憶體或硬碟,但皆不以此為限。複數個感測元件10係用以偵測觸控裝置1之複數個受偵測點中的每一個偵測點之起始電容值及瞬時電容值。控制元件11係與複數個感測元件10相連接,接收起始電容值及瞬時電容值,以實現步驟S20、步驟S30、步驟S40、步驟S50、步驟S60及步驟S70。儲存元件12係與控制元件11相連接,以儲存起始電容值及瞬時電容值。According to the concept of the present invention, the touch device 1 includes a plurality of sensing elements 10, a control element 11 and a storage element 12, wherein the sensing element 10 is a capacitive touch sensor, such as an In-cell in-cell touch. The control unit 11 is, for example, a control chip, a microprocessor or a central processing unit, and the storage unit 12 is, for example, a flash memory or a hard disk, but is not limited thereto. The plurality of sensing elements 10 are used to detect the initial capacitance value and the instantaneous capacitance value of each of the plurality of detected points of the touch device 1 . The control element 11 is connected to the plurality of sensing elements 10, and receives the initial capacitance value and the instantaneous capacitance value to implement step S20, step S30, step S40, step S50, step S60, and step S70. The storage element 12 is coupled to the control element 11 to store initial capacitance values and instantaneous capacitance values.

於一些實施例中,觸控裝置1之受偵測點受外力產生機構微變形時須經過一恢復時間復原,該設定時間係大於或等於該恢復時間,以避免觸控裝置1由於其機構的微變形,產生誤判為受到觸控的情況。於另一些實施例中,設定時間係為例如不小於1秒且不大於2秒。於又一些實施例中,控制元件11係根據儲存於儲存元件12之瞬時電容值及基礎電容值進行解析,以得到每一個受偵測點受外力產生機構微變形後復原所須之恢復時間,並對每一個受偵測點的設定時間進行動態調整及/或動態補償,使設定時間大於或等於恢復時間,然並不以此為限。In some embodiments, the detected point of the touch device 1 is subjected to a recovery time when the external force generating mechanism is slightly deformed, and the set time is greater than or equal to the recovery time to avoid the touch device 1 due to its mechanism. Micro-deformation, which is a case of misjudgment as being touched. In other embodiments, the set time is, for example, no less than 1 second and no more than 2 seconds. In still other embodiments, the control component 11 analyzes the instantaneous capacitance value and the base capacitance value stored in the storage component 12 to obtain a recovery time required for each detected point to be restored by the micro-deformation of the external force generating mechanism. The set time of each detected point is dynamically adjusted and/or dynamically compensated so that the set time is greater than or equal to the recovery time, but not limited thereto.

舉例而言,如第3圖所示,於時間t1至t2,觸控裝置1之受偵測點之瞬時電容值與基礎電容值之差值係大於門檻值,即觸控裝置1受到觸控,計算該受偵測點之座標值並記錄,以使觸控裝置1根據該座標值進行相對應的動作。而於時間t2後,該差值係小於門檻值,即觸控裝置1不再受到觸控。於時間t2至t3,係為受偵測點受外力產生機構微變形,須經過一恢復時間復原,而設定時間係大於或等於該恢復時間。For example, as shown in FIG. 3, at time t1 to t2, the difference between the instantaneous capacitance value of the detected point of the touch device 1 and the base capacitance value is greater than the threshold value, that is, the touch device 1 is touched. Calculate the coordinate value of the detected point and record it so that the touch device 1 performs a corresponding action according to the coordinate value. After the time t2, the difference is less than the threshold value, that is, the touch device 1 is no longer touched. At time t2 to t3, the detected point is slightly deformed by the external force generating mechanism, and must be restored by a recovery time, and the set time is greater than or equal to the recovery time.

換言之,本案之觸控裝置之電容值偵測方法藉由於判斷觸控裝置受觸控結束後,等待一設定時間,於設定時間內停止計算瞬時電容值與基礎電容值之差值,以避免觸控裝置由於其機構的微變形,產生誤判為受到觸控的情況,進而提升觸控裝置判定受觸控與否之準確率。並且,於瞬時電容值與基礎電容值之差值小於門檻值時,根據瞬時電容值更新基礎電容值,以使環境因素造成的電容值變化不會令觸控裝置判定為受觸控。In other words, the method for detecting the capacitance value of the touch device of the present invention is to wait for a set time after the touch device is touched, and stop calculating the difference between the instantaneous capacitance value and the basic capacitance value within the set time to avoid touching. Due to the micro-deformation of the mechanism, the control device is misjudged as being touched, thereby improving the accuracy of the touch device determining whether the touch is or not. Moreover, when the difference between the instantaneous capacitance value and the basic capacitance value is less than the threshold value, the basic capacitance value is updated according to the instantaneous capacitance value, so that the change of the capacitance value caused by the environmental factor does not cause the touch device to be determined to be touched.

請參閱第4圖,第4圖係顯示本案另一較佳實施例之觸控裝置之電容值偵測方法之流程圖。如第4圖所示,本案另一較佳實施例之觸控裝置之電容值偵測方法之步驟S20係偵測觸控裝置1之複數個受偵測點之複數個起始電容值,並將該複數個起始電容值設定為複數個基礎電容值。於一些實施例中,步驟S20之後係包括步驟S201及步驟S202,其中步驟S201係偵測該複數個受偵測點之該複數個瞬時電容值,將該複數個受偵測點之該複數個瞬時電容值與複數個基礎電容值相減得到複數個差值,判斷該複數個差值是否為負值,步驟S202係根據該複數個受偵測點之該複數個瞬時電容值更新該複數個基礎電容值。當步驟S201之判斷結果為是,係於步驟S201後執行步驟S202,並重新執行步驟S201;當步驟S201之判斷結果為否,係於步驟S201後執行步驟S30。Please refer to FIG. 4, which is a flow chart showing a method for detecting a capacitance value of a touch device according to another preferred embodiment of the present invention. As shown in FIG. 4, step S20 of the method for detecting the capacitance value of the touch device according to another preferred embodiment of the present invention detects a plurality of initial capacitance values of the plurality of detected points of the touch device 1 and The plurality of starting capacitor values are set to a plurality of base capacitor values. In some embodiments, step S20 includes steps S201 and S202, wherein step S201 detects the plurality of instantaneous capacitance values of the plurality of detected points, and the plurality of detected points are plural. The instantaneous capacitance value is subtracted from the plurality of basic capacitance values to obtain a plurality of difference values, and the plurality of difference values are determined to be negative values. Step S202 is to update the plurality of the plurality of instantaneous capacitance values of the plurality of detected points. Base capacitance value. When the result of the determination in step S201 is YES, step S202 is executed after step S201, and step S201 is re-executed; if the result of the determination in step S201 is no, step S30 is performed after step S201.

易言之,本案之觸控裝置之電容值偵測方法當複數個受偵測點之瞬時電容值與基礎電容值之差值為負值時,係根據複數個受偵測點之瞬時電容值更新基礎電容值,以避免大面積負值的不正常情況造成觸控誤判。In other words, the capacitance value detection method of the touch device in the present case is based on the instantaneous capacitance value of the plurality of detected points when the difference between the instantaneous capacitance value and the basic capacitance value of the plurality of detected points is a negative value. Update the base capacitance value to avoid the misjudgment of touch caused by abnormal conditions of large area negative values.

請參閱第5A圖及第5B圖,第5A圖及第5B圖係顯示本案又一較佳實施例之觸控裝置之電容值偵測方法之流程圖,由於流程圖之篇幅較大,故係以兩張圖表示之,其中第5A圖之A及B係分別與第5B圖之A及B相接。如第5A圖及第5B圖所示,步驟S201之後係包括步驟S2010,步驟S2010係等待該設定時間,於該設定時間內停止計算複數個瞬時電容值與複數個基礎電容值之複數個差值,並再次偵測該複數個受偵測點之複數個瞬時電容值,將該複數個受偵測點之瞬時電容值與複數個基礎電容值相減得到複數個差值,判斷該複數個差值是否為負值。其中,當步驟S201判斷結果為是,係於步驟S201後執行步驟S2010;當步驟S201之判斷結果為否,係於步驟S201後執行步驟S30;且當步驟S2010之判斷結果為是,係於步驟S2010後執行步驟S202,並重新執行步驟S201;當步驟S2010之判斷結果為否,係於步驟S2010後執行步驟S30。Please refer to FIG. 5A and FIG. 5B . FIG. 5A and FIG. 5B are flowcharts showing a method for detecting a capacitance value of a touch device according to another preferred embodiment of the present invention. It is represented by two figures, wherein A and B of Fig. 5A are connected to A and B of Fig. 5B, respectively. As shown in FIG. 5A and FIG. 5B, step S201 includes step S2010, and step S2010 waits for the set time, and stops calculating a plurality of differences between the plurality of instantaneous capacitance values and the plurality of basic capacitance values within the set time. And detecting a plurality of instantaneous capacitance values of the plurality of detected points, subtracting the instantaneous capacitance values of the plurality of detected points from the plurality of basic capacitance values to obtain a plurality of differences, and determining the plurality of differences Whether the value is negative. If the result of the determination in step S201 is YES, step S2010 is performed after step S201; if the result of the determination in step S201 is no, step S30 is performed after step S201; and when the result of step S2010 is YES, it is in the step After S2010, step S202 is performed, and step S201 is re-executed; if the result of step S2010 is no, step S30 is performed after step S2010.

藉此,本案之觸控裝置之電容值偵測方法透過於判斷複數個受偵測點之差值為負值時,等待一設定時間,於該設定時間內停止計算該瞬時電容值與該基礎電容值之差值,以避免由於不正常情況,產生誤判為受到觸控的情況,進而提升觸控裝置判定受觸控與否之準確率。Therefore, the capacitance value detecting method of the touch device of the present invention waits for a set time when determining that the difference between the plurality of detected points is a negative value, and stops calculating the instantaneous capacitance value and the basis within the set time. The difference between the capacitance values to avoid the misjudgment of being touched due to abnormal conditions, thereby improving the accuracy of the touch device determining whether the touch is or not.

綜上所述,本案係提供一種觸控裝置之電容值偵測方法,藉由於判斷觸控裝置受觸控結束後,等待一設定時間,於設定時間內停止計算瞬時電容值與基礎電容值之差值,以避免觸控裝置由於其機構的微變形,產生誤判為受到觸控的情況,進而提升觸控裝置判定受觸控與否之準確率。並且,於瞬時電容值與基礎電容值之差值小於門檻值時,根據瞬時電容值更新基礎電容值,以使環境因素造成的電容值變化不會令觸控裝置判定為受觸控。同時,當複數個受偵測點之瞬時電容值與基礎電容值之差值為負值時,係根據複數個受偵測點之瞬時電容值更新基礎電容值,以避免大面積負值的不正常情況造成觸控誤判。且於判斷複數個受偵測點之差值為負值時,係等待一設定時間,於該設定時間內停止計算該瞬時電容值與該基礎電容值之差值,以避免由於不正常情況,產生誤判為受到觸控的情況,進而提升觸控裝置判定受觸控與否之準確率。In summary, the present invention provides a method for detecting a capacitance value of a touch device. After determining that the touch device is touched, it waits for a set time to stop calculating the instantaneous capacitance value and the basic capacitance value within the set time. The difference is to prevent the touch device from being misjudged as being touched due to the micro-deformation of the mechanism, thereby improving the accuracy of the touch device determining whether the touch is or not. Moreover, when the difference between the instantaneous capacitance value and the basic capacitance value is less than the threshold value, the basic capacitance value is updated according to the instantaneous capacitance value, so that the change of the capacitance value caused by the environmental factor does not cause the touch device to be determined to be touched. At the same time, when the difference between the instantaneous capacitance value of the plurality of detected points and the basic capacitance value is a negative value, the basic capacitance value is updated according to the instantaneous capacitance values of the plurality of detected points to avoid a large area negative value. The normal situation causes the touch to be misjudged. And when determining that the difference between the plurality of detected points is a negative value, waiting for a set time, stopping calculating the difference between the instantaneous capacitance value and the basic capacitance value within the set time to avoid an abnormal situation. A misjudgment is caused by the touch, thereby improving the accuracy of the touch device determining whether the touch is or not.

縱使本發明已由上述之實施例詳細敘述而可由熟悉本技藝之人士任施匠思而為諸般修飾,然皆不脫如附申請專利範圍所欲保護者。The present invention has been described in detail by the above-described embodiments, and may be modified by those skilled in the art, without departing from the scope of the appended claims.

S10、S20、S30、S40、S50、S60、S70、S201、S202、S2010‧‧‧步驟
1‧‧‧觸控裝置
10‧‧‧感測元件
11‧‧‧控制元件
12‧‧‧儲存元件
t1、t2、t3‧‧‧時間
S10, S20, S30, S40, S50, S60, S70, S201, S202, S2010‧‧
1‧‧‧ touch device
10‧‧‧Sensor components
11‧‧‧Control elements
12‧‧‧Storage components
T1, t2, t3‧‧‧ time

第1圖係顯示本案較佳實施例之觸控裝置之電容值偵測方法之流程圖。 第2圖係顯示本案較佳實施例之電容值偵測方法適用之觸控裝置之架構方塊圖。 第3圖係顯示本案觸控裝置之時間-瞬時電容值關係圖。 第4圖係顯示本案另一較佳實施例之觸控裝置之電容值偵測方法之流程圖。 第5A圖及第5B圖係顯示本案又一較佳實施例之觸控裝置之電容值偵測方法之流程圖。FIG. 1 is a flow chart showing a method for detecting a capacitance value of a touch device according to a preferred embodiment of the present invention. FIG. 2 is a block diagram showing the structure of a touch device to which the capacitance value detecting method of the preferred embodiment of the present invention is applied. Figure 3 is a graph showing the time-instantaneous capacitance value of the touch device of the present invention. FIG. 4 is a flow chart showing a method for detecting a capacitance value of a touch device according to another preferred embodiment of the present invention. 5A and 5B are flowcharts showing a method for detecting a capacitance value of a touch device according to still another preferred embodiment of the present invention.

Claims (10)

一種觸控裝置之電容值偵測方法,包括步驟: (a) 提供一觸控裝置; (b) 偵測該觸控裝置之至少一受偵測點之一起始電容值,並將該起始電容值設定為一基礎電容值; (c) 偵測該受偵測點之一瞬時電容值,將該瞬時電容值與該基礎電容值相減得到一差值,並判斷該差值是否大於一門檻值; (d) 計算該受偵測點之座標值並記錄; (e) 判斷該差值是否小於該門檻值; (f) 等待一設定時間,於該設定時間內停止計算該瞬時電容值與該基礎電容值之差值;以及 (g) 根據該瞬時電容值更新該基礎電容值; 其中,當該步驟(c)之判斷結果為是,係於該步驟(c)後執行該步驟(d)及該步驟(e);當該步驟(c)之判斷結果為否,係於該步驟(c)後執行該步驟(g),並重新執行該步驟(b)之後之步驟;且當該步驟(e)之判斷結果為是,係於該步驟(e)後執行該步驟(f),並重新執行該步驟(b)之後之步驟;當該步驟(e)之判斷結果為否,係於該步驟(e)後執行該步驟(d) ,並重新執行該步驟(e)。A method for detecting a capacitance value of a touch device includes the steps of: (a) providing a touch device; (b) detecting an initial capacitance value of at least one detected point of the touch device, and detecting the start The capacitance value is set to a basic capacitance value; (c) detecting a transient capacitance value of the detected point, subtracting the instantaneous capacitance value from the basic capacitance value to obtain a difference, and determining whether the difference is greater than one (d) Calculate the coordinate value of the detected point and record it; (e) Determine whether the difference is less than the threshold value; (f) Wait for a set time, stop calculating the instantaneous capacitance value within the set time And the difference between the base capacitance value; and (g) updating the base capacitance value according to the instantaneous capacitance value; wherein, when the determination result of the step (c) is YES, the step is performed after the step (c) ( d) and the step (e); when the judgment result of the step (c) is no, the step (g) is performed after the step (c), and the step after the step (b) is re-executed; The judgment result of the step (e) is YES, after the step (e) is performed, and after the step (b) is re-executed Step; if the determination in step (e) the result is NO, execution of the step (d) to the system after the step (e), and re-executing the step (e). 如申請專利範圍第1項所述之觸控裝置之電容值偵測方法,其中該步驟(b)係偵測該觸控裝置之複數個受偵測點之複數個起始電容值,並將該複數個起始電容值設定為複數個基礎電容值。The method for detecting a capacitance value of a touch device according to the first aspect of the invention, wherein the step (b) detects a plurality of initial capacitance values of the plurality of detected points of the touch device, and The plurality of starting capacitance values are set to a plurality of base capacitance values. 如申請專利範圍第2項所述之觸控裝置之電容值偵測方法,其中該步驟(b)之後係包括步驟: (b1) 偵測該複數個受偵測點之該複數個瞬時電容值,將該複數個受偵測點之該複數個瞬時電容值與複數個基礎電容值相減得到複數個差值,判斷該複數個差值是否為負值;以及 (b2) 根據該複數個受偵測點之該複數個瞬時電容值更新該複數個基礎電容值。The method for detecting a capacitance value of a touch device according to claim 2, wherein the step (b) comprises the following steps: (b1) detecting the plurality of instantaneous capacitance values of the plurality of detected points And subtracting the plurality of instantaneous capacitance values of the plurality of detected points from the plurality of basic capacitance values to obtain a plurality of differences, determining whether the plurality of differences are negative values; and (b2) determining, according to the plurality of The plurality of instantaneous capacitance values of the detection point update the plurality of base capacitance values. 如申請專利範圍第3項所述之觸控裝置之電容值偵測方法,其中當該步驟(b1)之判斷結果為是,係於該步驟(b1)後執行該步驟(b2),並重新執行該步驟(b1);當該步驟(b1)之判斷結果為否,係於該步驟(b1)後執行該步驟(c)。The method for detecting a capacitance value of a touch device according to claim 3, wherein when the determination result of the step (b1) is YES, the step (b2) is performed after the step (b1), and This step (b1) is performed; when the judgment result of the step (b1) is NO, the step (c) is executed after the step (b1). 如申請專利範圍第4項所述之觸控裝置之電容值偵測方法,其中該步驟(b1)之後更包括步驟(b10):等待該設定時間,於該設定時間內停止計算複數個瞬時電容值與複數個基礎電容值之複數個差值,並再次偵測該複數個受偵測點之複數個瞬時電容值,將該複數個受偵測點之瞬時電容值與複數個基礎電容值相減得到複數個差值,判斷該複數個差值是否為負值。The method for detecting a capacitance value of the touch device according to the fourth aspect of the invention, wherein the step (b1) further comprises the step (b10): waiting for the set time, stopping calculating the plurality of instantaneous capacitors within the set time. a plurality of differences between the value and the plurality of base capacitance values, and detecting a plurality of instantaneous capacitance values of the plurality of detected points, and comparing the instantaneous capacitance values of the plurality of detected points with the plurality of basic capacitance values Subtracting a plurality of differences and determining whether the plurality of differences are negative. 如申請專利範圍第5項所述之觸控裝置之電容值偵測方法,其中當該步驟(b1)判斷結果為是,係於該步驟(b1)後執行該步驟(b10);當該步驟(b1)之判斷結果為否,係於該步驟(b1)後執行該步驟(c);且當該步驟(b10)之判斷結果為是,係於該步驟(b10)後執行該步驟(b2),並重新執行該步驟(b1);當該步驟(b10)之判斷結果為否,係於該步驟(b10)後執行該步驟(c)。The method for detecting a capacitance value of a touch device according to claim 5, wherein when the result of the step (b1) is YES, the step (b10) is performed after the step (b1); If the judgment result of (b1) is no, the step (c) is performed after the step (b1); and when the judgment result of the step (b10) is YES, the step (b2) is performed after the step (b10). And re-executing the step (b1); when the judgment result of the step (b10) is NO, the step (c) is executed after the step (b10). 如申請專利範圍第1項所述之觸控裝置之電容值偵測方法,其中該觸控裝置之該受偵測點受外力產生機構微變形時須經過一恢復時間復原,該設定時間係大於或等於該恢復時間。The method for detecting the capacitance value of the touch device according to the first aspect of the invention, wherein the detected point of the touch device is subjected to a recovery time by the external force generating mechanism, and the set time is greater than Or equal to the recovery time. 如申請專利範圍第1項所述之觸控裝置之電容值偵測方法,其中該設定時間係不小於1秒且不大於2秒。The method for detecting a capacitance value of a touch device according to claim 1, wherein the set time is not less than 1 second and not more than 2 seconds. 如申請專利範圍第1項所述之觸控裝置之電容值偵測方法,其中當該步驟(c)之判斷結果為否,且該差值係不小於一負雜訊門檻值且不大於一正雜訊門檻值時,係於該步驟(c)後執行該步驟(g)。The method for detecting a capacitance value of a touch device according to the first aspect of the invention, wherein the determination result of the step (c) is no, and the difference is not less than a negative noise threshold and not greater than one. When the noise threshold is positive, the step (g) is performed after the step (c). 如申請專利範圍第1項所述之觸控裝置之電容值偵測方法,其中該觸控裝置係包括: 複數個感測元件,以偵測該觸控裝置之該複數個受偵測點中的每一個該偵測點之該起始電容值及該瞬時電容值; 一控制元件,係與該複數個感測元件相連接,接收該起始電容值及該瞬時電容值,以實現步驟(b)、步驟(c)、步驟(d)、步驟(e)、步驟(f)及步驟(g);以及 一儲存元件,係與該控制元件相連接,以儲存該起始電容值及該瞬時電容值。The method of detecting a capacitance value of a touch device according to the first aspect of the invention, wherein the touch device comprises: a plurality of sensing elements for detecting the plurality of detected points of the touch device The starting capacitance value and the instantaneous capacitance value of each of the detection points; a control component is connected to the plurality of sensing elements, and receives the initial capacitance value and the instantaneous capacitance value to implement the step ( b), step (c), step (d), step (e), step (f), and step (g); and a storage element coupled to the control element to store the initial capacitance value and the Instantaneous capacitance value.
TW106130510A 2017-09-06 2017-09-06 Capacitance value detecting method of touch device TWI622921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106130510A TWI622921B (en) 2017-09-06 2017-09-06 Capacitance value detecting method of touch device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106130510A TWI622921B (en) 2017-09-06 2017-09-06 Capacitance value detecting method of touch device

Publications (2)

Publication Number Publication Date
TWI622921B true TWI622921B (en) 2018-05-01
TW201913346A TW201913346A (en) 2019-04-01

Family

ID=62951416

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106130510A TWI622921B (en) 2017-09-06 2017-09-06 Capacitance value detecting method of touch device

Country Status (1)

Country Link
TW (1) TWI622921B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306306A (en) * 2020-10-29 2021-02-02 业成科技(成都)有限公司 Method for judging touch event

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI712928B (en) * 2019-05-15 2020-12-11 友達光電股份有限公司 Touch display device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050083307A1 (en) * 2003-10-15 2005-04-21 Aufderheide Brian E. Patterned conductor touch screen having improved optics
CN102479013A (en) * 2010-11-26 2012-05-30 奇美电子股份有限公司 Method for setting driving signals of electrodes of touch screen and driving method of touch screen
TW201222378A (en) * 2010-11-26 2012-06-01 Chimei Innolux Corp Method for setting driving signals for electrode of touch panel and driving method for touch panel
CN102968237A (en) * 2012-11-29 2013-03-13 广东欧珀移动通信有限公司 Method and device for processing capacitive touch screen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050083307A1 (en) * 2003-10-15 2005-04-21 Aufderheide Brian E. Patterned conductor touch screen having improved optics
CN102479013A (en) * 2010-11-26 2012-05-30 奇美电子股份有限公司 Method for setting driving signals of electrodes of touch screen and driving method of touch screen
TW201222378A (en) * 2010-11-26 2012-06-01 Chimei Innolux Corp Method for setting driving signals for electrode of touch panel and driving method for touch panel
CN102968237A (en) * 2012-11-29 2013-03-13 广东欧珀移动通信有限公司 Method and device for processing capacitive touch screen

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306306A (en) * 2020-10-29 2021-02-02 业成科技(成都)有限公司 Method for judging touch event

Also Published As

Publication number Publication date
TW201913346A (en) 2019-04-01

Similar Documents

Publication Publication Date Title
WO2020238435A1 (en) Touch position recognition method and detection apparatus, touch-control apparatus and storage medium
TWI401597B (en) Method and apparatus for drift compensation of capacitive touch panel
US9104265B2 (en) Touch device and operating method thereof
US10712870B2 (en) Method for improving fault tolerance of touchscreen and touchscreen terminal
TWI526952B (en) Touch capacitive device and object identifying method of the capacitive touch device
WO2018000343A1 (en) Method and device for preventing touch screen edge misoperation
JP2015176367A5 (en)
TW201339935A (en) Capacitive touch control system and touch control device and touch control method using the same
TW201730731A (en) Refreshing method of sensing baselines for capacitive sensor device and capacitive sensor device
TWI576731B (en) Capacitive sensor action in response to proximity sensor data
TWI622921B (en) Capacitance value detecting method of touch device
US8654089B2 (en) Touch sensing circuit and touch sensing method
JP6089906B2 (en) Input device, input program, and input method
WO2021036718A1 (en) Touch point determining method and device
TWI524255B (en) Detecting method of background noise for capacitive sensor device
US9766735B2 (en) Touch sensing system using varied reference data values to detect a touch and method thereof
JP2014115967A (en) Detecting method for touch device
TWI604356B (en) Touch system and touch detection method of the same
WO2014183527A1 (en) Method and device for managing touch-control area, and computer storage medium
US20220283702A1 (en) Touch input device, touch input method and recording medium recording touch input program
TWM537259U (en) Three dimensional touch control apparatus
US10444903B2 (en) Touch detection method
TWI514212B (en) Touch panel capable of detecting a stylus and a method of using the same
JP2015210800A (en) Information processing device and method for controlling information processing device
TW201537443A (en) Method for palm rejection and electronic apparatus using the same

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees