IoT Based Medicine Dispenser

Download Full-Text PDF Cite this Publication

Text Only Version

IoT Based Medicine Dispenser

Aditya Patil 1, Darshan B.G.2, Dr. D.V. Ashoka3, Nethravathi B4

Department of Information Science and Engineering, J S S Academy of Technical Education, Bangalore.

Abstract The Medicine Dispenser is a machine which dispenses the medicine based on the authentication of the user by using the user name and the password given to the user by the administrator of the machine. This machine will dispense medicine according to the user prescription provided by the users doctor and also the number of medicine is also determined by the userschoice.

In this medicine dispenser the money is handled through the digital points stored in the users card which is given by the administrator and also user can restore the points by taking to the administrator of the card and use his identification to add the digital points to the card.

The main goal of the dispensing machine is to provide the medicine to the users 27/7 so it can help the village people Who are for away from the hospital or the clinic to buy the medicine and also it can be installed like a ATM machine so it is easy to use by the people even though if they cannot read and write.

The medicine can be replaced by the admistrater of the machine by time to time based on the expiration date or is it is empty the machine will alarm the administrator to refill the machine through SMS or telecom messenger.

Keywords: Internet of Things (IoT), RFID (Radio frequency identification), Arduino Mega, Nodemcu.

  1. INTRODUCTION

    The medicine dispensing machine is using the care card which is used to store the data of the users like there user name, password, prescription of the user etc. So here we are using RFID tag which is used for the identification of the user and this RFID tag uses radio frequency identification devices for identification and tracking of the user records like login and the amount and the medicine taken by the user to store it as a reference in the future. The RFID tag system includes the tag itself, a read/write device, and a host system application for data collection, processing, and transmission.

    The medicine dispenses uses Arduino mega as a main system controller to attach all the module to perform their respective function and also for the machine we require more pins so the controller we selected is Arduino mega . To this controller mainly there are 4 module connected to it there are keypad, nodemcu, LCD display, repeaters.

    The medicine plays an important role in everyday life so the Medicine dispenser also help in the rural village where there is no hospital or clinic there we can install these medicine dispenser so it can help the people and since it is simple to use there will be no problem in teaching to the people who are

    illiterate and also there are security measure so that the user can not obtain more than the medicine needed to then that of prescribed by the doctor so there will be no harm to the user the LCD module will let the user to see all the prescription that has given to the user these numbers can be entered with the keypad located in the system .

  2. RELATED WORK

    Some related work for this medicine is dispenser is that it can be easy to install in a place such as there is no medical facility to provide the people with a medicine. The security and the money for the medicine is done through the care card received by the authorization of the machine so only the given person can collect the medicine. The amount given to the people is updated as the digital money and the balance is sent to the user mobile to keep the money in track.

    The process for the dispenser is controlled by the Arduino mega controller and this device is given a powder convert to convert the current to 5.5v for the controller. Due to the physical and financial limitations in establishing a medical store at remote areas is very important, this machine hasbeen designed to be a standalone unit, requiring minimum supervision to operate for long periods of time.

  3. PROBLEM STATEMENT

    To design and develop a dispensing machine which uses RFID tag as an authorization card and display the user data with prescription. The system that will send notification to the administrator if the medicine is needed to be refilled.

  4. PROPOSED SOLUTION:

    RFID tag system with a Arduino mega board that uses LCD, nodemcu, RFID and Wi-Fi Module. Embedded system which will provide all the function needed to fulfill the goal to creating the medicine dispenser.

  5. DESIGN ANDMETHODOLOGY

    The users will first insert the health care card in this case the RFID tag into the system. The system will scan the card using RFID reader through radio identification and displays user name and ask for the password for the further continue. Then the system will read the card data and display the prescription and will ask for users input. The users has to select the prescribed medicine from the medicine displayed on the LCD and also has to select the number of medicine required. Once the input has been taken the system will check the number of tablet is present or not. If it does, system will check the users balance and will dispense the medicine and if the user does not have required amount it will display a message stating insufficient balance and ask the user to recharge the card.

    • User Authentication:In this process the user authentication is done by scanning the RFID tag with the RFID reader of the system and entering the password given to the user if the password is correct then the authentication is complete if not the machine will tell user to check the password.

    • Medicine Dispensing: If the authentication is complete then the user may select the medicine required and also the number of medicine required for the machine to dispense.

    • Database Updating: After the pill has been dispensed the database of the users digital points and the number of pill stock in the database will be updated.

    • Inventory Control: Controlling the number of pills present is critical to functioning of machine. If the medicine gets over, the system will send notification to refill it.

      A flowchart is a type of diagram that represents an algorithm, workflow or process. Flowchart can also be defined as a diagrammatic representation of an algorithm (step by step approach to solve a task). At first the health care which is RFID card needs to be scanned. Then the system will ask the user to enter the password. If the user is authenticated, then the system will display the prescription of that user i.e. the list of medicines. The use has to select the medicine fron the list of medicine displayed and has to select the number of medicine required for the user then the medicine is dispensed if the medicine is less than the message is showed to the user the medicine is not available

      and the message is sent to the administrator. After that the database of the user digital points is updated and the balance message is sent to theuser.

      Figure 1. Flowchart of the ATM system

  6. SOFTWARE COMPONENTS

    • Embedded C

    • Arduino Software – The Arduino integrated development environment (IDE) (figure 4.4.1) is a cross-platform application for Windows, macOS, Linux that is written in the programming language Java. It is used to write and upload programs to Arduino compatible boards, but also, with the help of 3rd party cores, other vendor development boards. The Arduino IDE supports the languages C and C++ using special rules of codestructuring.

    Figur.2. Block diagram of the Arduino software.

  7. IMPLEMETATION

    The steps involved in assembling all the devices and implementing the project:

    Step 1: Configuring the Programmable Devices

    The module we are using are the Arduino mega as the main controller module and this is connected by LCD display for the user interaction, keypad for entering the user requirements relay which is used for depending the medicine the message is sent by using Nodemcu module by using telegram to the authority of the system RFID reader is to read the care card to give the authentication to the user.

    Step 2: Setting up code in Arduino Mega:

    The RFID module code should be dumped to the Arduino Mega board which is installed in the patient section.

    Step 3: Integrating the hardwaremodules

    Arduino Mega should be connected to all the module like RFID reader, Wi-Fi module, LCD and relay.

    Step 4: Connecting the NodeMcu module

    The message is sent through using the Nodemcu module which is connected to the mega module.

    Step 5: Powering up all the devices

    In this system it is connected to the power supply and also voltage converter which convert the voltage to 5v-2.5v power supply. By using this power supply the system can work without any problem.

    Figure34 Assembly of all components

    PSEUDO CODE:

    1. Start

    2. Initialization of LCD, Wi-Fi module, Nodemcu, Relay, RFID Reader

    3. Define CARD, PHONE_NUMBER, TABLET, BALANCE

    4. Store Prescription

    5. Initial Display

  8. SYSTEM ARCHITECTURE

    Figure.4. Block diagram of the model

    1. The system has microcontroller Arduino mega which is an 8-bit RISK microcontroller board which controls the functionality of all the component in the system. The system relates to the hardware components like RFID module, Keypad module, LCD module, Nodemcu module, Wi-Fi module and Dispense system which is used to dispense the medicine.

    2. As we can see in the figure 5 the block diagram shows all the modules connected to the main controller by which we can see the overall view of the system this conceptual model is used as a base to construct the main system.

    1. ADVANTAGES

      • It is very much portable that it can be installed in very less area.

      • No Individual person needed for maintenance.

      • Easy to use and Provides 24/7 medicinefacility.

      • Since online transaction involved no fear ofrobbery.

      • The dispenser will dispense the medicine automatically for that disease.

      • The message system is automatic so the refill of the system message is directly sent to the care taker of the system.

    2. DISADVANTAGES

      • This system will not work without the power supply since some rural areas has less time ofelectricity.

      • Intelligent medical dispenser will only deliver tablets but no sirup or liquid medicines.

      • The system cannot dispense more than one medicine at the given time.

    3. CONCLUSION

      The medical dispenser offers a flexible and simple solution for extending basic healthcare to all places including remote places, at a very less cost. The machine will dispense prescribed medicine. The machine adds an intelligent medicine unit, which sends a refill notification message to the authorization the system given to the person to refill the medicine pills. The medical dispenser is technically feasible to all the peoples. The system also provides the required user authentication for the user by using RFID tag and the RFID reader.

    4. REFERENCES

  1. Bhagya Shree S R, Chandra Shekar P, Automated Medication Dispensing System, 2015 IEEE.

  2. Rekha B and D.V. Ashoka, SRHM: Sustainable routing for heterogeneous Adhoc environment in iot-based mobile communication, COMPUSOFT, An international journal of advanced computer technology, 8(1),January-2019 (Volume-VIII,

    Issue-I), pp- 3003-3010

  3. Sanjay B Ankali and D.V. Ashoka , Detection Architecture of Application Layer DDoS Attack for Internet, Int. J. Advanced Networking and Applications Volume: 03, Issue: 01, Pages:984- 990 (2011)

  4. KahtanAziz , Real-Time Healthcare Monitoring and Tracking System using GSM/GPS Technologies, August 2016 IEEE.

  5. Mahaveer Penna, Design and Implementation of Automatic Medicine Dispensing machine, May 2017 IEEE.

  6. R. Chetan and D. V. Ashoka, "Data mining based network intrusion detection system: A database centric approach," 2012 International Conference on Computer Communication and Informatics, Coimbatore, 2012, pp. 1-6, doi: 10.1109/ICCCI.2012.6158816.

  7. Vishal Tank, Sushmita Warrier, Medicine Dispensing Machine Using Raspberry Pi and Arduino Controller , March 2017 IEEE.

  8. Montaser N. Ramadan, Mohammad A. AI-Khedher and Sharaf A. Al-KhederIntelligent Anti-Theft and Tracking System for Automobiles. International Journal ofMachine Learning and Computing, Vol. 2, No. 1. November 2012.

  9. Survey paper on Radio Frequency Identication(RFID) Trends Christoph Jechlitschek, (christoph.jechlitschek@gmx.de).

  10. Luciano Boquete, J.M. R.-A., Irene Artacho, Joaquin

