Intelligent medicine cabinet, control method and storage medium

Through the weighing sensor and middleware management system of the smart medicine cabinet, the quantity of drugs is calculated and updated in real time, which solves the problems of inefficiency and inaccurate data in the medicine cabinet management, and realizes accurate statistics and safe management of the quantity of drugs.

CN119079367APending Publication Date: 2024-12-06SHENZHEN DAYIN MEDICAL TECH CO LTD

Patent Information

Application Number
CN202410950276.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing medicine cabinets have problems in drug management, such as low drug acquisition efficiency, errors in data recording, and inability to query and manage online, and the data is inaccurate due to drug weight differences and hardware errors.

Method used

Design a smart medicine cabinet, adopting refrigerator module and box module, including weighing medicine box components and display screen, detecting the weight changes of the medicine box through weighing sensor, calculate the quantity of medicines in real time, and update a single branch after each change Calibrate weight, use middleware to store and manage data, and combine cameras, IC card swiping and fingerprint recognition modules for personnel authentication.

Benefits of technology

Ensure the accuracy of the quantity of drugs received, improve work efficiency, reduce the burden on medical staff, ensure drug safety, and achieve the accuracy of real-time calibration and data management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119079367A_ABST
    Figure CN119079367A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent medicine cabinet, a control method and a storage medium, and the control method comprises the steps: detecting the weight of a first medicine box through a weighing assembly, and recording the weight change of the first medicine box when detecting that the weight of the first medicine box is reduced; obtaining the single calibrated weight of the first medicine, and determining the medicine taking quantity of the first medicine according to the weight change of the first medicine box and the single calibrated weight of the first medicine; the real-time weight of the first medicine box is detected, and the remaining number of the first medicine is calculated; according to the real-time weight of the first medicine box and the remaining number of the first medicine, the single-piece calibration weight of the first medicine is updated. According to the method, the accuracy of the medicine change data is ensured, the accuracy of the medicine receiving quantity is ensured, the medicine safety is ensured, and meanwhile, the workload of medical staff is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medicine cabinets, and in particular to an intelligent medicine cabinet, a control method of the intelligent medicine cabinet, and a storage medium. Background Art

[0002] At present, the medicines stored in pharmacies are stored in various smart medicine cabinets according to the types of medicines. When medicines need to be distributed, the prescription staff usually searches for the medicines one by one. When there are many types of medicines to be taken, it is easy to search for the same medicine repeatedly or take the wrong medicine, resulting in low efficiency in taking medicines. In addition, when most medical staff take, replenish, count and manage medicines in medicine cabinets and other storage equipment, they usually need to count them manually and save the changes in medicine data by handwriting. However, saving changes in medicine data by handwriting has the disadvantages of being time-consuming and labor-intensive, prone to errors during counting and recording, and unable to query, count and manage online; moreover, the weight of medicines from different batches may vary, and the hardware will produce errors as the environment changes. Summary of the invention

[0003] In view of the above technical problems, the present invention provides an intelligent medicine cabinet, a control method and a storage medium.

[0004] A first embodiment of the present invention provides a control method for an intelligent medicine cabinet, wherein the intelligent medicine cabinet includes a refrigerator module and a cabinet module, wherein the cabinet module includes a plurality of drawers, wherein the plurality of drawers respectively include a drawer body and a weighing medicine box assembly, wherein the weighing medicine box assembly includes a first medicine box and a weighing assembly, wherein the method includes: detecting the weight of the first medicine box by means of the weighing assembly, and when it is detected that the weight of the first medicine box decreases, recording the weight change of the first medicine box; obtaining a single calibrated weight of the first medicine, and determining the quantity of the first medicine to be taken according to the weight change of the first medicine box and the single calibrated weight of the first medicine; detecting the real-time weight of the first medicine box and calculating the remaining quantity of the first medicine; and updating the single calibrated weight of the first medicine according to the real-time weight of the first medicine box and the remaining quantity of the first medicine.

