- Home >> Technical Service >> Bluetooth
Medication reminder bracelet design
Design of Medication Reminder Bracelet Based on RFID and Bluetooth Technology
With the development of society and the progress of national medical undertakings, people's requirements for health are increasing, and more and more attention has been paid to taking medicine according to doctor's orders. In daily life, many patients who take care of themselves semi-independently, because of the wrong medication, the condition worsens, or the delay of medication time leads to the failure of the efficacy of the medication. Therefore, rational drug use and timely drug use have become the focus of attention of special groups such as the elderly. If this design-medication reminder bracelet is adopted, it does not need to be as complicated as an Android phone, nor does it need to import drug data, and all information can be synchronized with the hospital server, so that patients can take drugs on time to ensure that the drugs are fully effective.
The promotion and use of medication reminder wristbands can facilitate the contact between hospitals and patients, and supervise patients who need to take periodic medication on time. At the same time, it can also increase people's attention to physical health. This paper proposes the design of a medication reminder bracelet based on RFID and Bluetooth technology. The handheld terminal can scan and identify the label of the medicine prescribed by the doctor, and transmit it to the bracelet terminal through Bluetooth technology; the bracelet terminal is combined with the hospital server. The update of the information storage is judged, and the patient independently chooses to set the medication time through the display screen, and then realizes the medication reminder.
This design can meet the dual needs of checking the time and reminding medication information of the bracelet, and is easy to use, easy to operate, universal and efficient.
1. Medication reminder wristband system structure design
1.1 Overall structure
For some special populations such as the elderly, taking into account their inconvenient use of mobile phones and other factors, a medication reminder bracelet based on RFID and Bluetooth technology was designed. This design uses STC89C51 single-chip microcomputer as the platform, and consists of three parts: handheld terminal, bracelet terminal and hospital server connection terminal. Among them, the handheld terminal uses Bluetooth technology and RFID reader to scan and read the drug information; the bracelet terminal receives the information sent by the Bluetooth module, and the analog bracelet is composed of a DS1320 chip, a buzzer module, a button module setting and an OLDE display module; The server side realizes the update of the medication information in real time through the medication information storage part, and the updated information is transmitted to the medication management module to realize the information acquisition function of the bracelet.
1.2 Hardware structure design
This design takes the STC89C52RC single-chip microcomputer chip as the core, transmits the drug data information obtained by the RFID reader through the Bluetooth module; obtains the specific instructions for taking the drug through the connection between the drug management system and the hospital server; Take real-time time and set the timing; use the buzzer and OLED display to remind the medication and give specific medication instructions. There are multiple modules in this design, and the functions of different modules are combined and closely connected to realize functions such as data processing and display alarm. The wristband design provides a single-chip microcomputer control core module, a Bluetooth module, a buzzer module, a clock module, and an OLED display module.
2. Part of the hardware design of the wristband
In the hardware design, this paper mainly selects the main hardware of the medication reminder wristband to introduce, and introduces in detail the model selection of the module, how to connect and communicate with the single-chip microcomputer, and the advantages of the selected module.
2.1 Bluetooth module design
The Bluetooth communication module is the channel for exchanging information between drug label scanning information and the bracelet terminal. The Bluetooth module used in this design needs to be connected to the single-chip microcomputer of the handheld terminal and the single-chip microcomputer of the bracelet terminal in serial port mode. The selected bluetooth module is HC-06 bluetooth serial port slave module, there are four pins on the module: VCC, GND, TXD and RXD. The CSR bluetooth chip is the chip used by the HC-06 bluetooth serial port slave module, the power supply voltage is 3.3V, and the effective transmission distance is 10 meters. It can realize synchronous transmission of voice and data, and has good anti-interference performance and low cost.
2.2 Clock module design
This design uses the DS1302 chip to realize the timing function of the wristband, which provides accurate time information, and the patient can set the time independently according to the suggestion of the most suitable medication time, so as to ensure that the medication can be accurately reminded. The DS1302 chip is connected with the STC89C51 microcontroller through the I/O, SCLK, and RST control lines. Realize the wristband clock information, timing and reminding, manual selection and setting of the time to be set, the single-chip system real-time comparison with the DS1302 chip time, when the timing time is up, the I/O port of the single-chip microcomputer controls the switch of the relay.
2.3 Buzzer alarm module design
In this design, an active buzzer module is used, which is triggered by low level, and the working voltage is 3.3V-5V. Play two functions: (1) The buzzer sounds after the button is pressed, simulating the button sound; (2) Timing alarm function, when the time set by the clock module arrives, the buzzer pin passes through the monitoring relay switch , A low level is detected to ring the alarm.
2.4 Design of wristband display module
The display module of the wristband adopts QG-2864KLBEG01 module, and the light-emitting unit of the display screen is an organic polymer light-emitting diode, namely organic/polymer light emitting diode, OLED for short. A pixel of a monochrome screen is a light-emitting diode. OLED is "self-luminous", and the pixel itself is the light source, so the contrast is extremely high and the display effect is very sharp. The display color of this module is 1/4 yellow + 3/4 blue, but it is still a monochrome screen, and there is another "blue + white" combination color optional. The module interface is 8 pins, the pin definition has been printed on the board, and the serial SPI protocol is used. Because of the onboard voltage regulator chip U2, the power supply voltage of the module can be 3-5V. The module comes with a Chinese font library chip.
3. Medication reminder bracelet system software design
The software design of the medication reminder wristband is divided into the program design of the handheld terminal single-chip microcomputer and the software design of the update part of the connection between the medication management module and the hospital server. First, the program is designed and the most basic application modules are programmed. These modules are debugged. After the functions are realized, they are used to develop the module system of the upper layer.
3.1 General flow chart of the program
The handheld terminal for medication reminder scans the RFID label of the drug, and processes the scanned data through the 51 single-chip microcomputer. The system detects whether the Bluetooth module is connected. After detecting the connection, the collected information is extracted and sent to the bracelet terminal through the Bluetooth module.
After obtaining the drug information, the bracelet is connected to the medication management module. When it detects that the patient’s medication-related data has been updated in the hospital server, the information is extracted, and the recommended medication time is displayed on the LCD12864 display screen by using an analog IIC communication method. Choose the medication time, and use the DS1302 chip to memorize the timing, and then realize the medication reminder function.
3.2 RFID reader tag scanning information
RFID (Radio Frequency Identification) is a kind of short-range tag identification technology. The reader can receive and send radio frequency signals to read and write electronic tags. Active RFID tags are used in this design, and ID signals are sent periodically. The reader can directly obtain the information of the RFID tags and send the information to the 51 single-chip microcomputer connected with the RFID.
3.3 Acquisition of Medication Management Module Information
The medication management module is the logical analysis and judgment part of the whole system, which reads the information sent by the Bluetooth module, analyzes and judges with the information of the hospital server through the method of pointer acquisition, and displays the judgment results to realize the function of obtaining the patient's medication information. The medication management module of this system can realize the function of real-time monitoring of user medication information, and send corresponding information to the hospital server to record the medication that should be taken on a certain day.
Summarize
This paper combines the RFID reader identification tag technology, Bluetooth communication technology and the medication module management system connected to the hospital server to design a medication reminder bracelet management system for the elderly, blind and other special groups. This design breaks through the complexity of the traditional Android mobile phone reminder system, and is easy to operate. It realizes semi-automatic medication reminder. During use, the patient only needs to manually select the medication time period according to the medication suggestion, and other functions can be automatically completed by the system program. In addition, this system uses a handheld terminal and a bracelet as a carrier. When using it, you only need to wear the bracelet on your wrist without special carrying methods, and the DS1302 chip in the bracelet can realize the function of a watch, eliminating the need for heavy and complicated device models. .
The above are the details of the single-chip microcomputer technology introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. We have rich experience in customized development of smart electronic products, can evaluate the development cycle and IC price as soon as possible, and can also calculate the PCBA quotation. We are the agent of Sonix MCU and Yingguang MCU agent, selling and developing MCU and voice IC solutions of Sonix and Yingguang. We act as an agent and develop ICs and solutions for Jieli, Ankai, Allwinner, Realtek, etc., and also develop BLE Bluetooth ICs, dual-mode Bluetooth modules, wifi modules, and IoT modules. We have hardware design and software development capabilities. Covering circuit design, PCB design, single-chip microcomputer development, software custom development, APP custom development, WeChat official account development, voice recognition technology, Bluetooth development, wifi technology, etc. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the research and development of electronic education products.
- TOP