Instead of the battery I use an old cellphone charger (transforms the power from the wall to 6-12 volt) and stripped the wires. Don't worry, it won't electrocute you at that voltage. Just be careful not to put the two together or to accidentally join the pans. You can buy a machine that does the same, but it'll set you back over a thousand bucks. This approach cost like $10 tops.
https://www.youtube.com/watch?v=Cc0pj2tf6_4
Hope that helps.