Patent ID: 8311596

Claim:
An electronic device, comprising: a first light emitting unit that emits light; a first body in which the first light emitting unit is mounted; a first light receiving unit that receives light; a second body, in which the first light receiving unit is mounted, and which is connected to the first body so as to be rotatable around a rotational axis; and a detecting unit that detects a rotation position of the second body relative to the first body, by detecting presence or absence of light reception, in the first light receiving unit, of the light emitted from the first light emitting unit, wherein the first light emitting unit is disposed on a first circumference around the rotational axis in the first body, wherein the first light receiving unit is disposed on a second circumference facing the first circumference and being around the rotational axis in the second body, wherein the second body is held to the first body in a plurality of rotation positions, in which a rotation angle of the second body relative to the first body is a multiple of a preset setting angle, wherein the first light emitting unit is disposed in a part or all of the plurality of rotation positions on the first circumference such that an angle thereof is a multiple of the setting angle, wherein the first light receiving unit is disposed in a part or all of the plurality of rotation positions on the second circumference such that an angle thereof is a multiple of the setting angle, and wherein the first light receiving unit is disposed such that a disposition pattern of the first light emitting unit in any rotation position of the plurality of rotation positions is not a same disposition pattern as a disposition pattern of the first light emitting unit in another rotation position of the plurality of rotation positions.