An optical module having an integral optical waveguide with waveguide
ports at each end. The optical waveguide receives an input light beam
through a first waveguide port. The input light beam passes through the
waveguide and is emitted from the second waveguide port, where it is
reflected by the reflective surface. After being reflected by the
reflective surface, the input light beam can be directed onto the surface
of a DMD array, where the input light beam can be selectively reflected
in a particular direction. The reflective surface may also comprise a
diffractive grating, thereby enabling wavelength selective switching. In
addition, the reflective surface may comprise a generally concave surface
that converts a diverging input light beam into a generally collimated
light beam, thereby facilitating more accurate selection and switching by
the DMD array.