Every day, more than 130 people in the United States alone die from an overdose of opioids, which includes prescription painkillers and other addictive drugs. The rate of opioid abuse has been rising steadily since the 1990s and has developed into a serious public health problem since. Roughly 21-29 percent of patients prescribed painkillers end up misusing them, and 4-6 percent of those transition to heroin. Not all of this misuse is intentional, some people simply forget when they took their pills or how many to take and end up hurting themselves by accident. Additionally, due to the addictive nature of the drugs and the chronic pain they seek to solve, many people take more than necessary due to a dependency on them. The U.S. Department of Health and Human Services has taken steps to help this crisis, but by and large, misuse of opioids is still a rapidly growing problem in the United States. Project Bedrock seeks to help solve some of these problems.

Our team was inspired by previous hackathon-built automated pill dispensers, but we wanted to take it a step further with a tamper-proof system. Our capsule is pressurized, so upon anyone breaking through to access their pills at the wrong time, a change in pressure is detected and emergency services are notified. Our convenient app allows for scheduling, dosages, and data analytics from the perspective of a health care administrator.


ABS Plastic

Acetone ABS Slurry - used as internal sealant

Silicone sealant - used for the cap and as a failsafe

Pnuematics: ball valves, pex pipe, 1/8 and 1/4 inch NPT pipe

Raspberry Pi 3

BMC180 Barometer

Standard Servo Motors

Overall, our hardware list is simple, and we worked to maximize functionality out of few components. Our system is modular, so parts can be replaced and repaired, rather than having to replace the entire unit.

What it does

Bedrock can be explained in two parts: the security system and the dispenser system.

The security:

The chassis is made of Acrylonitrile butadiene styrene (ABS) plastic. We chose ABS because of its high tensile strength and excellent resistance to physical impact and chemical corrosion. Its high durability rating makes it difficult to physically break into the system in the event that an addict wants access to their pills at the wrong time.

The main compartment kept at a pressure of 20PSI, compared to atmospheric pressure's 14.7 PSI. Inside the compartment is a barometric (pressure) sensor that constantly reads the internal pressure in the container. If a user were to attempt to break the dispenser to gain access to their pills, the sealed compartment would be exposed to atmospheric pressure and drop in pressure. Once the barometer detects this pressure drop, it would immediately contact emergency services to investigate the potential overdose so they can be treated as soon as possible.

The dispenser:

The dispenser can be timed with the interval a doctor sets based on the medication. To maintain the internal air pressure of the compartment, there is a two part dispenser to release a pill. There are two ball valves that can shut to be airtight. First, the innermost valve opens and releases a pill into a chamber. Then, that valve closes and the outermost valve opens. The pill is now accessible and the compartment has never lost any pressure throughout the process.

How we built it

We used a 3-D printer to make all ABS parts including the main enclosure and part of the release mechanism. We used an Acetone ABS slurry to seal the inside of the enclosure to make it airtight and ensure there is minimal fluctuation in pressure during the lifetime of the unit. Other than that, most parts are stock.

What's next for Bedrock

We hope to take Bedrock further on the software side and utilize IoT and wireless software to wirelessly control dosages and timing. Additionally we would like to utilize data analytics with user permission to see what proportions of people are taking their proper dosages at the right times, attempting to consume medication at incorrect time intervals, forget their medication, or attempt to break into their Bedrock device. With this data we would be able to communicate with the pharmaceutical industry and optimize concentrations of medicine for different people's memory periods. Through this, we can work with people's memory timing and patience to ensure proper consumption of potentially dangerous drugs.

Built With

Share this project: