System Design of Workpiece Automatic Cleaning Device based on YOLOv5

  • Ru-Tao Wang School of Electrical Engineering, Liaoning University of Technology, Jinzhou 121001, Liaoning, China
  • Yue-Ling Zhao School of Electronic and Information Engineering, Wuyi University, Jiangmen, Guangdong, 529000, China,
  • Yi-Yang Li School of Electronic and Information Engineering, Wuyi University, Jiangmen, Guangdong, 529000, China,
  • Dong Guo School of Electronic and Information Engineering, Wuyi University, Jiangmen, Guangdong, 529000, China,
Keywords: Machine vision, Automatic cleaning device, YOLOv5, PLC, HMI

Abstract

The recognition and positioning of material baskets are key links in the automatic workpiece cleaning device. Aiming at the problems of low recognition accuracy and poor precision of traditional visual methods for material basket recognition, a control system of automatic workpiece cleaning device based on YOLOv5 was designed. The YOLOv5 detection algorithm was improved by introducing the attention mechanism and optimizing the loss function, which enhanced the attention to the target area and improved the accuracy of feature extraction, thus realizing the position recognition and coordinate acquisition of workpiece material baskets. In addition, a cleaning system with Siemens S7-1200 PLC as the control core was designed. By controlling servo motors to drive the gantry and adjust the operation of the crane, the automatic grabbing and handling of material baskets were realized, and the automatic control of the cleaning process was achieved. Meanwhile, a human-computer interaction (HMI) and monitoring interface was designed, which could intuitively display the operating status of material baskets and improve the interaction capability of the automatic workpiece cleaning device.

References

Yin H, 2024, Design of Full-Automatic Robotic Arm Pipetting System and Analysis of Visual Recognition and Positioning. Electronic Technology, 53(6): 228–229.

Chen D, Liu Q, 2024, Design of Automatic Car Cleaning System Using PLC Technology. Industrial Control Computer, 37(8): 175–176.

Xia X, 2024, Design of Manipulator Sorting Material Control System Based on S7-1200 PLC. Industrial Control Computer, 37(11): 138–140.

Yin Z, Sun R, 2016, Design of Automatic Workpiece Cleaning Device Based on PLC. Automation & Instrumentation, 2016(7): 235–237.

Wang X, 2024, Control System Design of Single-Lane Stereo Garage Based on S7-1200 PLC and Machine Vision. Automation & Instrumentation, 39(10): 18–23.

Chen J, Diao G, Tang M, et al., 2025, Research and Design of Riding Helmet Wearing Monitoring Based on YOLOv5. Internet of Things Technology, 15(7): 32–35.

Devi M, Rajkumar T, 2025, A Novel Attention Based Deep Learning Model for Software Defect Prediction with Bidirectional Word Embedding System. Soft Computing, 29(4): 1–18.

Zhao X, Ma M, Wang L, et al., 2024, Lightweight Apple Leaf Disease Detection Based on YOLOv5. Automation Application, 65(18): 146–148.

Zhang Y, Gao M, 2025, Floating Garbage Target Detection Algorithm Based on Improved YOLOv5s. Computer Engineering and Design, 46(3): 910–917.

Lü D, Li J, 2025, Design of Stepper Motor Control System Based on PLC. Automation Application, 66(1): 6–8.

Published
2025-12-16