The magnetic linear encoder is essential for detecting the rotational position information as the changes of the magnetic field. It also converts them into electrical signals and output. It consists of a permanent magnet and a magnetic sensor. The permanent magnet is essential to attach the motor shaft rotated, and the directions of the direction of the magnetic fields will detect by magnetic sensor changes. It may result in encoder sees with their rotational positions and shaft speed.