Conventionally, optical encoders, which use a light receiving element to detect a position, a moving speed, a moving direction and other data of a movable object, use two signals, an A-phase signal and a B-phase signal which are different in phase by 90 degrees from each other, to detect the position, the moving speed, the moving direction and other data of the movable object.