Infrared communication in the near ground free space has both military and civilian potential. To meet the requirements of infrared communication based on a micro-electro-mechanical system Planck infrared source/radiator, we propose a modulation method with large code information content, strong confidentiality, and a high recognition rate. With the characteristics of mid-infrared light, a long-range and anti-EMI wireless communication system is available. The information code is loaded on the carrier signal generated by the infrared source with specific frequency. Taking a 3×3 array system for an instance in our work, the design principle and implementation procedure of encoding and modulation is discussed. The total information content of the optical dynamic code is 1.5 kbytes. The communication system could transmit data in the bound rate of 900 bit/s with a photoelectric code recognition rate of 96.4% and an effective information content of 190 bytes.