A method is given for aligning an optical package comprising a laser, a
wavelength conversion device, at least one adjustable optical component,
and at least one actuator. The adjustable optical component may be moved
to a command position by applying a pulse width modulated signal to the
actuator. The command position represents an optimized alignment of the
laser and wavelength conversion device. The actual position of the
adjustable may be measured by measuring an output of a position measuring
circuit, which may measure the voltage amplitude of an oscillation in a
resonator tank circuit during an "off" period of the pulse-width
modulated signal. The resonator tank circuit may comprise a capacitive
element electrically coupled to the electrically conductive coil. The
pulse-width modulated signal may then be adjusted to compensate for any
difference in the actual position and the command position of the
adjustable optical component. Additional embodiments are disclosed and
claimed.