Wireless optical communication is an advanced technology based on optical communications and wireless communications. The paper proposes a solution of wireless laser communication with mcu. Using the macro crystal STC12C5A60S2 microcontroller as the main control chip, laser coding as the communication carrier, the system could achieve wireless optical communication in long distance.