Stylus pen status detection device and electronic device
Through the combination of the optical signal emission module and the photoelectric conversion module, the position change of the refractive module is used to solve the accuracy problem of stylus state detection, achieving high-accurate state judgment, and easy installation.
Patent Information
- Application Number
- CN202111116315.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-23
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2041-09-23
AI Technical Summary
In the prior art, the accuracy of detecting the status of the stylus is poor and is easily blocked by other opaque objects, resulting in misjudgment.
By adopting the combination of the optical signal emitting module, the refractive module, the first photoelectric conversion module and the second photoelectric conversion module, the optical signal enters different photoelectric conversion modules under different states, and the processing device determines the state of the stylus based on the electrical signal.
Improve the accuracy of stylus status detection, avoid misjudgment caused by obstruction of other objects, and does not require hole drilling and installation on the body structure.
Smart Images

Figure CN115857708B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of touch technology, and in particular to a stylus state detection device and an electronic device. Background Art
[0002] At present, display screens with stylus are widely used in many application fields, such as educational interactive smart tablets, smart display devices in corporate conference rooms, large-scale exhibition display platforms, and digital signage.
[0003] In the prior art, an infrared sensor detection solution is used to detect the status of the stylus pen. The infrared tube ranging principle is used. When the pen is adsorbed, the pen body blocks the infrared rays, forming a reflection on the pen body, and the infrared receiver can receive the infrared signal. Therefore, the system knows that the pen is in the adsorbed state at this time; when the pen is lifted, the infrared rays are not reflected, and the infrared receiver cannot receive the infrared signal. Therefore, the system knows that the pen is lifted.
[0004] In the above solution, infrared signal detection may cause misjudgment due to obstruction by other opaque objects, resulting in poor detection accuracy.
[0005] The above information disclosed in the background technology section is only used to enhance the understanding of the background technology of the technology described in this article. Therefore, the background technology may contain certain information that does not form the prior art known in this country to those skilled in the art. Summary of the Invention
[0006] The main purpose of the present application is to provide a stylus state detection device and an electronic device to solve the problem of poor accuracy in detecting the state of the stylus in the prior art.
[0007] According to one aspect of an embodiment of the present invention, a state detection device for a stylus is provided. The stylus includes a magnetic member. The state detection device comprises: a main body structure having a receiving cavity; a displacement structure located within the receiving cavity, the displacement structure comprising an optical signal transmitting module, a refraction module, a first photoelectric conversion module, and a second photoelectric conversion module. When the stylus is in an adsorbed state, at least a portion of the refraction module is in a first position, and light emitted by the optical signal transmitting module passes through the refraction module and enters the first photoelectric conversion module. When the stylus is in a lifted state, at least a portion of the refraction module is in a second position, and light emitted by the optical signal transmitting module passes through the refraction module and enters the second photoelectric conversion module. The first position and the second position are different. A processing device is electrically connected to the first photoelectric conversion module and the second photoelectric conversion module, and is configured to determine the state of the stylus based on a received electrical signal. The states of the stylus include the adsorbed state and the lifted state.
[0008] Optionally, the refraction module includes: a movable component, the movable component having the first position and the second position; an optical component at least partially connected to the movable component, and the optical component moves with the movement of the movable component.
[0009] Optionally, the movable component includes a metal piece, and the optical component includes a lens.
[0010] Optionally, the movable component further includes an elastic member, and the metal member is connected to the elastic member.
[0011] Optionally, the state detection device also includes: a first signal processing module, electrically connected to the first photoelectric conversion module and the second photoelectric conversion module, respectively, for amplifying the received electrical signal and converting the amplified electrical signal into a digital signal; a second signal processing module, for filtering the electrical signal after conversion into a digital signal and reducing the filtered electrical signal.
[0012] Optionally, the first signal processing module is located in the accommodating cavity, and the state detection device further includes a power supply module, the power supply module is located in the accommodating cavity, and the power supply is used to supply power to the optical signal transmitting module and the first signal processing module.
[0013] Optionally, the second photoelectric conversion module is located between the stylus in the adsorption state and the first photoelectric conversion module, and the processing device is used to determine the state of the stylus based on the received electrical signal, including: when the received first electrical signal is in a low-level state and the second electrical signal is in a high-level state, determining that the stylus is in the adsorption state, the first electrical signal is the signal output by the first photoelectric conversion module, and the second electrical signal is the signal output by the second photoelectric conversion module; when the received first electrical signal is in a high-level state and the second electrical signal is in a low-level state, determining that the stylus is in the lifted state.
[0014] Optionally, the optical component further includes a reflector.
[0015] Optionally, the optical signal transmitting module is a laser head.
[0016] According to another aspect of an embodiment of the present invention, an electronic device is provided, including: a stylus pen and a stylus pen status detection device, wherein the stylus pen status detection device is any one of the aforementioned status detection devices.
[0017] The stylus state detection device includes a main body structure, a displacement structure, and a processing device. The displacement structure includes an optical signal transmitting module, a refraction module, a first photoelectric conversion module, and a second photoelectric conversion module. When the stylus is in an adsorption state, light emitted by the optical signal transmitting module passes through the refraction module and enters the first photoelectric conversion module. When the stylus is in a lift state, light emitted by the optical signal transmitting module passes through the refraction module and enters the second photoelectric conversion module. The processing device is electrically connected to the first photoelectric conversion module and the second photoelectric conversion module. After receiving an electrical signal, the processing device determines the state of the stylus based on the electrical signal. In this solution, when the stylus contacts the display screen, the refraction module moves from the second position to the first position, allowing the light emitted by the optical signal transmission module to pass through the refraction module and enter the first photoelectric conversion module. The electrical signal generated by the first photoelectric conversion module is transmitted to a processing device, which determines the state of the stylus based on the received electrical signal. This solution only needs to determine the state of the stylus based on the electrical signal, and does not rely on infrared light to determine the state of the stylus. Therefore, the problem of misjudgment due to obstruction by other objects will not occur, ensuring high accuracy of the judgment result, thereby solving the problem of poor accuracy in detecting the state of the stylus in the prior art. In addition, the displacement structure in this solution is located within the accommodating cavity of the main body, rather than being installed on the main body structure. Therefore, there is no need for operations such as drilling, ensuring that the main body structure is relatively easy to install. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings that constitute part of this application are used to provide a further understanding of this application. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation on this application. In the drawings:
[0019] Figure 1 A schematic diagram of a stylus state detection device according to an embodiment of the present application is shown;
[0020] Figure 2 A schematic diagram of an electronic device according to a specific embodiment of the present application is shown;
[0021] Figure 3 A partial structural diagram of an electronic device according to another specific embodiment of the present application is shown;
[0022] Figure 4 A partial structural diagram of an electronic device according to another specific embodiment of the present application is shown.
[0023] The above drawings include the following reference numerals:
[0024] 100. Optical signal transmission module; 101. Refraction module; 102. First photoelectric conversion module; 103. Second photoelectric conversion module; 104. Power supply module; 105. Processing device; 106. Elastic member; 107. Optical component; 108. Metal member; 10. Stylus status detection device; 20. Stylus; 30. Mainboard; 40. PC module. DETAILED DESCRIPTION
[0025] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0026] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element may be directly on the other element or intervening elements may be present. Moreover, in the specification and claims, when it is described that an element is "connected to" another element, the element may be "directly connected to" the other element or "connected to" the other element through a third element.
[0029] As mentioned in the background art, the accuracy of detecting the state of a stylus pen in the prior art is relatively poor. To solve the above problem, in a typical embodiment of the present application, a stylus pen state detection device and an electronic device are provided.
[0030] According to an embodiment of the present application, a device for detecting the state of a stylus pen is provided.
[0031] Figure 1 Schematic diagram of a stylus state detection device according to an embodiment of the present application. Figure 1 As shown, in the state detection device, the stylus includes a magnetic member, and the state detection device includes: a main body structure having an accommodating cavity; a displacement structure located in the accommodating cavity, the displacement structure including an optical signal transmitting module 100, a refraction module 101, a first photoelectric conversion module 102, and a second photoelectric conversion module 103. When the stylus is in an adsorbed state, at least a portion of the refraction module 101 is in a first position, and light emitted by the optical signal transmitting module 100 passes through the refraction module 101 and enters the first photoelectric conversion module 102. When the stylus is in a lifted state, at least a portion of the refraction module 101 is in a second position, and light emitted by the optical signal transmitting module 100 passes through the refraction module 101 and enters the second photoelectric conversion module 103. The first position is different from the second position. A processing device 105 is electrically connected to the first photoelectric conversion module 102 and the second photoelectric conversion module 103, and is configured to determine the state of the stylus based on a received electrical signal. The states of the stylus include the adsorbed state and the lifted state.
[0032] The stylus state detection device includes a main body structure, a displacement structure, and a processing device. The displacement structure includes an optical signal transmitting module, a refraction module, a first photoelectric conversion module, and a second photoelectric conversion module. When the stylus is in an adsorption state, light emitted by the optical signal transmitting module passes through the refraction module and enters the first photoelectric conversion module. When the stylus is in a lift state, light emitted by the optical signal transmitting module passes through the refraction module and enters the second photoelectric conversion module. The processing device is electrically connected to the first and second photoelectric conversion modules. After receiving an electrical signal, the processing device determines the state of the stylus based on the electrical signal. In this solution, when the stylus contacts the display screen, the refraction module moves from the second position to the first position, allowing light emitted by the optical signal transmission module to pass through the refraction module and enter the first photoelectric conversion module. The electrical signal generated by the first photoelectric conversion module is then transmitted to a processing device, which determines the state of the stylus based on the received electrical signal. This solution only relies on the electrical signal to determine the state of the stylus, without relying on infrared light. Therefore, the problem of misjudgment due to obstruction by other objects is avoided, ensuring high accuracy of the judgment result, thereby resolving the problem of poor accuracy in detecting the state of the stylus in the prior art. Furthermore, the displacement structure in this solution is located within the accommodating cavity of the main body, rather than being mounted on the main body structure. Therefore, no drilling or other operations are required, ensuring that the main body structure is relatively easy to install.
[0033] In a specific embodiment of the present application, the above-mentioned adsorption state is when the stylus pen is tightly attached to the main body structure and is in its initial position. When the stylus pen is not in the adsorption state, its corresponding state is the above-mentioned lifting state. Of course, in a specific application process, the state detection device of the stylus pen can detect the lifting state and adsorption state of the stylus pen, and can also detect whether the stylus pen is always in the lifting state or always in the adsorption state.
[0034] In actual application, the stylus pen includes a magnetic component, but the body of the stylus pen is not limited thereto. The body of the stylus pen may be a metal body or a plastic body.
[0035] When the above-mentioned stylus is in different states, in order to enable the light emitted by the above-mentioned optical signal transmission module to enter different photoelectric conversion modules, in one embodiment of the present application, the above-mentioned refraction module includes a movable part and an optical component, wherein the above-mentioned movable part has the above-mentioned first position and the above-mentioned second position; at least part of the optical component is connected to the above-mentioned movable part, and the above-mentioned optical component moves with the movement of the above-mentioned movable part.
[0036] In another embodiment of the present application, the movable component includes a metal part, and the optical component includes a lens, which ensures that the magnetic part in the stylus can adsorb the metal part, and further ensures that the position of the optical component can move with the movement of the metal part.
[0037] In actual application, the above-mentioned optical component is not limited to a lens, but can also be a reflector. When the above-mentioned optical component is a reflector, the light emitted by the above-mentioned optical signal transmitting module can enter different photoelectric conversion modules through the reflector. Of course, when the above-mentioned optical component is a combination of the above-mentioned lens and the above-mentioned reflector, the light emitted by the above-mentioned optical signal transmitting module can first enter the reflector, and after being reflected by the reflector, enter the lens for refraction. In this way, the above-mentioned first photoelectric conversion module and the above-mentioned second photoelectric conversion module can be flexibly arranged, further ensuring that the size of the above-mentioned stylus status detection device is small.
[0038] In another embodiment of the present application, the movable component further includes an elastic member, and the metal member is connected to the elastic member. In this embodiment, the elastic member further ensures that the optical component can be reset more accurately to ensure the accuracy of subsequent detection.
[0039] In a specific embodiment of the present application, the connection between the metal member and the elastic member includes: direct connection between the metal member and the elastic member, and indirect connection between the metal member and the elastic member.
[0040] In actual application, Figure 2 As shown, the elastic member 106 includes a first elastic member and a second elastic member, the first elastic member and the second elastic member are respectively connected to the optical assembly 107, and the metal member 108 is connected to the optical assembly 107. When the stylus is detected to be in the adsorption state, the magnetic member of the stylus attracts the metal member 108, and the metal member 108 moves toward the side where the stylus is located, thereby driving the optical assembly 107 to move toward the side where the stylus is located. Since the first elastic member and the second elastic member are connected to the optical assembly 107, when the stylus is detected to be in the adsorption state, the first elastic member and the second elastic member are compressed. Of course, when the stylus is detected to be in the lifted state, the magnetic member of the stylus is no longer adsorbed to the metal member 108, and the first elastic member and the second elastic member drive the optical assembly 107 back to its original position.
[0041] In another specific embodiment of the present application, Figure 3 As shown, the elastic member 106 is connected to the metal member 108, and the metal member 108 is connected to the optical component 107. In addition, the connection method of the elastic member 106, the metal member 108 and the optical component 107 is not limited to Figure 2 and Figure 3 The connection relationship shown in the figure can be used in a specific application process as long as the elastic member drives the optical component to move accordingly when it is extended or contracted.
[0042] In order to ensure that the above-mentioned processing equipment can receive a stable electrical signal with low noise or no noise, and avoid the noise in the above-mentioned electrical signal from interfering with the above-mentioned detection results, in another embodiment of the present application, the above-mentioned state detection device also includes a first signal processing module and a second signal processing module, wherein the above-mentioned first signal processing module is electrically connected to the above-mentioned first photoelectric conversion module and the above-mentioned second photoelectric conversion module respectively, and is used to amplify the received electrical signal and convert the amplified electrical signal into a digital signal; the above-mentioned second signal processing module is used to filter the above-mentioned electrical signal after being converted into a digital signal, and reduce the above-mentioned electrical signal after filtering.
[0043] Of course, in actual application, the first signal processing module is electrically connected to the first photoelectric conversion module and the second photoelectric conversion module to receive the electrical signals sent by the first photoelectric conversion module and the second photoelectric conversion module. After the first signal processing module receives the electrical signal, it amplifies the electrical signal, so as to ensure that the threshold between the electrical signal and the noise in the electrical signal is relatively large, and the noise in the electrical signal can be filtered out more easily later. After the amplification, the first signal processing module is also used to convert the amplified electrical signal into a digital signal, so as to ensure that the signal quality sent to the second signal processing module is good. After the second signal processing module receives the electrical signal converted into a digital signal, it filters it so that the noise in the electrical signal can be filtered out, thereby further avoiding the influence of the noise in the electrical signal on the detection result. The second signal processing module further reduces the filtered electrical signal, thereby ensuring that the processing device can receive a signal suitable for its own range, further ensuring that the pins of the chip on the processing device will not be broken down by excessive electrical signals, and further ensuring that the processing device can operate safely and reliably.
[0044] Specifically, the above-mentioned first signal processing module and the above-mentioned second signal processing module can be set in the above-mentioned processing device. Of course, the above-mentioned second signal processing module can also be set outside the above-mentioned processing device. This application does not limit the connection relationship between the above-mentioned first signal processing module and the above-mentioned second signal processing module.
[0045] In order to ensure that the optical signal transmitting module and the first signal processing module can work normally, Figure 1 As shown, in one embodiment of the present application, the above-mentioned first signal processing module is located in the above-mentioned accommodating cavity, and the above-mentioned state detection device also includes a power supply module 104, and the above-mentioned power supply module 104 is located in the above-mentioned accommodating cavity. The above-mentioned power supply module 104 is used to supply power to the above-mentioned optical signal transmitting module and the above-mentioned first signal processing module.
[0046] In another embodiment of the present application, the second photoelectric conversion module is located between the stylus in the adsorbed state and the first photoelectric conversion module, and the processing device is configured to determine the state of the stylus based on the received electrical signal, including: determining that the stylus is in the adsorbed state when the received first electrical signal is in a low-level state and the received second electrical signal is in a high-level state, wherein the first electrical signal is a signal output by the first photoelectric conversion module and the second electrical signal is a signal output by the second photoelectric conversion module; and determining that the stylus is in the lifted state when the received first electrical signal is in a high-level state and the received second electrical signal is in a low-level state. In this embodiment, the state of the stylus is determined based on the states of the received first and second electrical signals, thereby ensuring a more accurate determination of the stylus's state.
[0047] In order to ensure that a relatively stable light beam can be provided to the refraction module, in another embodiment of the present application, the optical signal transmitting module is a laser head.
[0048] In one embodiment of the present application, the optical component further includes a reflector.
[0049] In a typical embodiment of the present application, an electronic device is further provided, including a stylus pen and a stylus pen status detection device, where the stylus pen status detection device is any one of the above-mentioned status detection devices.
[0050] In a specific embodiment of the present application, Figure 4 As shown, the electronic device includes the stylus 20, the stylus status detection device 10, the motherboard 30, and the PC (Personal Computer) module 40. The motherboard 30 and the PC module 40 are connected via a Universal Serial Bus (USB) communication interface. The PC module 40 is used to perform corresponding functions according to the status of the stylus 20 detected by the stylus status detection device 10.
[0051] In another specific embodiment of the present application, the above-mentioned stylus status detection device, the main board and the above-mentioned PC module can all be set in the above-mentioned electronic device. Of course, the above-mentioned main board and the above-mentioned PC module can also be set outside the above-mentioned electronic device.
[0052] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0053] The stylus state detection device of the present application includes a main body structure, a displacement structure, and a processing device. The displacement structure includes an optical signal transmission module, a refraction module, a first photoelectric conversion module, and a second photoelectric conversion module. When the stylus is in an adsorption state, light emitted by the optical signal transmission module passes through the refraction module and enters the first photoelectric conversion module. When the stylus is in a lift state, light emitted by the optical signal transmission module passes through the refraction module and enters the second photoelectric conversion module. The processing device is electrically connected to the first and second photoelectric conversion modules. After receiving an electrical signal, the processing device determines the state of the stylus based on the electrical signal. In this solution, when the stylus contacts the display screen, the refraction module moves from the second position to the first position, allowing light emitted by the optical signal transmission module to pass through the refraction module and enter the first photoelectric conversion module. The electrical signal generated by the first photoelectric conversion module is then transmitted to a processing device, which determines the state of the stylus based on the received electrical signal. This solution only relies on the electrical signal to determine the state of the stylus, without relying on infrared light. Therefore, the problem of misjudgment due to obstruction by other objects is avoided, ensuring high accuracy of the judgment result, thereby resolving the problem of poor accuracy in detecting the state of the stylus in the prior art. Furthermore, the displacement structure in this solution is located within the accommodating cavity of the main body, rather than being mounted on the main body structure. Therefore, no drilling or other operations are required, ensuring that the main body structure is relatively easy to install.
[0054] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Persons skilled in the art will readily appreciate that various modifications and variations are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A stylus status detection device, characterized in that: The stylus pen includes a magnetic member, and the state detection device includes: The main body structure has a receiving cavity; a displacement structure located within the accommodating cavity, the displacement structure comprising an optical signal transmitting module, a refraction module, a first photoelectric conversion module, and a second photoelectric conversion module, wherein when the stylus pen is in an adsorbed state, at least a portion of the refraction module is in a first position, and light emitted by the optical signal transmitting module passes through the refraction module and enters the first photoelectric conversion module; and when the stylus pen is in a lifted state, at least a portion of the refraction module is in a second position, and light emitted by the optical signal transmitting module passes through the refraction module and enters the second photoelectric conversion module, the first position being different from the second position; A processing device is electrically connected to the first photoelectric conversion module and the second photoelectric conversion module, and is used to determine the state of the stylus pen according to the received electrical signal, where the state of the stylus pen includes the adsorption state and the lifting state.
2. The state detection device according to claim 1, characterized in that The refraction module includes: a movable member having a first position and a second position; The optical component is at least partially connected to the movable component, and the optical component moves with the movement of the movable component.
3. The state detection device according to claim 2, characterized in that: The movable component includes a metal piece, and the optical component includes a lens.
4. The state detection device according to claim 3, characterized in that: The movable component further includes an elastic member, and the metal member is connected to the elastic member.
5. The state detection device according to claim 1, characterized in that: The state detection device further includes: a first signal processing module, electrically connected to the first photoelectric conversion module and the second photoelectric conversion module, for amplifying the received electrical signal and converting the amplified electrical signal into a digital signal; The second signal processing module is used to filter the electrical signal after it is converted into a digital signal, and to reduce the electrical signal after the filtering process.
6. The state detection device according to claim 5, characterized in that: The first signal processing module is located in the accommodating cavity. The state detection device further includes a power supply module. The power supply module is located in the accommodating cavity and is used to supply power to the optical signal transmitting module and the first signal processing module.
7. The state detection device according to claim 1, characterized in that: The second photoelectric conversion module is located between the touch pen in the adsorption state and the first photoelectric conversion module. The processing device is configured to determine the state of the stylus according to the received electrical signal, including: Determining that the stylus pen is in the adsorption state when the received first electrical signal is in a low-level state and the received second electrical signal is in a high-level state, the first electrical signal is a signal output by the first photoelectric conversion module, and the second electrical signal is a signal output by the second photoelectric conversion module; When the received first electrical signal is in a high level state and the received second electrical signal is in a low level state, it is determined that the stylus pen is in the lifted state.
8. The state detection device according to claim 2, characterized in that: The optical assembly further includes a reflector.
9. The state detection device according to any one of claims 1 to 8, characterized in that: The optical signal transmitting module is a laser head.
10. An electronic device, characterized in that: include: A stylus pen and a stylus pen status detection device, wherein the stylus pen status detection device is the status detection device according to any one of claims 1 to 9.
Citation Information
Patent Citations
Infrared sensing device, foreign matter detection method and device, and electronic equipment
CN112327380A
State detection device of stylus and terminal equipment
CN210377399U