A Heart Rate Control System Based on a Microcontroller