1 Introduction

Many optical systems nowadays require light sources to be pre-shaped into desired light distributions. Thus, many beam shaping methods have been proposed [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]. Most of these studies have focused on the problem of achieving a uniform light distribution [3,4,5,6,7]. For example, Cao et al. [5] proposed a beam shaping system which produced an output beam with a uniform light distribution using two micro-lens arrays and a second lens. Wang et al. [6] proposed a 4f system architecture consisting of two spatial light modulators and two positive lenses with a focal length of f to achieve a uniform light profile. The main objective of the beam shaping systems in [5, 6] is simply to achieve a uniform light distribution as the output. However, in some applications, such as light detection and ranging (LiDAR) [25], the light distribution must not only be a specific profile, but also collimated.

The problem of achieving collimated uniform light was first addressed as early as 1965 by Frieden [8], who utilized two refractive aspherical lenses to achieve a collimated uniform light output with no power loss. However, there are some flaws in Frieden's [8] design for achieving collimated uniform distribution because the two surfaces of the first and second aspherical lenses are interdependent. Thus, when adjusting the structure of one surface, the surface of the other lens must also be modified in order to maintain the same output. Rhodes and Shealy [9] addressed this problem by actively considering the interdependence of the two aspherical surfaces in the design process and developing relevant formulae for the two surfaces accordingly. In a more recent study, Liu and Zhang [16] reviewed existing methods for collimated beam shaping systems and proposed several alternative lens structures. However, all of the methods in [8,9,10,11,12,13,14,15,16,17,18] are designed specifically for optical systems with a collimated light source.

Some studies [19,20,21,22,23] presented several methods for the beam shaping of divergent light sources. However, these methods do not specifically focus on the simultaneous collimation and formation of specific light profile outputs. The integrable ray mapping method [24] could be a way to design two freeform surfaces catering to specific collimated light distributions. As an alternative, a numerical method [12, 13, 18] is proposed for easier construction of the aspherical lens. The simulation results confirm that the designed lenses fulfill the twin requirements of collimation and uniform light distribution, respectively. However, in real-world lens systems, the cost and complexity of the lens manufacturing process scale with the number of refractive planes. Previous studies have shown that when the reference rays pass through the central region of a refractive surface, the same beam shaping performance can be achieved using fewer refractive plane segments [12, 13]. As yet, there are no direct formulae available to ensure that the reference beam passes through the center region of the second aspherical refractive plane of aspherical lenses. Thus, the present study proposes a novel algorithm that maximizes the passage of the reference beams through the center regions of the related refractive planes in the second aspherical surface.

The simulation results demonstrate that the lens designed with the proposed algorithm achieves the same beam shaping performance with fewer segments of the refractive plane than the original lens. Furthermore, by evaluating the power distribution of the divergent light source on the first aspherical surface, the algorithm can be used to design the second aspherical surface in such a way as to generate a specific irradiance profile of the collimated output beam. The feasibility of the proposed approach is demonstrated using two light profile outputs for illustration purposes, namely ring-like and triangle-like. The simulation and experimental results confirm that the proposed method achieves the overall goal of producing collimated specific light profile outputs.

The remainder of this paper is organized as follows. Section 2 introduces the fundamental aspherical lens design method employed to obtain a collimated uniform beam profile. Section 3 describes the algorithm used to minimize the number of refractive segments of the second aspherical lens. Section 4 presents and discusses the simulation and experimental results for the two considered light profiles. Finally, Sect. 5 provides some brief concluding remarks.

2 Fundamental aspherical lens design for collimated uniform beam profile

To achieve both uniform and collimated light distribution, it is necessary to use at least two aspherical surfaces, where the first surface is responsible for evenly distributing the power onto the second aspherical surface, while the second lens handles the collimation process (see Fig. 1). It is important to note that the two aspherical surfaces are not independent of one another but rather mutually affect each other. That is, changing the structure of one surface inevitably affects the structure of the other. Therefore, both surfaces must be considered simultaneously during the design process.

Fig. 1
figure 1

Aspherical lens design for divergent rotationally symmetric light source

