Batteries are a common element used in many electronic applications. Therefore, the analysis and simulation of these applications requires a battery model in order to validate the behavior of the whole system. Since batteries are based on different technologies, a modeling approach valid for any technology is a potential good alternative. Since there are similarities among the different technologies, it is possible to address the modeling of batteries as generic energy storage elements with particular differences. This work presents a battery model valid for different technologies based on a parametric implementation.