Back to Parent

Outcome


----------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------


Problem Statement:

Everyone in my immediate family has pills and vitamins that must be taken at regular intervals, but sometimes they miss a day, run out of pills unexpectedly, or take them on the wrong days due to forgetfulness. While calendars and reminders are helpful they are easily ignored and do not help you find your medicines either if you have multiple bottles.


Goal:

My smart pill tracking system will send reminders to the user when they should take their medicine and also flash to help users keep track of their pills. It should also track the amount of medicine left in the bottle and let the user know when to refill.

Process:

The first step in developing this prototype was to narrow down the sensor to use to measure the amount of pills in the bottle. I was originally going to keep a running measurement of the number of pills remaining based off of weight from a load cell/FSR or by using some sensor to help count the pills, but both of these methods were too imprecise to give meaningful data.

Instead I decided to do a more binary measurement based off of the approximate height level of all the pills left in the bottle.

I used a distance sensor to measure the height level of the pills, and have the LED signal an alert if the height level is lower than some set number. This is measured as distance from the cap using an IR distance sensor.


I also attached a switch underneath the cap so it gets pushed down when the bottle is closed. 


Finally I added an LED to the bottle to signal different alerts and reminders to take the pills.


Outcome:

The LED attached to the cap of the bottle functions as an alert indicator to tell the user when to take their pills and when they are running low on pills. It breathes quickly if it is time to take medicine, flashes in sets of 3's if the bottle is running low, and turns off if there is no alert.


The user can turn off the alert by opening the bottle, taking a pill, and closing it again, or through the use of email commands. If the user sends an email to trigger@applet.ifttt.com from a registered email address, they can turn the LED off, or to the Reminder or Low on pills alert modes for manual overriding.


Code:

Show Advanced Options

Circuit Diagram:



Parts:

- Pill Bottle

- Single Color LED

- Micro Switch

- Particle Photon

- IR Analog Distance Sensor

Reflection:

The greatest learning phase for me in regards to this prototype was learning how to use IFTTT with Particle to schedule schedule time based events and also to set up email commands to the Photon. Utilizing the Particle functions through IFTTT was worlds easier than using a special API or anything and getting used to that workflow was fun. Additionally I wrote my own functions to set up the different alert patterns for my LED, which helped me get more familiar with Particle code.

Show Advanced Options
Drop files here or click to select

You can upload files of up to 20MB using this form.