How to Make an Automatic Pill Dispenser

This is my Automatic Pill Dispenser. I made this for a project in my school. The reason why I made it was because my boyfriend's grandmother has to take a lot of pills, and it's very difficult for her to know which one's she has to take at that time. So I made a pill dispenser that gives you the correct pill on the correct time.

We also had to make a website for this course. Here is the link to the website: http://femkeneirinck.be/portfolio/

Step 1: You Will Need

  • Materials:

Electronics

  • Raspberry Pi 3 model B
  • Raspberry Pi T-Cobbler with cable
  • Blue LED
  • Green LED
  • Buzzer 3V
  • Steppermotor with driver
  • RFID + tags
  • Capacitive Touch Sensor
  • LCD Display with i²C
  • LDR
  • MCP3008
  • Raspberry Pi Adapter
  • Resistor 10k Ohm
  • 2 Resistors 470 Ohm
  • 2 40p male to male cables
  • 2 40p male to female cables
  • breadboard

Housing

  • Wool
  • Cardboard
  • Some small heat shrink tubing cable
  • Contact adhesive
  • Glue gun

Tools

  • Contact adhesive
  • Glue gun
  • Scissors
  • Needle
  • Straps
  • Compass

Step 2: The Design

I made a couple of designs. My final design is in cardboard, which it wasn't supposed to be. Because I was in need of time, I had to make something easier and faster. So this is the result the first picture is the bottom where the electronics is put in. In the second picture you can see a disk with compartments, the pills need to be put in these compartments. And the last picture is the lid with one opening, so you can take out your pill.

Step 3: The Bottom Part

The bottom part is where the electronics need to be put in.

To make the bottom part:
Cut out a circle with a diameter of 18cm.
Then cut a rectangle with a height of 10cm and a length of 63cm.

Cut out the rectangle other rectangles where some electronics should come through.
And at least glue the rectangle as an edge to the circle (with glue gun), so it becomes a box.

Step 4: The Disk

The Disk is the part that is put on the steppermotor. This is the part where the pills should go in and when you need one, the steppermotor will turn to the next compartment.

To make the disk:

Cut out a circle with a diameter of 17cm.

Cut out 8 little rectangles with a height of 2cm and a length of 8,5cm.
Glue them on the circle in the shape of a star, so you get compartments. I used contact adhesive to glue this on the circle.

Then you need another rectangle with a height of 2cm and a length of 54cm. This is to make the edge around the circle so the pills don't fall of. To glue this together I used the glue gun.

Then you need to make a little hole in the middle of the circle at the bottom, and put it on the steppermotor.

Step 5: The Lid

This is the lid that comes over the whole box. There is a part cut out, so you can take your pill out of the box.

To make the lid:

Cut out a circle with a diameter of 20cm.

Then draw on the inside lines to make even pieces. Cut out one of those pieces, but leave an edge so you can't look inside the box and just take the pill.

The cut out a rectangle with a length of 64 cm and a height of 4cm.
This is the part you need to glue on to the circle, use the glue gun to glue it together.

Step 6: Get It Together

This is the final part and the finishing of the projects housing.

To get it together:

In the bottom part you put the electronic parts, the parts that should come through I stuck through the box and I used a needle and some wool to keep it there. With the LED's and the LDR I used the glue gun because there where no holes to hold them up.

Then you should stick the disk on to the steppermotor.

And then you put the lid on and I wrote "Pill dispenser" on there to make it a little bit fancy.

Step 7: Fritzing Scheme

We had to make a scheme with the parts and an electric scheme of our project before we really started.

In the beginning my scheme was a little different but this is the result.

When you're done with drawing your scheme you can start and build your circuit.

If you want you can download the scheme's here.

Step 8: Database

We also had to make a database. We had to do this in MySQL Workbench. Here you have a picture of the model I made.

It says that there is a user. This user can be a caregiver or a patient. Only the caregiver has a badge, this badge is needed when you refill the pill dispenser.

The patient has medication in his pill dispenser. And whenever he takes a pill he needs to touch the touch sensor so it goes straight into the database when he/she took the pill.

And then you have a table of sensors. So you can keep up with the values of the sensors. And show them to your website.

Share

    Recommendations

    • Planter Challenge

      Planter Challenge
    • Games Contest

      Games Contest
    • Barbecue Challenge

      Barbecue Challenge

    Discussions