CN111977132A - Intelligent tablet distributing machine based on Internet of things - Google Patents

Intelligent tablet distributing machine based on Internet of things Download PDF

Info

Publication number
CN111977132A
CN111977132A CN202010872483.XA CN202010872483A CN111977132A CN 111977132 A CN111977132 A CN 111977132A CN 202010872483 A CN202010872483 A CN 202010872483A CN 111977132 A CN111977132 A CN 111977132A
Authority
CN
China
Prior art keywords
gpio
pin
medicine bottle
server
driving mechanism
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202010872483.XA
Other languages
Chinese (zh)
Inventor
陈军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Wangzhi Xinchuang Information Technology Research Co Ltd
Original Assignee
Hangzhou Wangzhi Xinchuang Information Technology Research Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Wangzhi Xinchuang Information Technology Research Co Ltd filed Critical Hangzhou Wangzhi Xinchuang Information Technology Research Co Ltd
Priority to CN202010872483.XA priority Critical patent/CN111977132A/en
Publication of CN111977132A publication Critical patent/CN111977132A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B65CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
    • B65DCONTAINERS FOR STORAGE OR TRANSPORT OF ARTICLES OR MATERIALS, e.g. BAGS, BARRELS, BOTTLES, BOXES, CANS, CARTONS, CRATES, DRUMS, JARS, TANKS, HOPPERS, FORWARDING CONTAINERS; ACCESSORIES, CLOSURES, OR FITTINGS THEREFOR; PACKAGING ELEMENTS; PACKAGES
    • B65D23/00Details of bottles or jars not otherwise provided for
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B65CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
    • B65DCONTAINERS FOR STORAGE OR TRANSPORT OF ARTICLES OR MATERIALS, e.g. BAGS, BARRELS, BOTTLES, BOXES, CANS, CARTONS, CRATES, DRUMS, JARS, TANKS, HOPPERS, FORWARDING CONTAINERS; ACCESSORIES, CLOSURES, OR FITTINGS THEREFOR; PACKAGING ELEMENTS; PACKAGES
    • B65D83/00Containers or packages with special means for dispensing contents
    • B65D83/04Containers or packages with special means for dispensing contents for dispensing annular, disc-shaped, or spherical or like small articles, e.g. tablets or pills
    • B65D83/0409Containers or packages with special means for dispensing contents for dispensing annular, disc-shaped, or spherical or like small articles, e.g. tablets or pills the dispensing means being adapted for delivering one article, or a single dose, upon each actuation
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/0092Coin-freed apparatus for hiring articles; Coin-freed facilities or services for assembling and dispensing of pharmaceutical articles
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/10ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to drugs or medications, e.g. for ensuring correct administration to patients
    • G16H20/13ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to drugs or medications, e.g. for ensuring correct administration to patients delivered from dispensers
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/60Healthcare; Welfare
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/10Detection; Monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The utility model provides an intelligence tablet distribution machine based on thing networking, includes control module, intelligence tablet distribution machine, the container number identification module who is connected with control module, the communication module and the suggestion device of being connected with the server, every the button is all installed to distribution machine upper end, and the button is connected with control module, container number identification module is used for the button is pressed and is read the container number on the distribution machine after succeeding in, and passes through the information that obtains communication module uploads to the server and exchanges, obtains the server end database user data that corresponds with this distribution machine number of access in the server, thereby passes through this the tablet is distributed away in the medicine bottle with the distribution machine. The invention provides a brand new technical idea, reduces tablet distribution errors, ensures the safety degree, simultaneously improves the distribution efficiency, reduces the medical cost, is beneficial to the quality guarantee of the medicines, reduces the abuse of the medicines, is beneficial to the control of the controlled pharmacy, and can find the private medicine breaking.

Description

