A new flexible automatic packing machine controller was designed to solve the shortcoming of unfixed shape and packaging material without power. MCU was used as the core device of the controller; the speed and position of packaging belt was adjusted by controlling the servo motor; the implementation of other components was controlled through controlling the air cylinder. After commissioning the machine, the electrical part of the controller can effectively meet the requirements of industrial packaging.