Research on motion controller for SCARA robot based on STM32