Here is an important site for energy in machines

I have tried to talk about energy and perpetual motion machines before (and how they can’t work). Surprisingly, people keep coming up with ideas about energy creation that just shouldn’t work.

http://www.lhup.edu/~dsimanek/museum/physgal.htm

This site is very comprehensive in covering the different ways people make mistakes about perpetual motion machines. Great examples also.