[0005] Optionally, the step of obtaining the calibrated weight of a single piece of the first medicine includes: when it is detected that the weight of the first medicine box has increased, determining whether the first medicine box is being refilled for the first time; if it is the first time for the first medicine box to be refilled, detecting the current refill weight of the first medicine box, and calculating the calibrated weight of a single piece of the first medicine box based on the number of refills input by the user; and storing the calibrated weight of a single piece of the first medicine box in the middleware of the smart medicine cabinet.

[0006] Optionally, the step of determining whether the first medicine box is a first refill includes: determining the name of the first medicine based on the first medicine box, and searching for the single calibrated weight of the first medicine in the middleware of the smart medicine cabinet; if the single calibrated weight of the first medicine does not exist in the middleware of the smart medicine cabinet, determining that the first medicine box is a first refill.

[0007] Optionally, the step of obtaining the calibrated weight of a single piece of the first medicine also includes: if the first medicine box is not refilled for the first time, detecting the current refill weight of the first medicine box, and searching for the calibrated weight and storage quantity of a single piece of the first medicine in the middleware of the smart medicine cabinet; determining the refill quantity of the first medicine based on the refill weight of the first medicine box and the calibrated weight of a single piece of the first medicine; detecting the real-time weight of the first medicine box, and determining the real-time quantity of the first medicine based on the storage quantity of the first medicine and the refill quantity of the first medicine; and updating the calibrated weight of a single piece of the first medicine based on the real-time weight of the first medicine box and the real-time quantity of the first medicine.

[0008] Optionally, the weighing component includes a weighing sensor, and the step of detecting the real-time weight of the first medicine box includes: detecting the real-time weight of the first medicine box by means of the weighing sensor, and the weighing sensor corresponds to the medicine box one-to-one.

[0009] A second embodiment of the present invention provides an intelligent medicine cabinet, which includes a refrigerator module and a box module. The box module includes a display screen and multiple drawers. The multiple drawers respectively include a drawer body and a weighing medicine box assembly. The weighing medicine box assembly includes a first medicine box and a weighing assembly. The display screen is used to control the opening and closing of the multiple drawers. The intelligent medicine cabinet also includes a first quantity determination module, a second quantity determination module and a quantity update module. The weighing assembly is used to detect the weight of the first medicine box. When it is detected that the weight of the first medicine box decreases, the weight change of the first medicine box is recorded; the single calibrated weight of the first medicine is searched in the middleware of the intelligent medicine cabinet through the display screen. The first quantity determination module is used to determine the number of medicines to be taken for the first medicine according to the weight change of the first medicine box and the single calibrated weight of the first medicine; the second quantity determination module is used to detect the real-time weight of the first medicine box and calculate the remaining quantity of the first medicine, and the quantity update module is used to update the single calibrated weight of the first medicine according to the real-time weight of the first medicine box and the remaining quantity of the first medicine.

[0010] Optionally, the weighing assembly includes a weighing sensor, and the weighing sensor corresponds to the medicine box one by one.

[0011] Optionally, a camera module and an IC card swiping module are also provided on one side of the display screen.

[0012] Optionally, a fingerprint recognition module and a barcode scanning head module are also provided on one side of the display screen.

[0013] A third embodiment of the present invention provides a computer-readable storage medium, wherein the storage medium stores at least one computer instruction, and the instruction is loaded and executed by a processor to implement the steps performed in the control method of the smart medicine cabinet.

[0014] In the technical solution provided by the embodiment of the present invention, the changed quantity of the medicine is calculated in real time according to the weight change of the medicine, and the weight of a single medicine is calibrated in real time after each change of the medicine, so as to ensure the accuracy of the medicine change data, to ensure the accuracy of the number of medicines collected, and to ensure the safety of the medicines; the quantity change of the medicines is quickly and accurately counted, and the work efficiency is improved; the single calibrated weight is calibrated in real time to ensure the accuracy of the calculated quantity of the medicines. The safety of the medicines is ensured; at the same time, the workload of medical staff is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a structural schematic diagram of the intelligent cabinet of the present invention.

