Patent ID: 8440925

Claim:
An encoder with a tri-color LED, comprising: an insulating base, having an upper surface, wherein the upper surface is recessed with a receiving chamber having a receiving hole; five terminals, including a first terminal, a second terminal, a third terminal, a fourth terminal, and a fifth terminal which are not in contact with one another, wherein the five terminals each has an insertion portion and a contact portion which are in connection with one another, and the first terminal further includes an abutting portion in connection with the contact portion, and the abutting portion of the first terminal and the contact portion of the third terminal are received in the receiving hole of the insulating base, and the terminals each has its insertion portion extended out of the insulating base, where the five terminals and the insulating base are formed integrally; a conductive elastic piece, being received in the receiving chamber of the insulating base, and being located above the abutting portion of the first terminal, and being disposed on the contact portion of the third terminal; a tri-color LED assembly, being disposed in the receiving chamber of the insulating base, and having four outer pins in contact with the contact portions of the first, the second, the fourth, and the fifth terminals; an encoder substrate assembly, covering on the insulating base, and covering on both the conductive elastic piece and the tri-color LED assembly, wherein the encoder substrate assembly is recessed downward with a receiving chamber on which a through hole is provided; an conductive wiper assembly, being received in the receiving chamber of the encoder substrate assembly, and being provided with a through hole; and an insulated light shaft, passing through the through hole of the encoder and the through hole of the encoder substrate assembly, and abutting on the tri-color LED assembly.