<p>Generally speaking as many as possible because the number of lenslets determines the lateral wavefront resolution. But in reality there are a few factors to be considered.</p>
<h3>Wavefront sensor</h3>
<p>Say your lenslet array is of focal length <span class="math-container">$f$</span> and subaperture size <span class="math-container">$D$</span>, given a maximum desired detection angle <span class="math-container">$\alpha$</span> (in your case is <span class="math-container">$2'' \approx 1\times10^{-5}\, \text{rad}$</span>), there is the following relationship:</p>
<p><span class="math-container">$$
2'' = \alpha \approx \tan \alpha = \frac{\Delta x}{f} \leq \frac{D}{2f}. \tag{1}
$$</span></p>
<ul>
<li><p>To ensure a good resolution and reduce cross-talk effect, <span class="math-container">$D$</span> is chosen to be at least a few image sensor pixel size. In other word, for a given image sensor to measure the seeing angle, the number of lenslets are limited to a maximum value.</p>
</li>
<li><p>Usually you do not design the lenslet arrays; those are pre-designed, e.g. <a href="https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=2861" rel="nofollow noreferrer">https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=2861</a>. So Eq. (1) serves as a metric to select between different microlens array designs.</p>
</li>
<li><p>For AO applications, the primary goal of wavefront sensors is the measurement speed rather than the lateral resolution. The sensors need to be fast. The smaller the number of pixels, the smaller the sensor latency is, resulting in a low number of pixels, and hence low number of lenslets.</p>
</li>
</ul>
<h3>Adaptive optics (AO) system</h3>
<p><span class="math-container">$w \in \mathbb{R}^m$</span>: Measurement wavefront of a lenslet array of number <span class="math-container">$m$</span>.</p>
<p><span class="math-container">$c \in \mathbb{R}^n$</span>: Correction wavefront of the deformable mirror that has <span class="math-container">$n$</span> number of actuators.</p>
<p>An adaptive optics (AO) system works by solving a linear system to output <span class="math-container">$c$</span> given <span class="math-container">$w$</span>:</p>
<p><span class="math-container">$$
w = A c
$$</span>
where interaction matrix <span class="math-container">$A \in \mathbb{R}^{m \times n}$</span> is pre-calibrated before usage.</p>
<ul>
<li><p>To compute <span class="math-container">$c$</span> in a least squares sense, it requires <span class="math-container">$m \geq n$</span>, meaning an over-determined system, mentioned also by @nflemming2004.</p>
</li>
<li><p>As for the aperture sizes of the two, it does not really matter that much because the conjugate lenses/mirrors in your optical system can scale down/up the apertures. That said, the sub-aperture of the wavefront sensor (i.e. <span class="math-container">$D$</span>) and the actuator cover area <span class="math-container">$D_{\text{deformable_mirror}}$</span> do not have to be equal.</p>
</li>
<li><p>If <span class="math-container">$m \gg n$</span> (as in most cases), as you can imagine, the extra number of lenslets only serves to make a robust estimate, and is wasted from AO's perspective because of insufficient correction degree-of-freedom.</p>
</li>
</ul>
<h3>Example</h3>
<p>Using <a href="https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=5287" rel="nofollow noreferrer">WFS30-7AR</a> as our wavefront sensor, that <span class="math-container">$f = 5.6 \,\text{mm}$</span> and <span class="math-container">$D  = 150\,\text{um}$</span>, given Eq. (1) we know:</p>
<p><span class="math-container">$$
2'' \leq \frac{D}{2 f} = 1.34 \times 10^{-2} \, \text{rad} \tag{satisfied}
$$</span></p>
<p>The number of lenslet is <span class="math-container">$m = 80 \times 80$</span>, far larger than <span class="math-container">$n = 140$</span> the actuator number of deformable mirrors (say <a href="https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=3208" rel="nofollow noreferrer">https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=3208</a>).</p>
<p>So for this design, we conclude it satisfies the requirement of this question.</p>

