Photoelectric switch key and keyboard

By using a combination of infrared light sources and visible light sources in the photoelectric switch button and combining the design of the light shield, the adaptability and energy consumption of the photoelectric switch button in different bright environments is solved, and the sensitivity maintenance and energy efficiency improvement is achieved.

CN222260858UActive Publication Date: 2024-12-27DONGGUAN WULIAN ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420679099.1
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-04-02
Publication Date
2024-12-27
Estimated Expiration
2034-04-02

AI Technical Summary

Technical Problem

Existing photoelectric switch keys consume faster energy during long-term use, and the light emission of LED lights will cause the keyboard to be unable to adapt in some environments, affecting the sensitivity of the photosensitive element.

Method used

The combination of infrared light source and visible light source is used as the light source, and the reception of light rays is controlled through the movement of the light shield, ensuring that the light sensitive components maintain sensitivity in different bright environments, and the light intensity is automatically adjusted through the infrared light source to adapt to external light.

Benefits of technology

It reduces the energy consumption of visible light sources, improves the adaptability and flexibility of photoelectric switch buttons, ensures the normal function of buttons in different bright environments, and the infrared light source does not affect the use environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222260858U_ABST
    Figure CN222260858U_ABST
Patent Text Reader

Abstract

The utility model belongs to the technical field of keyboards, and particularly relates to a photoelectric switch key and a keyboard. The photoelectric switch key comprises a shell, a circuit board, a photosensitive assembly and a pressing assembly, the photosensitive assembly is electrically connected with the circuit board, a shading piece is arranged on the pressing assembly, the pressing assembly is movably installed on the shell, and the pressing assembly can move in the direction away from or close to the light receiving face of the photosensitive assembly. The circuit board is further provided with a light source assembly, the light source assembly comprises an infrared light source and a visible light source, the photosensitive assembly can receive light emitted by the infrared light source and the visible light source, and the light emitted by the visible light source can receive light emitted by the light source. The infrared light source and the visible light source are electrically connected with the circuit board. According to the utility model, the problems of how to reduce the energy consumption of the visible light source in the photoelectric switch key and how to improve the adaptability and flexibility of the photoelectric switch key can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model belongs to the technical field of keyboards, and in particular relates to a photoelectric switch key and a keyboard. Background Art

[0002] Keyboard keys are generally divided into mechanical contact type and photoelectric switch type. The photoelectric switch keyboard uses optical principles and photoelectric coupling technology to form a light path by a transmitting element and a photosensitive element (receiving element). The light blocking element cuts off and conducts the light path to change the circuit impedance to achieve circuit switching. Existing photoelectric switch keys usually have an LED lamp set up to emit light to the photosensitive element, so that when the LED lamp is turned on, the photosensitive element can receive stronger light to maintain the sensitivity of the photosensitive element. However, LED lamps consume energy quickly when used for a long time, and because the LED lamp emits light, the entire key and keyboard will also emit light. In some environments where the keyboard cannot emit too much light, the light intensity of the LED lamp can only be reduced, but at the same time the sensitivity of the photosensitive element will also be affected. Utility Model Content

[0003] The purpose of the embodiments of the present application is to provide a photoelectric switch key and a keyboard, aiming to solve the problem of how to reduce the energy consumption of the visible light source in the photoelectric switch key and how to improve the flexibility and adaptability of the photoelectric switch key.

[0004] To achieve the above purpose, the technical solution adopted in this application is:

[0005] In a first aspect, a photoelectric switch button is provided, the photoelectric switch button comprising a shell, a circuit board, a photosensitive component and a pressing component, the photosensitive component is electrically connected to the circuit board, a shading member is provided on the pressing component, the pressing component is movably mounted on the shell, the pressing component can move away from or close to a light receiving surface of the photosensitive component so that the light receiving surface of the photosensitive component can receive external light or be shielded by the shading member, a light source component is also provided on the circuit board, the light source component comprises an infrared light source and a visible light source, the photosensitive component can receive light emitted by the infrared light source and the visible light source, the infrared light source and the visible light source are electrically connected to the circuit board.

[0006] In some embodiments, the outer shell is covered on the photosensitive component, the outer shell is provided with a light-transmitting area for injecting light toward the photosensitive component, the outer shell is provided with a first light-shielding cavity, the first light-shielding cavity is provided with a light-transmitting opening at one end facing the light-transmitting area, and the photosensitive component is located in the first light-shielding cavity.