For the case considered in the present study of a beam forming system with a divergent light source, each of the two aspherical surfaces is assumed to be divided into N segments in order to achieve a uniform distribution of the output power. Furthermore, each segment is assumed to carry an equal amount of power to meet the need for uniformity of the output light. Since the light source is divergent and rotationally symmetric, the angular intervals corresponding to the same amount of power can be denoted simply as (θ1, θ2, …, θN+1), where N is the number of segments. Furthermore, the corresponding heights of the segments on the first aspherical surface can be denoted as (y1,1, y1,2, …, y1,(N+1)). Theoretically, a uniform distribution of the output light pattern can be obtained by designing the second aspherical surface such that the same power is distributed over intervals of equal area heights (y2,1, y2,2, …, y2,(N+1)), as shown in Fig. 1.

Without loss of generality, let the light source be a point source with a rotationally symmetric divergent Gaussian distribution. For a point source with rotational symmetry, the original two-dimensional light distribution can be reduced to a single dimension for convenience in designing the aspherical lens. The power distribution of a rotationally symmetric divergent Gaussian beam is given as follows:

$$I\left(\theta \right)={I}_{0}{e}^{{-2(\theta /\sigma )}^{2}},$$
(1)

where I0 is the radiation power intensity at the center, and σ is a parameter representing the divergence angle. As described above, for the problem considered in the present study, the power of the incident light source is to be the same for each segment of the first aspherical surface. Since the divergent light source is rotationally symmetric, the angles that yield the same power are given as

$$\begin{array}{ccc}\begin{array}{l}{P}_{1,i}={\int }_{{\theta }_{i}}^{{\theta }_{i+1}}{I}_{0}{e}^{{-\left(\frac{\theta }{\sigma }\right)}^{2}}sin\theta d\theta \\ \quad \quad=\frac{{\int }_{{\theta }_{1}=0}^{{\theta }_{N+1}}{I}_{0}{e}^{{-\left(\frac{\theta }{\sigma }\right)}^{2}}sin\theta d\theta }{N}={\text{const}}\end{array}& \mathrm{for}& i = 1, 2, \dots , N,\end{array}$$
(2)

where θN+1 represents the maximum divergent angle of the light source, and θ1 = 0. The corresponding angles can be determined using a numerical method. When the rays from the equal power angle segments, as determined by solving Eq. (2), are refracted to the corresponding height segments on the second aspherical surface with the same area, the second aspherical surface produces a uniform distribution of the output light. The heights of the segments on the second surface which satisfy this condition can be determined by solving the equation

$$\begin{array}{*{20}c} {y_{{{2},i}} = \left[ {\left( {i - {1}} \right)R_{{2}}^{{2}} /N} \right]^{{{1}/{2}}} } & {{\text{for}}} & { i = 1,\;2,\, \ldots ,N + 1,} \\ \end{array}$$
(3)

where R2 is the radius of the output beam.

Figure 2 illustrates the process employed in the present study to construct the segmented refractive planes (represented by the blue line segments) of two aspherical surfaces which collectively achieve a uniform light output with a transformation from a rotationally symmetric diverging light source to a rotationally symmetric collimated light output with a specified profile. Assume that the coordinates of two related points (y1,i, z1,i) and (y2,i, z2,i) on the first and second aspherical surfaces, respectively, are known. The coordinates of these points can be used to determine the refracted beam vector Mi such that the input beam, after refraction at point (y1,i, z1,i) on the first aspherical surface, reaches point (y2,i, z2,i) on the second aspherical surface and achieves a uniform distribution of the output light. The required refractive vector can be determined mathematically as

$$M_{i} = \frac{{\left[ {0 \left( {y_{2,i} - y_{1,i} } \right) \left( {z_{2,i} - z_{1,i} } \right)} \right]}}{{\sqrt {\left( {y_{2,i} - y_{1,i} } \right)^{2} + \left( {z_{2,i} - z_{1,i} } \right)^{2} } }}$$
(4)
Fig. 2
figure 2

Proposed construction method for surface profiles of two aspherical surfaces given divergent rotationally symmetric light source

The normal vector of the i-th segmented refractive plane on the first aspherical surface is denoted as N1,i = [0 n(1,1),i n(1,2),i] and can be obtained simply from Snell's law as

