Microcontroller based on Heart Beat Counter