CC BY-SA 4.0
2021-01-04T08:12:31.820Z
supposing there was infinite precision on the A.O. system (continuously deformable mirror), would there be an upper limit on the amount of lenslets or a lower limit on their size, due to the infrared wavelength?
theWrongAlice
CC BY-SA 4.0
2021-01-04T08:22:22.393Z
@Sarah: (1) For AO it means $n \rightarrow \infty$, there is no upper limit on $m$ the amount of lenslets (though, this AO system is under-determined since $n > m$); (2) But for wavefront sensing, Eq. (1) tells us there is a upper limit on $m$ because of the 2'' seeing requirement.
WDC
CC BY-SA 4.0
2021-01-04T06:29:39.093Z
2021-01-04T06:29:39.093Z
WDC
<p>I have to do a short calculation, but, quite frankly, I have no idea how to even start...</p>
<p>Suppose you have a 10-m telescope (f/10) with an infrared camera that observes at 10 micrometer. The seeing is 2 arcsec (<a href="https://en.wikipedia.org/wiki/Full_width_at_half_maximum" rel="nofollow noreferrer">FWHM</a> of the <a href="https://en.wikipedia.org/wiki/Point_spread_function" rel="nofollow noreferrer">PSF</a>,  2”= 1/100000 rad) and you would like to implement an adaptive optics system.</p>
<p>The question is: How many lenslets do you need in the <a href="https://en.wikipedia.org/wiki/Shack%E2%80%93Hartmann_wavefront_sensor" rel="nofollow noreferrer">Shack-Hartmann wavefront sensor</a> array? Below is a picture of the working principle of such an array. The telescope would also include a coronagraph, but I think (might be wrong) you don't need that information for this calculation.</p>
<p><a href="https://i.sstatic.net/KyofSm.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/KyofSm.png" alt="Wavefront sensor" /></a></p>

