Why use electricity at all? Why not just put a big spring on top of the piston? Then when it comes up it will compress the spring and as it goes over the top the spring will push the piston down much like the burning fuel did. Should work just as well.