[0016] Figure 2 The figure is a schematic diagram of the structure of the drawer inside the intelligent cabinet of the present invention.

[0017] Figure 3 It is a structural schematic diagram of the weighing medicine box assembly of the intelligent cabinet of the present invention.

[0018] Figure 4 The present invention is a flowchart of one embodiment of a control method for an intelligent medicine cabinet.

[0019] Figure 5 The present invention is a flowchart of another embodiment of a control method for an intelligent medicine cabinet.

[0020] Figure 6 The present invention is a flowchart of another embodiment of a control method for an intelligent medicine cabinet.

[0021] Figure 7 The present invention is a flowchart of another embodiment of a control method for an intelligent medicine cabinet.

[0022] Figure 8 This is the internal principle diagram of the full-bridge sensor in the medicine box weighing of the present invention.

[0023] Fig. 9 It is the electrical connection diagram of the Wheatstone bridge of the present invention.

[0024] Fig.10 This is the filtering and amplifying circuit diagram of the present invention.

[0025] Fig.11It is a flow chart of the weighing and counting algorithm of the weighing sensor of the present invention.

[0026] Fig.12 The present invention is a flow chart of a creep compensation method for temperature and deformation of a weighing sensor. DETAILED DESCRIPTION

[0027] 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0028] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0029] The present invention provides a smart medicine cabinet, please refer to Figure 1 As shown, the smart medicine cabinet includes two parts, namely, a refrigerator module and a box module. The refrigerator module can be set on the left or the right. In the present invention, the refrigerator module 8 is set on the right, and the box module is set on the left. The box module includes a four-layer structure, wherein the top layer is a display screen 1, and the display screen 1 controls the opening and closing of the entire medicine cabinet drawer, as well as the functions of taking, replenishing, weighing and calibrating medicines. The entire medicine cabinet can be used alone, or it can be placed on the treatment cabinet in the treatment room. When the smart medicine cabinet is placed on the treatment cabinet, a medicine cabinet fixing column is provided on the back panel of the smart medicine cabinet, which can fix the medicine cabinet on the treatment cabinet board.

[0030] Please refer to Figure 1 As shown, drawers 2 and 3 are arranged below the display screen 1, and a camera module 5 and an IC card swiping module 6 are also arranged on one side of the display screen 1. The camera module 5 may be a binocular camera module, and a barcode scanning module 4 for identifying medicines and a fingerprint recognition module 7 for identifying staff are also arranged below the IC card swiping module 6. The present invention provides multiple personnel identification and authentication methods through the camera module 5, the IC card swiping module 6 and the fingerprint recognition module 7.

[0031] Please refer to Figure 2As shown, the smart medicine cabinet of the present invention includes a drawer cabinet accessory 3-1, a drawer indicator light 3-2, a compartment cover 3-3, a weighing medicine box component 3-4, and a compartment indicator light 3-5, wherein the drawers include at least two types, one is a 1U drawer and the other is a 2U drawer, and each layer of the drawer is designed to have 6 identical compartments, and each compartment is equipped with a medicine box with a weighing component, and the weighing component is preferably a weighing sensor. Figure 3 As shown, the weighing medicine box assembly 3-4 includes a medicine box 3-4-1, a weighing sensor gasket 3-4-2, a weighing sensor 3-4-3 and a sensor fixing plate 3-4-4. The weight of the medicine in the medicine box of each layer of drawer is reported by the weighing sensor 3-4-3, and the weighing sensor 3-4-3 corresponds to the medicine box one by one.

