In order to overcome the difficulty in imaging detection of high-speed moving targets under complex environments, and to get more comprehensive image information of the target, there is a urgent need to develop new high-performance optical imaging components. Compared to traditional lenses which have fixed shapes and immutable focal length, liquid-crystal microlens (LCMs) can not only adjust the focal length without changing the external shape, but also realize many practical functions such as swinging focus, spectral selection, depth of field adjustment, etc. The physical properties of spatial electric fields constructed between electrode plates of the LCMs are directly related to the light-field adjusting performances of LCMs, such as the polarity of electric field, the frequency and amplitude of applied voltage signal. In other words, the optical behaviors of LCMs will be affected remarkably by the parameters of driving voltage signal mentioned above. To implement these important functions flexibly and effectively, the driving voltage signal must be powerful and flexible. It had better to have multiple channels to control the direction of swinging focus, with relatively wide variance range to spread spectrum selection range, and with high precision to ensure accurately controlling LCMs. In addition, special waveforms may be required to support special functions of LCMs. Therefore a digital control device, which meet the requirements mentioned above, is designed, and then LCMs with it can realize imaging detection of targets in complex environment.