$$\left[ {{1} + n_{r}^{{2}} {-}{ 2}n_{r} \left( {{\mathbf{M}}_{i} \cdot {\mathbf{I}}_{i} } \right)} \right]^{{{1}/{2}}} {\mathbf{N}}_{{{1},i}} = {\mathbf{M}}_{i} {-}n_{r} {\mathbf{I}}_{i,}$$
(5)

where nr = 1/n, in which n is the refractive index of the material used to manufacture the aspherical lens, and Ii is the unit vector of the incident light on the i-th segment. Due to the divergent nature of the light source, the incident vector Ii can be obtained as [0 sinθi cosθi]. Having determined the incident vector Ii and refracted vector Mi, Snell's law can be used to calculate the required normal vector N1,i = [0 n(1,1),i n(1,2),i] for the i-th segmented refractive plane on the first aspherical surface.

Given the point (y1,i, z1,i) on the first surface, it is necessary to calculate the point (y(1,i+1), z(1,i+1)) on the same plane in order to construct the corresponding segmented refractive plane. This point can be determined by considering the intersection of two lines, namely one line which represents the light ray with the next incident angle (θi+1) and is given mathematically as

$$y = z\tan (q_{i + 1} ),$$
(6)

and a second line which represents the segmented refractive plane of the first aspherical surface and has the equation

$$y = mz + b,$$
(7)

where m =  − n(1,2),i/n(1,1),i and b = y1,i − mz1,i (see Fig. 2).

Solving Eqs. (6) and (7) simultaneously yields the point (y(1,i+1), z(1,i+1)), which marks the end of first segment of the first aspherical surface. When the incident light strikes point (y1,i, z1,i) on the aspherical surface with an incident angle of θi, it is refracted by the segmented refractive plane formed by points (y1,i, z1,i) and (y(1,i+1), z(1,i+1)) such that it reaches point (y2,i, z2,i) on the second aspherical surface and achieves a uniform light distribution.

Adopting the design approach outlined above for each segment of the first aspherical surface, the divergent light source, after refraction, has a uniform distribution on the second aspherical surface. However, to meet the overall goal of the present study, namely that of achieving both uniformity and collimation, the second aspherical surface must be designed such this uniformly distributed beam is output in a collimated manner. Since a uniform distribution is achieved when the same amount of power is distributed over intervals of equal area heights on the second aspherical surface (see Fig. 1), the heights of the segments on the second surface are already known as (y2,1, y2,2, …, y2,N+1). Thus, to construct the second aspherical surface, it is necessary only to determine the coordinate of each point in the z-direction, i.e., z2,(i+1), for each segmented refractive plane. Assume that Mi represents the incident vector on the second aspherical surface and the output vector is to have the form of collimated light with Oi = [0 0 1]. As for the construction process described above for the first aspherical surface, it is necessary to calculate the normal vector of each segment on the second surface at point (y2,i, z2,i). By applying Snell's law once again, the normal vectors N2,i = [0 n(2,1),i n(2,2),i] can be obtained as

$$\left[ {{1} + n^{{2}} {-}{2}n\left( {{\mathbf{O}}_{i} \cdot {\mathbf{M}}_{i} } \right)} \right]^{{{1}/{2}}} {\mathbf{N}}_{{{2},i}} = {\mathbf{O}}_{i} {-}n{\mathbf{M}}_{i} .$$
(8)

By considering the geometric relationship between points (y2, (i+1), z2, (i+1)) and (y2,i, z2,i), point z2, (i+1) can be determined as

$${z}_{2,(i+1)}={z}_{2,i}-\frac{{n}_{\left(\mathrm{2,1}\right),i}}{{n}_{\left(\mathrm{2,2}\right),i}}({y}_{2,\left(i+1\right)}-{y}_{2,i}).$$
(9)

The method described above gives the points (y1,(i+1), z1,(i+1)) and (y2,(i+1), z2,(i+1)) on the first and second aspherical surfaces, respectively. By applying the method recursively, all of the segments on the two surfaces can be obtained such that a uniform and collimated light output is achieved. The initial points of the two aspherical surfaces lie on the same horizontal axis, specifically (y1,1, z1,1) = (0, d) and (y2,1, z2,1) = (0, d + t), respectively, where d is the distance between the light source and the first aspherical lens and t is the thickness of the lens. The surfaces of the lens can be obtained numerically using Eqs. (2)–(9), where the first surface yields a uniform light distribution on the second surface, and the second surface produces a uniform and collimated light output.