[0032] The smart medicine cabinet described in the present invention also includes a first quantity determination module, a second quantity determination module and a quantity update module, wherein the weighing component is used to detect the weight of the first medicine box, and when it is detected that the weight of the first medicine box decreases, the weight change of the first medicine box is recorded; the single calibrated weight of the first medicine is searched in the middleware of the smart medicine cabinet through the display screen, and the first quantity determination module is used to determine the quantity of the first medicine to be taken according to the weight change of the first medicine box and the single calibrated weight of the first medicine; the second quantity determination module is used to detect the real-time weight of the first medicine box and calculate the remaining quantity of the first medicine, and the quantity update module is used to update the single calibrated weight of the first medicine according to the real-time weight of the first medicine box and the remaining quantity of the first medicine.

[0033] In one embodiment of the present invention, when a weight reduction of a first medicine box is detected, the weight change of the first medicine box is recorded, and the name of the first medicine is determined based on the first medicine box, the first quantity determination module is used to determine the quantity of the first medicine to be taken based on the weight change of the first medicine box and the single calibrated weight of the first medicine; the quantity of the first medicine to be taken is displayed on the medicine taking interface of the smart medicine cabinet, the second quantity determination module is used to detect the real-time weight of the first medicine box and determine the remaining quantity of the first medicine based on the storage quantity of the first medicine and the quantity of the first medicine to be taken; the quantity update module is used to update the single calibrated weight of the first medicine based on the real-time weight of the first medicine box and the remaining quantity of the first medicine.

[0034] This smart medicine safe is designed with a 5G module / wifi module, which can be remotely upgraded through Bluetooth communication and communicate with the background server.

[0035] The smart medicine cabinet of the present invention calculates the change quantity of medicines in real time according to the weight change of medicines, and calibrates the weight of a single medicine in real time after each change of medicines, thereby ensuring the accuracy of the medicine change data. Medicine weighing refers to an important function in the smart medicine cabinet system to ensure that the number of medicines collected can be automatically counted, which is used to ensure the accuracy of the number of medicines collected and ensure the safety of medicines; quickly and accurately count the changes in the number of medicines, thereby improving work efficiency; and calibrating the single calibrated weight in real time to ensure the accuracy of the calculated number of medicines. This ensures the safety of medicines and reduces the workload of medical staff.

[0036] The present invention provides a variety of personnel identification and authentication methods through the camera module 5, IC card swiping module 6 and fingerprint recognition module 7 to ensure the accuracy and safety of operation and prevent misoperation and abuse of drugs. The intelligent medicine cabinet described in the present invention realizes the following functions: 1. Drug collection, 2. Drug replenishment, 3. Drug addition, 4. Drug management and control, 5. Special management of narcotic drugs and the like. Unified management and control, through intelligent management methods, improves the work efficiency and service quality of the hospital, reduces management costs and risks, and ensures the safety of patients' medication. At the same time, the system also has data analysis and decision support functions, which can provide scientific decision-making basis for hospital managers and improve the management level and competitiveness of the hospital.

[0037] According to the above-mentioned smart medicine cabinet, the present invention also provides a control method of the smart medicine cabinet, please refer to Figure 4 As shown, the method comprises the following steps:

[0038] Step S10, detecting the weight of the first medicine box by a weighing component, and when it is detected that the weight of the first medicine box decreases, recording the weight change of the first medicine box;

[0039] Step S20, obtaining the single calibrated weight of the first medicine, and determining the quantity of the first medicine to be taken according to the weight change of the first medicine box and the single calibrated weight of the first medicine;

[0040] Step S30, detecting the real-time weight of the first medicine box and calculating the remaining quantity of the first medicine;

[0041] Step S40: updating the single calibrated weight of the first medicine according to the real-time weight of the first medicine box and the remaining quantity of the first medicine.

[0042] In one embodiment of the present invention, please refer to Figure 5 As shown, in step S20, the step of obtaining the single calibrated weight of the first drug includes:

[0043] Step S21, when it is detected that the weight of the first medicine box increases, it is determined whether the first medicine box is replenished for the first time;

