The purpose of the article is to present mathematical models of energy storage devices with supercapacitors and accumulators. To control the energy storage device, it was proposed to use DC/DC buck/boost invertors and mathematical models are presented. The article gives example of simulation results of the proposed model of energy storage devices simulated in Matlab/Simulink.