An electric vehicle controller provided by the present invention includes a casing, a terminal block, a pin socket, a circuit board and an end cover; the casing is made of stretched profiles, and the outer surface of the casing is divided into a flat surface and a heat dissipation rib surface. On the flat surface of the body, the upper two ends of the housing are respectively provided with a wiring seat gap to install the wiring seat, and the side of the housing is provided with a control line pin header socket hole to install the pin header socket; The cavity, corresponding to the notch side of the terminal block in the upper part of the shell, is provided with a rib for positioning the terminal block, and in the bottom or two sides of the shell, there is a perforated channel for installing the positioning member of the circuit board; The body is provided with a heat-conducting surface that fits the power tube; most of the exterior of the shell is provided with heat dissipation ribs. This structural design solves the contradiction between the two existing technologies, with simple and ingenious structure, good workmanship, high heat dissipation performance, low cost, and waterproof. It is reliable, and also plays the role of electromagnetic shielding; it improves the quality and standardization of electric vehicles, reduces the cost of the whole vehicle manufacturing process, and facilitates future maintenance.