The feasibility of the proposed designed method was evaluated using the light source shown in Fig. 3, in which the light source had a divergent Gaussian profile with a maximum divergent angle of 16 degrees and the detector was located at a distance of d = 25 mm from the light source. The simulations considered the design of a simple aspherical lens consisting of just N = 5 segments for each surface. The lens was assumed to be fabricated of PMMA and to have a thickness of 35 mm. The aim of the designed lens was to produce a collimated uniform output beam spot with a radius of 11.3 mm.

Fig. 3
figure 3

Zemax OpticStudio simulation results for profile of considered light source: a 2D spot irradiance, and b cross-section of spot irradiance

Table 1 shows the results obtained from Eqs. (2)~(9) for the point coordinates of the two aspherical surfaces. Figure 4 shows the corresponding layout of the aspherical lens, where the light source is located 25 mm in front of the lens and the detector is placed 80 mm behind the light source. There are 10 millions of rays used in the simulation. The detector is set to 250 × 250 pixels. The results presented in Fig. 5a and b show that the output beam has a relatively poor distribution uniformity since the aspherical surfaces consist of just N = 5 segments. Nonetheless, the radiant intensity results presented in Fig. 5c show that the lens achieves a good collimation performance, with a divergence of just ± 0.02 degrees. Figure 6a and b show the results obtained when increasing the number of segments to 500, 1000, and 2000, respectively. The output profile becomes increasingly uniform as the number of segments increases, and the lens maintains an excellent collimation performance of around ± 0.02 degrees.

Table 1 Aspherical point coordinates for N = 5
Fig. 4
figure 4

2D layout of designed aspherical lens for simple case of N = 5

Fig. 5
figure 5

Simulation results for aspherical lens with N = 5: a 2D spot irradiance, b cross-section of spot irradiance, and c cross-section of radiance intensity

Fig. 6
figure 6

Simulation results for aspherical lenses with N = 500, 1000, and 2000 segments: a cross-sections of spot irradiance and b cross-sections of radiance intensity

3 Aspherical lens design based on sparse segmented refractive planes

Previous studies [12, 13] have shown that when the incident ray Ii, which serves as the reference ray, is directed towards the center of the segmented refractive plane, it produces a superior light pattern, and thus fewer segments of the refractive plane are required to construct the aspherical lens. Accordingly, a second algorithm was proposed to improve the beam shaping performance by constraining the reference beam Ii to pass as close as possible through the center of each designed refractive plane on the second aspherical surface. Figure 7 illustrates the proposed construction process for the two new aspherical surfaces. Initially, Eqs. (2) and (3) are employed to calculate the angles (θ1, θ2, …, θN+1) which yield the same power on the first surface and the heights (y2,1, y2,2, …, y2,N+1) on the second surface, respectively. The average values of the adjacent angles of the first surface and the midpoints of the heights between the adjacent points on the second surface are then computed respectively as

$$\begin{array}{*{20}c} {qm_{i} = (q_{i - 1} + q_{i} )/2} & {{\text{for}}} & {i = 2, \ldots ,N + 1} \\ \end{array}$$
(10a)
$$\begin{array}{*{20}c} {ym_{{{2},i}} = \left( {y_{{{2},i - {1}}} + y_{{{2},i}} } \right)/{2}} & {{\text{for}}} & {i = {2}, \ldots ,N + {1}} \\ \end{array}$$
(10b)

where θm1 = θ1, ym2,1 = y2,1 and ym2,N+2 = y2,N+1.

Fig. 7
figure 7

Aspherical lens design based on centers of segmented refractive planes

In illustrating the algorithm proposed in this study for constructing an aspherical surface that causes the reference beam Ii to pass through the center of the segmented refractive plane, it is necessary to first explain the method used to obtain the position coordinates of any general beam passing through the refractive plane. Referring to Fig. 8, points (y1, z1) and (y2, z2) are known, and the normal vector N = [0 n1 n2] of the refractive plane is also known. Given the direction cosine of the beam's propagation direction, the slope, mV, of the propagating ray can be easily determined from geometric principles. Moreover, the slope of the refractive surface, mS, can be calculated as − n2/n1. Thus, the coordinates of point (y2', z2') at which the beam and refractive surface intersect can be obtained as follows:

