The invention discloses an engine controller for an extended-range hybrid unmanned aerial vehicle. The engine controller comprises a circuit board and a connector; the circuit board is provided with a microcontroller module, a power module, a rotating speed signal processing module, a communication module, an analog input module, a low-side driving module and an ignition driving module, the microcontroller module is used for analyzing a control instruction and processing and post-processing acquired data, the microcontroller module is electrically connected with the power supply module, the rotating speed signal processing module, the communication module, the analog input module, the low-side driving module and the ignition driving module on the circuit board respectively; and the connector is provided with an analog quantity signal interface, a digital quantity signal interface, an engine ignition signal interface, an oil injection control signal interface, a communication interface and a power supply interface. Accurate control can be carried out to enable the engine to operate under different working conditions, and state monitoring of the engine is achieved; and in addition, the controller has the advantages of low power consumption, fault diagnosis, safety redundancy and electromagnetic interference resistance, and the flight safety of the engine is ensured.