The present invention provides a frequency converter for driving a motor, comprising: a circuit board, having at least one first heat-generating element mounted thereon; a
heat sink, connected to the at least one first heat-generating element; a fan, facing the
heat sink; and a bracket, for positioning the at least one heat-generating element relative to the
heat sink and the circuit board. The frequency converter further comprises: a separating member for separating the at least one portion of the main body of the at least one second heat-generating element from the circuit board, so as to prevent the cooling air guided to the at least one second heat-generating element from flowing to the circuit board; an
airflow guiding member placed between the fan and the heat sink, for guiding the cooling air flowed from the fan to the heat sink and the at least one second heat-generating element respectively; and a flow guiding gate guiding the
airflow from the fan to the heat sink, and dispensing more
airflow to flow through the region corresponding to the at least one first heat-generating element.