Intelligent tablet distributing machine based on Internet of things
Technical Field
The present invention relates to tablet dispensing, and more particularly to an intelligent tablet dispensing machine based on the internet of things.
Background
With the popularization of computers and the wide application of internet technology, various industries around the world have revolutionary properties, and people begin to increasingly utilize network technology to serve themselves. The medical industry, as a basic guarantee part of people's life, is undergoing unprecedented changes, the progress of medical technology, and the innovation and replacement of large-scale medical diagnosis and treatment equipment, so that the traditional hospital mode and treatment environment face significant changes and innovations, hospitals, as carriers of main signs of human civilization and progress, increasingly show the important position and function of the hospitals in society, and are impacted by the surge of the network as well as other industries, along with the development of digital technology, the former mode that a single patient personally visits the hospital to see a doctor is gradually changed, and is replaced by the modes of online health consultation, remote diagnosis, training and the like, the management and operation mode of the hospitals also undergo significant changes, and meanwhile, updated and more complete medical services are provided for the society. The functional organization, which is closely related to the interests of human beings, is developing towards digitization, and more digital hospitals are emerging.
However, at present, doctors generally see a doctor in a hospital to make a medical order for patients to get medicines from a centralized medicine receiving place, errors such as writing and the like may cause errors in tablet distribution, or medical staff manually inquire the medical order of the patients in a server, so that a plurality of safety problems in tablet distribution exist, and tablet distribution needs to be performed by a plurality of additional medical staff, so that medical cost is greatly increased, medical dispute events are increased, and in severe cases, the errors in tablet distribution may cause medical accidents.
Disclosure of Invention
1. Technical problem to be solved
In view of the problems in the prior art, a first object of the present invention is to provide a medicine bottle, which can realize the adjustment of the size of the storage space in the medicine bottle.
The second purpose of the invention is to provide an intelligent tablet distributing machine, which can realize the distribution of tablets in medicine bottles by the machine, reduce the contact between hands and the reserved tablets, ensure that the surfaces of the medicines are not easily polluted by sweat and is beneficial to the quality guarantee of the reserved medicines.
The third purpose of the invention is to provide an intelligent tablet distribution machine based on the internet of things, which can realize the simultaneous monitoring of a plurality of distribution machines, automatically call the server database user data corresponding to the distribution machine number stored in a server according to the distribution machine number before tablets in a certain distribution machine are distributed, and distribute the tablets with the required number according to the user data when the user data about the distribution machine can be inquired in the server, thereby greatly reducing the probability of tablet type distribution errors and tablet number distribution errors among the plurality of distribution machines, ensuring the safety of tablet distribution, simultaneously improving the tablet distribution efficiency, completing the automatic distribution of the whole process by a system, and reducing the medical cost; in addition, the flow direction of the medicine bottle can be tracked, the abuse of medicines is reduced, and the supervision capability of taking the medicine according to the quantity on time by a patient is improved.
2. Technical scheme
In order to solve the above problems, the present invention adopts the following technical solutions.
1. A vial, comprising: comprises a bottle body (2 b), a coating (25) and a plunger (23);
the two ends of the bottle body (2 b) are opened;
the bottle body (2 b) comprises a column tube (21) the lower end of which is uniformly provided with a plurality of mounting feet (22) along the circumferential direction;
the outer diameter of the plunger (23) is matched with the inner diameter of the bottle body (2 b);
the plunger (23) can slide along the inner wall in the bottle body (2 b);
the film (25) penetrates through the gap between two adjacent mounting feet (22) and is wrapped on the surface of the whole body formed by the column tube (21) and the plunger (23), and the film forms a medicine cavity with an upward opening for containing tablets in the bottle body (2 b);
the leather membrane (25) is fixedly connected with the upper end of the plunger (23);
the membrane (25) is fixedly connected with the lower end of the plunger (23);
when the plunger (23) slides downwards, the part of the film (25) positioned outside the bottle body (2 b) is overturned over the top of the wall of the bottle body (2 b) and reaches the inner cavity of the bottle body (2 b), so that the capacity of containing tablets is increased;
when the plunger (23) slides upwards, the part of the coating (25) positioned in the inner cavity of the bottle body (2 b) goes over the top of the wall of the bottle body (2 b) and reaches the outside of the bottle body (2 b), and the capacity for containing tablets is reduced.
1.2. Further: the membrane (25) is clamped with the upper end of the plunger (23).
1.3. Further: the film (25) is clamped with the lower end of the plunger (23).
1.4. Further: annular chutes (231) are formed in the outer ends of the upper side and the lower side of the plunger (23), a plurality of inclined blocks (241) are uniformly and fixedly connected to the inner end of the plunger cover (24), and the plunger cover (24) is clamped and positioned at the end part of the plunger (23) in the annular chutes (231) through the inclined blocks (241).
1.5. Further: the plunger piston cover (24) is made of plastic.
1.6. Further: the bottle body (2 b) is a hollow cylinder.
1.7. Further: the bottle body (2 b) is made of plastic.
1.8. Further: the bottle body (2 b) is made of metal.
1.9. Further: the membrane (25) is made of a flexible material.
1.10. Further: the medicine bottle is also provided with a medicine bottle cover which is used for sealing the medicine cavity for containing the tablets, and the medicine bottle cover is in adhesive connection with the leather membrane (25) which can be torn.
2. The intelligent tablet distribution machine comprises an outer shell, wherein an internal cavity and an external cavity are respectively arranged on the outer shell, a through hole for communicating the internal cavity with the external cavity is further formed in the outer shell, a base main body is arranged in the outer shell, the base main body penetrates through the through hole to enable two ends to be respectively arranged in the internal cavity and the external cavity, a second driving mechanism is arranged in the internal cavity and used for opening or closing a medicine bottle, a first driving mechanism is arranged in the external cavity and used for pushing out tablets in the medicine bottle, and the first driving mechanism and the second driving mechanism are respectively arranged at two ends of the base main body;
the base body is also connected with a positioning device close to the first driving mechanism, and the positioning device is used for limiting the medicine bottle on the base body and is difficult to move vertically;
still including installing first inductive switch and the second inductive switch in the base main part, when second actuating mechanism drive medicine bottle was opened and was stopped after triggering second inductive switch, tablet discharge in first actuating mechanism with the medicine bottle for the required number of tablet discharge in the medicine bottle, the back of finishing is discharged second actuating mechanism drive medicine bottle slowly replies to the closed condition and accomplishes the closed condition when triggering first inductive switch.
2.1, further: the base main part includes the pedestal, excavates the confession on the pedestal at least a mounting groove, the confession of first actuating mechanism installation at least a recess, the at least wire way that the power supply line was arranged, the confession of second actuating mechanism installation at least a constant head tank and the confession of medicine bottle grafting at least a mounting groove of first inductive switch and second inductive switch installation.
2.2, further: second actuating mechanism is including installing the second step motor in the base main part, connecting pinion, the driving-disc of being connected with pinion meshing in the second step motor output shaft outer end and keeping away from pinion one end and joint at the driving-disc and being in the spliced pole at the upper cover middle part of medicine bottle, the driving-disc middle part is equipped with the disc, be connected with a plurality of horizontal poles of evenly distributed between disc and the driving-disc inner wall, disc middle part fixedly connected with pivot, and the pivot rotates and connect in the base main part, pivot upper end fixedly connected with electro-magnet disc internally mounted has the iron ring, is fixed in between disc and the electro-magnet and the compression spring has been cup jointed in the pivot outside.
2.3, further: the first driving mechanism comprises a first stepping motor arranged on the base body, a screw rod connected to the outer end of an output shaft of the first stepping motor and a nut fixedly connected to the inner end of the base body and matched with the screw rod, and the first driving mechanism penetrates through the medicine bottle and is arranged on the inner side of the medicine bottle.
2.4, further: the positioning device comprises a shifting piece and a pair of positioning columns fixed on the base main body, the side end of the medicine bottle is provided with a notch, the shifting piece is transversely inserted into the notch to prevent the mounting foot from moving upwards, one end of the shifting piece is rotatably connected to the base main body, the other end of the shifting piece is fixedly connected with one of the positioning columns, and the stretching spring draws the shifting piece to one side close to the notch and enables the shifting piece to be in contact with the other positioning column.
2.5, further: the first induction switch and the second induction switch are both installed at the position, close to the disc, of the first base and are located on the same horizontal line with the cross rod, the first stepping motor drives the driving disc to rotate anticlockwise and clockwise, the first induction switch and the second induction switch can be triggered respectively, when the first induction switch is triggered, the electromagnet is powered on and powered off, when the second induction switch is triggered, the second stepping motor stops working, and the first driving mechanism pushes the tablets in the medicine bottle, so that the tablets in the medicine bottle are discharged in the required number.
2.6, further: the medicine bottle is the medicine bottle described in the technical content 1.
3. An intelligent tablet dispensing machine based on the internet of things comprises a control module, a dispensing machine as described in technical scheme 2.6, a container number identification module connected with the control module, a communication module connected with a server and a prompting device, wherein a button is mounted at the upper end of each dispensing machine and connected with the control module, and the container number identification module is used for reading a container number on the dispensing machine after the button is successfully pressed, uploading the acquired information to the server through the communication module for communication, acquiring user data of a server database corresponding to the dispensing machine number and accessed in the server, and then dispensing tablets in a medicine bottle through the dispensing machine; the prompting device is used for prompting the abnormal condition written in the server memory.
3.1, further: the user data of the server database comprises at least one item of user number, user identity card number, user name, address, personal contact telephone, guardian contact telephone, used distribution machine code, container code and distribution mode data.
Advantageous effects
Compared with the prior art, the invention has the advantages that:
the scheme can realize the monitoring of a plurality of distribution machines simultaneously, before tablets are distributed in a certain distribution machine, server-side database user data corresponding to the distribution machine number and stored in a server are automatically called according to the distribution machine number, when the user data about the distribution machine can be inquired in the server, tablets with required number can be distributed according to the user data, the probability of tablet type distribution errors and tablet number distribution errors among the plurality of distribution machines is greatly reduced, the safety degree of tablet distribution is guaranteed, the tablet distribution efficiency is improved, the whole process is automatically distributed by the system, and the medical cost is also reduced.
Secondly, the user only touches the medicine when taking the medicine, compared with the prior art, the contact between the reserved tablet and the hand of the user is less, the surface of the medicine is not easily polluted by sweat, and the quality guarantee of the reserved medicine is facilitated.
The flow direction of the medicine bottle can be tracked, the taking times and the taking quantity of the medicines can also be tracked, the tracking of controlled medicines is facilitated, the abuse risk of patients or non-patients to the medicines can be reduced, and the national control of the pharmacy of the pipes is facilitated.
The medicine taking system can track the flow direction of a medicine bottle and the taking times and quantity of medicines, is beneficial to tracking medicine taking of a patient, reduces the labor cost for tracking the medicine use of the patient by a doctor, improves the tracking efficiency, and increases the supervision capacity of a medical system for taking the medicine according to the quantity of the patient on time (for example, the medicine taking system is beneficial to preventing the medicine from being stopped privately caused by low self-making capacity or laziness or subjectively neglected attention of the mental patient, and the doctor can efficiently find the problem of the medicine taking of the mental patient in the home rehabilitation after adopting the medicine taking system.
The invention provides a brand-new medicine packaging technical idea and a brand-new medicine distribution idea.
Drawings
Fig. 1 is a sectional view showing the structure of the bottle body of the present invention.
Fig. 2 is a schematic structural diagram of a point a in fig. 1.
Fig. 3 is a schematic view of the structure of the plunger according to the present invention.
Fig. 4 is a perspective view showing the structure of the plunger cover according to the present invention.
Fig. 5 is a structural sectional view of the dispensing machine of the present invention.
Fig. 6 is a schematic structural diagram at B in fig. 5.
Fig. 7 is a front structural sectional view of the base body of the present invention.
Fig. 8 is a schematic top view of the base body of the present invention.
Fig. 9 is a schematic top view of the second driving mechanism of the present invention.
Fig. 10 is a schematic front view of the second driving mechanism of the present invention.
Fig. 11 is a perspective view of the screw according to the present invention.
Fig. 12 is a schematic structural view of the nut of the present invention.
Figure 13 is a perspective view of the dispensing machine of the present invention. Wherein the upper cover 2a is detachably connected with the second driving mechanism 4.
Fig. 14 is a schematic structural view at C in fig. 13.
FIG. 15 is a functional block diagram of a control module of the present invention.
FIG. 16 is a main control flow chart of the present invention.
FIG. 17 is a diagram of server database user data in accordance with the present invention.
FIG. 18 is a flow chart of a dispensing operation of the present invention.
Fig. 19 is a circuit for container numbering implemented in the present invention.
Fig. 20 is a circuit diagram of the present invention. The reference numbers illustrate: a first resistor (R1); a second resistor (R2); a third resistor (R3); integrated circuit number one (U1); integrated circuit number two (U2); integrated circuit number three (U3); a first triode (Q1); a second triode (Q2); a diode (D3); a buzzer (BUZ 1); a communication interface (P1); an electromagnet (RL 1); a first number induction switch (71); a second inductive switch (72); a button (S22); a first stepping motor (D51); and a second stepping motor (D41).
The reference numbers in the figures illustrate:
the medicine taking device comprises an outer shell 1, an internal cavity 1a, an external cavity 1b, a through hole 1c, a medicine receiving table 11, an upper cover 2a, a column tube 21, a mounting foot 22, a plunger 23, a 231 annular chute, a plunger cover 24, an inclined block 241, a base body 3, a base body 31, a mounting groove 32, an electric wire groove 33, a groove 34, a positioning groove 35, a mounting groove 36, a second driving mechanism 4, a second stepping motor 41, a pinion 42, a driving disc 43, a connecting column 44, a disc 45, a cross bar 46, a rotating shaft 47, an electromagnet 4a, an iron ring 4b, a compression spring 4c, a first driving mechanism 5, a first stepping motor 51, a screw 52, a nut 53, a positioning device 6, a positioning column 61, a shifting piece 62, a groove 63, a tension spring 64, a first induction switch 71 and a second induction switch 72.
Detailed Description
The drawings in the embodiments of the invention will be combined; the technical scheme in the embodiment of the invention is clearly and completely described; obviously; the described embodiments are only some of the embodiments of the invention; but not all embodiments, are based on the embodiments of the invention; all other embodiments obtained by a person skilled in the art without making any inventive step; all fall within the scope of protection of the present invention.
In the description of the present invention, it should be noted that the terms "upper", "lower", "inner", "outer", "row/bottom", etc., indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "disposed," "sleeved/connected," "connected," and the like are to be construed broadly, e.g., "connected," which may be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Example 1: referring to fig. 1-4, a medicine bottle includes a bottle body 2b with openings at two ends and an upper cover 2a covering an end of the bottle body 2b, the bottle body 2b includes a column tube 21 having a plurality of mounting feet 22 uniformly distributed along a circumferential direction at a lower end, a plunger 23 matching with the inside of the column body and slidably connected with an inner wall of the column body, a pair of plunger covers 24 and a membrane 25, the membrane 25 penetrates through an entire outer surface formed by the column tube 21 and the plunger 23 from a gap between two adjacent mounting feet 22 and is positioned by clamping the pair of plunger covers 24 at upper and lower ends of the plunger 23, annular chutes 231 are drilled at upper and lower outer ends of the plunger 23, a plurality of inclined blocks 241 are uniformly and fixedly connected to inner ends of the plunger covers 24, and the plunger covers 24 are clamped in the annular chutes 231 by the inclined blocks 241 to complete clamping positioning at ends of the plunger 23.
Example 2: 5-14, the intelligent tablet dispensing machine comprises the medicine bottle of embodiment 1, and further comprises an outer shell 1, wherein a medicine receiving table 11 is fixedly connected to the front end of the outer shell 1, and the medicine receiving table 11 is positioned below an upper cover 2a and used for containing tablets poured out of the medicine bottle;
an internal cavity 1a and an external cavity 1b are respectively arranged on the outer shell 1, a through hole 1c for communicating the internal cavity 1a with the external cavity 1b is further drilled on the outer shell 1, a base body 3 is arranged in the outer shell 1, the base body 3 penetrates through the through hole 1c to enable two ends to be respectively arranged in the internal cavity 1a and the external cavity 1b, a second driving mechanism 4 is arranged in the internal cavity 1a, the second driving mechanism 4 is used for opening or closing a medicine bottle, a first driving mechanism 5 is arranged in the external cavity 1b, the first driving mechanism 5 is used for pushing out tablets in the medicine bottle, and the first driving mechanism 5 and the second driving mechanism 4 are respectively arranged at two ends of the base body 3;
a positioning device 6 is further connected to the base body 3 near the first driving mechanism 5, and the positioning device 6 is used for limiting the medicine bottle on the base body 3 to be difficult to move vertically;
still including installing first inductive switch 71 and second inductive switch 72 on base main body 3, first inductive switch 71 and second inductive switch 72 all are connected with control module, when second actuating mechanism 4 drive medicine bottle is opened and is stopped until triggering second inductive switch 72 after, first actuating mechanism 5 is with tablet discharge in the medicine bottle for the required number of tablet discharge in the medicine bottle, discharge and finish the back 4 drive medicine bottles of second actuating mechanism and slowly reply to the closed condition and accomplish the closed condition until triggering first inductive switch 71.
The base body 3 comprises a base body 31 and at least 1 mounting groove 32 cut on the base body 31 for mounting the first driving mechanism 5, specifically, the first stepping motor 51 in the first driving mechanism 5 is mounted at the bottom end in the mounting groove 32, and the nut 53 is arranged at the inner side of the mounting groove 32; at least 1 groove 34 for installing the second driving mechanism 4, specifically, a groove for installing the second stepping motor 41 in the second driving mechanism 4 and a groove for inserting the rotating shaft 47 are provided, and a bearing is connected between the rotating shaft 47 and the groove when the rotating shaft 47 is inserted, so that the rotating shaft is not easy to move up and down; at least 1 wire groove 33 of the power supply line arrangement, the wire groove 33 enables the length of the wire used in connection to be shorter; at least 1 positioning groove 35 for inserting the medicine bottle, specifically, a plurality of positioning grooves 35 for inserting the installation feet 22 in the medicine bottle, is used for positioning the bottom of the medicine bottle so that the medicine bottle is not easy to rotate; and at least 2 mounting grooves 36 for mounting the first inductive switch 71 and the second inductive switch 72, for mounting the first inductive switch 71 and the second inductive switch 72.
Second actuating mechanism 4 is including installing second step motor 41 in base main part 3, connect the pinion 42 in second step motor 41 output shaft outer end, driving-disc 43 and the connection of being connected with the meshing of pinion 42 keep away from pinion 42 one end and the spliced pole 44 of joint at the upper cover 2a middle part of medicine bottle at driving-disc 43, driving-disc 43 middle part is equipped with disc 45, be connected with a plurality of horizontal poles 46 of evenly distributed between disc 45 and the driving-disc 43 inner wall, disc 45 middle part fixedly connected with pivot 47, and pivot 47 rotates and connects on base main part 3, pivot 47 upper end fixedly connected with electro-magnet 4a, at disc 45 internally mounted have hoop 4b, be fixed in between disc 45 and the electro-magnet 4a and cup jointed compression spring 4c in the pivot 47 outside.
The first driving mechanism 5 includes a first stepping motor 51 mounted on the base body 3, a screw 52 connected to an outer end of an output shaft of the first stepping motor 51, and a nut 53 fixedly connected to an inner end of the base body 3 and matching with the screw 52, and the first driving mechanism 5 is disposed through the medicine bottle inside thereof.
The positioning device 6 comprises a shifting piece 62 and a pair of positioning columns 61 fixed on the base main body 3, a notch 63 is cut at the side end of the medicine bottle, the shifting piece 62 is transversely inserted in the notch 63 to prevent the mounting foot 22 from moving upwards, one end of the shifting piece 62 is rotatably connected to the base main body 3, an extension spring 64 is fixedly connected between the other end of the shifting piece and one of the positioning columns 61, the extension spring 64 draws the shifting piece 62 close to one side of the notch 63 and enables the shifting piece to be in contact with the other positioning column 61, and specifically, the notch 63 is cut on one of the mounting feet 22 of the medicine bottle.
First inductive switch 71 and second inductive switch 72 are all installed in first base and are close to disc 45 department, be in same water flat line with horizontal pole 46, first inductive switch 71 and second inductive switch 72 can be triggered respectively when first step motor 51 drive driving-disc 43 anticlockwise and clockwise rotation, when first inductive switch 71 triggers, electro-magnet 4a break-make electricity is closed, when second inductive switch 72 triggers, 41 stop work of second step motor, and first actuating mechanism 5 promotes tablet in the medicine bottle, make the required number of tablet discharge in the medicine bottle.
Embodiment 3, as shown in fig. 15 to 19, an intelligent tablet dispensing machine based on the internet of things is an intelligent tablet dispensing machine based on embodiment 2, and includes a control module, a tablet bottle as in embodiment 1, an intelligent tablet dispensing machine as in embodiment 2, a container number identification module connected to the control module, a communication module connected to a server, and a prompting device, where a button is installed at an upper end of each dispensing machine, and the button is connected to the control module, and the container number identification module is configured to read a container number on the dispensing machine after the button is pressed successfully, and upload acquired information to the server through the communication module for communication, acquire service-side database user data corresponding to the dispensing machine number accessed in the server, and thereby dispense the tablet in the tablet bottle through the dispensing machine; the prompting device is used for prompting the abnormal condition written into the server memory, and the prompting device is used for prompting the abnormal condition written into the server memory and can prompt by accessing a display screen, a buzzer, a lamp and the like to the control module.
The server database user data includes a user number, a user identification number, a user name, an address, a personal contact phone, a guardian contact phone, a used distribution machine code, a container code, and distribution mode data including a forward rotation step number N and null data of the first stepping motor 51.
The main control flow is as follows:
s1: after a user presses a button on a dispensing machine, the control module judges whether the button is operated successfully or not, after the button is operated successfully, the container number is read through the container number identification module, and after the button is operated unsuccessfully, the operation enters idle operation for judging again;
s2: after the container number is successfully read, the communication module communicates with the server to obtain user data corresponding to the number, after the user data is successfully obtained, a distribution operation flow of the distribution machine is started, the taking-out process of tablets in the distribution machine is completed, then the communication module reports the operation success to the server, after the operation success is reported, a null operation is carried out so as to be convenient for next button excitation, in the process, if the container number is unsuccessfully read, the user data is unsuccessfully obtained, and the reporting operation is unsuccessfully carried out, failure information is transmitted to the server, the abnormality is recorded in a memory of the server, and meanwhile, the abnormality is prompted to the user through the prompting device.
The distribution operation flow of the distribution machine is specifically as follows:
firstly, the electromagnet 4a is electrified, and the compression spring 4c is compressed due to the suction force to drive the iron ring 4b to move upwards, so that the upper cover 2a is driven to move upwards through the disc 45, the cross rod 46, the driving disc 43 and the connecting column 44;
secondly, the second stepping motor 41 rotates forward to drive the pinion 42, so that the driving disk 43 meshed with the pinion 42 rotates reversely, thereby driving the upper cover 2a to be staggered with the medicine bottle, the second stepping motor 41 stops working until the cross bar 46 triggers the second inductive switch 72, and at the moment, the second stepping motor 41 returns to rotate when the second inductive switch 72 is not triggered;
thirdly, the control module controls the first stepping motor 51 to rotate forward to drive the nut 53 to ascend to push the plunger 23 to discharge tablets in the medicine bottle, and the control module presets the forward rotation step number N of the first stepping motor 51 according to the serial number of each distribution machine to discharge the required tablets according to the step number N;
fourthly, the control module controls the second stepping motor 41 to rotate reversely again until the first induction switch 71 is triggered, at the moment, the upper cover 2a rotates to the position above the medicine bottle, the electromagnet 4a is closed, the upper cover 2a is tightly pressed in the port of the medicine bottle under the action of the compression spring 4c, the tablet distribution process is completed, and in the process, the first induction switch 71 returns to the second stepping motor 41 to rotate until the electromagnet 4a is closed after being triggered when not being triggered.
Example 4: referring to fig. 20, the intelligent tablet dispensing machine according to example 3 comprises a first resistor, a second resistor, a third resistor, a first ic, a second ic, a third ic, a first transistor, a second transistor, a diode, a buzzer, a communication interface, an electromagnet, a first inductive switch, a second inductive switch, a button, a first stepping motor, and a second stepping motor;
the model of the first integrated circuit is STM32F103C6, the model of the second integrated circuit is ULN2003A, and the model of the third integrated circuit is ULN 2003A;
the second pin of the first integrated circuit is connected with the base electrode of the first triode, the first pin of the buzzer is connected with the emitting electrode of the first triode, the first pin of the second resistor is connected with the second pin of the buzzer, the second pin of the third resistor is connected with the anode of the diode, the base electrode of the second triode is connected with the anode of the diode, the sixth pin of the electromagnet is connected with the collector electrode of the second triode, the fourteenth pin of the electromagnet is connected with the first pin of the electromagnet, the eighth pin of the electromagnet is connected with the seventh pin of the electromagnet, the first pin of the second integrated circuit is connected with an electrical node PA1, the first eleven pin of the first integrated circuit is connected with an electrical node PA1, the second pin of the second integrated circuit is connected with an electrical node PA2, the first twelve pin of the first integrated circuit is connected with an electrical node PA2, and the third pin of the second integrated circuit is connected with an electrical node PA3, the first thirteen pin of the first integrated circuit is connected with an electrical node PA3, the fourth pin of the second integrated circuit is connected with an electrical node PA4, the first fourteen pin of the first integrated circuit is connected with an electrical node PA4, the first pin of the third integrated circuit is connected with an electrical node PA5, the first fifteen pin of the first integrated circuit is connected with an electrical node PA5, the second pin of the third integrated circuit is connected with an electrical node PA6, the first sixteen pin of the first integrated circuit is connected with an electrical node PA6, the third pin of the third integrated circuit is connected with an electrical node PA7, the first seventeenth pin of the first integrated circuit is connected with an electrical node PA7, the fourth pin of the third integrated circuit is connected with an electrical node PA8, the twenty ninth pin of the first integrated circuit is connected with an electrical node PA8, the second pin of the communication interface is connected with an electrical node RXD, the thirty-first pin of the first integrated circuit is connected with an electrical node RXD, the third pin of the communication interface is connected with an electrical node TXD, the thirtieth pin of the first integrated circuit is connected with the electrical node TXD, the first pin of the first resistor is connected with an electrical node BEEP, the thirty-second pin of the first integrated circuit is connected with the electrical node BEEP, the COM pin of the second inductive switch is connected with an electrical node SW2, the COM pin of the first inductive switch is connected with the COM pin of the button, the first pin of the button is connected with an electrical node BT1, the first eighteenth pin of the first integrated circuit is connected with an electrical node P0, the first nineteenth pin of the first integrated circuit is connected with the eighteenth pin of the communication interface, the twentieth pin of the first integrated circuit is connected with an electrical node P2, the thirty-ninth pin of the first integrated circuit is connected with an electrical node P3, the forty pin of the first integrated circuit is connected with an electrical node P4, and the forty pin of the first integrated circuit is connected with an electrical node P5, the first pin of the third resistor is connected with an electrical node JD41, the twenty-fifth pin of the first integrated circuit is connected with an electrical node JD41, the first thirteen pin of the electromagnet is connected with the ninth pin of the electromagnet, the first sixteen pin of the second integrated circuit is connected with an electrical node D12, the A1 pin of the second stepping motor is connected with an electrical node D12, the first fifteen pin of the second integrated circuit is connected with an electrical node D13, the A2 pin of the second stepping motor is connected with an electrical node D13, the first thirteen pin of the second integrated circuit is connected with an electrical node D15, the B1 pin of the second stepping motor is connected with an electrical node D15, the first fourteen pin of the second integrated circuit is connected with an electrical node D14, the B2 pin of the second stepping motor is connected with an electrical node D14, the first sixteenth pin of the third integrated circuit is connected with an electrical node D22, and the A1 pin of the first stepping motor is connected with an electrical node D22, the fifteenth pin of the third integrated circuit is connected with an electrical node D23, the A2 pin of the first stepping motor is connected with an electrical node D23, the first thirteen pin of the third integrated circuit is connected with an electrical node D25, the B1 pin of the first stepping motor is connected with an electrical node D25, the fourteenth pin of the third integrated circuit is connected with an electrical node D24, the B2 pin of the first stepping motor is connected with an electrical node D24, the forty-second pin of the first integrated circuit is connected with an electrical node P6, the forty-seventh pin of the first integrated circuit is connected with an electrical node GND, the thirty-fifth pin of the first integrated circuit is connected with an electrical node GND, the twenty-third pin of the first integrated circuit is connected with an electrical node GND, the eighth pin of the second integrated circuit GND is connected with an electrical node, the eighth pin of the third integrated circuit is connected with an electrical node GND, the second pin of the second integrated circuit is connected with an electrical node GND, the second pin of the button is connected with an electrical node GND, the NO pin of the second inductive switch is connected with the electrical node GND, the NO pin of the first inductive switch is connected with the electrical node GND, the emitter of the second triode is connected with the electrical node GND, the electrical node VSS is connected with the electrical node GND, the eighth pin of the first integrated circuit is connected with the electrical node VCC, the ninth pin of the first integrated circuit is connected with the electrical node VCC, the forty-eighth pin of the first integrated circuit is connected with the electrical node VCC, the thirty-sixth pin of the first integrated circuit is connected with the electrical node VCC, the twenty-fourth pin of the first integrated circuit is connected with the electrical node VCC, the BC pin of the second stepping motor is connected with the electrical node VCC, the AC pin of the second stepping motor is connected with the electrical node VCC, the ninth pin of the second integrated circuit is connected with the electrical node VCC, the collector of the first triode is connected with the electrical node VCC, the second foot of electro-magnet links to each other with electric node VCC, the negative pole of diode links to each other with electric node VCC, No. three integrated circuit's ninth foot links to each other with electric node VCC, No. one step motor's BC foot links to each other with electric node VCC, No. one step motor's AC foot links to each other with electric node VCC, electric node D11 links to each other with electric node VCC, electric node D21 links to each other with electric node VCC, electric node VCC/VDD links to each other with electric node VCC, electric node VSSA links to each other with electric node VCC, electric node VDDA links to each other with electric node VCC, electric node VDD links to each other with electric node VCC. There is also a dc power supply which is common knowledge to those skilled in the art and will not be described in detail.
Example 3, an intelligent tablet dispensing machine according to example 2, wherein the following control program is recorded in the first integrated circuit:
#include "main.h"
#define ceshi 1
#define SPEED 10
#define Start_Diancitie HAL_GPIO_WritePin(JD1_GPIO_Port, JD1_Pin, GPIO_PIN_SET)
#define Stop_Diancitie HAL_GPIO_WritePin(JD1_GPIO_Port, JD1_Pin, GPIO_PIN_RESET)
#define S18_Read HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_15)
#define S17_Read HAL_GPIO_ReadPin(GPIOB,GPIO_PIN_14)
UART_HandleTypeDef huart1;
typedef struct { uint32_t Rongqi_Code; uint32_t Fenfa_Code; } FenFa_TX_TypeDef;
FenFa _ TX _ TypeDef FenFa _ TX;/distributing data sent by machine to server
typedef struct
{ uint32_t Motor1_Step_Clockwise; uint32_t unused1; uint32_t unused2;
uint32_t unused3; uint32_t unused4; uint32_t unused5; } FenFa_Fangshi_TypeDef;
FenFangshi _ TypeDef FenFangshi;/distribution mode data structure
typedef struct
{ uint32_t User_Code; uint8_t User_Name[20]; uint32_t Fenfa_Code;
FenFa_Fangshi_TypeDef FenFa_Fangshi;
FenFa _ RX _ TypeDef// user data sent by the server to the distributing machine
FenFa_RX_TypeDef FenFa_RX;
uint8_t User_ID;uint8_t Read_ID_Record;uint32_t Motor2_Step;uint32_t Motor1_Step;
void Motor1_Clockwise(void);void Motor1_Anticlockwise(void);void Motor1_Stop(void);
void Motor2_Clockwise(void);void Motor2_Anticlockwise(void);void Motor2_Stop(void);
void Fenfa(void);uint8_t KEY_Scan(uint8_t mode);
int main(void)
{ uint32_t i; SystemClock_Config(); MX_GPIO_Init(); MX_USART1_UART_Init();
while (1)
{ if (1= = KEY _ Scan (0))// KEY Scan S22
{ User _ ID = ((GPIOB- > IDR) &0x007E) > > 1;/read number
FenFa_TX.Rongqi_Code=User_ID;
HAL _ UART _ Transmit (& huart1, (U8 _ t) & FenFa _ TX, sizeof (FenFa _ TX), 10);// send number data request
}
if (Read _ ID _ Record)// Read Server user ID data success
{ Fenfa();
HAL _ UART _ Transmit (& huart1, & Read _ ID _ Record,1, 10);/Serial Port sending report operation success
Else// failure in reading server data, buzzer alarm
{ for(i=0;i<1000;i++)
{HAL_GPIO_TogglePin(GPIOA,GPIO_PIN_11); HAL_Delay(1); } } } }
void SystemClock_Config(void)
{ RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) { Error_Handler(); }
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_HSI;
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK)
{ Error_Handler(); }
}
static void MX_USART1_UART_Init(void)
{ huart1.Instance = USART1; huart1.Init.BaudRate = 115200;
huart1.Init.WordLength = UART_WORDLENGTH_8B;
huart1.Init.StopBits = UART_STOPBITS_1; huart1.Init.Parity = UART_PARITY_NONE;
huart1.Init.Mode = UART_MODE_TX_RX; huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
huart1.Init.OverSampling = UART_OVERSAMPLING_16;
if (HAL_UART_Init(&huart1) != HAL_OK) { Error_Handler(); }
}
static void MX_GPIO_Init(void)
{ GPIO_InitTypeDef GPIO_InitStruct = {0}; __HAL_RCC_GPIOA_CLK_ENABLE();
__HAL_RCC_GPIOB_CLK_ENABLE();
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4
|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8
|GPIO_PIN_11, GPIO_PIN_RESET);
HAL_GPIO_WritePin(JD1_GPIO_Port, JD1_Pin, GPIO_PIN_RESET);
GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4
|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8
|GPIO_PIN_11;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|BT1_Pin|GPIO_PIN_3
|GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_PULLUP;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); GPIO_InitStruct.Pin = JD1_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(JD1_GPIO_Port, &GPIO_InitStruct);
GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
GPIO_InitStruct.Pull = GPIO_NOPULL; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
HAL_NVIC_SetPriority(EXTI15_10_IRQn, 0, 0); HAL_NVIC_EnableIRQ(EXTI15_10_IRQn);
}
uint8_t KEY_Scan(uint8_t mode)
{ static agent 8_ t key _ up = 1;// Key Release flag
if (mode = =1) key _ up = 1// support for continuous press
if(key_up&&(KEY0==0))
{ HAL_Delay(10); ; key_up=0; if(KEY0==0) return 1;
} else if (KEY0= =1) KEY _ up =1; return 0;/no KEY press
}
void Motor1_Anticlockwise(void){
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_1,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_4,GPIO_PIN_RESET); HAL_Delay(SPEED);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_2,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_1,GPIO_PIN_RESET); HAL_Delay(SPEED);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_3,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_2,GPIO_PIN_RESET); HAL_Delay(SPEED);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_4,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_3,GPIO_PIN_RESET); HAL_Delay(SPEED); }
void Motor1_Clockwise(void){
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_4,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_1,GPIO_PIN_RESET); HAL_Delay(SPEED);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_3,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_4,GPIO_PIN_RESET); HAL_Delay(SPEED);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_2,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_3,GPIO_PIN_RESET); HAL_Delay(SPEED);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_1,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_2,GPIO_PIN_RESET); HAL_Delay(SPEED);
}
void Motor1_Stop(void){
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_1,GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_2,GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_3,GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_4,GPIO_PIN_RESET);
}
void Motor2_Anticlockwise(void){
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_5,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_8,GPIO_PIN_RESET); HAL_Delay(SPEED);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_6,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_5,GPIO_PIN_RESET); HAL_Delay(SPEED);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_7,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_6,GPIO_PIN_RESET); HAL_Delay(SPEED);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_8,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_7,GPIO_PIN_RESET); HAL_Delay(SPEED); }
void Motor2_Clockwise(void){
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_8,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_5,GPIO_PIN_RESET); HAL_Delay(SPEED);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_7,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_8,GPIO_PIN_RESET); HAL_Delay(SPEED);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_6,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_7,GPIO_PIN_RESET); HAL_Delay(SPEED);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_5,GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_6,GPIO_PIN_RESET); HAL_Delay(SPEED); }
void Motor2_Stop(void){
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_5,GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_6,GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_7,GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_8,GPIO_PIN_RESET);
}
void Fenfa(void){
Agent 32-t i, Start _ Diancite,/Start electromagnet
while (1= = S18_ Read)// Read the second inductive switch value, determine whether triggered
{ Motor2_ Clockwise (),/stepping Motor # II/Forward rotation
Motor2_ Step + +/count Step Motor2 steps
}
Motor2_Stop();
for (i =0; i < Motor1_ Step; i + +// driving the first stepping Motor X steps
{ Motor1_Clockwise(); }
Motor1_Stop();
while (1= = S17_ Read)// Read first inductive switch value, determine whether triggered
{ Motor2_ Clockwise (),/stepping Motor # II/Forward rotation
Motor2_ Step + +/count Step Motor2 steps
}
Motor2_Stop(); Stop_Diancitie;
}
void Error_Handler(void){ }
#ifdef USE_FULL_ASSERT
void assert_failed(uint8_t *file, uint32_t line){ }
#endif
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
The control program is compiled by Keil uVision3 and then burned in the first integrated circuit.
Embodiment 4, on the basis of embodiment 1, a function of receiving prompt information of a server is added to the dispensing machine, and the server sends prompt information, such as a sound prompt signal or a flash prompt signal, to the patient through the dispensing machine on time according to the medicine bottle information and the medicine schedule recorded by the doctor, so as to prompt the patient to take medicine on time.
The above; but are merely preferred embodiments of the invention; the scope of the invention is not limited thereto; any person skilled in the art is within the technical scope of the present disclosure; the technical scheme and the improved concept of the invention are equally replaced or changed; are intended to be covered by the scope of the present invention.

Claims (10)

1. An intelligent tablet dispensing machine based on the internet of things, characterized in that: the intelligent tablet distribution machine comprises a control module, intelligent tablet distribution machines, a container number identification module connected with the control module, a communication module connected with a server and a prompting device, wherein a button is installed at the upper end of each distribution machine and connected with the control module, the container number identification module is used for reading a container number on the distribution machine after the button is successfully pressed, uploading the acquired information to the server through the communication module for communication, acquiring service end database user data corresponding to the distribution machine number and accessed in the server, and distributing tablets in a medicine bottle through the distribution machine; the prompting device is used for prompting the abnormal condition written in the server memory;
the intelligent tablet distribution machine comprises an outer shell, wherein an internal cavity and an external cavity are respectively arranged on the outer shell, a through hole for communicating the internal cavity with the external cavity is further formed in the outer shell, a base main body is arranged in the outer shell, the base main body penetrates through the through hole to enable two ends to be respectively arranged in the internal cavity and the external cavity, a second driving mechanism is arranged in the internal cavity and used for opening or closing a medicine bottle, a first driving mechanism is arranged in the external cavity and used for pushing out tablets in the medicine bottle, and the first driving mechanism and the second driving mechanism are respectively arranged at two ends of the base main body;
the base body is also connected with a positioning device close to the first driving mechanism, and the positioning device is used for limiting the medicine bottle on the base body and is difficult to move vertically;
the medicine bottle closing device is characterized by further comprising a first inductive switch and a second inductive switch which are installed on the base main body, the second driving mechanism drives the medicine bottle to be opened until the medicine bottle is stopped after the second inductive switch is triggered, the first driving mechanism discharges the tablets in the medicine bottle, the required number of tablets in the medicine bottle is discharged, and after the medicine bottle is discharged, the second driving mechanism drives the medicine bottle to slowly return to a closing state until the closing state is completed when the first inductive switch is triggered;
the base main body comprises a base body, at least one mounting groove formed in the base body and used for mounting the first driving mechanism, at least one groove used for mounting the second driving mechanism, at least one wire groove for arranging power supply wires, at least one positioning groove for inserting the medicine bottle and at least one mounting groove for mounting the first induction switch and the second induction switch;
the second driving mechanism comprises a second stepping motor arranged in the base main body, a pinion connected to the outer end of an output shaft of the second stepping motor, a driving disc meshed with the pinion and a connecting column connected to one end, far away from the pinion, of the driving disc and clamped in the middle of the upper cover of the medicine bottle, a disc is arranged in the middle of the driving disc, a plurality of cross rods which are uniformly distributed are connected between the disc and the inner wall of the driving disc, a rotating shaft is fixedly connected to the middle of the disc and rotatably connected to the base main body, an electromagnet is fixedly connected to the upper end of the rotating shaft, an iron ring is arranged in the disc, and a compression spring is fixed between the disc and the electromagnet and sleeved outside the;
the first driving mechanism comprises a first stepping motor arranged on the base main body, a screw rod connected to the outer end of an output shaft of the first stepping motor and a nut fixedly connected to the inner end of the base main body and matched with the screw rod, and the first driving mechanism penetrates through the medicine bottle and is arranged on the inner side of the medicine bottle;
the positioning device comprises a shifting piece and a pair of positioning columns fixed on the base main body, notches are formed in the side ends of the medicine bottles, the shifting piece is transversely inserted into the notches to prevent the mounting feet from moving upwards, one end of the shifting piece is rotatably connected to the base main body, an extension spring is fixedly connected between the other end of the shifting piece and one of the positioning columns, and the extension spring pulls the shifting piece close to one side close to the notches and enables the shifting piece to be in contact with the other positioning column;
the first induction switch and the second induction switch are both arranged at the position, close to the disc, of the first base and are positioned on the same horizontal line with the cross rod, the first stepping motor drives the driving disc to rotate anticlockwise and clockwise, the first induction switch and the second induction switch can be triggered respectively, when the first induction switch is triggered, the electromagnet is powered on and powered off, when the second induction switch is triggered, the second stepping motor stops working, and the first driving mechanism pushes the tablets in the medicine bottle, so that the required number of tablets in the medicine bottle can be discharged;
the medicine bottle comprises a bottle body (2 b), a membrane (25) and a plunger (23);
the two ends of the bottle body (2 b) are opened;
the bottle body (2 b) comprises a column tube (21) the lower end of which is uniformly provided with a plurality of mounting feet (22) along the circumferential direction;
the outer diameter of the plunger (23) is matched with the inner diameter of the bottle body (2 b);
the plunger (23) can slide along the inner wall in the bottle body (2 b);
the film (25) penetrates through the gap between two adjacent mounting feet (22) and is wrapped on the surface of the whole body formed by the column tube (21) and the plunger (23), and the film forms a medicine cavity with an upward opening for containing tablets in the bottle body (2 b);
the leather membrane (25) is fixedly connected with the upper end of the plunger (23);
the membrane (25) is fixedly connected with the lower end of the plunger (23);
when the plunger (23) slides downwards, the part of the film (25) positioned outside the bottle body (2 b) is overturned over the top of the wall of the bottle body (2 b) and reaches the inner cavity of the bottle body (2 b), so that the capacity of containing tablets is increased;
when the plunger (23) slides upwards, the part of the coating (25) positioned in the inner cavity of the bottle body (2 b) goes over the top of the wall of the bottle body (2 b) and reaches the outside of the bottle body (2 b), and the capacity for containing tablets is reduced.
2. An internet of things based intelligent tablet-dispensing machine according to claim 1, wherein: the server-side database user data comprises user numbers.
3. An internet of things based intelligent tablet-dispensing machine according to claim 1, wherein: and the server side database user data is the user identity card number.
4. An internet of things based intelligent tablet-dispensing machine according to claim 1, wherein: the server side database user data comprises user names.
5. An internet of things based intelligent tablet-dispensing machine according to claim 1, wherein: the server database user data includes the used distribution machine code.
6. An internet of things based intelligent tablet-dispensing machine according to claim 1, wherein: the server-side database user data comprises a container code.
7. An internet of things based intelligent tablet-dispensing machine according to claim 1, wherein: the server-side database user data comprises distribution mode data.
8. An internet of things based intelligent tablet-dispensing machine according to claim 1, wherein: the server database user data comprises addresses.
9. An internet of things based intelligent tablet-dispensing machine according to claim 1, wherein: the server side database user data comprises personal contact telephone numbers.
10. An internet of things based intelligent tablet-dispensing machine according to claim 1, wherein: the user data of the server-side database comprises a guardian contact telephone.
CN202010872483.XA 2020-08-26 2020-08-26 Intelligent tablet distributing machine based on Internet of things Withdrawn CN111977132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010872483.XA CN111977132A (en) 2020-08-26 2020-08-26 Intelligent tablet distributing machine based on Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010872483.XA CN111977132A (en) 2020-08-26 2020-08-26 Intelligent tablet distributing machine based on Internet of things

Publications (1)

Publication Number Publication Date
CN111977132A true CN111977132A (en) 2020-11-24

Family

ID=73440645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010872483.XA Withdrawn CN111977132A (en) 2020-08-26 2020-08-26 Intelligent tablet distributing machine based on Internet of things

Country Status (1)

Country Link
CN (1) CN111977132A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060124655A1 (en) * 2004-12-11 2006-06-15 Nitesh Ratnakar Smart Medicine Container
CN201235076Y (en) * 2007-08-01 2009-05-13 董玲 Apparatus for transporting active component or its preparation with passive movement mode
US20140277707A1 (en) * 2013-03-15 2014-09-18 Makefield Llc Dispensing systems with supplemental functions
CN203866009U (en) * 2014-06-03 2014-10-08 嘉兴职业技术学院 Automatic separating machine for caps and bodies of plastic bottles
CN204776776U (en) * 2015-05-03 2015-11-18 刘兵 Dedicated western medicine held bottle night
CN206381382U (en) * 2016-09-14 2017-08-08 深圳市云海物联科技有限公司 Medicine box
CN206537749U (en) * 2017-02-20 2017-10-03 重庆医药高等专科学校 pop-up medicine bottle
CN206534868U (en) * 2016-11-03 2017-10-03 中国人民解放军总医院 Novel drug bottle
CN206915051U (en) * 2017-07-09 2018-01-23 上海复华兴生物技术有限公司 A kind of medicine bottle of replaceable medicine inner bag
CN110693712A (en) * 2019-10-13 2020-01-17 温州医科大学附属第二医院、温州医科大学附属育英儿童医院 Medical intelligent medicine box system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060124655A1 (en) * 2004-12-11 2006-06-15 Nitesh Ratnakar Smart Medicine Container
CN201235076Y (en) * 2007-08-01 2009-05-13 董玲 Apparatus for transporting active component or its preparation with passive movement mode
US20140277707A1 (en) * 2013-03-15 2014-09-18 Makefield Llc Dispensing systems with supplemental functions
CN203866009U (en) * 2014-06-03 2014-10-08 嘉兴职业技术学院 Automatic separating machine for caps and bodies of plastic bottles
CN204776776U (en) * 2015-05-03 2015-11-18 刘兵 Dedicated western medicine held bottle night
CN206381382U (en) * 2016-09-14 2017-08-08 深圳市云海物联科技有限公司 Medicine box
CN206534868U (en) * 2016-11-03 2017-10-03 中国人民解放军总医院 Novel drug bottle
CN206537749U (en) * 2017-02-20 2017-10-03 重庆医药高等专科学校 pop-up medicine bottle
CN206915051U (en) * 2017-07-09 2018-01-23 上海复华兴生物技术有限公司 A kind of medicine bottle of replaceable medicine inner bag
CN110693712A (en) * 2019-10-13 2020-01-17 温州医科大学附属第二医院、温州医科大学附属育英儿童医院 Medical intelligent medicine box system

Similar Documents

Publication Publication Date Title
CN106023466B (en) The interconnection of doctors and patients&#39; prescription and intelligent drug storage dissemination system
AU605323B2 (en) Medication clock
US20200335192A1 (en) Medication administration and adherence systems and related methods
US7440817B2 (en) Method and control unit for medication administering devices
US6088429A (en) Interactive telephony system
US7369919B2 (en) Medication adherence system
US5088056A (en) Medication clock
US6680999B1 (en) Interactive telephony system
US20160263317A1 (en) Device for enabling patient self-testing and treatment self-adminstration and system using the device for managing the patient&#39;s health care
CN101711149B (en) Tablet dispenser system
US20060231109A1 (en) Personal and portable bottle
US20010032098A1 (en) Internet ready medical device
CN102354186A (en) Medical intelligent comprehensive control system of patient bedside information
JPH1125190A (en) Outpatient nursing data system
EP1211628A3 (en) Portable terminal and health management method and system using portable terminal
CN207242516U (en) A kind of intelligent medicine box
CN101052985A (en) Method and apparatus for generating patient reminders
JP2022162145A (en) Computerized Oral Prescription Drug Administration and Related Systems and Methods with Refillable Drug Dispensing Devices
CN112009846B (en) Medicine bottle
US6973435B1 (en) Method and system for ordering services or products, including prescriptions
CN111977132A (en) Intelligent tablet distributing machine based on Internet of things
CN111977133A (en) Circuit for an intelligent tablet-dispensing machine
CN111959918A (en) Intelligent tablet dispensing machine
US7305344B2 (en) Wirelessly loaded speaking consumer product container method and system
CN206434525U (en) A kind of medicine-taking vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20201124

WW01 Invention patent application withdrawn after publication