As the importance of software and artificial education is emphasized on the digital transformation era, various educational materials are being developed and distributed. To achieve the purpose of software education, various software education programs suitable for school settings need to be provided. In this paper, we developed a software education program using self-driving that can be applied to secondary school software education and applied it to secondary school students. The developed software education program is a physical computing program consisting of various motion control programs such as object detection, line tracing using various sensors, focusing on experience and practice. As a result of the survey, students' attitudes and career orientation toward software and artificial intelligence, and satisfaction with software education were over 90%, and satisfaction with the proposed program was over 95%.