Converting a mechanical tachometer to electric