摘要
With the rapid development of e-commerce and the courier industry, the number of express packages has increased sharply. Traditional delivery methods have gradually exposed a series of problems such as low delivery efficiency, poor user experience, and insufficient delivery security. Especially in the delivery phase of the "last mile," the conflict between couriers frequently delivering packages and users being away from home has become increasingly prominent, leading to an increase in delivery failure rates. To address this, smart delivery lockers have emerged as a new type of end-of-line logistics delivery method. Their convenient, efficient, and self-service features have been widely recognized. This paper designs and implements an intelligent courier storage and retrieval system based on the STM32 microcontroller. The system consists of a main control unit STM32F103C8T6, an LCD display module, a servo motor, a GSM SMS module, and a matrix keyboard. It can complete the core functions of express delivery, SMS notification, password pickup, and cash on delivery. SMS reminder is realized through the servo switch cabinet door and GSM module, LCD is used for information display, and the keypad is used for the user to enter the administrator password. The system is based on modular design, with the main program and subroutines written in embedded C language, enabling the various modules to work together in a coordinated manner. This system features a simple structure, stable operation, and low cost, making it suitable for application scenarios such as communities, campuses, and office buildings. It provides a low-cost, scalable technical solution to address last-mile delivery issues, possessing certain practical application value.