CC BY-SA 4.0
2021-01-03T18:31:16.173Z
@B--rian, PSF means "point spread function". It's the image of a point source, e.g. an airy disk that shows the diffraction rings
theWrongAlice
CC BY-SA 4.0
2021-01-04T01:39:46.710Z
I haven't really crunched any numbers, but I would logically assume it would be easiest to the same number of lenslets as you do segments in your adaptive optics adjustments.      
I.e., if you have a square-pattern of 50 mirrors (arbitrary #), then have one lenslet per mirror.  If you have a hex-patterned mirror, it may be easiest to have hex-patterned lenslets.  This way, each point of actuation on your mirror is controlled by one point on the Shack-Hartmann image array.     
It would also work easily to have any integer number of lenslets per actuation point if the pattern still matches
nflemming2004
<optics><infrared><adaptive-optics><instruments>
Number of lenslets in wavefront sensor array
theWrongAlice
# Number of lenslets in wavefront sensor array

(Asked by: username_0 on 2021-01-03)

I have to do a short calculation, but, quite frankly, I have no idea how to even start...

Suppose you have a 10-m telescope (f/10) with an infrared camera that observes at 10 micrometer. The seeing is 2 arcsec ([FWHM](https://en.wikipedia.org/wiki/Full_width_at_half_maximum) of the [PSF](https://en.wikipedia.org/wiki/Point_spread_function), 2”= 1/100000 rad) and you would like to implement an adaptive optics system.

The question is: How many lenslets do you need in the [Shack-Hartmann wavefront sensor](https://en.wikipedia.org/wiki/Shack%E2%80%93Hartmann_wavefront_sensor) array? Below is a picture of the working principle of such an array. The telescope would also include a coronagraph, but I think (might be wrong) you don't need that information for this calculation.

[![Wavefront sensor](https://i.sstatic.net/KyofSm.png)](https://i.sstatic.net/KyofSm.png)

**Tags:** optics, infrared, adaptive-optics, instruments

> **Comments:**
> **username_0**: @B--rian, PSF means "point spread function". It's the image of a point source, e.g. an airy disk that shows the diffraction rings  
> **username_1**: I haven't really crunched any numbers, but I would logically assume it would be easiest to the same number of lenslets as you do segments in your adaptive optics adjustments.       I.e., if you have a square-pattern of 50 mirrors (arbitrary #), then have one lenslet per mirror.  If you have a hex-patterned mirror, it may be easiest to have hex-patterned lenslets.  This way, each point of actuation on your mirror is controlled by one point on the Shack-Hartmann image array.      It would also work easily to have any integer number of lenslets per actuation point if the pattern still matches  

---

## 1 answers

### Answer by username_2 on 2021-01-04. Score: 4

Generally speaking as many as possible because the number of lenslets determines the lateral wavefront resolution. But in reality there are a few factors to be considered.

### Wavefront sensor

Say your lenslet array is of focal length $f$ and subaperture size $D$, given a maximum desired detection angle $\alpha$ (in your case is $2'' \approx 1\times10^{-5}\, \text{rad}$), there is the following relationship:

$$
2'' = \alpha \approx \tan \alpha = \frac{\Delta x}{f} \leq \frac{D}{2f}. \tag{1}
$$

* To ensure a good resolution and reduce cross-talk effect, $D$ is chosen to be at least a few image sensor pixel size. In other word, for a given image sensor to measure the seeing angle, the number of lenslets are limited to a maximum value.
* Usually you do not design the lenslet arrays; those are pre-designed, e.g. <https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=2861>. So Eq. (1) serves as a metric to select between different microlens array designs.
* For AO applications, the primary goal of wavefront sensors is the measurement speed rather than the lateral resolution. The sensors need to be fast. The smaller the number of pixels, the smaller the sensor latency is, resulting in a low number of pixels, and hence low number of lenslets.

### Adaptive optics (AO) system

$w \in \mathbb{R}^m$: Measurement wavefront of a lenslet array of number $m$.

$c \in \mathbb{R}^n$: Correction wavefront of the deformable mirror that has $n$ number of actuators.

An adaptive optics (AO) system works by solving a linear system to output $c$ given $w$:

$$
w = A c
$$
where interaction matrix $A \in \mathbb{R}^{m \times n}$ is pre-calibrated before usage.

* To compute $c$ in a least squares sense, it requires $m \geq n$, meaning an over-determined system, mentioned also by @username_1.
* As for the aperture sizes of the two, it does not really matter that much because the conjugate lenses/mirrors in your optical system can scale down/up the apertures. That said, the sub-aperture of the wavefront sensor (i.e. $D$) and the actuator cover area $D\_{\text{deformable\_mirror}}$ do not have to be equal.
* If $m \gg n$ (as in most cases), as you can imagine, the extra number of lenslets only serves to make a robust estimate, and is wasted from AO's perspective because of insufficient correction degree-of-freedom.

### Example

Using [WFS30-7AR](https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=5287) as our wavefront sensor, that $f = 5.6 \,\text{mm}$ and $D = 150\,\text{um}$, given Eq. (1) we know:

$$
2'' \leq \frac{D}{2 f} = 1.34 \times 10^{-2} \, \text{rad} \tag{satisfied}
$$

The number of lenslet is $m = 80 \times 80$, far larger than $n = 140$ the actuator number of deformable mirrors (say <https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=3208>).

So for this design, we conclude it satisfies the requirement of this question.

> **Comments:**
> **username_0**: supposing there was infinite precision on the A.O. system (continuously deformable mirror), would there be an upper limit on the amount of lenslets or a lower limit on their size, due to the infrared wavelength?  
> **username_2**: @Sarah: (1) For AO it means $n \rightarrow \infty$, there is no upper limit on $m$ the amount of lenslets (though, this AO system is under-determined since $n > m$); (2) But for wavefront sensing, Eq. (1) tells us there is a upper limit on $m$ because of the 2'' seeing requirement.  

---

