Hardware and software technology for batteries systems, motor controls, power supplies, and supporting accessories