With the growth of global population and the acceleration of urbanization,the problem of garbage disposal is becoming more and more serious.Traditional garbage disposal methods have been unable to meet the needs of modern society,so intelligent garbage sorting system came into being.This paper designs and implements an intelligent garbage sorting system based on STM32.The system uses a variety of sensors to classify garbage,and through actuators such as robotic arms and electric valves to achieve garbage sorting.Through system test and optimization,the reliability and performance of the system are verified.Compared with the traditional manual sorting method,the system improves the sorting efficiency and accuracy.Experimental results show that the system can achieve high accuracy of garbage classification,and has a wide range of application prospects.