Back to Parent

Outcome


Problem Statement:

I got recently married and am feeling excited about this new phase of life. As soon as this home hack assignment was described, I wanted to use this opportunity to make something useful for my wife. My wife regularly takes vitamin supplement and I usually remind her every day during lunch. Some days I get too busy with work and forget to remind her, and once I realize it, I feel very bad. To avoid this situation and also impress my wife, I took up this project to make me and my wife a smart pills reminder system.

Goal:

The goal of this project is to detect if my wife has already taken the pills and either thank her for taking the pill or notify me to remind her if she has forgotten to take them. Another sub-need recognized from discussing the project with her was to remind me to get pills refill from the pharmacy when they are nearing empty. She (being smart) wanted the smart device to help her and not just me :P

Process:

First I started off with creating the bill of materials needed based on a conceptual idea. The idea was to use a pressure sensor data recorded over a period to understand the state of the pills bottle. I also wanted visual feedback to show if the pressure sensor is working and used an led to provide that feedback.

Bill of materials;

Photon microcontroller

Breadboard

Connectors

Resistors

Pressure sensor

Led

Screenshot
Show Advanced Options

Stages of development

Stage 1: Control Led brightness based on pressure reading from the pressure sensor

Stage 2: Adding the program logic to publish events based on sensor data

Stage 3: Adding time based logic to prevent program from publishing too many events

Circuit diagram for all three stages

Screenshot
Show Advanced Options
Show Advanced Options
Show Advanced Options
Show Advanced Options

After finishing the code portion moved on to make the pressure sensor data useful by setting up applets using IFTTT to send me appropriate notification based on information published through particle.

Screenshot
Show Advanced Options

Outcome:

Final outcome of this effort was to create a prototype that records sensor data and publish events based on some conditions. The context of usage was to make me look responsible and encourage better behavior of regularly taking pills for my wife and prevent us from running out of pills. Doing the above project I learnt how to research and understand code shared by others, apply them to solve my problem effectively. I also understood some common pitfalls using particle, like over publishing events, setting time zone if using time function, etc. and learn how to avoid them. I think the outcome of this project was success from practical learning point of view. This also made my wife very happy, which is always a good outcome :P

Next steps:

Midway of the project I realized that the pressure sensor might not be able to measure bottle weight and the way to overcome this is by using a load cell in combination with HX711 ADC instead of the pressure sensor. Since the phy comp lab does not have these components, I had no way to get them except order in Amazon. I have just received the HX711 ADC, but still waiting on the load cell. Once I receive them, will complete the final version of the actual working pill reminder.

Reflection:

I think this was a very useful design of IoT device exercise where we defined a problem and solved it using the power of Particle + IFTTT and cloud. This is my first IoT project and I had a lot of fun and learning doing it. It could have been better if I had planned in advance the components needed so I could have completed the final version. I did hit some roadblocks, but the professor and TA were very helpful in teaching me how to resolve them. Overall I think it was a good learning experience and I am excited for my next project.
Drop files here or click to select

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