|
1.INTRODUCTIONAt present, about 80% of China’s medical resource are concentrated in cities, and nearly 80% of the medical resources in cities are concentrated in large hospitals, people living in rural and remote areas generally face the problem of lack of medical care and medicine, while the medical resources in urban centers are firmly occupied by patients with minor and frequent illnesses, leading to a waste of medical resources. At the same time, when conducting social statistics, it was found that only about one-tenth of pharmacies in China 24-hour sales to meet customers’ supper needs cannot be satisfied. Based on the above problems, the author developed an integrated intelligent unmanned medicine cabinet for medical care and medicine sales to improve the current situation1. We use artificial intelligence and other advanced technologies to build an unmanned medicine cabinet intelligent brain. Combined with the current mature real-time calls, intelligent vending machine, based on the Internet of Things, it is an intelligent medical system with a remote Bluetooth module as the core and a single-chip microcomputer as the core. Through the application of artificial intelligence technology, common diseases of patients can be effectively solved, the workload of large hospitals can be reduced, and repeated manual operations can be replaced by artificial intelligence and other technologies, thereby reducing the operating costs of pharmacies. In order to build a reasonable and sustainable intelligent medical ecosystem, and promote the deep integration of artificial intelligence and the pharmaceutical industry2-5 2.OVERALL RESEARCH IDEA AND METHODOLOGYIn the composition of unmanned medicine cabinet hardware, the first is the upper computer operation part, through the USB interface to access the intelligent touch screen to the upper computer. Next is the cargo channel control part, combining Bluetooth technology and cell phone terminal applet to transmit instructions to the 51 MCU, the MCU receives the instructions and then controls the motors of the cargo channel and the pickup platform respectively through the L298N DC motor drive module to push out the drugs to the pickup port and use the sensor feedback to complete the drug purchase operation. The intelligent medicine cabinet system is shown in Figure 1. 3.X-Y TYPE CARGO CHANNEL CONTROLThe traditional pusher is usually transported in an elastic way, which is convenient and convenient, but it is only suitable for goods that are not easily broken, and there is a big limit on the size of the goods. Intelligent automatic medicine box, using new X-Y channel,,which can ensure that fragile drugs are intact. MCS-51 is used as the main control chip. The crawler and X-Y cargo channel are controlled by the L298N drive motor to complete the drug-pushing work. The system requires high-precision positioning of the x-axis and y-axis motors, so the PID algorithm with PWM modulation can be considered to realize the motor speed regulation by software programming inside the microcontroller, which can reduce the power consumption and at the same time make the motor speed be controlled effectively. The User drug purchase process is shown in Figure 25, 6. 3.1PWMPulse Width Modulation (PWM) is a very effective technique. The analog circuit is controlled using the digital output of the microprocessor. For 51 Single - Chip Computer, the IO port output is a digital signal, and we need to output different analog voltage to add to the enabling side of the L298N driver chip to adjust the motor speed. Therefore, PWM is used by this system to convert digital signals to analog signals and to obtain different analog voltage signals. Changes in the duty cycle of the output square wave at the input/output port. For a DC motor, when the output pin is high, the motor rotates; when the output is low, the motor stops. That is, the higher the duty cycle of the PWM wave, the higher the output analog voltage value, and the faster the speed of the DC motor. Through the experiment, we have determined that the DC motor can reach a more suitable speed when the duty cycle is about 70%. The code to generate PWM is shown in the Appendix. 3.2Incremental PID algorithm speed controlIncremental PID speed adjustment has three adjustment modes: proportional adjustment, integral adjustment and differential adjustment. Scale adjustment refers to the scale adjustment of the deviation of the system. The larger the proportional parameter is, the faster the system adjusts. However, if the proportional parameter is too large, it will affect the stability of the system. The purpose of integral adjustment is to eliminate the steady state error of the system by integrating. The strength of the integral adjustment is related to the integral time constant of Ti. As the time constant decreases, the combined effect also increases. The difference adjustment is an important indicator to reflect the system offset rate. The method can predict the change trend of the offset and generate an amplification factor to reduce the error. With suitable differential parameters, it not only can reduce overshoot but also can shorten the adjustment time. The effect of different parameters of PID on the signal is shown in Figure 47-8. The block diagram of the PID is shown in Figure 3. The system consists of input, PID controller, controlled object, feedback, output, etc. PID is a kind of linear control, which forms the control quantity by a linear combination of proportional (P), integral (I), and differential (D) of the deviation of the given value r(t) from the actual output value y(t), to control the object you need. The parameters and their meanings are shown in Table 1. Table 1.Parameters and meanings.
The differential equation of PID is: The discretization process results as follows: The essence of PID parameters tuning is to improve the dynamic and static indexes of the system by changing the parameters of the regulator to match its characteristics with those of the process, so as to achieve the best control effect. The patchwork test method on the engineering tuning method was adopted by the system. The X-axis motor of the X-Y cargo receiving platform is measured several times at P=0.23, I=0.07, and D=0.03, and the Y-axis motor is measured at P=0.36, I=0.06, and D=0.02 with the best W-stability performance, the smallest output error, and the speed stability as required. The effect of different parameters of PID on the signal is shown in Figure 49. The code for the PID algorithm is shown in the Appendix. 4.BLUETOOTH AND SMALL PROGRAMSWeChat applets are increasingly accepted by the public as a new open platform that can be used without downloading any application. The WeChat applet for online purchase was adopted by the smart medicine cabinet system, which mainly based on WeChat developer tools, and combined with WXSS, WXML, Java Script, JSON, the four languages for development10. Customers only need to scan the code to enter the small program and choose the medicine they need to buy. This way makes it unnecessary for customers to choose from the original touch screen, avoiding indirect contact with other customers and avoiding the secondary spread of epidemics. The applet communicates with the 51 microcontroller in the smart medicine cabinet system through the HC-08 Bluetooth module to transmit information about the medicine selected by customers to the system. After receiving the corresponding information, the microcontroller will send out control instructions to push the medicine, and finally, users can successfully get the medicine they need. 5.CONCLUDING REMARKSThe new X-Y type cargo channel and WeChat small program for purchasing medicine are adopted by the 51 microcontroller-based smart medicine cabinet. This greatly reduces the damage to the goods caused by the high drop of the traditional vending machine due to the transportation method. At the same time, the use of unmanned medicine cabinets reduces the cost of selling medicine at night in pharmacies and meets people’s demand for medicine at different periods. It can also alleviate the problem of difficulty in purchasing medicine to a certain extent for areas where medical resources are less allocated. At the same time, it promotes the deep integration of intelligence and medical care. REFERENCESChen, M., Wu, Q., Zhang, F., et al.,
“Challenges and insights of intelligent health care services,”
Chinese Journal of Hospital Management, 29
(8), 597
–599
(2013). Google Scholar
Istepanian, R. S., Woodward, B. and Richards, C. I.,
“Advances in telemedicine using mobile communications,”
IEEE 2001 23rd Annual International Conference of the IEEE Engineering Medicine and Biology Society, 3556
–3558 Istanbul, Turkey, New York, IEEE,2001). https://doi.org/10.1109/4233.908361 Google Scholar
Marescaux, J., Leroy, J., Gagner, M., et al.,
“Transatlantic robot-assisted telesurgery,”
Nature, 413
(6854), 379
–380 2001). https://doi.org/10.1038/35096636 Google Scholar
Shenai, M. B., Tubbs, R. S., Guthrie, B. L., et al.,
“Virtual interactive presence for real-time, long-distance surgical collaboration during complex microsurgical procedures,”
J. Neurosurg, 121
(2), 277
–284
(2014). https://doi.org/10.3171/2014.4.JNS131805 Google Scholar
Wang, X., Zhang, H., Liu, Z., He, R. and Wang, Z.,
“Intelligent medical system of unmanned pharmacy based on InternetPlus,”
in 2021 International Conference on Networking, Communications and Information Technology (NetCIT),
(2021). Google Scholar
Zhang, C., Wang, T. and Li, C.,
“Microcontroller-based speed control of DC motor,”
Chemical Automation and Instrumentation, 46
(11), 885
–890
(2019). Google Scholar
Zhao, Z.,
“[Control and Application of Vending Machine Based on Embedded System],”
Soochow University, Jiangsu, (2017). Google Scholar
Zhu, R. and Wu, H.,
“DC motor speed control system based on incremental PID algorithm,”
Instrumentation Technology and Sensors,
(7), 121
–126
(2017). Google Scholar
Li, X. G., and Hui, Y. H.,
“Design and implementation of motor servo control system with analysis of scientific materials,”
Advanced Materials Research,
(2011). Google Scholar
Song, S., Ma, Y., Liu, T., Lin, X. and Zhou, X.,
“Design and implementation of ‘i self-discipline’ WeChat applet,”
Computer Programming Skills and Maintenance,
(09), 81
–83
(2021). Google Scholar
|