Text this: Hardware implementation of a sensorless control algorithm for permanent magnet synchronous motors