[0044] Step S22, if the first medicine box is replenished for the first time, then the current replenishment weight of the first medicine box is detected, and the single calibrated weight of the first medicine box is calculated according to the replenishment quantity input by the user;

[0045] Step S23, storing the single calibrated weight of the first medicine box in the middleware of the smart medicine cabinet.

[0046] In one embodiment of the present invention, please refer to Figure 6 As shown, the determination of whether the first medicine box is the first medicine replenishment in step S21 specifically includes the following steps:

[0047] Step S221, determining the name of the first medicine according to the first medicine box, and searching the middleware of the smart medicine cabinet for the single calibrated weight of the first medicine;

[0048] Step S222: If the single calibrated weight of the first medicine does not exist in the middleware of the smart medicine cabinet, it is determined that the first medicine box is a first-time replenishment of medicine.

[0049] In one embodiment of the present invention, please refer to Figure 7 As shown, step S20 also includes:

[0050] Step S24, if the first medicine box is not replenished for the first time, the current replenishment weight of the first medicine box is detected, and the single calibrated weight and storage quantity of the first medicine are searched in the middleware of the smart medicine cabinet;

[0051] Step S25, determining the amount of supplementary medicine for the first medicine according to the supplementary medicine weight of the first medicine box and the single calibrated weight of the first medicine;

[0052] Step S26, detecting the real-time weight of the first medicine box, and determining the real-time quantity of the first medicine according to the storage quantity of the first medicine and the replenishment quantity of the first medicine;

[0053] Step S27, updating the single calibrated weight of the first medicine according to the real-time weight of the first medicine box and the real-time quantity of the first medicine.

[0054] After displaying the quantity of the first drug to be taken on the drug taking interface of the smart medicine cabinet, the present invention further includes: saving the drug taking operation record in the medicine cabinet middleware, and the drug taking operation record includes the name, specification, unit, location and quantity of the first drug.

[0055] When the method detects that the weight of each medicine box decreases, it records the weight change of the current medicine box, searches for the single calibrated weight of each medicine corresponding to each medicine box on the medicine cabinet screen, calculates the number of medicines to be taken from each medicine box, and displays it on the medicine taking interface of the smart medicine cabinet; at the same time, it detects the real-time weight of each medicine box, and calculates the remaining number of each medicine, thereby updating the single calibrated weight of each medicine. The present invention calculates the number of changes in medicines in real time according to the weight changes of the medicines, and calibrates the weight of a single medicine in real time after each change in the medicines, thereby ensuring the accuracy of the medicine change data. Medicine weighing refers to an important function in the smart medicine cabinet system to ensure that the number of medicines to be taken can be automatically counted, which is used to ensure the accuracy of the number of medicines to be taken.

[0056] In the process of drug replenishment and management, drug weighing is an important link to ensure accurate drug dosage and precise inventory management. Under this drug management, the weighing function will be started at the end node of each business (warehouse entry, warehouse exit, inventory, drug collection), and the weight difference value will be accurately calculated with the help of the sensor algorithm, thereby generating business data volume. It improves work efficiency; accurately manages drug inventory and expiration date, ensures drug safety; and reduces the workload of medical staff.

[0057] The weighing of the medicine box of the present invention utilizes Hooke's law or the lever balance principle of force. The product utilizes a 4-wire full-bridge weighing sensor. The strain gauge generates a resistance change when deformed, and then the voltage change of the circuit is connected, and then the sampling, filtering, amplification and conversion of the 24-bit high-precision chip are connected, and then the electrical signal is converted; then the MCU performs AD sampling and conversion to obtain the corresponding format relationship between the resistance and voltage values, thereby finally obtaining the weight value of the medicine, obtaining the weight of a single medicine unit, and then obtaining the weight of multiple medicines, and then the total number of medicines can be obtained;

