Plans have been revealed to build a battery storage farm next to a former Black Country quarry earmarked for 270 new homes.