[0007] In some embodiments, a second light-shielding cavity connected to the outside is provided on one end of the light-shielding member facing the photosensitive component. The second light-shielding cavity is used to cover the photosensitive component and block the light-receiving surface of the photosensitive component. The second light-shielding cavity is used to block light from being emitted from the light-transmitting opening to the photosensitive component.

[0008] In some embodiments, the pressing assembly includes a pressing piece and an elastic piece, a pressing cavity is provided on the shell, the pressing piece is installed in the pressing cavity, the elastic piece abuts between the cavity wall of the pressing cavity and the pressing piece, and the shading piece is provided on the pressing piece.

[0009] In some embodiments, the housing includes a light-shielding shell and a light-transmitting shell mounted on the light-shielding shell, the first light-shielding cavity is disposed on the light-shielding shell, and the light-transmitting shell is transparent to form the light-transmitting area.

[0010] In some embodiments, a light-guiding cavity is provided on the light-shielding shell, a light-guiding opening is provided at one end of the light-guiding cavity facing the light-transmitting shell, and the visible light source is located in the light-guiding cavity and emits light toward the light-transmitting shell through the light-guiding opening.

[0011] In some embodiments, the photosensitive component includes a photosensitive element, which is mounted on the circuit board and electrically connected to the circuit board, and the photosensitive element is located in the first light-shielding cavity.

[0012] In some embodiments, the photosensitive assembly further includes a light guide, which is disposed on the photosensitive element and is used to guide the light from the light-transmitting opening to be incident on the photosensitive element.

[0013] In a second aspect, a keyboard is provided, which includes the photoelectric switch key.

[0014] In some embodiments, the keyboard is a wireless keyboard.

[0015] The beneficial effects of the present application are as follows: the photoelectric switch button of the present application, since the photosensitive component is electrically connected to the circuit board to form an electrical path, when the photosensitive component receives light from the outside, the electrical path is in a disconnected state; and when the photosensitive component cannot receive light from the outside, the electrical path is connected, and the function of the button is realized at this time. Therefore, when the user presses the button, the shading member completely blocks the light from the outside that is directed to the photosensitive component, and the function of the button is realized; and the light emitted by the infrared light source and the visible light source of the present application can be received by the photosensitive component, and the infrared light source and the visible light source complement each other. Since the maximum light intensity that can be achieved in the cavity where the photosensitive component is located is constant, Even in a specific environment where the keyboard cannot emit too much light or cannot emit light, the light intensity of the visible light source is reduced, and the infrared light source can supplement the light intensity to maintain the sensitivity of the photosensitive component. Moreover, since the light emitted by the infrared light source is invisible, it will not affect the user and the usage environment. Therefore, the photoelectric switch button of the present application can adapt to various usage environments with different light requirements, thereby improving the adaptability of the photoelectric switch button, and compared with the visible light source as a single light source in the prior art, the energy consumption of the visible light source can be reduced; in addition, the infrared light source of the present application can automatically adjust the light intensity according to the external light, thereby improving the flexibility of the photoelectric switch button. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or exemplary technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 is a schematic diagram of the overall structure of the photoelectric switch button provided in the embodiment of the present application;

[0018] Figure 2 It is a schematic diagram of the split structure of the photoelectric switch button provided in the embodiment of the present application;

[0019] Figure 3 is a schematic diagram of the cross-sectional structure of a photoelectric switch button provided in an embodiment of the present application;

[0020] Figure 4 is a schematic structural diagram of a light shielding shell provided in an embodiment of the present application;

[0021] Figure 5 It is a structural schematic diagram of a light source assembly provided in an embodiment of the present application.

[0022] Among them, the reference numerals in the figure are:

