Electronic battery