Intelligent household medicine box and control method thereof
By designing an intelligent home medicine box and using an enhanced Arduino microcontroller control system to realize automatic reminder and monitoring functions, the problem of existing medicine boxes being difficult to ensure that users take medication on time is solved, and the standardization and safety of drug use are improved.
Patent Information
- Application Number
- CN202110293302.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-19
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2041-03-19
AI Technical Summary
It is difficult to effectively remind users to take medication on time and dosage, especially for forgetful elderly people, patients who need to take medication for a long time, and adults who are busy with work, it is difficult to ensure that they take medication on time.
A smart home medicine box was designed, using an enhanced Arduino microcontroller control system, including a stepper motor, suction pump, OLED display, voice module and Bluetooth module, through these components, automatic reminder, timed medication and monitoring functions are realized.
It realizes that users are automatically reminded to take medicine within the specified time to ensure that the medicine is used on time and in accordance with the dosage, reducing the risk of forgetting to take medicine, and solving the problem of not taking medicine on time through the guardian's text message reminder.
Smart Images

Figure CN112972252B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of medical technology, in particular to an intelligent household medicine box. Background Art
[0002] For those forgetful elderly people, patients who need to take medicine for a long time, patients who need to be hospitalized, and adults with busy work, it is difficult to ensure that they can clearly remember the information and medication time of different medicines and ensure that they take the medicine on time. How to remind the above people to take medicine on time and in the right amount in time is a difficult problem. Summary of the invention
[0003] In view of the above problems, the present invention designs an intelligent medicine box based on an enhanced Arduino single-chip microcomputer.
[0004] The technical solution adopted by the present invention is as follows:
[0005] A smart household medicine box comprises a medicine dispensing bin and a medicine storage box. The inner center of an outer shell is provided with a medicine storage box, which is circular and evenly divided into eight partitions, namely, box cavity one, box cavity two, box cavity three, box cavity four, box cavity five, box cavity six, box cavity seven and box cavity eight. The bottom of each partition is connected to the lower box cavity. A stepper motor bin is provided in the inner middle of the medicine storage box. A medicine suction slide is installed in front of the medicine box. A stepper motor is provided in the stepper motor bin. The output shaft of the stepper motor passes through a turntable motor cover. The turntable motor cover is on the upper part of the stepper motor. The turntable motor cover is fixedly connected to the upper part of the stepper motor bin. The upper part of the turntable motor cover is a limit turntable, which is fixedly connected to the output shaft of the stepper motor. The upper part of the limit turntable is a turntable top cover. The medicine dispensing bin comprises a medicine dispensing bin door, a medicine dispensing bin door shaft, a medicine dispensing bin wall and a medicine bin partition. The bottom of the medicine outlet bin door is the medicine outlet bin door shaft, which is rotatably connected to the medicine outlet bin wall. The medicine outlet bin door shaft is close to one side of the medicine outlet bin wall. The middle of the medicine outlet bin wall is provided with a medicine bin partition. One end of the three medicine bin partitions are connected to the medicine outlet bin door shaft, and the angle between two adjacent medicine bin partitions is 120 degrees. A control circuit of an intelligent household medicine box comprises a control chip and a Bluetooth module, wherein RX and TX pins of the Bluetooth module are connected to D0 and D1 pins of the control chip, DIR and PUL pins driven by a stepper motor are connected to D4 and D5 pins of the control chip, a servo responsible for an emergency medicine outlet is connected to D10 pin of the control chip, a servo responsible for the medicine outlet is connected to D11 pin of the control chip, an OLED display is connected to D20 and D21 pins of the control chip, a suction pump motor drive module is connected to D12, D22 and D23 pins of the control chip, RST, DAT and CLK pins of a clock module are respectively connected to D22, D23 and D24 pins of the control chip, and RX and TX pins of a voice module are connected to D44 and D45 pins of the control chip.
[0006] A control method for a control circuit of an intelligent household medicine box comprises the following steps:
[0007] Step 1: The user inputs the time type for taking medicine: set the time to remind the patient to take medicine according to the patient's needs, put different medicines or the same medicines in the eight compartments, that is, put different medicines or the same medicines in the box cavity 1, box cavity 2, box cavity 3, box cavity 4, box cavity 5, box cavity 6, box cavity 7, and box cavity 8 respectively, and set the number of medicines to be taken from the eight lower box cavities in turn each time; Step 2: The medicine storage box is on standby;
[0008] Step 3: Include the following steps:
[0009] a. When it is time to take medicine, the stepper motor rotates, and the output shaft of the stepper motor drives the medicine storage box to rotate, and the lower box cavity where the medicine to be taken is located is rotated to the lower part of the suction pump, and the suction pump extends to suck the medicine, and the suction pump retracts, and the stepper motor rotates 20 degrees, and the suction pump stops working, and the medicine will fall into the medicine outlet bin 1;
[0010] b. Then rotate the output shaft of the stepper motor 54 to drive the medicine storage box 4 to rotate, and rotate the lower box cavity where the medicine to be taken is rotated to the lower part of the suction pump, and the suction pump extends to suck the medicine, and the suction pump shrinks, and the stepper motor rotates 20 degrees, and the suction pump stops working, and the medicine will fall into the medicine storage chamber 1;
[0011] c. Repeat steps a and b above until all the medicine is taken;
[0012] Step 4: Determine whether all the medicines to be taken out have been taken out. If not, proceed to step 3. If all the medicines have been taken out, proceed to step 5. Step 5: The buzzer of the medicine storage box 4 sounds to remind the patient to take the medicines.
[0013] Step 6: If the patient does not take the medicine within the specified time after waking up, send a text message to the guardian's mobile phone to remind him to take the medicine.
[0014] A control method for a control circuit of an intelligent household medicine box comprises the following steps:
[0015] Step 1: Put the tablets into the medicine outlet bin 1 in advance;
[0016] Step 2: Medicine box standby;
[0017] Step 3: The emergency medicine button is pressed;
[0018] Step 4: The pills in the emergency medicine box pop out;
[0019] Step 5: The medicine box rings and sends a message to the guardian;
[0020] Step 6: Determine whether the pill has been taken away within two minutes. If so, proceed to step 2; if not, proceed to step 7.
[0021] Step 7: Dial the guardian for reminder.
[0022] Beneficial effects of the present invention: The medicine box is provided with a detection unit to detect whether the user has taken the medicine on time within the prescribed time. When it is detected that the user has taken the medicine on time, the display unit will prompt the user that the medicine has been taken, so as to avoid repeated medication. Through the display unit, the user can easily obtain information such as the current medication situation, medication time and medication information. Now most families have a small medicine box, but this medicine box basically only stores medicines and lacks monitoring of the storage environment and necessary reminders. Moreover, it may be used improperly, which is a hidden danger for families with children. The present invention provides an intelligent household medicine box that can realize functions such as automatic door closing, timed reminders and monitoring of the storage environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a structural schematic diagram of the present invention.
[0024] Figure 2 yes Figure 1 Schematic diagram of the explosion structure.
[0025] Figure 3 It is a schematic diagram of the structural decomposition of the stepping motor compartment part of the present invention.
[0026] Figure 4 It is a structural schematic diagram of the medicine storage box part of the present invention.
[0027] Figure 5 It is a schematic diagram of the structure of the medicine discharging bin of the present invention in a partially closed state.
[0028] Figure 6 It is a schematic structural diagram of a partially opened state of the medicine discharging bin of the present invention.
[0029] Figure 7 yes Figure 6 Partial cross-sectional view.
[0030] Figure 8 It is a schematic diagram of the circuit structure of the present invention.
[0031] Fig. 9 It is a control flow chart of the first embodiment of the present invention.
[0032] Fig.10 It is a control flow chart of the second embodiment of the present invention.
[0033] In the figure: 1, medicine outlet bin, 11, medicine outlet bin door, 12, medicine outlet bin door shaft, 13, medicine outlet bin wall, 14, medicine bin partition, 15, medicine bin partition shaft, 16, pills, 2, operation panel, 3, medicine suction slide, 4, medicine storage box, 41, box cavity one, 42, box cavity two, 43, box cavity three, 44, box cavity four, 45, box cavity five, 46, box cavity six, 47, box cavity seven, 48, box cavity eight, 443, lower box cavity three, 444, lower box cavity four, 445, lower box cavity five, 446, lower box cavity six, 447, lower box cavity seven, 6, indication panel, 7, shell, 5, stepper motor bin, 51, turntable top cover, 52, limit turntable, 53, turntable motor cover, 54, stepper motor. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] See also Figure 1-10 , the present invention provides a technical solution:
[0036] A smart household medicine box, comprising a medicine outlet bin 1 and a medicine storage box 4; a medicine storage box 4 is provided at the inner center of a shell 7, the medicine storage box 4 is circular, and the interior of the medicine storage box 4 is evenly divided into eight partitions, the eight partitions are box cavity 1 41, box cavity 2 42, box cavity 3 43, box cavity 44, box cavity 5 45, box cavity 6 46, box cavity 7 47 and box cavity 8 48, each partition bottom is connected to the lower box cavity, that is, there are eight lower box cavities, for example: box cavity 3 43 is connected to lower box cavity 3 443, box cavity 44 is connected to lower box cavity 4 444, box cavity 5 45 is connected to lower box cavity 5 445, box cavity 6 46 is connected to lower box cavity 6 446, box cavity 7 47 is connected to lower box cavity 7 447, and medicines are respectively placed in the eight partitions inside the medicine storage box 4, and the medicines will fall from the partitions into the lower box cavities; a stepper motor bin 5 is provided in the inner middle part of the medicine storage box 4, a medicine suction slide 3 is installed in front of the medicine box, and the stepper motor bin 5 A stepper motor 54 is provided inside, and the output shaft of the stepper motor 54 passes through a turntable motor cover 53. The turntable motor cover 53 is on the upper part of the stepper motor 54. The turntable motor cover 53 is fixedly connected to the upper part of the stepper motor compartment 5. The upper part of the turntable motor cover 53 is a limit turntable 52. The limit turntable 52 is fixedly connected to the output shaft of the stepper motor 54. The upper part of the limit turntable 52 is a turntable top cover 51.
[0037] A control circuit of an intelligent household medicine box comprises a control chip and a Bluetooth module, wherein the RX and TX pins of the Bluetooth module are connected to the D0 and D1 pins of the control chip, the DIR and PUL pins driven by a stepper motor are connected to the D4 and D5 pins of the control chip, the servo responsible for the emergency medicine outlet is connected to the D10 pin of the control chip, the servo responsible for the medicine outlet is connected to the D11 pin of the control chip, the OLED display is connected to the D20 and D21 pins of the control chip, the suction pump motor drive module is connected to the D12, D22 and D23 pins of the control chip, the RST, DAT and CLK pins of the clock module are respectively connected to the D22, D23 and D24 pins of the control chip, and the RX and TX pins of the voice module are connected to the D44 and D45 pins of the control chip.
[0038] A control method for a control circuit of an intelligent household medicine box comprises the following steps:
[0039] Step 1: The user inputs the time type for taking medicine: set the time to remind the patient to take medicine according to the patient's needs, put different medicines or the same medicines in the eight compartments, that is, put different medicines or the same medicines in the box cavity 1 41, the box cavity 2 42, the box cavity 3 43, the box cavity 44, the box cavity 5 45, the box cavity 6 46, the box cavity 7 47, and the box cavity 8 48, and set the quantity of medicines to be taken from the eight lower box cavities in turn each time;
[0040] Step 2: medicine storage box 4 is on standby;
[0041] Step 3: Include the following steps:
[0042] a. When it is time to take medicine, the stepper motor 54 rotates, and the output shaft of the stepper motor 54 drives the medicine storage box 4 to rotate clockwise or counterclockwise, and the lower box cavity where the medicine to be taken is rotated to the lower part of the suction pump, and the suction pump extends to suck the medicine, and the suction pump contracts, and the stepper motor 54 rotates 20 degrees, and the suction pump stops working, and the pills 16 will fall into the inside of the medicine storage chamber 1, and the medicine storage chamber door 11 is opened, and the patient can take out the pills 16 from the inside of the medicine storage chamber 1;
[0043] b. Then rotate the output shaft of the stepper motor 54 to drive the medicine storage box 4 to rotate, rotate the lower box cavity where the medicine to be taken is located to the lower part of the suction pump, the suction pump extends to suck the medicine, the suction pump contracts, the stepper motor 54 rotates 20 degrees, the suction pump stops working, the pills 16 will fall into the inside of the medicine bin 1, open the medicine bin door 11, and the patient can take out the pills 16 from the inside of the medicine bin 1;
[0044] c. Repeat steps a and b above until the suction pump sucks the pills 16 into the interior of the medicine compartment 1, open the medicine compartment door 11, and the patient can remove the pills 16 from the interior of the medicine compartment 1;
[0045] Step 4: Determine whether all the medicines to be taken out have been taken out. If not, proceed to step 3. If all the medicines have been taken out, proceed to step 5.
[0046] Step 5: The buzzer of the medicine storage box 4 sounds to remind the patient to take medicine;
[0047] Step 6: If the patient does not take the medicine within the specified time after waking up, send a text message to the guardian's mobile phone to remind him to take the medicine.
[0048] A control method for a control circuit of an intelligent household medicine box, further comprising the following steps:
[0049] Step 1: Put the tablets into the medicine outlet bin 1 in advance;
[0050] Step 2: Medicine box standby;
[0051] Step 3: The emergency medicine button is pressed;
[0052] Step 4: The pills in the emergency medicine box pop out;
[0053] Step 5: The medicine box rings and sends a message to the guardian;
[0054] Step 6: Determine whether the pill has been taken away within two minutes. If so, proceed to step 2; if not, proceed to step 7.
[0055] Step 7: Dial the guardian for reminder.
[0056] The control microcontroller used in this product is Arduino MEGA 2560 pro, which has the advantages of low power consumption, high performance, compact size, and multiple serial ports. It can not only communicate with other devices such as mobile phones through the communication module, but also directly control the hardware modules in the product through the serial port.
[0057] Mega 2560 has 54 available digital signal serial ports, numbered D0 to D53.
[0058] The RX serial port D0 and the TX serial port 1 are connected to the HC-06 Bluetooth module, where D0 is connected to the TX port of the HC-06 end, and D1 is connected to the RX port of the HC-06 end. After being connected, the microcontroller can send and receive information through the Bluetooth module.
[0059] D2 and D3 are used to connect to the micro-stepping motor driver that drives the stepper motor slide to control the lifting of the medicine inhalation port. D2 is connected to the DIR pin of the driver, and D3 is connected to the PUL pin of the driver. When controlling the movement of the slide, D2 controls the forward and reverse rotation of the stepper motor by giving two different levels of high and low to DIR, and the D3 pin inputs a specific current pulse to the PUL pin. The frequency and duration of the pulse determine the angle and speed of the stepper motor.
[0060] The D3 and D4 pins are connected to the TB6600 high-power stepper motor driver module, which is used to drive the 42 stepper motor in the center of the medicine box to drive the medicine box to rotate. D3 is connected to DIR, and D4 is connected to PUL. The principle is the same as D2 and D3.
[0061] The D10 and D11 pins are connected to the mini analog servos that control the opening and closing of the medicine outlet and the emergency ammunition compartment respectively. By sending a 1500-2500ms electrical level through the serial port, the servos can rotate 0°-180°.
[0062] D12 is connected to D22 and D23 with the L298N driver module, which is used to control the DC motor on the suction pump. By controlling the speed of the motor, the suction force of the suction port can be adjusted. The D12 serial port is connected to the pwm input serial port on the module, and D22 and D23 are connected to the IN1 port and IN2 port on the module respectively. The microcontroller can make the DC motor forward, reverse, and lock by passing different high and low levels to IN1 and IN2 respectively. Then, through the D12 serial port, the analog signal of 0-255 frequency is input to the pwm input serial port on the module to control the different speeds of the motor.
[0063] The serial ports of D20 and D21 are connected to a 1.3-inch SSD1306 OLED screen. D20 is connected to the SCL pin of the screen, and D21 is connected to the SDA pin. The data and working status of the medicine box are displayed in real time through 1306, allowing users to better interact and adjust settings.
[0064] The D22, D23, and D24 pins are connected to the DS1302 clock module. The three pins are connected to the RST, DAT, and CLK pins on the module. The function of this module is to provide the module with accurate current time so that the medicine box can realize functions such as timing medicine collection. Therefore, even if the microcontroller is powered off, the button battery of the module will still power the module to ensure the accuracy of the time.
[0065] The D25 and D26 pins are connected to the ESP8266 wifi module, which can connect to other LANs so that the medicine box can obtain information from the network and realize the Internet of Things function.
[0066] The D27 and D28 pins are used as the leveling button switches for the stepper motor slide and the medicine box stepper motor respectively. The buttons are paddle switches, and the switches are connected to the 5V and corresponding pins of the microcontroller. When the switch is pressed, the 5V is short-circuited with the corresponding pin, so that the microcontroller detects that the pin level is increased.
[0067] In the description of the present invention, it should be understood that the terms "coaxial", "bottom", "one end", "top", "middle", "other end", "upper", "one side", "top", "inside", "front", "center", "two ends" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In the present invention, unless otherwise clearly specified and limited, the terms "install", "set", "connect", "fix", "screw" and the like should be understood in a broad sense, for example, it can be a fixed connection, or a detachable connection, or integrated; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. Unless otherwise clearly defined, for ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An intelligent household medicine box, comprising a medicine outlet bin (1) and a medicine storage box (4), characterized in that: The inner center of the housing (7) is provided with a medicine storage box (4), the medicine storage box (4) is circular, and the inside of the medicine storage box (4) is evenly divided into eight partitions, the eight partitions are box cavity 1 (41), box cavity 2 (42), box cavity 3 (43), box cavity 4 (44), box cavity 5 (45), box cavity 6 (46), box cavity 7 (47) and box cavity 8 (48), each partition bottom is connected to the lower box cavity, the inner middle part of the medicine storage box (4) is provided with a stepper motor compartment (5), the front of the medicine box is provided with a medicine suction slide (3), the medicine suction slide (3) has a suction pump, the stepper motor compartment (5) is provided with a stepper motor (54), the output shaft of the stepper motor (54) passes through the turntable motor cover (53), The turntable motor cover (53) is on the upper part of the stepper motor (54), the turntable motor cover (53) is fixedly connected to the upper part of the stepper motor bin (5), the upper part of the turntable motor cover (53) is a limit turntable (52), the limit turntable (52) is fixedly connected to the output shaft of the stepper motor (54), the upper part of the limit turntable (52) is a turntable top cover (51), the medicine outlet bin (1) comprises a medicine outlet bin door (11), a medicine outlet bin door shaft (12), a medicine outlet bin wall (13) and a medicine bin partition (14), the bottom of the medicine outlet bin door (11) is a medicine outlet bin door shaft (12), and the medicine outlet bin door shaft (12) is The medicine outlet bin wall (13) is rotatably connected to the medicine outlet bin wall (13), the medicine outlet bin door shaft (12) is close to one side of the medicine outlet bin wall (13), and a medicine bin partition (14) is provided in the middle of the medicine outlet bin wall (13). One end of the three medicine bin partitions (14) are connected to the medicine outlet bin door shaft (12), and the angle between two adjacent medicine bin partitions (14) is 120 degrees. When it is time to take medicine, the stepper motor (54) rotates, and the output shaft of the stepper motor (54) drives the medicine storage box (4) to rotate, and rotates the lower box cavity where the medicine to be taken is located to the lower part of the suction pump, and the suction pump extends to suck the medicine, and the suction pump retracts, and the stepper motor (54) rotates 20 degrees, and the suction pump stops working, and the medicine falls into the medicine outlet bin (1).
2. A method for controlling an intelligent household medicine box according to claim 1, characterized in that: The following steps are included: Step 1: The user inputs the type of medication collection time: the time is set according to the patient's needs to remind the patient to collect medication, different medications or the same medications are placed in the eight compartments, that is, different medications or the same medications are placed in the box cavity 1 (41), box cavity 2 (42), box cavity 3 (43), box cavity 4 (44), box cavity 5 (45), box cavity 6 (46), box cavity 7 (47), and box cavity 8 (48), and the quantity of medications to be collected from the eight lower box cavities is set in turn each time; Step 2: The medicine storage box (4) is on standby; Step 3: Include the following steps: a. When it is time to take medicine, the stepper motor (54) rotates, the output shaft of the stepper motor (54) drives the medicine storage box (4) to rotate, and the lower box cavity where the medicine to be taken is rotated to the lower part of the suction pump, the suction pump extends to suck the medicine, the suction pump contracts, the stepper motor (54) rotates 20 degrees, the suction pump stops working, and the medicine will fall into the medicine outlet bin (1); b. Then rotate the output shaft of the stepper motor (54) to drive the medicine storage box (4) to rotate, rotate the lower box cavity where the medicine to be taken is located to the lower part of the suction pump, the suction pump extends to suck the medicine, the suction pump contracts, the stepper motor (54) rotates 20 degrees, the suction pump stops working, and the medicine will fall into the medicine outlet bin (1); c. Repeat steps a and b above until all the medicine is taken; Step 4: Determine whether all the medicines to be taken out have been taken out. If not, proceed to step 3. If all the medicines have been taken out, proceed to step 5. Step 5: The buzzer of the medicine storage box (4) sounds to remind the patient to take medicine; Step 6: If the patient fails to pick up the medicine within the specified time, a text message will be sent to the guardian’s mobile phone to remind him / her to pick up the medicine.
Citation Information
Patent Citations
Multifunctional intelligent medicine box and medicine dispensing and discharging method thereof
CN111110558A