A pill box of an automatic pill dispenser includes a box body receiving a plurality pills, a base, a tray, and a vibration member. The tray is secured to the base. The box body is secured to the tray. The vibration member is located under the tray. The vibration member is vibrated to vibrate the tray and the box body, to separate the plurality of pills.