The application provides a flat compact generator, and belongs to the technical field of generators, which solves the problems of large volume, complex structure and low heat dissipation efficiency of the existing generator. The generator comprises a front end cover, a casing, a rear end cover and a rear cover cover. The outer part of the front end cover is provided with an air outlet mesh cover. The outer part of the upper end of the casing is provided with a wiring board and a wire outlet box. The inner side of the wire outlet box is provided with an automatic
voltage regulator. The inner part of the casing is fixedly provided with a main
stator. The front end of the rear end cover is provided with an excitation
stator. The rear cover cover is arranged at the rear end of the rear end cover. The inner part of the rear end cover is provided with a bearing. The inner ring of the bearing is fixedly provided with a main shaft. A plurality of closely arranged disc couplings and a
locking plate are sequentially arranged on the front end surface of the main shaft from back to front by locking screws. A heat dissipation
fan blade, a main rotor and an excitation rotor are sequentially arranged on the main shaft from front to back. The rear side end surface of the excitation rotor is provided with a
rectifier bridge. The application realizes flat and compact design, and optimizes the smoothness of the internal cooling air duct to improve the heat dissipation efficiency.