The invention relates to the technical field of electromagnetic vibrators, and discloses an electromagnetic vibrator SPWM (sinusoidal
pulse width modulation) control method, which comprises the following steps: S1, building a
control system: the
control system comprises an MCU (microprogrammed
control unit) control module, the MCU control module is connected with a FLASH module and a CPLD (
complex programmable logic device) editor, the MCU control module is connected with the CPLD editor through an SPI (serial
peripheral interface) module, and the MCU control module is connected with the CPLD editor; the MCU control module is provided with a CAN interface module used for receiving a control instruction and a UART communication module used for outputting information. A closed-loop
feedback control mode is adopted, and the defects that the actual amplitude of a vibration tray of the vibrator cannot be judged, the amplitude of the vibration tray of the vibrator cannot be accurately adjusted, and the discharging speed and the yield cannot be judged due to the fact that no feedback exists in open-
loop control of a traditional vibrator are overcome. The amplitude of the vibrator can be adjusted, a vibrator tray can be adjusted, and discharging can be accurately controlled; and an SPWM
control mode is adopted, so that the current of the vibrator tends to be in a
sine wave form, the ascending and descending processes become slow, the
jumping phenomenon of materials on the tray is reduced, and the discharging effect is improved.