A variable spacing diffraction grating is fabricated using
micro-electromechanical (MEMS) technology. An array of interconnected beam
elements is fabricated into a diffraction grating and mounted in such a
manner that one or both ends of the array of beam elements may be actuated
using a mechanical actuator. The beam elements may be linear, spiral
shaped or arranged in a staircase structure. Applying a force to one or
both ends of the array of beam elements changes the spacing of the
grating, and presents a different ruling spacing distribution to incoming
radiation, thus altering the diffracted angle among individual diffraction
orders of the wavelength. Controlling the diffracted signal in this way
allows for specific diffraction pass bands to be fixed on a particular
detector or a particular area of a detector or optical relay lens or
lenses.