Patent attributes
A photoelectric switch, including: a base, an infrared tube, a keycap, a balance frame, a resetting mechanism, and a light-blocking member. The light-blocking member is configured to change the propagation direction of light emitted from the infrared tube to allow or block the light propagation in the infrared tube. The infrared tube is disposed on the base. The infrared tube includes a light-emitting end and a light-receiving end. The infrared tube, the balance frame, and the resetting mechanism are disposed beneath and covered by the keycap. In operation, upon being pressed by an external force, the balance frame leads the keycap to move downwards smoothly; the light-blocking member moves upwards or downwards along with the motion of the keycap and the balance frame or the resetting mechanism. The resetting mechanism is configured to reset the keycap or the balance frame.