A microcontroller-based self-calibration technique for a smart capacitive angular-position sensor