It is inevitable that rape transplanting machine will leak and block during the work. In this paper a set of detection system with STM32 as the core was designed and the four photoelectric sensors and light emitting diode correspondingly acted as the alarming photoelectric sensor of transmitter, receiver and prompting, which could precisly detect the process of leaking. When the transplanting machine didn't transplant rape seedling in duckbill, the machine would give an alarm signal, showing and the digital unplanted rows and and specific transplanting numbers. Fin...