[0023] 10. Shell; 11. Light-shielding shell; 111. Clamping portion; 12. Light-transmitting shell; 121. Clamping hole; 13. Light-transmitting area; 14. First light-shielding cavity; 141. Light-transmitting opening; 15. Light-guiding cavity; 151. Light-guiding opening; 16. Pressing cavity; 17. Guide; 18. Annular sleeve; 20. Circuit board; 30. Photosensitive component; 31. Photosensitive element; 32. Light-guiding component; 40. Pressing component; 41. Light-shielding component; 411. Second light-shielding cavity; 42. Pressing component; 43. Elastic component; 50. Light source component; 51. Infrared light source; 52. Visible light source. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical scheme and advantages of the embodiments of the utility model clearer, the technical scheme in the embodiments of the utility model will be clearly and completely described below in conjunction with the drawings in the embodiments of the utility model. Obviously, the described embodiments are part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the utility model. Therefore, the following detailed description of the embodiments of the utility model provided in the drawings is not intended to limit the scope of the utility model for which protection is sought, but merely represents the selected embodiments of the utility model. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the utility model.

[0025] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0026] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present utility model, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0027] In the present utility model, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.

[0028] See also Figures 1 to 5 The embodiment of the present application provides a photoelectric switch button, including a housing 10, a circuit board 20, a photosensitive component 30 and a pressing component 40. The photosensitive component 30 is electrically connected to the circuit board 20. A shading member 41 is provided on the pressing component 40. The pressing component 40 is movably mounted on the housing 10. The pressing component 40 can move in a direction away from or close to the light receiving surface of the photosensitive component 30 so that the light receiving surface of the photosensitive component 30 can receive external light or be blocked by the shading member 41. A light source component 50 is also provided on the circuit board 20. The light source component 50 includes an infrared light source 51 and a visible light source 52. The photosensitive component 30 can receive light emitted by the infrared light source 51 and the visible light source 52. The infrared light source 51 and the visible light source 52 are electrically connected to the circuit board 20.

[0029] It can be understood that the infrared light source 51 of the present application is used to emit infrared light, which is invisible light, and the light emitted by the visible light source 52 is visible light. Figure 5 As shown, the infrared light source 51 and the visible light source 52 can be packaged together through a packaging structure.

[0030] The photoelectric switch button of the present application, since the photosensitive component 30 is electrically connected to the circuit board 20 to form an electrical path, when the photosensitive component 30 receives light from the outside, the electrical path is in a disconnected state; and when the photosensitive component 30 cannot receive light from the outside, the electrical path is connected, and the function of the button is realized at this time. Therefore, when the user presses the button, the shading member 41 completely blocks the light from the outside to the photosensitive component 30, and the function of the button is realized; and the light emitted by the infrared light source 51 and the visible light source 52 of the present application can be received by the photosensitive component 30, and the infrared light source 51 and the visible light source 52 complement each other. Since the photosensitive component 30 The maximum light intensity that can be achieved in the cavity is constant. Therefore, even in a specific environment where the keyboard cannot emit too much light or cannot emit light, the light intensity of the visible light source 52 is reduced, and the infrared light source 51 can supplement the light intensity to maintain the sensitivity of the photosensitive component 30. Moreover, since the light emitted by the infrared light source 51 is invisible, it will not affect the user and the use environment. Therefore, the photoelectric switch button of the present application can adapt to various use environments with different light requirements, thereby improving the adaptability of the photoelectric switch button, and compared with the visible light source 52 as a single light source in the prior art, the energy consumption of the visible light source 52 can be reduced.

[0031] In addition, the infrared light source 51 of the present application can automatically adjust the light intensity according to the external light, so as to improve the flexibility of the photoelectric switch key. For example, in some environments where the external light is too strong, shadows are generated due to the presence of the keycaps. At this time, the light in the cavity where the photosensitive component 30 is located is dark. At this time, the light intensity of the infrared light source 51 can be increased to maintain the sensitivity of the photosensitive component 30.

[0032] In some embodiments, the housing 10 is covered on the photosensitive component 30, and a light-transmitting area 13 for injecting light toward the photosensitive component 30 is provided on the housing 10. A first light-shielding cavity 14 is provided on the housing 10, and a light-transmitting opening 141 is provided at one end of the first light-shielding cavity 14 facing the light-transmitting area 13. The photosensitive component 30 is located in the first light-shielding cavity 14, and the light-shielding member 41 is used to block light from being emitted from the light-transmitting opening 141 to the photosensitive component 30. Specifically, the light-transmitting area 13 of the housing 10 can receive light from the outside, and the cavity wall of the first light-shielding cavity 14 is black to block light, so that the light-transmitting opening 141 is the only way for light to be emitted into the first light-shielding cavity 14, so that the light-shielding efficiency of the light-shielding member 41 can be effectively improved. When pressing a key, the light-shielding member 41 can block the light-transmitting opening 141, thereby effectively improving the sensitivity of the key. Optionally, the visible light source 52 of the present application is an LED lamp.