Cantos- Frontela, Nathalia Peixoto (2010). Dynamically programmable electronic pill dispenser system. Journal of Medical Systems 34(3): 357-366.

  1. HongLei Che, C. Y., and JiYuan Zang (2011). Design and Implement on Automatic Pharmacy System. International Conference, CSEE 2011, Wuhan, China

  2. Kim, Moon-Ki; A Case Study on Practical Engineering Education: Medicine Vending Machine, Journal of Practical Engineering Education, Volume 6, Issue 1, 2014, pp.9-14

  3. Publisher: Korean Institute for Pratical Engineering Education.

  4. Prof R. Brian Haynes, K Ann McKibbon, Ronak Kanani Systematic review of randomised trials of interventions to assist patients to follow prescriptions for medications, THE LANCET,Volume 348, Issue 9024, 10 August 1996, Pages 383- 386

  5. S. Jagannatha, M. Niranjanamurthy, and P. Dayananda, Algorithm Approach: Modelling and Performance Analysis of Software System , Journal of Computational and Theoretical Nanoscience (American Scientific publishers), December 2018, Volume 15, Issue 15, PP. 33893397.

  6. de Beer R., Keijers R., Shahid S., Al Mahmud A., Mubin

    O. (2010) PMD: Designing a Portable Medicine Dispenser for Persons Suffering from Alzheimers Disease. In: Miesenberger K., Klaus J., Zagler W., Karshmer A. (eds) Computers Helping People with Special Needs. ICCHP 2010. Lecture Notes in Computer Science, vol 6179. Springer, Berlin, Heidelberg.

  7. Isabel Laranjo, Joaquim Macedo, Alexandre Santos Internet of Things for Medication Control: Service Implementation and Testing Procedia Technology, Volume 5, 2012, Pages 777- 786.

Leave a Reply

Your email address will not be published. Required fields are marked *