A camera module having a lens unit; an intermediate part a hollow part of
which the lens unit is affixed to; and a base unit which is opened in one
direction and is equipped with a mounting part to which the intermediate
part is mounted in such a way as to be able to rotate freely; wherein a
latching protrusion that latches with the base unit is provided on an
outer periphery of the intermediate part; a sliding hole having a movable
step is provided on a mounting part side of the base unit; and the
intermediate part moves in a direction perpendicular to the rotating
direction, as the latching protrusion of the intermediate part rotates
along the sliding hole of the base unit.