[0058] There are 4 strain gauges inside the full-bridge load cell, forming a resistance bridge, and 4 wires are drawn out, the colors are red, black, yellow, and green. Please refer to Figure 8 As shown in the figure: Principle of resistance bridge circuit - Wheatstone bridge circuit, resistance can be measured by Wheatstone bridge. Specific methods for measuring resistance include: 1. Determine the absolute value of resistance by comparing it with a known resistance; 2. Determine the relative change of resistance, which can determine the relative change of strain gauge resistance, usually with an accuracy of 10^-4 to 10^2Ω / Ω.

[0059] Fig. 9 Two different electrical connection diagrams for a Wheatstone bridge are shown, which are identical: The following diagram shows the diamond connections commonly used for a Wheatstone bridge;

[0060] The four arms or branches of the Wheatstone bridge are formed by four resistors R1, R2, R3 and R4. The corners 2 and 3 of the bridge indicate the connection of the bridge excitation voltage Vs; the corners 1 and 4 are the bridge output voltage Vo, i.e. the measurement signal.

[0061] If a supply voltage Vs is applied to the bridge terminals 2 and 3, the supply voltage is divided into two half-bridges by R1, R2 and R4, R3, ie each half-bridge forms a voltage divider.

[0062] The bridge may be unbalanced due to the different resistance voltages of R1, R2 and R3, R4. The calculation formula is as follows:

[0063]

[0064] According to this formula, assuming we measure the ratio of Vo / Vs α. When three of the resistance values ​​R1, R2, R3, and R4 are known, the fourth resistance value can be calculated. The resistance value is proportional to the weight. When the standard weight, such as 100g, is calibrated with the measured value, the weight of the object can be obtained.

[0065] The weighing signal of the intelligent cabinet described in the present invention will be interfered during the weighing of the medicine box. In order to make the signal more accurate, the present invention filters and amplifies the weighing signal. For details, please refer to Fig.10 As shown, the present invention uses a chip composed of an amplifier and an ADC analog-to-digital converter to process the micro signal of the weighing sensor.

[0066] Please refer to Fig.11 As shown, the weighing counting algorithm of the present invention includes:

[0067] Step S100, weighing zero point calibration;

[0068] Step S200, weighing gain calibration;

[0069] Step S300, drug weight value AD is sampled, amplified and converted;

[0070] Step S400, PID control algorithm corrects the weight value. The control quantity formula of the PID control algorithm is as follows:

[0071] u(t)=a+Kp*e(t)+Ki*∫e(t)dt+Kd*e'(t)

[0072] Among them, a is the initial number of the device, u(t) is the control amount, e(t) is the deviation, e'(t) is the rate of change of the deviation, Kp, Ki, Kd are the proportional coefficient, integral coefficient and differential coefficient respectively, and the proportional coefficient Kp controls the size of the deviation. When the deviation is larger, the control amount is larger and the system responds faster. The integral coefficient Ki controls the integral of the deviation. When the integral of the deviation is larger, the control amount is larger, and the system can eliminate the accumulation of deviations. The differential coefficient Kd controls the rate of change of the deviation. When the rate of change of the deviation is larger, the control amount is larger, and the system can prevent the system from overshooting.

[0073] Step S500, the third creep algorithm is used to perform deformation and temperature error compensation. The creep calculation method described in the present invention is a creep compensation method for temperature and deformation of a weighing sensor, please refer to Fig.12 As shown, the method includes: according to the currently acquired sensor deformation acquisition AD value Va1 and temperature AD value Vt1, compared with the corresponding values ​​acquired last time, combined with the initial calibration values ​​Xa, Xt, judging whether to send creep according to the current sampling value, wherein the creep state includes a positive creep state and a negative creep state; according to the state of the first creep, the positive state Xa, Xt takes a positive value, and the negative state takes -Xa, -Xa, the second sensor deformation acquisition AD value Va2 and temperature AD value Vt2, again judging whether the absolute value of the difference with the calibration value exceeds the threshold K1, and judging the creep Amplitude P size; according to the calibration amplitude P obtained for the second time, and the third sensor deformation acquisition AD value Va3 and temperature AD value Vt3, judge again whether the absolute value of the calibration value exceeds the mean threshold M, and judge the effect of creep. If the deviation from the actual value is within a reasonable accuracy range, it is determined that the parameters Xa, Xt, P, and M are valid parameters, otherwise appropriate adjustments are made; finally, the weight value under the valid parameters is processed by Kalman filtering, and the Kalman filtering data is obtained and stored. The median filtering is performed on the N-times filtered data to obtain a stable and accurate weight value.

