okay we will discuss a very interesting article to read, which is about an experience of making a device that has a function for heating the hands of a very simple to use Atmel AT89S51 ..
hopefully this can be beneficial to be ready just want to try it at home.
This tool is very easy, how it works starting from the presses the power button to turn it on. then there is a button to turn on the heater manual hand and also coupled with infrared sensors for automation. from the preface above I conclude using block diagrams to better understand visually.
here's a picture block diagram:

here's an image design tool

for the script and the data needed, can be downloaded here
if you require a more detailed explanation, please email me
keep smiling okay.