The electromagnetic control motor system based on single chip microcomputer

The movement system of electromagnetic controlling makes use of the STC89C52RC MCU as the control core.According to preset angle and cycle,STC89C52RC outputs the PWM wave with certain duty.Control of the swinging angle and cycle of swinging rod was then achieved by regulating the electromagnet voltage for L298N drive.Angle sensor SYD35D4 mounted in the swinging rod support shaft,it is that outputs analog voltage signal by A/D conversion circuit MAX1113 converted into digital signals.Digital signal sent to the microcontroller after processing,finally measurement angle,preset angle,measurement cycle and preset cycle will be displayed on LCD.