As one of the nation’s leading producers of wind energy, Iowa has abundant — but also sporadic — energy resources. State officials see huge potential for batteries to help make the most of its wind and solar generation, and they hope to test it with a new grant-funded project.