Contact positioning method, capacitive touch screen and electronic equipment
By setting distance sensors at the intersection of the capacitive touch screen frame, rotating the signal wave and calculating the touch coordinates, the problem of inaccurate positioning caused by the capacitive touch screen's susceptibility to electromagnetic interference is solved, and precise touch point positioning is achieved.
Patent Information
- Application Number
- CN202310007073.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-03
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2043-01-03
AI Technical Summary
Capacitive touch screens are susceptible to electromagnetic interference, which can cause inaccurate touch point positioning.
A distance sensor is set at the intersection of the capacitive touch screen frame. It sends signal waves by rotation and records the time and wavelength of the return signal wave to calculate the coordinates of the touch point, and determines the touch point position by combining the angle and distance.
It achieves precise positioning of touch points in an electromagnetic interference environment, reducing the probability of screen jumping and touch failure.
Smart Images

Figure CN115963952B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic information technology, and in particular to a contact positioning method, a capacitive touch screen and an electronic device. Background Art
[0002] Capacitive touch screens operate by sensing human body current through a capacitive touch panel (CTP). When a user touches a capacitive touch screen, the human body's electrical field creates a coupling capacitor between the user's finger and the working surface. Because the working surface is connected to a high-frequency signal, the finger draws a very small current. The controller then precisely calculates the current ratio to determine the touch point's position. A drawback of capacitive touch screens is their susceptibility to electromagnetic interference, which can cause drift. Electromagnetic interference voltages from internal and external sources can couple to the touch screen device through capacitance. This interference can cause potential fluctuations within the touch screen, leading to inaccurate touch point positioning. This often manifests as screen skipping, inaccurate touch control, or even complete failure.
[0003] Currently, no effective solution has been proposed to the problem that capacitive touch screens in the prior art are susceptible to electromagnetic interference, resulting in inaccurate contact point positioning. Summary of the Invention
[0004] The embodiments of the present invention provide a touch point positioning method, a capacitive touch screen, and an electronic device to solve the problem in the prior art that the capacitive touch screen is susceptible to electromagnetic interference, resulting in inaccurate touch point positioning.
[0005] To solve the above technical problems, the present invention provides a touch point positioning method, which is applied to a capacitive touch screen. A first distance sensor is provided at the intersection of a first frame and a second frame of the capacitive touch screen. The first distance sensor is used to send a signal wave outward. The method includes:
[0006] After the capacitive touch screen receives the touch signal, it enters a distance sensor positioning mode, controls the first distance sensor to rotate in a preset direction and at a preset speed while emitting a signal wave; wherein the wavelength of the signal wave changes over time;
[0007] After the distance sensor receives the returned signal wave each time, it records the time of the returned signal wave, and determines the coordinates of the first touch point according to the time of each returned signal wave and the wavelength of the returned signal wave after encountering the touch object.
[0008] Furthermore, determining the coordinates of the first touch point according to the time of each return signal wave and the wavelength of the signal wave returned after encountering the touch object includes:
[0009] calculating an angle between a line connecting the first distance sensor and the touch object and a first frame of the capacitive touch screen according to the timing of each return signal wave;
[0010] determining the distance between the first distance sensor and the touch object according to the wavelength of the signal wave returned after encountering the touch object;
[0011] The coordinates of the first touch point are determined according to the angle and the distance.
[0012] Furthermore, calculating the angle between the line between the first distance sensor and the touching object and the first frame of the capacitive touch screen according to the timing of each return signal wave includes:
[0013] Calculate the first time difference between the time when the returned signal wave is received for the first time and the time when the returned signal wave is received for the second time;
[0014] Calculate the second time difference between the time when the returned signal wave is received for the first time and the time when the returned signal wave is received for the third time;
[0015] An angle between a line connecting the first distance sensor and the touch object and a first frame of the capacitive touch screen is calculated according to a ratio of the first time difference to the second time difference.
[0016] Furthermore, when calculating the angle between the line connecting the first distance sensor and the touching object and the first frame of the capacitive touch screen according to the ratio of the first time difference to the second time difference, it is implemented according to the following formula:
[0017] α=90°*(t2-t1) / (t3-t1);
[0018] Wherein, α is the angle between the line between the first distance sensor and the touching object and the first frame of the capacitive touch screen, t2 is the time when the returned signal wave is received for the second time, t1 is the time when the returned signal wave is received for the second time, and t3 is the time when the returned signal wave is received for the third time.
[0019] Furthermore, determining the distance between the first distance sensor and the touch object according to the wavelength of the signal wave returned after encountering the touch object includes:
[0020] The time of sending the signal wave is determined according to the wavelength of the signal wave returned after encountering the touch object; wherein the signal wave returned after encountering the touch object is the returned signal wave received for the second time;
[0021] Calculate the time difference between the time when the signal wave is returned after encountering the touch object and the time when the signal wave is emitted;
[0022] The distance between the first distance sensor and the touch object is calculated according to the time difference and the propagation speed of the signal wave.
[0023] Furthermore, when determining the coordinates of the first contact point according to the angle and the distance, it is achieved according to the following formula:
[0024] a=L1×sinα;
[0025] b=L1×sinα;
[0026] Wherein, a is the coordinate of the first touch point in the first direction, b is the coordinate of the first touch point in the second direction, L1 is the distance between the first distance sensor and the touch object, and α is the angle between the line between the first distance sensor and the touch object and the first frame of the capacitive touch screen.
[0027] Furthermore, a second distance sensor is provided at the intersection of the third frame and the fourth frame of the capacitive touch screen, and the second distance sensor is used to send a signal wave outward. When the first touch point and the second touch point are simultaneously present, and the second touch point is located on an extension line of a line connecting the first distance sensor and the first touch point, after determining the coordinates of the first touch point based on the time of each return signal wave and the wavelength of the signal wave returned after encountering a touch object, the method further includes:
[0028] calculating the distance between the second distance sensor and the first touch point according to the coordinates of the first touch point;
[0029] predicting, based on the distance between the second distance sensor and the first touch point, the time when the second distance sensor receives the signal wave returned by the first touch point;
[0030] Determining the time when the second distance sensor receives the signal wave returned by the second contact based on the predicted time when the second distance sensor receives the signal wave returned by the first contact and the times when the second distance sensor receives the returned signal waves twice;
[0031] Calculating the distance between the second contact point and the second distance sensor according to the moment when the second distance sensor receives the signal wave returned by the second contact point;
[0032] The coordinates of the second touch point are calculated according to the distance between the second touch point and the second distance sensor and the angle between the line connecting the first distance sensor and the touch object and the first frame of the capacitive touch screen.
[0033] Furthermore, after determining the coordinates of the first touch point based on the time of each return signal wave and the wavelength of the signal wave returned after encountering the touch object, the method includes:
[0034] determining whether a deviation between the coordinates of the first touch point determined based on the timing of each return signal wave and the wavelength of the signal wave returned after encountering the touch object and the coordinates of the first touch point detected in the capacitive positioning mode exceeds a preset threshold;
[0035] If yes, controlling the first distance sensor to remain turned on, and entering the sensor positioning mode after the capacitive touch screen receives a touch signal next time;
[0036] If not, the first distance sensor is controlled to be turned off, the sensor positioning mode is exited, and the capacitive positioning mode is used to perform contact positioning.
[0037] The present invention further provides a capacitive touch screen, wherein a first distance sensor is provided at the intersection of a first frame and a second frame of the capacitive touch screen, the first distance sensor being configured to send a signal wave outward, and the capacitive touch screen further comprising:
[0038] a control module, configured to control the first distance sensor to rotate in a preset direction and at a preset speed and simultaneously emit a signal wave after the capacitive touch screen receives a touch signal; wherein the wavelength of the signal wave changes over time;
[0039] The calculation module is used to record the time of the return signal wave each time the distance sensor receives the return signal wave, and determine the coordinates of the first touch point according to the time of each return signal wave and the wavelength of the signal wave returned after encountering the touch object.
[0040] The present invention also provides an electronic device, which includes the capacitive touch screen.
[0041] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the program implements the above-mentioned contact positioning method when executed by a processor.
[0042] Applying the technical solution of the present invention, after a capacitive touch screen receives a touch signal, it enters a distance sensor positioning mode, controlling the first distance sensor to rotate in a preset direction and at a preset speed while emitting a signal wave that changes over time. Each time the first distance sensor receives a return signal wave, it records the time of the return signal wave and determines the coordinates of the first touch point based on the time of each return signal wave and the wavelength of the signal wave returned after encountering the touch object. This method, which uses the distance sensor to locate the touch point, avoids the problem of inaccurate touch point positioning caused by electromagnetic interference, a common problem on capacitive touch screens, and achieves precise touch point positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 is a structural schematic diagram of a capacitive touch screen according to an embodiment of the present invention;
[0044] Figure 2 is a flow chart of a contact positioning method according to an embodiment of the present invention;
[0045] Figure 3 FIG. 4 is a block diagram of the internal structure of a capacitive touch screen according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] To make the objectives, technical solutions, and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings. It is apparent that the embodiments described are only some, not all, of the present invention. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without creative effort are intended to fall within the scope of protection of the present invention.
[0047] The terms used in the embodiments of the present invention are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The singular forms "a," "an," "the," and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, and unless the context clearly indicates otherwise, "a plurality" generally includes at least two.
[0048] It should be understood that the term "and / or" as used herein is merely a description of the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.
[0049] It should be understood that although the terms first, second, third, etc. may be used to describe the borders in the embodiments of the present invention, these borders should not be limited to these terms. These terms are only used to distinguish different borders of the screen. For example, without departing from the scope of the embodiments of the present invention, the first border may also be referred to as the second border, and similarly, the second border may also be referred to as the first border.
[0050] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.
[0051] It should also be noted that the terms "include," "comprises," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a product or device comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such product or device. In the absence of further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the product or device comprising the element.
[0052] The optional embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0053] Example 1
[0054] This embodiment provides a touch point positioning method, which is applied to a capacitive touch screen. Figure 1 FIG. 1 is a schematic structural diagram of a capacitive touch screen according to an embodiment of the present invention. Figure 1 As shown, a first distance sensor A is provided at the intersection of the first frame and the second frame of the capacitive touch screen. The first distance sensor A is used to send a signal wave outward. After the signal wave encounters the touch object at point S or the fourth frame BD and the third frame CD of the capacitive touch screen, it will return along the original path.
[0055] Figure 2 FIG. 1 is a flow chart of a contact positioning method according to an embodiment of the present invention. Figure 2 As shown, the method includes:
[0056] S101, after the capacitive touch screen receives a touch signal, it enters a distance sensor positioning mode, controls the first distance sensor A to rotate in a preset direction and at a preset speed while emitting a signal wave; wherein the wavelength of the signal wave changes with time.
[0057] In this embodiment, Figure 1 As shown, the preset direction is clockwise. The signal wave emitted by the first distance sensor A returns the signal wave for the first time after encountering the fourth frame, returns the signal wave for the second time after encountering the touch object at point S, and returns the signal wave for the third time after encountering the third frame.
[0058] S102 , after receiving a return signal wave each time, the first distance sensor A records the time of the return signal wave, and determines the coordinates of the first touch point S according to the time of each return signal wave and the wavelength of the signal wave returned after encountering the touch object.
[0059] The touch point positioning method of this embodiment enters a distance sensor positioning mode after the capacitive touch screen receives a touch signal. It controls the first distance sensor A to rotate in a preset direction and at a preset speed while emitting a signal wave that varies over time. Each time the first distance sensor A receives a return signal wave, it records the time of the return signal wave and determines the coordinates of the first touch point S based on the time of each return signal wave and the wavelength of the signal wave returned after encountering the touch object. This method of positioning the touch point using the distance sensor avoids the problem of inaccurate touch point positioning caused by electromagnetic interference on capacitive touch screens, thereby achieving precise touch point positioning.
[0060] Since the first distance sensor A rotates at a preset speed and returns a signal wave for the first time after encountering the fourth frame, returns a signal wave for the second time after encountering the touch object at point S, and returns a signal wave for the third time after encountering the third frame, the time difference between the first return signal wave and the second return signal wave, as well as the time difference between the first return signal wave and the third return signal wave, can be calculated based on the moment when the return signal wave is received each time. The phase angle α is calculated based on the ratio of the above time differences and the angle CAB (90°).
[0061] Since the wavelength of the signal wave changes over time, the wavelength of the signal wave returned after encountering the touch object can be used to determine when the signal wave was sent. Based on the time difference between the sent signal wave and the returned signal wave, as well as the propagation speed of the signal wave, the distance L1 from the first distance sensor A to point S can be calculated.
[0062] In summary, determining the coordinates of the first touch point S based on the timing of each return signal wave and the wavelength of the signal wave returned after encountering the touch object includes: calculating the angle α between the line connecting the first distance sensor A and the touch object and the first border of the capacitive touch screen based on the timing of each return signal wave; determining the distance L1 between the first distance sensor A and the touch object based on the wavelength of the signal wave returned after encountering the touch object; and determining the coordinates of the first touch point S based on the angle α and the distance.
[0063] Specifically, calculating the angle α between the line between the first distance sensor A and the touched object and the first border of the capacitive touch screen according to the time of each return signal wave includes: calculating a first time difference between the time when the return signal wave is received for the first time and the time when the return signal wave is received for the second time; calculating a second time difference between the time when the return signal wave is received for the first time and the time when the return signal wave is received for the third time; and calculating the angle α between the line between the first distance sensor A and the touched object and the first border of the capacitive touch screen according to the ratio of the first time difference to the second time difference.
[0064] The angle α between the line connecting the first distance sensor A and the touch object and the first frame of the capacitive touch screen is calculated based on the ratio of the first time difference to the second time difference, and is implemented according to the following formula:
[0065] α=90°*(t2-t1) / (t3-t1);
[0066] Wherein, α is the angle between the line between the first distance sensor A and the touching object and the first frame of the capacitive touch screen, t2 is the time when the returned signal wave is received for the second time, t1 is the time when the returned signal wave is received for the second time, and t3 is the time when the returned signal wave is received for the third time.
[0067] For example, in this embodiment, the signal change angle of the first distance sensor A is clockwise. The time when the distance sensor receives the signal wave reflected from point B is t1, and the time when the signal wave is reflected from point C is t2. Assuming that S is a touch object, the time when the signal passes through the touch object at point S and reflects the signal wave is t3, then ∠BAS / ∠BAC = (t3-t1) / (t2-t1). Through this formula, the L1 and corresponding α corresponding to each touch unit in the entire domain can be determined, and the above parameters and corresponding relationships are stored in the database of the main controller. The relationship between L1 and α in each area is unique. In actual operation, when a touch event occurs, the first distance sensor A transmits the collected parameters to the main controller. When the main controller calculates the coordinates of the capacitive touch event of the touch screen itself, it simultaneously determines the range of L1 and α. Without calculation, the unit where the touch event occurs can be locked by table lookup. Among them, the unit where a single touch event occurs can be determined by L1 and α.
[0068] Determining the distance L1 between the first distance sensor A and the touch object based on the wavelength of the signal wave returned after encountering the touch object specifically includes: determining the time when the signal wave was emitted based on the wavelength of the signal wave returned after encountering the touch object; wherein the signal wave returned after encountering the touch object is the second received return signal wave; calculating the time difference between the time when the signal wave was returned after encountering the touch object and the time when the signal wave was emitted; and calculating the distance L1 between the first distance sensor A and the touch object based on the time difference and the propagation speed of the signal wave. This is specifically achieved according to the following formula: L1 = Δt / 2*V, where Δt is the time difference between the time when the signal wave was returned after encountering the touch object and the time when the signal wave was emitted, and V is the propagation speed of the signal wave.
[0069] Based on the relationship between the three sides of a right triangle, the coordinates of the first touch point S are determined based on the angle α and the distance, according to the following formula: a = L1 × sinα; b = L1 × sinα; where a is the coordinate of the first touch point S in the first direction, b is the coordinate of the first touch point S in the second direction, L1 is the distance L1 between the first distance sensor A and the touched object, and α is the angle α between the line connecting the first distance sensor A and the touched object and the first border of the capacitive touch screen.
[0070] As mentioned above Figure 1 As shown in , if points S and P are touched simultaneously, a single sensor A cannot detect the touch event at point P. This is because the signal is reflected by point S, and the extended line AS becomes a blind spot. The introduction of a second distance sensor D solves this problem. This method allows for quick identification of the unit or coordinate where the touch event occurred.
[0071] Therefore, a second distance sensor D is further provided at the intersection of the third frame and the fourth frame of the capacitive touch screen. The second distance sensor D is used to send a signal wave outward. When the first contact point S and the second contact point P exist at the same time, and the second contact point P is located on the extension line of the line connecting the first distance sensor A and the first contact point S, after determining the coordinates of the first contact point S according to the time of each return signal wave and the wavelength of the signal wave returned after encountering the touch object, the above method further includes: calculating the distance between the second distance sensor D and the first contact point S according to the coordinates of the first contact point S; predicting the distance between the second distance sensor D and the first contact point S according to the distance between the second distance sensor D and the first contact point S. The method comprises the following steps: determining the time when the second distance sensor receives the signal wave returned by the second touch point P based on the predicted time when the second distance sensor D receives the signal wave returned by the first touch point S and the time when the second distance sensor receives the returned signal waves twice; calculating the distance between the second touch point P and the second distance sensor D based on the time when the second distance sensor D receives the signal wave returned by the second touch point P; and calculating the coordinates of the second touch point P based on the distance between the second touch point P and the second distance sensor D and the angle α formed by the line between the first distance sensor and the touched object and the first frame of the capacitive touch screen.
[0072] Since the second distance sensor D continuously emits signal waves outward with the intersection of the third frame and the fourth frame as the center of the circle, it will return a signal wave when encountering the second contact P, and will also return a signal wave after encountering the first contact S. That is, the second distance sensor D will receive two returned signal waves. According to the distance between the second distance sensor D and the first contact S and the speed of signal wave propagation, the time when the second distance sensor D receives the signal wave returned by the first contact S can be predicted. Then, based on the time when the two returned signal waves are received, the time when the signal wave returned by the second contact P is received can be distinguished, and the distance PD between the second contact P and the second distance sensor D can be calculated.
[0073] As mentioned above Figure 1 As shown in , point P is located on the extension line of AS, and the intersection of the straight line between points A and P and AD is E, then: (PE·sinα) 2 +(PE·cosα+ED) 2 =PD 2 By solving the above equation, it can be obtained that the second touch point is located at P or P' in the figure. Since the coordinates can be used to determine that P' exceeds the range of the screen, the unique coordinates of the second touch point can be determined.
[0074] In actual applications, when a capacitive touch screen is subject to severe interference, the capacitance detected by the touch panel becomes chaotic, and the data transmitted to the processor is inaccurate. Valid and invalid data are mixed and cannot be distinguished. This can cause false touches, screen skipping, drift, and even touch failure. In this case, if the processor uses the coordinate data of the distance sensor as a basis, it can filter the coordinates of the correct touch event from the numerous point data sent back by the touch panel, and then execute the corresponding human-computer interaction action, reducing the probability of false touches, screen skipping, and drift.
[0075] When the touch screen is used in a normal environment, the touch coordinates detected by capacitive touch are used as event response coordinates, while the touch position is still obtained through the distance sensor. When the coordinate values detected by capacitive touch are not within the range of the touch unit where the touch is located determined by the distance sensor for a continuous period of time, it is determined that the touch screen is used in a complex electromagnetic environment, and the controller automatically turns on the contact calibration mode. The coordinates detected by the capacitance and the unit coordinate range detected by the distance sensor jointly determine the actual touch point. When it is detected that the coordinate values detected by the capacitive touch are consistent with the range of the touch position determined by the distance sensor for a continuous period of time, the calibration mode is automatically exited. This not only ensures the timeliness of touch response in a normal environment, but also allows the touch screen to reduce the number of abnormal phenomena in harsh environments and avoid touch failure.
[0076] Therefore, after determining the coordinates of the first contact point S based on the moment of each returned signal wave and the wavelength of the signal wave returned after encountering a touch object, the above method includes: judging whether the deviation between the coordinates of the first contact point S determined based on the moment of each returned signal wave and the wavelength of the signal wave returned after encountering a touch object and the coordinates of the first contact point S detected in the capacitive positioning mode exceeds a preset threshold; if so, controlling the first distance sensor A to remain on, and entering the sensor positioning mode after the capacitive touch screen receives a touch signal next time; if not, controlling the first distance sensor A to turn off, exiting the sensor positioning mode, and using the capacitive positioning mode for contact positioning.
[0077] Example 2
[0078] This embodiment provides a capacitive touch screen, wherein a first distance sensor is provided at the intersection of a first frame and a second frame of the capacitive touch screen, and the first distance sensor is used to send a signal wave outward. Figure 3 FIG. 1 is a block diagram of the internal structure of a capacitive touch screen according to an embodiment of the present invention. Figure 3 As shown, the capacitive touch screen further includes:
[0079] The control module 10 is used to enter the distance sensor positioning mode after the capacitive touch screen receives the touch signal, and control the first distance sensor to rotate in a preset direction and preset speed while emitting a signal wave; wherein the wavelength of the signal wave changes with time.
[0080] The calculation module 20 is used to record the time of the return signal wave each time the distance sensor A receives the return signal wave, and determine the coordinates of the first touch point according to the time of each return signal wave and the wavelength of the signal wave returned after encountering the touch object.
[0081] The capacitive touch screen of this embodiment enters a distance sensor positioning mode after receiving a touch signal. It controls the first distance sensor A to rotate in a preset direction and at a preset speed while emitting a signal wave that varies over time. Each time the first distance sensor A receives a return signal wave, it records the time of the return signal wave and determines the coordinates of the first touch point S based on the time of each return signal wave and the wavelength of the return signal wave after encountering the touch object. This proximity sensor can locate the touch point, avoiding the problem of inaccurate touch point positioning caused by electromagnetic interference, which is common on capacitive touch screens, and achieving precise touch point positioning.
[0082] Example 3
[0083] This embodiment provides an electronic device, which includes the above-mentioned capacitive touch screen.
[0084] Example 4
[0085] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the above-mentioned contact positioning method is implemented.
[0086] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, i.e., they may be located in one place or distributed across multiple network elements. Some or all of these modules may be selected based on actual needs to achieve the objectives of this embodiment.
[0087] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A contact point positioning method, applied to a capacitive touch screen, characterized in that: A first distance sensor is provided at the intersection of the first frame and the second frame of the capacitive touch screen, and the first distance sensor is used to send a signal wave outward. The method includes: After the capacitive touch screen receives the touch signal, it enters a distance sensor positioning mode, controls the first distance sensor to rotate in a preset direction and at a preset speed while emitting a signal wave; wherein the wavelength of the signal wave changes over time; After the distance sensor receives a return signal wave each time, the time of the return signal wave is recorded, and the coordinates of the first touch point are determined based on the time of each return signal wave and the wavelength of the signal wave returned after encountering the touch object. This includes: calculating the angle between the line connecting the first distance sensor and the touch object and the first frame of the capacitive touch screen based on the time of each return signal wave; determining the distance between the first distance sensor and the touch object based on the wavelength of the signal wave returned after encountering the touch object; and determining the coordinates of the first touch point based on the angle and the distance.
2. The method according to claim 1, characterized in that Calculating an angle between a line connecting the first distance sensor and the touch object and a first border of the capacitive touch screen according to the timing of each return signal wave includes: Calculate the first time difference between the time when the returned signal wave is received for the first time and the time when the returned signal wave is received for the second time; Calculate the second time difference between the time when the returned signal wave is received for the first time and the time when the returned signal wave is received for the third time; calculating an angle between a line connecting the first distance sensor and the touch object and a first frame of the capacitive touch screen according to a ratio of the first time difference to the second time difference; Among them, when the first distance sensor rotates in a clockwise direction, the first returned signal wave received is the signal wave reflected from the intersection of the first frame and the fourth frame; the second returned signal wave received is the signal wave reflected from the touch object; the third returned signal wave received is the signal wave reflected from the intersection of the third frame and the second frame; when the first distance sensor rotates in a counterclockwise direction, the first returned signal wave received is the signal wave reflected from the intersection of the third frame and the second frame; the second returned signal wave received is the signal wave reflected from the touch object; the third returned signal wave received is the signal wave reflected from the intersection of the first frame and the fourth frame; the first frame, the second frame, the third frame, and the fourth frame are arranged in sequence in a counterclockwise direction.
3. The method according to claim 2, characterized in that The angle between the line connecting the first distance sensor and the touch object and the first frame of the capacitive touch screen is calculated based on the ratio of the first time difference to the second time difference, according to the following formula: α=90°* (t2-t1) / (t3-t1); Wherein, α is the angle between the line between the first distance sensor and the touching object and the first frame of the capacitive touch screen, t2 is the time when the returned signal wave is received for the second time, t1 is the time when the returned signal wave is received for the first time, and t3 is the time when the returned signal wave is received for the third time.
4. The method according to claim 1, wherein Determining the distance between the first distance sensor and the touch object according to the wavelength of the signal wave returned after encountering the touch object includes: The time of sending the signal wave is determined according to the wavelength of the signal wave returned after encountering the touch object; wherein the signal wave returned after encountering the touch object is the returned signal wave received for the second time; Calculate the time difference between the time when the signal wave is returned after encountering the touch object and the time when the signal wave is emitted; The distance between the first distance sensor and the touch object is calculated according to the time difference and the propagation speed of the signal wave.
5. The method according to claim 1, wherein When determining the coordinates of the first touch point according to the angle and the distance, it is achieved according to the following formula: a=L1×sinα; b = L1 × cosα; Wherein, a is the coordinate of the first touch point in the first direction, b is the coordinate of the first touch point in the second direction, L1 is the distance between the first distance sensor and the touch object, and α is the angle between the line between the first distance sensor and the touch object and the first frame of the capacitive touch screen.
6. The method according to claim 1, characterized in that A second distance sensor is provided at the intersection of the third frame and the fourth frame of the capacitive touch screen, and the second distance sensor is used to send a signal wave outward. When a first touch point and a second touch point are simultaneously present, and the second touch point is located on an extension line of a line connecting the first distance sensor and the first touch point, after determining the coordinates of the first touch point based on the time of each return signal wave and the wavelength of the signal wave returned after encountering a touch object, the method further includes: calculating the distance between the second distance sensor and the first touch point according to the coordinates of the first touch point; predicting, based on the distance between the second distance sensor and the first touch point, the time when the second distance sensor receives the signal wave returned by the first touch point; Determining the time when the second distance sensor receives the signal wave returned by the second contact based on the predicted time when the second distance sensor receives the signal wave returned by the first contact and the times when the second distance sensor receives the returned signal waves twice; Calculating the distance between the second contact point and the second distance sensor according to the moment when the second distance sensor receives the signal wave returned by the second contact point; The coordinates of the second touch point are calculated according to the distance between the second touch point and the second distance sensor and the angle between the line connecting the first distance sensor and the touch object and the first frame of the capacitive touch screen.
7. The method according to claim 1, characterized in that After determining the coordinates of the first touch point based on the time of each return signal wave and the wavelength of the signal wave returned after encountering the touch object, the method includes: determining whether a deviation between the coordinates of the first touch point determined based on the timing of each return signal wave and the wavelength of the signal wave returned after encountering the touch object and the coordinates of the first touch point detected in the capacitive positioning mode exceeds a preset threshold; If yes, controlling the first distance sensor to remain turned on, and entering the sensor positioning mode after the capacitive touch screen receives a touch signal next time; If not, the first distance sensor is controlled to be turned off, the sensor positioning mode is exited, and the capacitive positioning mode is used to perform contact positioning.
8. A capacitive touch screen, characterized in that: A first distance sensor is provided at the intersection of the first frame and the second frame of the capacitive touch screen, and the first distance sensor is used to send a signal wave outward. The capacitive touch screen further includes: a control module, configured to enter a distance sensor positioning mode after the capacitive touch screen receives a touch signal, and control the first distance sensor to rotate in a preset direction and at a preset speed while emitting a signal wave; wherein the wavelength of the signal wave changes over time; The calculation module is configured to record the time of each return signal wave after the distance sensor receives the return signal wave, and determine the coordinates of the first touch point based on the time of each return signal wave and the wavelength of the signal wave returned after encountering the touch object. The calculation module includes: calculating the angle between the line connecting the first distance sensor and the touch object and the first frame of the capacitive touch screen based on the time of each return signal wave; determining the distance between the first distance sensor and the touch object based on the wavelength of the signal wave returned after encountering the touch object; and determining the coordinates of the first touch point based on the angle and the distance.
9. An electronic device, characterized in that: The electronic device comprises the capacitive touch screen according to claim 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method for recognizing touch points by using acoustic wave touch screen
CN102495700A
Method and device for measuring distances and spatial positions of objects on basis of optical technology
CN110244307A
Touch location determination involving multiple touch location processes
US20060279548A1