A control method for oscillating motor, the oscillating motor comprises a U-shaped magnetic yoke, a control unit, an oscillating arm oscillating around a fulcrum, a second magnetic yoke and four permanent magnets; the U-shaped magnetic yoke has a first support leg and a second support leg, and the first support leg and the second support leg are respectively wound with coils; the control unit is electrically connected with coils and produces alternating pulses to generate alternating magnetic poles on the end faces (111, 121) of the two supporting legs of the U-shaped magnetic yoke; the oscillating arm extends outward from the end face direction of the U-shaped magnetic yoke and is bounded by the fulcrum, the end of the oscillating arm close to the U-shaped magnetic yoke is an inner arm, the end of the oscillating arm away from the U-shaped magnetic yoke is an outer arm; the second magnetic yoke is installed at the end of the inner arm close to the U-shaped magnetic yoke; the permanent magnets are fixedly installed on the second magnetic yoke; the four permanent magnets are arranged side by side in sequence, they are: a first permanent magnet, a second permanent magnet, a third permanent magnet and a fourth permanent magnet, according to the arrangement order; the outer end faces of the first permanent magnet and the fourth permanent magnet are of the same polarity, and the outer end faces of the second permanent magnet and the third permanent magnet are of the same polarity; and the outer end faces of the first permanent magnet and the second permanent magnet are of the opposite polarity and arranged corresponding to the end face of the first support leg; the outer end faces of the third permanent magnet and the fourth permanent magnet are of the opposite polarity and arranged corresponding to the end face of the second support leg; there is an air gap between the end faces of the permanent magnets and their corresponding support legs, and alternating magnetic poles generated by the two supporting legs (110, 120) of the U-shaped magnetic yoke cause the permanent magnets, the second magnetic yoke and the oscillating arm to reciprocate; characterized in that: setting pulse parameters; the control unit outputs alternating pulses with corresponding pulse widths and frequencies according to the set pulse parameters, so that the oscillating arm oscillates in an oscillation mode corresponding to the pulse parameters; wherein the oscillation mode comprises at least one of a full-amplitude oscillation mode, a sub-amplitude oscillation mode, an in-situ shaking mode and a composite oscillation mode, wherein the composite oscillation mode is generated by superposition of the full-amplitude oscillation mode and the in-situ shaking mode, or is generated by superposition of the sub-amplitude oscillation mode and the in-situ shaking mode; the control unit outputs a composite alternating pulse consisting of a fourth alternating pulse and a fifth alternating pulse, so that the oscillating arm reciprocates in the composite oscillation mode; wherein the pulse width of the fourth alternating pulse is greater than or equal to the minimum pulse width Tb of the full-amplitude oscillation; the pulse width of the fifth alternating pulse is less than the minimum pulse width Tb of the full-amplitude oscillation, and is greater than or equal to the minimum pulse width Td of start oscillation; the frequency of the fifth alternating pulse is greater than 0, and less than or equal to the frequency Fd corresponding to the minimum pulse width Td of start oscillation when the duty ratio of the alternating pulse is 100%, and Fd = 1/(2 ∗ Td); the fourth alternating pulse and the fifth alternating pulse form the composite alternating pulse in a form that positive and negative levels do not overlap each other in time sequence. setting pulse parameters; the control unit outputs alternating pulses with corresponding pulse widths and frequencies according to the set pulse parameters, so that the oscillating arm oscillates in an oscillation mode corresponding to the pulse parameters; wherein the oscillation mode comprises at least one of a full-amplitude oscillation mode, a sub-amplitude oscillation mode, an in-situ shaking mode and a composite oscillation mode, wherein the composite oscillation mode is generated by superposition of the full-amplitude oscillation mode and the in-situ shaking mode, or is generated by superposition of the sub-amplitude oscillation mode and the in-situ shaking mode; the control unit outputs a composite alternating pulse consisting of a fourth alternating pulse and a fifth alternating pulse, so that the oscillating arm reciprocates in the composite oscillation mode; wherein the pulse width of the fourth alternating pulse is greater than or equal to the minimum pulse width Tb of the full-amplitude oscillation; the pulse width of the fifth alternating pulse is less than the minimum pulse width Tb of the full-amplitude oscillation, and is greater than or equal to the minimum pulse width Td of start oscillation; the frequency of the fifth alternating pulse is greater than 0, and less than or equal to the frequency Fd corresponding to the minimum pulse width Td of start oscillation when the duty ratio of the alternating pulse is 100%, and Fd = 1/(2 ∗ Td); the fourth alternating pulse and the fifth alternating pulse form the composite alternating pulse in a form that positive and negative levels do not overlap each other in time sequence.