Patent ID: 8111407

Claim:
A displacement sensor comprising: a light source that emits light; a light projecting unit that projects the light emitted from the light source toward a measurement object to illuminate the measurement object with the light while continuously changing a light collecting position along an optical axis direction of the light to be collected; a light collecting unit that guides reflected light of the light with which the measurement object is illuminated in an opposite direction to an optical path of the illumination light of the light projecting unit; an optical path separating element that separates an optical path of the reflected light in the light collecting unit from the optical path of the light projecting unit; a first opening portion that includes a first light shielding member constituting a first opening, the first light shielding member shielding at least part of the reflected light separated from the optical path of the light projecting unit by the optical path separating element while the first opening passes other parts of the reflected light; a light receiving unit that receives the reflected light passed through the first opening portion and supplies a light receiving signal according to a received light quantity; and a processing unit that obtains information on a distance to the measurement object based on the light receiving signal, wherein the light collecting unit includes a spot diameter changing unit that outputs the light to the measurement object while changing a diameter in a direction, in which a first axis orthogonal to the optical axis extends, shorter than a diameter in a direction, in which a second axis orthogonal to the optical axis extends, of a spot in the light collecting position on the measurement object, the spot on the measurement object is focused in the direction in which the first axis extends, the first opening having a substantially rectangular shape is disposed in a position of conjugation with the light source in the direction in which the first axis extends, and a side in the direction in which the first axis extends of the substantially rectangular shape is shorter than a side in the direction in which the second axis extends.