Power supply position detector in common with drive motor