An exemplary DC to DC converter (2) includes a transistor (29), a first rectifying and filtering circuit (21), a pulse generating circuit (27) and a transformer (25). The first rectifying and filtering circuit transforms an external AC voltage to a first DC voltage. The transformer includes a primary winding (251), an assistant winding (252) connected with the primary winding in a flyback mode, and a secondary winding (253). The first DC voltage is connected to ground via the primary winding, the transistor in series. The pulse generating circuit includes a controlling terminal, a diode, a resistor, and a capacitor. One terminal of the assistant winding is connected to ground, and the other terminal of the assistant winding is connected to an anode of the diode. A cathode of the diode is connected to ground via the resistor and the capacitor in series. The controlling terminal is connected to gate electrode of the transistor.