设计简介:
项目名:售货机
项目编号:mcuclub-dz-217
单片机类型:STM32F103C8T6
具体功能:
1、通过3*3的矩阵键盘模拟9种商品,当按下某个商品时,显示商品名及价格
2、通过按下确认键后,通过红外计数管检测投币数量,当数量一致时,通过步进电机正转180°模拟出货,出货后5s后,步进电机反转180°回归,并清除显示的商品
3、通过触发型光敏电阻检测光照,当光照过低,则打开补光灯,照亮商品
4、通过OLED显示屏显示数据
5、通过WIFI模块,手机端有3个界面,第一个是库存界面,可以获取9种商品的数量,两侧有加减,进行补货或下架;第二个是销量界面,可以获取9种商品的销售数量;第三个是销售额界面,可以获取9种商品的销售额
6、通过AT24C02,可掉电保存数据
7、通过扫码枪可扫码支付码
总字数:16265
实物链接:点击跳转
设计说明书链接:点击跳转
开题报告链接:点击跳转
答辩PPT链接:点击跳转
摘 要
随着生活的日益富足,智能消费已成为未来发展趋势,当前我国都保持着人工售货的方式进行售卖,需要消耗大量的人力、物力、财力,因此设计可以进行自动售卖的智能系统具有一定的研究价值和研究意义;此次设计一款基于STM32单片机自动售卖机,用户可以3*3的矩阵键盘模拟9种商品,当按下某个商品时,显示商品名及价格;通过红外计数管检测投币数量,当数量一致时,通过步进电机正转180°模拟出货,出货后5s后,步进电机反转180°回归,并清除显示的商品;通过触发型光敏电阻检测光照,当光照过低,则打开补光灯,照亮商品;通过显示屏显示售货机的相关数据;通过AT24C02存储商品名、价格、数量等数据,并可实现掉电保存数据;通过扫码枪实现扫码支付功能。此外,通过WIFI模块实现无线通信功能,手机端有3个界面,分别代表库存界面、销量界面、销售额界面,该设计可以实现自动售卖的功能,可以节省大量的人力和物力,所以此次设计具有一定的研究价值和实际意义。
关键词:自动售卖;矩阵键盘;货物选择;单片机;AT24C02
Abstract
With the increasing abundance of life, intelligent consumption has become the future trend of development, China is currently maintaining the way of manual sales for sale, need to consume a lot of manpower, material resources, financial resources, so the design can carry out automatic sales of intelligent system has a certain research value and research significance; This design is based on STM32 single chip microcomputer vending machine, the user can simulate 9 kinds of goods with 3*3 matrix keyboard, when pressing a product, display the product name and price; The number of coins is detected through the infrared counter tube. When the number is consistent, the stepper motor is turned 180° to simulate shipment. After 5s after shipment, the stepper motor reverses 180° to return, and the displayed goods are cleared. Detect the light through the trigger photoresistor, when the light is too low, turn on the fill light to illuminate the product; Display the relevant data of the vending machine through the display screen; The AT24C02 stores data such as product name, price and quantity, and can save data after power failure. The scanning code payment function is realized through the scanning code gun. In addition, the wireless communication function is realized through the WIFI module, and the mobile phone has three interfaces, respectively representing the inventory interface, sales interface and sales interface. The design can realize the automatic sales function and save a lot of manpower and material resources, so the design has certain research value and practical significance.
Keywords: automatic sale; Matrix keyboard; Cargo selection; Single-chip computer; AT24C02.
目录
第1章 绪论
第2章 系统设计方案
第3章 硬件设计
第4章 系统程序设计
第5章 实物制作与调试过程
结 论
参考文献
致 谢