Batteries can be obtained by sending out trains (once in 8 hours, not more than 3 times a day).
Sending a train costs three parts. A fully assembled carriage can get up to 2 batteries once in 8 hours. You will need batteries to build laser defense constructions and produce robots.
Regards, Nexters Support Team