A computerized pump can serve as an electronic artificial pancreas that infuses insulin at a pre-programmed rate, allowing for more precise control of blood sugar levels, without which complications such as blindness and kidney disease may result, while freeing the diabetic from the burden of daily insulin injections.