Fig. 8
figure 8

Relationship between incident ray and refractive plane

$$\left[\begin{array}{cc}1& -{m}_{V}\\ 1& -{m}_{S}\end{array}\right]\left[\begin{array}{c}{y^{\prime}}_{2}\\ {z^{\prime}}_{2}\end{array}\right]=\left[\begin{array}{c}{y}_{1}-{m}_{V}{z}_{1}\\ {y}_{2}-{m}_{S}{z}_{2}\end{array}\right].$$
(11)

Since there are no direct formulae available for ensuring that the reference beam Ii passes through the center of the refractive surface in a beam forming system with a divergent light source, a numerical approach is required. The present study proposes an alternative algorithm in which the related refractive planes of the two aspherical surfaces are continuously adjusted until the solution is found which causes the reference beam Ii to pass through the center of the refractive plane. The center of the refractive plane is half the sum of the two boundary points, i.e., [(ym2,i, zm2,i) + (ym2,i+1, zm2,i+1)]/2. Therefore, when the reference beam Ii passing through the height [ym2,i + ym2,i+1]/2 in the second refractive plane, we consider that the second refractive plane is corresponding the requirement for aspherical lens construction. Referring to Fig. 9, the main steps in the proposed algorithm are as follows:

Fig. 9
figure 9

Construction method for refractive plane based on center points

  • Step 1 Points (ym1,i, zm1,i) and (ym2,i, zm2,i) on the two aspherical surfaces are defined and are used to construct two refractive planes with normal vectors Nm1 and Nm2, respectively. The refractive vector constructed from points (ym1,i, zm1,i) and (ym2,i, zm2,i) is denoted as MLow = [0 mL1 mL2]. Similarly, the refractive vector constructed from points (ym1,i+1, zm1,i+1) and (ym2,i+1, zm2,i+1), obtained from a beam with an incident angle of θmi+1, is denoted as MUp = [0 mU1 mU2]. However, these initial refractive planes do not guarantee that the reference beams pass through the centers of the corresponding planes of the second surface. Consequently, further processing is required.

  • Step 2 The refractive vector Mi = [0 m1 m2] generated when the reference beam Ii passes through the first refractive plane is computed and used to calculate the height y2' at which this refractive vector passes through the second refractive plane.

  • Step 3 When (y2' − y2,i) < 0, m1 is set as m1 = (m1 + mU1)/2, MLow is updated as Mi. Conversely, when (y2' − y2,i) > 0, m1 is set as m1 = (m1 + mL1)/2, MUp is updated as Mi. In both cases, Mi is calculated as [0 m1 (1 − m12)1/2].

  • Step 4 The newly-generated Mi from Step 3, together with the reference beam Ii, are used to construct new refractive planes Nm1 and Nm2. Step 2 is then repeated with these new planes.

  • Step 5 Steps 2 to 4 are repeated iteratively to continuously adjust the refractive planes until the reference beam Ii passes through the center of the second refractive plane as closely as possible. Figure 10 shows the algorithm flow chart.

    Fig. 10
    figure 10

    The algorithm flow chart for sparse segments

Notably, the proposed algorithm yields a significant reduction in the number of refractive plane segments required to achieve the desired beam shaping performance. For example, Fig. 11a shows that only N = 500 segments are required to achieve the same irradiance uniformity as the original lens with N = 2000 segments. Furthermore, Fig. 11b shows that the proposed algorithm also provides a better collimation performance than the original method. The proposed algorithm running in common laptop is around one second to produce the polygon object file of the Zemax for N = 1000. The simulation results show that the power efficiency can be around 99% through the use of the aspherical lens designed by the proposed algorithm.

Fig. 11
figure 11

Simulation results for aspherical lens based on center of refractive planes: a cross-section of spot irradiance, and b cross-section of radiance intensity

