High-efficiency perovskite solar cells with good grain morphology and adjustable band gap were prepared by ultrasonic spray.