[0033] Furthermore, if Figure 3 and Figure 4As shown, a second light shielding cavity 411 communicating with the outside is provided on one end of the light shielding member 41 facing the photosensitive component 30, and the second light shielding cavity 411 is used to cover the photosensitive component 30 and shield the light-receiving surface of the photosensitive component 30. Specifically, the light shielding member 41 moves synchronously with the key, and by providing the second light shielding cavity 411 on the light shielding member 41, the cavity wall of the second light shielding cavity 411 is black, which can completely shield light. When the user presses the key, the second light shielding cavity 411 is completely covered on the outside of the photosensitive component 30 to block the external light from being directed to the light-receiving surface of the photosensitive component 30, thereby achieving the purpose of making the electrical path conductive.

[0034] In some embodiments, Figure 3 As shown, the pressing assembly 40 includes a pressing member 42 and an elastic member 43 . A pressing cavity 16 is provided on the housing 10 . The pressing member 42 is installed in the pressing cavity 16 . The elastic member 43 abuts between the cavity wall of the pressing cavity 16 and the pressing member 42 . The shading member 41 is provided on the pressing member 42 . Specifically, the pressing cavity 16 is located on the side of the first light shielding cavity 14 and extends in the same direction as the first light shielding cavity 14. The pressing cavity 16 can guide the pressing member 42 to move in a direction perpendicular to the light-transmitting opening 141, thereby guiding the light-shielding member 41 to move closer to or away from the light-transmitting opening 141. In the initial state, the pressing member 42 drives the light-shielding member 41 to be located above the light-transmitting opening 141 under the elastic force of the elastic member 43, and light can be emitted to the photosensitive component 30 through the light-transmitting opening 141. Then, when the pressing member 42 is pressed, the spring is compressed, and the pressing member 42 moves downward along the pressing cavity 16, and the light-shielding member 41 moves toward the light-transmitting opening 141 until the light-shielding member 41 completely covers the light-transmitting opening 141, so that the electrical path is turned on and the key function is realized. When the user releases the pressing member 42, the elastic member 43 drives the light-shielding member 41 to move upward, so that light is emitted into the first light shielding cavity 14, so that the electrical path is disconnected. The elastic member 43 may be a spring, a torsion spring or an elastic sheet, etc. The present application does not impose any sole limitation on the specific structure of the elastic member 43 .

[0035] Preferably, the elastic member 43 is a spring, and a guide member 17 extending in the same direction as the push cavity 16 is provided in the push cavity 16, and a guide cavity 171 extending in the same direction as the push cavity 16 is provided on the guide member 17, one end of the spring is sleeved on the outer periphery of the guide member 17 and abuts against the guide member 17, the pressing member 42 is inserted into the guide cavity 171, and the other end of the spring abuts against the pressing member 42, and the shading member 41 is located on the side of the pressing member 42 and is spaced apart from the pressing member 42 to form an avoidance gap, so that when the pressing member 42 is pressed downward, the second shading cavity 411 on the shading member 41 can pass through the light-transmitting opening 141 well and cover the photosensitive component 30, thereby achieving a complete shading effect. Moreover, when the pressing member 42 is pressed, when the second light-shielding cavity 411 on the light-shielding member 41 is covered on the photosensitive component 30, the pressing member 42 also forms mechanical contact with the guide member 17, thereby giving the user a certain mechanical touch, and being able to feel the key being pressed into place, which has a good use effect.

[0036] In some embodiments, the housing 10 includes a light-shielding shell 11 and a light-transmitting shell 12 mounted on the light-shielding shell 11, a first light-shielding cavity 14 is disposed on the light-shielding shell 11, and the light-transmitting shell 12 is transparent to form a light-transmitting area 13. Specifically, the light-shielding shell 11 is an opaque shell 12, and the light-transmitting shell 12 is a transparent shell. By disposing the first light-shielding cavity 14 on the light-shielding shell 11, when the photosensitive component 30 is disposed in the first light-shielding cavity 14, the photosensitive component 30 can only receive external light through the light-transmitting opening 141; then, by disposing the light-transmitting shell 12 on the light-shielding shell 11, the light-transmitting shell 12 can naturally transmit external light, so that the light-transmitting opening 141 naturally allows external light to be directed toward the photosensitive component 30 under normal conditions (when the key is not pressed), so that the electrical path is disconnected, and no additional light source is required, which effectively simplifies the structure of the key and saves the manufacturing cost of the key.

