At present, patients have to be treated in hospital, in every case of the disease. Doctors will have to prescribe to patients for alleviate the symptoms of disease. Because of personal issues in medicine dispensing, there are not enough pharmacists to accommodate medicines for many loads of patients. Therefore they have to spend plenty of time for waiting. Due to this problem, we decide to make the machine to help pharmacists to dispense medicines and reduce the time in the process. The user will arrange medicines into the machine through magazines provided. When the machine is activated and a prescription is sent directly, then a set of medicines are distributed to the patients. The experimental results that the machine showed is reliable and provides accuracy.