Embedded Microcontroller for Performance Analysis of Mechatronic Devices