[0037] In addition, if Figure 2 As shown, a clamping portion 111 is provided on the outer wall of the light shielding shell 11, and a clamping hole 121 is provided on the outer wall of the light transparent shell 12. The clamping portion 111 and the clamping hole 121 are clamped together, so that the connection between the light shielding shell 11 and the light transparent shell 12 is more stable.

[0038] The light shielding shell 11 is also provided with a light guide cavity 15, and a light guide opening 151 is provided at one end of the light guide cavity 15 facing the light transmissive shell 12. The light source assembly 50 is located in the light guide cavity 15 and emits light toward the light transmissive shell 12 through the light guide opening 151. Specifically, by providing the light guide cavity 15 on the light shielding shell 11, the light source assembly 50 is covered in the light guide cavity 15, and then the light of the light source assembly 50 is directed toward the light transmissive shell 12 through the light guide opening 151, so that the light emitted by the light source assembly 50 is effectively controlled, the light of the light source assembly 50 is prevented from being scattered irregularly, and the irradiation effect on the light transmissive shell 12 is enhanced.

[0039] In some embodiments, the photosensitive component 30 includes a photosensitive element 31, which is mounted on the circuit board 20 and electrically connected to the circuit board 20, and is located in the first light shielding cavity 14. Specifically, the photosensitive element 31 is used to receive light from the light-transmitting opening 141, and the photosensitive element 31 converts the received light signal into an electrical signal. The photosensitive element 31 is connected to the circuit module pre-set on the circuit board 20 through the emitted electrical signal to form an electrical path. When the photosensitive element 31 receives the light signal, the electrical path is in a disconnected state, and no corresponding key function is input at this time. When the photosensitive element 31 does not receive the light signal, the electrical path is in a conducting state, and the corresponding key function is input at this time. Among them, the circuit module set on the circuit board 20 of the embodiment of the utility model is opposite to the control of the conventional circuit on the photoelectric coupling, and the circuit board 20 of the embodiment of the utility model uses the reverse principle to realize the function of pressing the key.

[0040] In some embodiments, the photosensitive assembly 30 further includes a light guide 32, which is disposed on the photosensitive element 31 and is used to guide the light from the light-transmitting opening 141 to enter the photosensitive element 31. Specifically, the light guide 32 is disposed in the first light-shielding cavity 14 and is located between the light-transmitting opening 141 and the photosensitive element 31 to guide the light at the light-transmitting opening 141 to the photosensitive element 31, so that the photosensitive element 31 can better receive the light at the light-transmitting opening 141, thereby ensuring the sensitivity of the photosensitive element 31. Among them, by disposing an annular sleeve 18 on the light-shielding shell 11, part of the light guide 32 is accommodated in the annular sleeve 18, and the opening of the annular sleeve 18 facing one end of the light-shielding element 41 forms the light-transmitting opening 141, so that when the light-shielding element 41 is pressed and moved, the second light-shielding cavity 411 can be directly covered on the outer periphery of the annular sleeve 18 to completely block the light from entering the light-transmitting opening 141, thereby achieving a good use effect.

[0041] The present application also proposes a keyboard, which includes a photoelectric switch key. The specific structure of the photoelectric switch key refers to the above embodiment. Since the keyboard adopts all the technical solutions of all the above embodiments, it also has all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here. Preferably, the keyboard is a wireless keyboard.

[0042] In summary, the photoelectric switch button of the present application, since the photosensitive component 30 is electrically connected to the circuit board 20 to form an electrical path, when the photosensitive component 30 receives light from the outside, the electrical path is in a disconnected state; and when the photosensitive component 30 cannot receive light from the outside, the electrical path is connected, and the function of the button is realized at this time. Therefore, when the user presses the button, the shading member 41 completely blocks the light from the outside that is directed to the photosensitive component 30, and the function of the button is realized; and the light emitted by the infrared light source 51 and the visible light source 52 of the present application can be received by the photosensitive component 30, and the infrared light source 51 and the visible light source 52 complement each other. Since the maximum light intensity that can be achieved in the cavity where the photosensitive component 30 is located is constant, Therefore, even in a specific environment where the keyboard cannot emit too much light or cannot emit light, the light intensity of the visible light source 52 is reduced, and the infrared light source 51 can supplement the light intensity to maintain the sensitivity of the photosensitive component 30. Moreover, since the light emitted by the infrared light source 51 is invisible, it will not affect the user and the use environment. Therefore, the photoelectric switch button of the present application can adapt to various use environments with different light requirements, thereby improving the adaptability of the photoelectric switch button, and compared with the visible light source 52 as a single light source in the prior art, the energy consumption of the visible light source 52 can be reduced; in addition, the infrared light source 51 of the present application can automatically adjust the light intensity according to the external light, thereby improving the flexibility of the photoelectric switch button.

