设计说明书
总字数:20000+
摘要
随着零售行业的快速发展和消费者对购物体验要求的提升,便捷、高效且具备信息交互功能的购物设备成为行业发展的重要方向。传统购物车在商品信息获取、结算效率及购物路径指引等方面存在不足,难以满足现代消费者快速、精准的购物需求,因此,研发一款集成多功能的智能购物车十分必要。
本设计提出了一种基于 STM32F103C8T6 单片机的智能购物车。系统主要功能包括:在未扫码商品时,通过 OLED 显示屏展示广告信息;通过按键切换至查看功能模式或结算功能模式,查看功能模式下,借助 GM861S 扫码枪扫描商品条形码,可显示商品名、生成日期、保质期及产地,5 秒后自动展示同类推荐商品,结算模式下扫描商品条形码则显示商品名、单价与数量;通过 HX711 模块对商品进行称重,结合 RFID-RC522 模块识别商品名与单价,最终计算得出商品总价;通过两个按键模拟目标地点选择,显示屏可实时显示对应的购物路线;通过 SW-420 震动传感器检测购物车是否撞击货架,若发生撞击,系统立即启动声光报警;通过专用按键可触发商品总计结算操作,并支持通过支付二维码完成支付;同时,系统搭载 ESP8266-12F WiFi 模块,与手机 APP 实现通信,能将结算商品的相关信息同步至手机,手机可清晰显示;手机 APP 设置有四个功能按钮,以满足用户多样化操作需求。
该智能购物车的作用在于,为消费者提供了一站式的智能购物解决方案。通过丰富的功能集成,不仅简化了商品信息获取流程、提升了结算效率,还能为用户提供路径指引与安全防护,同时借助手机 APP 实现信息同步,进一步优化了购物体验,有助于推动零售场景的智能化升级,提升消费服务质量。
关键词:单片机;智能购物车;扫码识别;WiFi 通信;称重计价
Abstract
With the rapid development of the retail industry and the increasing demand for shopping experience from consumers, convenient, efficient, and information interactive shopping devices have become an important direction for the industry’s development. Traditional shopping carts have shortcomings in terms of product information acquisition, settlement efficiency, and shopping path guidance, making it difficult to meet the fast and accurate shopping needs of modern consumers. Therefore, it is necessary to develop an integrated multifunctional intelligent shopping cart.
This design proposes an intelligent shopping cart based on STM32F103C8T6 microcontroller. The main functions of the system include: displaying advertising information through OLED display screens when products have not been scanned; Switch to the viewing or settlement mode by pressing the button. In the viewing mode, use the GM861S barcode scanner to scan the product barcode, which can display the product name, generation date, shelf life, and place of origin. After 5 seconds, it will automatically display recommended products of the same type. In the settlement mode, scan the product barcode to display the product name, unit price, and quantity; Weigh the product using the HX711 module, identify the product name and unit price using the RFID-RC522 module, and finally calculate the total price of the product; Simulate target location selection through two buttons, and the display screen can show the corresponding shopping route in real time; Use SW-420 vibration sensor to detect whether the shopping cart hits the shelf. If an impact occurs, the system will immediately activate an audible and visual alarm; The product total settlement operation can be triggered through a dedicated button, and payment can be completed through a payment QR code; At the same time, the system is equipped with ESP8266-12F WiFi module, which communicates with the mobile app and can synchronize the relevant information of settlement products to the mobile phone, which can display it clearly; The mobile app has four function buttons to meet the diverse operational needs of users.
The function of this smart shopping cart is to provide consumers with a one-stop smart shopping solution. Through rich functional integration, not only does it simplify the process of obtaining product information and improve settlement efficiency, but it also provides users with path guidance and security protection. At the same time, with the help of mobile apps, information synchronization is achieved, further optimizing the shopping experience and helping to promote the intelligent upgrade of retail scenes and improve the quality of consumer services.
Keywords:microcontroller; Smart shopping cart; Scan code recognition; WiFi communication; Weighing and Pricing.
目 录
1 绪论
1.1 研究背景及意义
1.2 国内外研究现状
1.3 主要内容
2 系统总体方案设计
2.1系统总体设计
2.2 主要模块方案选择
3 系统硬件设计
3.1 总体硬件框架
3.2 主控模块电路设计
3.3 扫码识别模块电路设计
3.4 称重模块电路设计
3.5 RFID 识别模块电路设计
3.6 显示模块电路设计
3.7 按键模块电路设计
3.8 声光报警模块电路设计
3.9 震动检测模块电路设计
3.10 WiFi 通信模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 主机系统主流程设计
4.3 独立按键
4.4 称重模块HX711模块子流程
4.5 OLED显示流程设计
4.6 WiFi模块子流程设计
5 实物制作与功能测试
5.1 实物制作
5.2 广告显示与路线指引功能测试
5.3 模式切换与扫码识别功能测试
5.4 称重与 RFID 识别功能测试
5.5 撞击报警功能测试
5.6 结算支付与 WiFi 通信功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!