Manual parcel sorting is prone to routing errors and processing delays. This project develops an automated sorting machine that uses an ESP32-CAM to read destination QR codes and a PLC-controlled pneumatic system to direct parcels to the correct sorting lane.
Logistics facilities rely on fast and accurate parcel sorting to maintain delivery efficiency. Manual sorting processes are susceptible to routing errors, inconsistent throughput, and increased labor requirements.
This project presents a prototype automated sorting machine that identifies parcel destinations through QR codes and routes packages using a PLC-controlled conveyor and pneumatic actuation system.
The system integrates an ESP32-CAM QR reader, capacitive and photoelectric sensors, and a Siemens S7-300 PLC to automate parcel identification, routing decisions, and pneumatic sorting operations.
ESP32-CAM captures and decodes destination QR codes attached to parcels
Decoded destination data are transmitted to the PLC for sorting decisions
Relay outputs activate pneumatic cylinders assigned to each destination group
Parcels are automatically directed to the corresponding sorting lane
The prototype was tested using 12 parcel samples divided into three destination groups (A, B, and C). Each parcel was processed four times to evaluate sorting travel-time consistency and QR-code scanning performance.
A custom ESP32-CAM module was developed to capture and decode parcel destination QR codes. The module communicates with the Siemens S7-300 PLC through relay outputs, enabling automated sorting decisions and pneumatic actuation.
Performance testing involved 12 parcel samples across three destination groups. Each parcel was processed four times to evaluate sorting cycle time and QR-code recognition performance.
The prototype successfully sorted parcels into three destination groups (A, B, and C) using QR-code identification and PLC-based pneumatic actuation. Testing was conducted on 12 parcel samples with four repetitions each to evaluate travel time and QR-scanning performance.
| Metric | Value |
|---|---|
| Parcel Samples | 12 |
| Test Repetitions | 4× per parcel |
| Destination Groups | 3 (A, B, C) |
Sorting time increased with destination distance, ranging from approximately 9–11 s for Group A, 12–13 s for Group B, and 16–18 s for Group C. QR-code scanning duration showed greater variability due to lighting conditions and parcel positioning, highlighting opportunities for future optimization of the vision subsystem.
Experimental testing revealed several factors affecting sorting accuracy and repeatability. Root cause analysis identified three primary contributors to sorting inconsistencies.
QR-code detection performance was affected by lighting conditions, resulting in variable scan durations. Parcel placement on the conveyor introduced travel-time variations, while imperfect synchronization between PLC logic and actuator positioning reduced sorting accuracy.
Final system validation was performed by integrating the QR reader, PLC controller, relay interface, conveyor simulator, and pneumatic actuators into a single automated sorting workflow. The test verified successful communication between subsystems and confirmed the PLC's ability to execute sorting actions based on QR-code identification results.
The project successfully demonstrated the integration of an ESP32-CAM QR reader, Siemens S7-300 PLC, conveyor system, and pneumatic actuators into a functional automated sorting prototype.
Experimental testing validated the overall control architecture and parcel-routing concept. While full autonomous operation was limited by QR-code detection consistency and mechanical synchronization issues, the project provided valuable experience in industrial automation, PLC programming, machine integration, and system troubleshooting.