The light source for the proposal can be of any distribution, but it must be rotationally symmetrical to simplify the design process. Since the Gaussian-like light source is easier obtained from the HeNe laser, the aspherical lens design is based on the Gaussian distribution for the demonstration. However, the light source could be unstable on the divergent angle and rotation-symmetrical requirement during experiment. The standard deviation (RSD) [26] is applied to investigate the light source variation on the divergence and tilt, that is,

$$RSD=\sqrt{\frac{1}{{N}_{P}}\sum_{i=1}^{{N}_{P}}{\left[\frac{{I}_{T}\left(i\right)-{I}_{0}(i)}{{I}_{0}(i)}\right]}^{2}}$$
(12)

where NP is the number of the major contributed points, IT(i) is the simulated illuminance with tolerance at the i-th major contributed point and I0(i) is the illuminance at the i-th major contributed point with no tilt and divergent angle 16°. Under the RSD 5% requirement, the divergence variation allows within 0.75° but the tilt must be less than 0.2°, as shown in Fig. 12.

Fig. 12
figure 12

The investigation of the light source variation a divergence b tilt

The light source size could also affect the output beam profile. Figure 13 shows the simulation results by the light source size with 3 × 3 mm2. The results show that the uniformity and collimation keep great results. Current LED size can be developed less than 3 × 3 mm2. Even there are many micro LEDs developed for the display. Therefore, the proposal could be a way to employ common LED light source to design the aspherical lens for beam shaping system.

Fig. 13
figure 13

Simulation results for aspherical lens with N = 1000 from the light source size 3 × 3 mm2: a cross-sections of spot irradiance and b cross-sections of radiance intensity

4 Aspherical lens design with specific beam shaping profile

The main task of a beam shaping system is to generate a collimated uniform output beam from an originally Gaussian distribution light source through a designed lens. However, the semiconductor lasers commonly used as light sources nowadays have a divergent rather than Gaussian distribution. Moreover, the output light pattern is often required to be not only collimated, but also to have a specific intensity distribution. In order to obtain a rotationally symmetric collimated output beam with a particular irradiance pattern, the heights of the segments on the second surface of the aspherical lens can be obtained using the method previously described for the heights of the segments on the first aspherical surface in Sect. 2. For example, assuming that the desired output light profile is defined as Ioutput(y), the heights of the refractive planes on the second aspherical surface can be calculated from Eq. (13) as

$$\begin{array}{ccc}\begin{array}{l}{P}_{2,i}={\int }_{{y}_{2,i}}^{{y}_{2,\left(i+1\right)}}{I}_{output}(y)ydy\\ =\frac{{\int }_{0}^{{R}_{2}}{I}_{output}(y)ydy}{N}\end{array}& \mathrm{for}& i = 1, 2, \dots , N\end{array},$$
(13)

where R2 is the radius of the output beam, and y2,1 = 0 is the initial y-coordinate value of the second aspherical surface. The heights y2,(i+1) of the refractive planes on the second surface can be calculated using numerical methods.

The feasibility of the proposed method is demonstrated in the remainder of this paper for two specific collimated output light profiles, namely ring-shaped and triangle-shaped, defined respectively as

