Abstract:Deformable mirror (DM) is the most important wavefront corrector in adaptive optics. It can compensate wavefront aberration by changing the reflective mirror’s surface frequently. However, the commercial piezoelectric deformable mirror can’t obtain an ideal flat surface under the initial voltage. The optical aberration caused by this initial distortion will seriously weaken the performance of closed-loop control of deformable mirror. Therefore, it is necessary to flatten the surface of deformable mirror before using it for optical aberration correction. In the paper, a deformable mirror control system based on embedded platform is designed to realize surface flattening and mirror deformation. The embedded platform is Jetson nano development board of NVIDIA company. In order to properly control the optical figure of the deformable mirror we have to obtain an response matrix which is the response of optical surface to the DM actuator’s stroke. Here, the multithreading algorithm is used to improve the computing speed of the response matrix. Because of the hysteresis effect of compressed electrical materials, the flatteing of deformable mirror needs to be carried out iteratively. After several close-loop iterations, the surface error RMS of the deformable mirror is reduced from 0.92 λ to 0.03 λ, The deformable mirror has a good flattening effect. The system is not only conducive to the commercialization of the deformable mirror system, but also greatly improves the closed-loop control ability of the deformable mirror and eliminates the initial aberration of the deformable mirror itself in the adaptive optical system.