This document is a project report on an automatic packaging machine created by three students for their diploma in mechatronics. The project uses a PIC16F877 microcontroller to control actuators, relays, and sealing machines to automatically weigh and package powder materials based on the weight measured by a load cell. The machine fills cups with material from a hopper, then uses actuators to move the cups under sealing machines that seal and cut the packaged material before repeating the process. The report includes the circuit diagram, design steps, working, program, and photographs of the completed automatic packaging machine.