$$I_{{output}} \left( y \right) = \left\{ {\begin{array}{*{20}l} {2.57 \times 10^{{ - 3}} } \hfill & {for\;2 < y < 11.3} \hfill \\ 0 \hfill & {otherwise} \hfill \\ \end{array} } \right.$$
(14a)
$${I}_{output}\left(y\right)=\left\{\begin{array}{ll}3.3\times {10}^{-4}\times y& for 2<y<11.3\\ 0& otherwise\end{array}\right.$$
(14b)

Figures 14 and 15 show the simulation results obtained for the irradiance patterns of the two aspherical lenses designed in accordance with the requirements of Eq. (14a, 14b). (Note that both lenses were designed using the algorithm described in Sect. 3 with N = 1000.) As shown in Fig. 14a, the simulated irradiance distribution closely resembles the ideal ring-shaped distribution. Moreover, the collimation error is less than 0.02° as shown in Fig. 14b. The results presented in Fig. 15 show that the designed lens also satisfies both the triangular light pattern distribution defined in Eq. (14b) and the collimation requirement.

Fig. 14
figure 14

Ring profile simulation results: a incoherent irradiance, and b radiant intensity

Fig. 15
figure 15

Triangular profile simulation results: a incoherent irradiance, and b radiant intensity

To validate the simulation results, two aspherical lenses were fabricated from PMMA as shown in Fig. 16a and b, respectively. The experimental aspherical lenses come from a contract manufacturing. Although the proposal focuses to develop the algorithm in the aspherical lens construction with specific collimated output profile, the segment points from the algorithm are applied to find out the coefficient of the aspherical polynomial for the aspherical lenses fabricated. Current technologies in the industry promise the tolerance with sag precision, tilt and decenter under 1 μm, 0.1° and 1 μm. It should be sufficient precision for the most segments of the aspherical lens.

Fig. 16
figure 16

Photographs showing aspherical lenses designed to produce: a ring-like and b triangle-like intensity distributions

Figure 17 shows the experimental setup used to evaluate the uniformity and collimation of the two output beams. A 633-nm HeNe laser was used as a collimated light source, with two polarizers placed in front to control the power level. The laser source was first expanded by two lenses with effective focal lengths of 5 cm and 20 cm, respectively, and then passed through a 40 × objective lens and a 10-µm pinhole to transform the collimated light source into a divergent light source. The resulting light source distributions (without the aspherical lenses inserted in the optical setup) were measured at distances of 40 mm and 50 mm behind the pinhole, as shown in Fig. 18a and b, respectively. Figure 19 compares the cross-sections of the two light spots at distances of 40 mm and 50 mm from the pinhole, respectively. It is observed that the divergence angle is around 16 degrees in both cases.

Fig. 17
figure 17

Experimental architecture

Fig. 18
figure 18

Spots on CMOS sensor located at different distances from pinhole: a 40 mm, and b 50 mm

Fig. 19
figure 19

Spot cross-sections of divergent light source at distances of 40 mm and 50 mm from pinhole

The beam shaping system often requires that the light source must be stable because aspherical lenses are based on its distribution during design process. However, the experiment light source has some problems like divergence variation and not rotation-symmetrical. By warming up the HeNe laser at least 30 min, we can obtain more stable light source with the divergent angle close to 16° and the distribution approach to rotation-symmetrical. In evaluating the performance of the fabricated aspherical lenses, each lens was placed 25 mm behind the pinhole, and the CMOS camera was positioned 100 mm behind the aspherical lens. Figures 20 and 21 show the output light patterns obtained from the lenses with a ring-shaped intensity profile and triangular intensity profile, respectively. The experimental results from the ring profile show that approximately 20% of the power is concentrated at the center. This is due to insufficient precision of the aspherical lens at its center. When we simulate the ring profile using N = 200 refractive segments, depicted in Fig. 22 the results indicate a similar effect to the experimental findings—specifically, a peak in power at the central part. However, it is still seen that the light spot conforms to the desired output light pattern in both cases.

Fig. 20
figure 20

Experimental results for ring profile lens: a 2D spot irradiance, and b cross-section of radiance intensity

Fig. 21
figure 21

Experimental results for triangle profile lens: a 2D spot irradiance, and b cross-section of radiance intensity

Fig. 22
figure 22

Ring profile simulation with N = 200 refractive segments

5 Conclusions

This study has proposed a simple method based on Snell’s law for the design of aspherical lenses capable of producing a collimated output light with a specific irradiance distribution in beam shaping systems with a rotationally symmetric divergent light source. The simulation results have confirmed the feasibility of the proposed method. However, the resulting aspherical lenses require a large number of segmented refractive planes. Thus, a further algorithm has been proposed which ensures that the reference beam passes through the central portion of the refractive plane and therefore reduces the total number of refractive surface segments required to achieve the required beam shaping performance. In the proposed algorithm, the related refractive planes of the two aspherical surfaces are updated iteratively until the solution is found which constrains the reference beam Ii to pass through the center of the refractive plane segments of the second surface. The validity of the design process has been demonstrated for two illustrative cases of a ring-like collimated light distribution and a triangle-like collimated light distribution, respectively. The experimental results have shown that the proposed method is indeed able to design aspherical lenses which transform a rotationally symmetric divergent light source into a collimated output light with a specific irradiance distribution.