Design and Implementation of PID Controller for Insulin Pump using FPGA
Abstract
Diabetes is a chronic metabolic disorder affecting 422 millions of people worldwide .The pancreas of those people either unable to produce insulin or do not produce enough insulin. When this occurs, blood glucose stays in the blood and cells cannot absorb as well as can not convert the sugars into energy. This disorder will lead to death especially people living in low-and middle-income countries;1.6 million deaths are directly attributed to diabetes each year. In order to reduce number of death and help patients the insulin pump is used ( a medical device used for the administration of insulin in the treatment of diabetes mellitus ) . This project presents the design and the implementation of Proportional –Integral-Derivative PID controller by using Field Program Gate Array FPGA for the insulin pump system
The controller gains Kp , Ki and Kd was founded by using trial and error method .These gains are responsible for generating the required insulin that keep the glucose within acceptable level .
Twenty bit was used to represent the data of system as a singed two’s complement fixed point number. the Device (3s500efg320-4 ) is selected to hard ware implementation and the proposed design summary as follows : Number of Slices ( 305 out of 4656 6% ), Number of Slice Flip Flops ( 62 out of 9312 0% ), Number of 4 input LUTs ( 217 out of 9312 2%) ,Number of IOs (102) and Number of bonded IOBs ( 0 out of 232 0% ) .
The FPGA hardware implementation results was verified with the MATLAB simulation result and they were approximately identical.