Jump to main content

Smart Medicine Cabinet: Build a Sensor That Reminds Patients When to Take Medication

302 reviews


Areas of Science
Time Required
Short (2-5 days)
Material Availability
If you decide to extend the sensor project, you will have to purchase a microcontroller board and LEDs.
Average ($50 - $100)
Always wear safety goggles when operating and using tools. Adult supervision is recommended.

Michelle Maranowski, PhD, Science Buddies

This science project is based upon the following Clever Scientist award-winning project: Balasingam, Arjun. (2010). Smart Medicine Cabinet: Using Homemade Sensors, a Microcontroller, and a Laptop to Help Patients Take Their Medicines on Time.

*Note: For this science project you will need to develop your own experimental procedure. Use the information in the summary tab as a starting place. If you would like to discuss your ideas or need help troubleshooting, use the Ask An Expert forum. Our Experts won't do the work for you, but they will make suggestions and offer guidance if you come to them with specific questions.

If you want a Project Idea with full instructions, please pick one without an asterisk (*) at the end of the title.


Have you ever had to take prescription medicine to get over an illness? To get better, it is important to take the medication in the proper manner and at the proper time. Wouldn't it be cool if there were a tool or piece of automated equipment that held your medicine and reminded you to take it? A tool that would know when you picked up the bottle and took your medicine? Building a smart medicine cabinet is what this science project is all about!


Making a new tool can be a daunting experience, but if you think about it in pieces, it becomes more manageable. For example, the medicine cabinet should contain some kind of sensor that senses when the medicine bottle has been picked up. It should have a microcontroller that monitors the "pickups," and a computer that takes input from the microcontroller and issues information and alerts.

This science project can be as simple or as involved as you'd like it to be. You could simply demonstrate a sensor that registers when a medicine bottle has been placed on it. Or add to the sensor by attaching a microcontroller that interfaces with a computer—Science Buddies How to Use an Arduino would be a good guide. Then you could write a computer program that displays instructions to the user to remind him or her of the medication schedule. An interface would allow the user to input the medication schedule and signal to the user that it is time to take a medication. Finally, you could add LEDs (light emitting diodes) that act as indicators to the user.

Regardless of how complex you decide to make this science project, the first step is to build an electrical sensor that senses when a medicine bottle has been picked up or placed on it. This sensor should be based on a voltage divider. A voltage divider is a circuit that is used to supply a voltage that is different than the available battery or power supply. Figure 1, below, shows the sensor circuit in two modes. The red squares are conductive metal pads. Figure 1.a. shows the sensor when there is no bottle in place. Here, since there is no connection between the metal pads, current moves through the two resistors (the voltage divider). Figure 1.b. shows the sensor when a bottle is in place. In this case, the bottle bridges the gap and current flow is through the metal pads and the lesser of the two resistors. If you decide to stop with building the electrical sensor, then you will need a digital multimeter to monitor the voltage change (if you need help using a multimeter, check out the Science Buddies resource How to Use a Multimeter).

Diagram of a voltage divider used as a sensor

This magnetic sensor has 2 charged plates seperated by a small gap and connected with a high resistor. When an object, like a pill bottle, is placed on the sensor it bridges the gap between the plates and allows current to flow through so the sensor can know that an object is present. When there is no object to bridge the gap between plates the current has to travel through the resistor and that voltage drop will let the sensor know that there is no object present.

Figure 1. These diagrams illustrate one way the smart medicine cabinet sensors could function. (1.a.) The sensor without the bottle. (1.b.) The sensor with the bottle. (Courtesy of Arjun Balasingam and Wen Phan, 2010.)

If you would like to extend the science project with a microcontroller board, you can learn more about the Arduino Uno, a popular microcontroller, on the Science Buddies How to Use an Arduino page. The tutorial will step you through how to buy and set up an Arduino.

Building a smart medicine cabinet might sound complicated, but remember, every big project can be broken down into smaller more manageable pieces! And this is a project that could certainly be a big help to you or to anyone you know who is taking medication.


If you need clarification on electronics terminology, take a look at Science Buddies' electronics primer. The following is a link to the Introduction. At the bottom of the Introduction are links to other helpful pages.

icon scientific method

Ask an Expert

Do you have specific questions about your science project? Our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.


If you like this project, you might enjoy exploring these related careers:

Career Profile
Just as a potter forms clay, or a steel worker molds molten steel, electrical and electronics engineers gather and shape electricity and use it to make products that transmit power or transmit information. Electrical and electronics engineers may specialize in one of the millions of products that make or use electricity, like cell phones, electric motors, microwaves, medical instruments, airline navigation system, or handheld games. Read more
Career Profile
Whether you are playing video games, surfing the Internet, or writing a term paper, computers are an integral part of our daily lives. Computer hardware engineers work to make computers faster, more robust, and more cost-effective. They design the microprocessor chips that make your computer function, along with the equipment that makes computing easy and fun to do. Read more
Career Profile
Are you interested in developing cool video game software for computers? Would you like to learn how to make software run faster and more reliably on different kinds of computers and operating systems? Do you like to apply your computer science skills to solve problems? If so, then you might be interested in the career of a computer software engineer. Read more
Career Profile
Computers are essential tools in the modern world, handling everything from traffic control, car welding, movie animation, shipping, aircraft design, and social networking to book publishing, business management, music mixing, health care, agriculture, and online shopping. Computer programmers are the people who write the instructions that tell computers what to do. Read more

News Feed on This Topic

, ,

Cite This Page

General citation information is provided here. Be sure to check the formatting, including capitalization, for the method you are using and update your citation, as needed.

MLA Style

Science Buddies Staff. "Smart Medicine Cabinet: Build a Sensor That Reminds Patients When to Take Medication." Science Buddies, 6 Jan. 2023, https://www.sciencebuddies.org/science-fair-projects/project-ideas/Elec_p067/electricity-electronics/smart-medicine-cabinet-build-sensor-reminds-patients-when-to-take-medication. Accessed 5 June 2023.

APA Style

Science Buddies Staff. (2023, January 6). Smart Medicine Cabinet: Build a Sensor That Reminds Patients When to Take Medication. Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/Elec_p067/electricity-electronics/smart-medicine-cabinet-build-sensor-reminds-patients-when-to-take-medication

Last edit date: 2023-01-06
Free science fair projects.