what device could use th earth's magnetic felds to produce energy and how it would work?

The magnetic fields cannot be used to produce energy alone, there must be some movement between the magnetic field and a "wire".

See http://en.wikipedia.org/wiki/Faraday%27s_law_of_induction