Created by sebastien.popoff on 23/06/2020

## DMD diffraction tool

I presented in this tutorial the diffraction effects occurring in a DMD setup. It corresponds to a blazed grating effect and depends on the wavelength $$\lambda$$, the pixel pitch $$d$$, the incident angle $$\alpha$$, and the angle of the micro-mirrors $$\theta$$. Here is a simple app (see source code on Github) to calculate the criterion for optimal diffraction efficiency and the aspect of the diffraction pattern in the far-field when illuminating the DMD with a plane wave of incident angle $$\alpha$$ with respect to the normal of the surface.

Created by sebastien.popoff on 15/11/2019

## About mechanical stability using Vialux DMDs

We have been using DMDs from Vialux for a few years now, and I already published few posts about different effects that need to be taken into account when working with such devices (in particular aberrations and diffraction effects). One more trivial, but potentially troublesome, effect is due to vibrations, that come from the FPGA board and transmitted through the rigid flat cables. In this quick post, I show the damaging effect of vibrations and how to easily get rid of them, at least partially.

Created by sebastien.popoff on 21/10/2019

# How to generate macropixel patterns for SLMs/DMDs with the Layout module

In many wavefront shaping experiments, such as for optimization experiments, like the seminal work by I. Vellkoop and A. Mosk, or for measuring the transmission matrix, one needs to control the amplitude and/or the phase of the field on a given number of macropixels (i.e. groups of pixels). Using DMDs, amplitude, and phase modulation can be achieved using the Lee hologram method and then sending the binary images to the device using the for ALP4lib in Python for Vialux DMDs. I released here a module written by M. W. Matthès and myself to easily and efficiently generate such patterns. The code can be found on my Github account here as well as an amplitude and phase modulation example: layout_amplitude_phase_modulation.ipynb.

Created by sebastien.popoff on 07/08/2019

# Setting up a DMD/SLM: Aberration effects

Digital Micromirror Devices (DMDs) are amplitude only (binary) modulators, however, pretty much like liquid crystal modulators, they introduce some phase distortion. Practically, it means that if one illuminates the modulator with a plane wave, even when all the pixels are set to the same value, the wavefront shows phase distortions after reflection. That can be detrimental, especially when working in a plane conjugated with the Fourier plane of the DMD surface. Fortunately, using the Lee hologram method or the superpixel method, one can achieve phase modulation. I present here how to use Lee holograms to characterize and compensate for aberrations when using a DMD. This approach can also be applied for compensating for aberration effects in other types of Spatial Light Modulators, such as liquid crystal ones.