The smart dispenser can assist the elderly in distributing different pills according to their colors. It is difficult for them to distinguish between different colored pills. Keeping the elderly healthy after taking medicine can share the pressure of caring for their family members and spend more time integrating into society or work. The movable parts of this machine are all 3D printed and assembled, using a programmable computer to control the small electric motor to achieve the purpose of dispensing different colors of medicine.