An optical semiconductor device having high precision of optical coupling and fabricated at low cost. A drive member is configured to mount on a drive axle, a tubular member is coupled to the propeller, and a resilient members is configured to be positioned between the drive member and the tubular member. Furthermore, the data mask section may output random data, or the like, during a time period other than the predetermined time period.