Microcontroller Based Phase Locked Loop for Automatic Resonance Frequency Tracking