[0074] Step S600, zero drift compensation algorithm, correct the error value. In order to overcome the problem in the prior art that the zero value of the electronic scale drifts when it is accidentally tilted or the sensor changes during long-term operation, resulting in inaccurate measurement, this algorithm proposes a zero drift compensation algorithm that can automatically update the zero value in real time, wherein the specific method is as follows:

[0075] Step 1: Automatically check the sampling zero point update subroutine

[0076] Get the AD value collected by the sensor and perform initial zero point calibration V1;

[0077] Step 2: Execute the zero point update subroutine

[0078] The new weight value M is sampled in real time. When the M value changes within the allowed threshold, the average value is taken as the initial zero value.

[0079] Step 3: Determine the new sampling zero value

[0080] Determine whether the change of the sampled value relative to the old sampled value is greater than the rated minimum accuracy value range:

[0081] If not, the sampled value is determined as a new sampled value and stored in a zero point storage address;

[0082] If so, limiting the change of the sampled value relative to the old sampled value to a threshold value not exceeding the minimum precision value of the electronic scale, and storing it in the zero point storage address;

[0083] Step 4: Update zero value process

[0084] The average value of all zero points is calculated and determined as the zero point update value, and the zero point update subroutine is used to update the zero value. By updating the zero value at regular intervals, and the amplitude of the updated zero value is relatively small, and the historical zero point buffer array is used to make the zero point tracking memorized, it can better follow the characteristics of zero point drift, prevent other erroneous parameters from affecting the weighing, and improve the measurement accuracy of weighing.

[0085] Step S700, performing N sliding mean filtering and taking the average value to obtain an accurate weight value;

[0086] Step S800: using a difference average calculation algorithm to accurately count the number of medicines taken and put.

[0087] The intelligent medicine cabinet of the present invention can calculate the change quantity of medicines in real time according to the weight change of medicines, and calibrate the weight of a single medicine in real time after each change of medicines, thereby ensuring the accuracy of the medicine change data. The medicine weighing of the present invention refers to an important function in the intelligent medicine cabinet to ensure that the number of medicines collected can be automatically counted, so as to ensure the accuracy of the number of medicines collected. The intelligent medicine cabinet of the present invention can store both room temperature medicines and refrigerated medicines at the same time.

[0088] The present invention also provides a computer-readable storage medium, in which at least one computer instruction is stored. The instruction is loaded and executed by a processor to implement the steps performed in the control method of the smart medicine cabinet described in any of the above embodiments.

[0089] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A control method for an intelligent medicine cabinet, characterized in that: The smart medicine cabinet comprises a refrigerator module and a box module, the box module comprises a plurality of drawers, the plurality of drawers respectively comprise a drawer body and a weighing medicine box assembly, the weighing medicine box assembly comprises a first medicine box and a weighing assembly, and the method comprises: The weight of the first medicine box is detected by the weighing component, and when a decrease in the weight of the first medicine box is detected, the weight change of the first medicine box is recorded; Obtaining the single calibrated weight of the first medicine, and determining the quantity of the first medicine to be taken according to the weight change of the first medicine box and the single calibrated weight of the first medicine; detecting the real-time weight of the first medicine box and calculating the remaining quantity of the first medicine; The single calibrated weight of the first medicine is updated according to the real-time weight of the first medicine box and the remaining quantity of the first medicine.

