Technology of distance measurement and monitoring for power conversion and intelligent motion