Control unit inside the lithium battery