DESIGN AND IMPLEMENTATION OF EMBEDDED CONTROLLER BASED ENERGY STORAGE