A linear or rotary electromechanical device that has two electrical outputs, A and B, which issue pulses when the device is moved.