2. The control method of the intelligent medicine cabinet according to claim 1, characterized in that: The step of obtaining the single calibrated weight of the first drug comprises: When it is detected that the weight of the first medicine box increases, determining whether the first medicine box is replenished for the first time; If the first medicine box is replenished for the first time, the current replenishment weight of the first medicine box is detected, and the single calibrated weight of the first medicine box is calculated according to the replenishment quantity input by the user; The single calibrated weight of the first medicine box is stored in the middleware of the smart medicine cabinet.

3. The control method of the intelligent medicine cabinet according to claim 2, characterized in that: The step of determining whether the first medicine box is replenished for the first time comprises: Determine the name of the first medicine according to the first medicine box, and search for the single calibrated weight of the first medicine in the middleware of the smart medicine cabinet; If the single calibrated weight of the first medicine does not exist in the middleware of the smart medicine cabinet, it is determined that the first medicine box is the first refill.

4. The control method of the intelligent medicine cabinet according to claim 2, characterized in that: The step of obtaining the single calibrated weight of the first drug also includes: If the first medicine box is not the first time to replenish medicine, the current replenishment weight of the first medicine box is detected, and the single calibrated weight and storage quantity of the first medicine are searched in the middleware of the smart medicine cabinet; Determining the amount of supplementary medicine for the first medicine according to the supplementary medicine weight of the first medicine box and the single calibrated weight of the first medicine; Detecting the real-time weight of the first medicine box, and determining the real-time quantity of the first medicine according to the storage quantity of the first medicine and the replenishment quantity of the first medicine; The single calibrated weight of the first medicine is updated according to the real-time weight of the first medicine box and the real-time quantity of the first medicine.

5. The control method of the intelligent medicine cabinet according to claim 4, characterized in that: The weighing assembly includes a weighing sensor, and the step of detecting the real-time weight of the first medicine box includes: The real-time weight of the first medicine box is detected by a weighing sensor, and the weighing sensor corresponds to the medicine box one by one.

6. A smart medicine cabinet, characterized in that: The smart medicine cabinet includes a refrigerator module and a box module. The box module includes a display screen and multiple drawers. The multiple drawers respectively include a drawer body and a weighing medicine box assembly. The weighing medicine box assembly includes a first medicine box and a weighing assembly. The display screen is used to control the opening and closing of the multiple drawers. The smart medicine cabinet also includes a first quantity determination module, a second quantity determination module and a quantity update module. The weighing assembly is used to detect the weight of the first medicine box. When it is detected that the weight of the first medicine box decreases, the weight change of the first medicine box is recorded; the single calibrated weight of the first medicine is searched in the middleware of the smart medicine cabinet through the display screen. The first quantity determination module is used to determine the number of first medicines to be taken according to the weight change of the first medicine box and the single calibrated weight of the first medicine; the second quantity determination module is used to detect the real-time weight of the first medicine box and calculate the remaining quantity of the first medicine, and the quantity update module is used to update the single calibrated weight of the first medicine according to the real-time weight of the first medicine box and the remaining quantity of the first medicine.

7. The smart medicine cabinet according to claim 6, characterized in that: The weighing assembly includes a weighing sensor, and the weighing sensor corresponds to the medicine box one by one.

8. The smart medicine cabinet according to claim 6, characterized in that: A camera module and an IC card swiping module are also arranged on one side of the display screen.

9. The smart medicine cabinet according to claim 6, characterized in that: A fingerprint recognition module and a barcode scanning head module are also arranged on one side of the display screen.

10. A computer-readable storage medium, characterized in that: The storage medium stores at least one computer instruction, which is loaded and executed by the processor to implement the steps performed in the control method of the smart medicine cabinet according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Intelligent monitoring system for medicine distribution and medicine taking and operation method of intelligent monitoring system

    CN117079761A

  • Control method and device of intelligent medicine cabinet and storage medium

    CN118015758A

  • Medicine cabinet

    CN218650914U

Cited By

  • Using method of medicine cabinet drawer capable of accurately taking medicine

    CN120877424A