[0043] The above are only optional embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A photoelectric switch button, characterized in that: The invention comprises a housing (10), a circuit board (20), a photosensitive component (30) and a pressing component (40), wherein the photosensitive component (30) is electrically connected to the circuit board (20), a shading component (41) is provided on the pressing component (40), and the pressing component (40) is movably mounted on the housing (10), and the pressing component (40) can move away from or towards a light-receiving surface of the photosensitive component (30), so that the light-receiving surface of the photosensitive component (30) can receive external light or be shielded by the shading component (41), and a light source component (50) is also provided on the circuit board (20), wherein the light source component (50) comprises an infrared light source and a visible light source, and the photosensitive component (30) can receive light emitted by the infrared light source (51) and the visible light source (52), and the infrared light source (51) and the visible light source (52) are electrically connected to the circuit board (20).

2. The photoelectric switch button according to claim 1, characterized in that: The housing (10) is covered on the photosensitive component (30), and the housing (10) is provided with a light-transmitting area (13) for irradiating light toward the photosensitive component (30). The housing (10) is provided with a first light-shielding cavity (14), and the first light-shielding cavity (14) is provided with a light-transmitting opening (141) at one end thereof facing the light-transmitting area (13), and the photosensitive component (30) is located in the first light-shielding cavity (14).

3. The photoelectric switch button according to claim 2, characterized in that: A second light shielding cavity (411) connected to the outside is provided on one end of the light shielding member (41) facing the photosensitive component (30); the second light shielding cavity (411) is used to cover the photosensitive component (30) and shield the light receiving surface of the photosensitive component (30); the second light shielding cavity (411) is used to block light from being emitted from the light-transmitting opening (141) toward the photosensitive component (30).

4. The photoelectric switch button according to claim 3, characterized in that: The pressing assembly (40) comprises a pressing piece (42) and an elastic piece (43); a pressing cavity (16) is provided on the housing (10); the pressing piece (42) is installed in the pressing cavity (16); the elastic piece (43) abuts between the cavity wall of the pressing cavity (16) and the pressing piece (42); and the shading piece (41) is provided on the pressing piece (42).

5. The photoelectric switch button according to claim 3, characterized in that: The housing (10) comprises a light-shielding shell (11) and a light-transmitting shell (12) mounted on the light-shielding shell (11); the first light-shielding cavity (14) is arranged on the light-shielding shell (11); and the light-transmitting shell (12) is transparent to form the light-transmitting area (13).

6. The photoelectric switch button according to claim 5, characterized in that: A light-guiding cavity (15) is provided on the light-shielding shell (11); a light-guiding opening (151) is provided at one end of the light-guiding cavity (15) facing the light-transmitting shell (12); and the light source assembly (50) is located in the light-guiding cavity (15) and emits light toward the light-transmitting shell (12) through the light-guiding opening (151).

7. The photoelectric switch button according to claim 3, characterized in that: The photosensitive component (30) comprises a photosensitive element (31), wherein the photosensitive element (31) is mounted on the circuit board (20) and is electrically connected to the circuit board (20), and the photosensitive element (31) is located in the first light shielding cavity (14).

8. The photoelectric switch button according to claim 7, characterized in that: The photosensitive component (30) further comprises a light guide (32), wherein the light guide (32) is arranged on the photosensitive element (31) and is used to guide the light from the light-transmitting opening (141) to be incident on the photosensitive element (31).

9. A keyboard, characterized in that: The invention comprises the photoelectric switch key as described in any one of claims 1 to 8.

10. The keyboard according to claim 9, characterized in that: The keyboard is a wireless keyboard.