Project tutorial
Pill Me Please - The Automated Pill Packaging Machine!

Pill Me Please - The Automated Pill Packaging Machine!

An automated pill dispensing/packaging machine that packages pills into standard 14 slot pill boxes to save time, money, and reduce errors.

  • 2,812 views
  • 0 comments
  • 18 respects

Components and supplies

Screen%20shot%202016 04 25%20at%202.57.01%20pm
Makerbeam
1cm x 1cm aluminum extrusion, 3 meters Corner cubes, t slotted nuts and screws
×1
Ard nano
Arduino Nano R3
×1
PIC Microcontroller
×1
Servos (Tower Pro MG996R)
9g blue micro servos
×2
28BYJ48 Unipolar Stepper
×3
60W Power Supply
12V 5A
×1
13268 01
SparkFun Snappable Protoboard
any generic soldering proto-board is fine
×3
MG996R High Torque Servo
×1
Complete Components List and Prices Available Below!
×1

Necessary tools and machines

3drag
3D Printer (generic)
09507 01
Soldering iron (generic)
Basic Hand Tools
Basic Power Tools

Apps and online services

About this project

***PLEASE CHECK OUT OUR DEMO VIDEO :)***

Introduction

Nursing homes and hospitals are in need of a machine that automatically packages the residents’ weekly medications. The automated pill packaging machine will enable nurses to prepare patients’ weekly medications autonomously through an accurate and easy to use interface that requires less than a minute of setup time and will complete each patient’s box within three minutes. Furthermore, the usage of the pill boxing machine will allow nurses to spend less time packaging medication and more time with patients. The machine, ‘Pill Me, Please’, is able to sort round pills, flat pills, and long pills into a 14 compartment (7 days, morning/afternoon) pill box, to aid nursing home staff with the distribution of patients’ weekly medications.

This automation machine was made by a team of three 2nd year engineering students from the University of Toronto.

Demo Video

Note: For the prototype, marbles and beads are used instead of actual pills for safety purposes and ease of demonstration.

Process

Due to the lengthy nature of this project, step by step instructions are unable (and would be unhelpful) to be provided. All the necessary CAD files, models, code, and parts lists will be shared. Some fundamental knowledge of electronics and circuits, electromechanics, and programming is necessary.

Electromechanical

The electromechanical component of this project consists of building the frame, designing the moving mechanisms, and interfacing with circuits and motors to perform the desired movements. The frame is built from MakerBeam's 1cmx1cm aluminum extrusion, with some additional aluminum sheets, wood, acrylic, and 3D printed parts. See the additional materials for all the CAD files and drawings.

Circuits

The goal of the circuits is to connect the software with the hardware subsystems, and is key in all automated machines. The circuit flow chart for this project is shown below.

All circuit diagrams are provided in fritzing format, and available as PNGs in the additional attachments section.

Microcontroller

The microcontroller subsystem is responsible for creating an easy and intuitive UI and directing various mechanical components based on an entered prescription. All the code for this project can be found in the linked Github repo. The PIC18F was programmed with the MPLabX IDE and the Arduino Nano with the Arduino IDE. The communication protocol used is UART, between the microcontrollers. The PC interface downloads information stored in the EEPROM of the PIC18F via a Serial USB connection, and Alexa can communicate to the PIC via a Raspberry Pi running Flask and an Ngrok tunnel, and interact via serial with the Arduino to perform the desired tasks.

Full Detailed Report

A comprehensive report (more details about each subsystem and how it is built) is available for viewing at: https://drive.google.com/file/d/1-3M7ghMq74RB7eJkU3lpCnFKsT5OEOnL/view?usp=sharing

We do not recommend, however, for anyone to follow in our footsteps line by line. The whole point of the maker community is to adopt, adapt, and improve! We hope that our project and the resources we have shared can act as a baseline for future iterations, and for those who are interested to make it simpler, easier, and less costly to reproduce!

Complete Budget/Parts List

Code

Pill-Packaging-Robot
Entire Code Repo for both PIC and Arduino.

Custom parts and enclosures

All CAD models organized by category
Designed using Solidworks
cads-20180521t033558z-001_jzh2uZPhWB.zip

Schematics

Fritzing Circuit Diagrams
Contains .fzz files and .png files, sorry for the poor naming for png files!
fritzing_works-20180521t034636z-001_8GcvaIOlTz.zip

Comments

Similar projects you might like

WalaBeer Tank

Project tutorial by Balázs Simon

  • 23,725 views
  • 4 comments
  • 159 respects

Voice Activated STEM Learning Robot

Project in progress by MemoSTEAM

  • 1,380 views
  • 3 comments
  • 11 respects

Rampiot - Cool Smart Lock

Project tutorial by Robinson Mesino

  • 4,102 views
  • 2 comments
  • 28 respects

Automated Chess Play Using Alexa

Project in progress by Team Automaters

  • 11,332 views
  • 2 comments
  • 53 respects

Hygge Home - Alexa Smart Bath

Project tutorial by J Howard

  • 5,362 views
  • 2 comments
  • 18 respects

Walaarm: Walabot-Powered Robotic Arm

Project in progress by Md. Khairul Alam

  • 4,957 views
  • 0 comments
  • 35 respects
Add projectSign up / Login