Project tutorial
MeDuino: Smart Automatic Medicine Reminder

MeDuino: Smart Automatic Medicine Reminder © GPL3+

A smart gadget made with Arduino that makes sure you never miss your medicine or pills.

  • 2,337 views
  • 0 comments
  • 10 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
Or any board. I've used Arduino Pro mini 5v 16mHZ.
×1
Adafruit industries ada1536 image
Buzzer
×1
09590 01
LED (generic)
×1

Apps and online services

About this project

We all need to take medicine at some time. Also, we do need to look after our parents or elderly and giving medicine in time is the most Important task, specially when they are antibiotics. I decided to make one for my mother. I feel relieved that even when I'm not be around, as my automatic medicine reminder, MeDuino, will take care of her. Love you, mother!

Step 1: Parts You'll Need

  • Arduino Pro Mini - 5v 16mHz
  • Buzzer 330r/220 / 1k resistor
  • Vero board
  • Female pin
  • LEDs

Step 2: Principle

I have wanted to make this as simple as possible. So I didn't use any RTC module but I've used Arduino delay function to work.

24 hours = 24 * 60 minutes

= 24 * 60 * 60 seconds

= 24 * 60 * 60 * 1000 miliseconds (1sec = 1000mili second)

= 86400000 ms

After restarting the Arduino it waits for 24 hours and then keeps on buzzing. Change the delay as your requirement. It won't stop until you press the restart button, which means you have to get to your medicine box in order to stop the alarm. And after you press the button it'll alarm again after 24 hours.

Step 3:

The circuit diagram is too simple. Take a vero board (dot/line) and solder all the components on the board. It should look something like this (see picture).

I'll be powering by a 5v source.

Step 4: Code

Code:

Upload the following code onto the Arduino Pro Mini. To program the Arduino Pro Mini, you need to use a USB to TTL converter but you can also use your Arduino Uno as USB to TTL converter.

We don't have a USB programming option on Pro Mini. Use a USB to TTL converter or an Arduino Uno. We all have an Uno, right? So why waste money? Just remove the ATmega328P IC from the Uno using a screwdriver to lift it up.

Then connect the pins as following:

UNO -------- Pro mini

5v---------------vcc

Gnd------------Gnd

tx----------------tx

rx----------------rx

reset----------- rst

Then upload the code.

/* MediCinuino: Automatic Medicine reminder.
 *  By Ashraf Minhaj  www.ashrafminhajfb.blogspot.com 
*  For any query mail at ashraf_minhaj@yahoo.com *   
*  Use this and you'll never miss your medicine. *   
*  This is made for my Mother - Sahida Rahman. 
*  I LOVE YOU MOM. */
const int blue = 3;     // Connect BLUE LED to pin 3
int buz = 2;            // Buzzer on pin 2
void setup() 
{   
// initialize the LED & Buzzer pin as Output:     
pinMode(blue, OUTPUT);  
pinMode(buz,OUTPUT);
}
void loop() 
{    
tone(buz,1000,100); //Beep for 1 second- Starting Sound  
delay(86400000);   /*delay 24 hrs. untill next period to take med.                           * 24hr * 300s * 1000ms */  
goto buz;         //going to buz: goto Statement
  buz:  
{    
digitalWrite(blue, HIGH);  //Blue led on    
delay(100);    
digitalWrite(blue,LOW);  //LEd off --thus BLINK    
delay(100);    
tone(buz,1000,150); //Start beeping    
delay(1000);    
goto buz;    
/*going again to buz: so that the Code runs      
untill you come near the      
Medicine Box and Push the reset switch*/    
}               
}

Step 5: Finish

Now attach the MeDuino on medicine box and power it up. Further updates can be made.

Thank you. Happy making!

Code

MEduino_Code.cC/C++
/* MediCinuino: Automatic Medicine reminder.
 *  By Ashraf Minhaj www.ashrafminhajfb.blogspot.com
 *  For any query mail at ashraf_minhaj@yahoo.com
 *  
 *  Use this and you'll never miss your medicine.
 *  
 *  This is made for my Mother - Sahida Rahman.
 *  I LOVE YOU MOM.
 */

const int blue = 3;     // Connect BLUE LED to pin 3
int buz = 2;            // Buzzer on pin 2

void setup() 
{
   // initialize the LED & Buzzer pin as Output:
   
  pinMode(blue, OUTPUT);
  pinMode(buz,OUTPUT);
}

void loop() 
{
  
  tone(buz,1000,100); //Beep for 1 second- Starting Sound
  delay(86400000);   /*delay 24 hrs. untill next period to take med.
                      * 24hr * 300s * 1000ms */
  goto buz;         //going to buz: goto Statement

  buz:
  {
    digitalWrite(blue, HIGH);  //Blue led on
    delay(100);
    digitalWrite(blue,LOW);  //LEd off --thus BLINK
    delay(100);
    tone(buz,1000,150); //Start beeping
    delay(1000);
    goto buz;
    /*going again to buz: so that the Code runs 
     untill you come near the 
     Medicine Box and Push the reset switch*/
    }        
     
  
}

Schematics

Comments

Similar projects you might like

DIY Smart Cane Using Arduino

Project tutorial by suhail jr

  • 9,871 views
  • 1 comment
  • 12 respects

Gesture / Motion Controlled Automatic Appliances

Project tutorial by ashraf_minhaj

  • 1,127 views
  • 0 comments
  • 9 respects

Automatic Pet Water Chiller

Project tutorial by Mitomon

  • 966 views
  • 0 comments
  • 7 respects

How to make Arduino based Automatic Door Opening

Project tutorial by vijendra kumar

  • 19,832 views
  • 6 comments
  • 15 respects

Octopod: Smart IoT Home/Industry Automation Project

Project tutorial by Saksham Bhutani

  • 7,019 views
  • 8 comments
  • 30 respects

Automatic Brightness Sensor

Project showcase by Achraf Oukheir

  • 2,524 views
  • 1 comment
  • 8 respects
Add projectSign up / Login