A compact camera module includes multiple hollow cylinders, a voice coil
motor and a torsion spring. An intervening cylinder is mounted on a base.
An upright rail is disposed on the intervening cylinder and perpendicular
to a support plane of the base. An inner cylinder has a zoom lens inside
and at least one moving component, wherein the inner cylinder is disposed
in a hollow space of the intervening cylinder and the moving component
slides within the upright rail. An outer cylinder is disposed around the
intervening cylinder. The outer cylinder has a sloping rotational rail
supporting the moving component. A wire coil is secured around the outer
cylinder. A torsion spring encircles the outer cylinder and is secured to
the base and the wire coil at two ends. A magnet-generating device is
disposed around the wire coil and secured on the base.