https://en.wikipedia.org/wiki/Short_Circuit_(1986_film):
"The film's plot centers upon an experimental military robot that is struck by lightning and gains a more humanlike intelligence, with which it embarks to explore its new state."
http://www.imdb.com/title/tt0091949/