项目编号:mcuclub-dz-358

设计简介:

项目名:自动售货机
项目编号:mcuclub-dz-358
单片机类型:STC89C52
具体功能:
1、通过3*3的矩阵键盘模拟9种商品,当按下某个商品时,显示商品名及价格
2、通过按下确认键后,通过红外计数管检测投币数量,当数量一致时,通过步进电机正转180°模拟出货,出货后5s后,步进电机反转180°回归,并清除显示的商品。当支付超过10s未出现投币数增加,则恢复初始界面。出现余量为0时电机不工作
3、通过AT24C02存储商品数量,实现掉电保存数据
4、通过LCD12864显示屏显示数据
5、通过蓝牙模块连接手机,查看商品数

总字数:15965

摘  要

随着人们生活水平的提高,智能购物已成为未来的发展趋势,当前我国都保持着人工售货的方式进行售卖,需要消耗大量的人力、物力、财力,因此设计智能售卖系统具有一定的研究价值和研究意义。

本系统设计一款基于STC89C52单片机自动售货机,通过3*3的矩阵键盘模拟9种商品,当按下某个商品时,显示商品名及价格;当确认按键被按下后,通过红外计数管检测投币数量,当数量一致时,通过步进电机正转180°模拟出货,出货后5s后,步进电机反转180°回归,并清除显示的商品。当支付超过10s未出现投币数增加,则恢复初始界面。出现余量为0时电机不工作;通过AT24C02存储商品数量,实现掉电保存数据;通过LCD12864显示屏对相关数据进行显示。此外,通过蓝牙模块实现无线通信功能,并进行商品数的查看。该设计可以实现自动售卖的功能,可以节省大量的人力和物力,所以此次设计具有一定的研究价值和实际意义。

关键词:自动售卖;矩阵键盘;显示屏;单片机;AT24C02

Abstract

With the improvement of people’s living standards, intelligent shopping has become a future development trend. Currently, China maintains a manual sales method for sales, which requires a large amount of manpower, material resources, and financial resources. Therefore, designing an intelligent sales system has certain research value and significance.

This system designs an automatic vending machine based on the STC89C52 microcontroller, which simulates 9 types of products through a 3 * 3 matrix keyboard. When a certain product is pressed, the product name and price are displayed; After the confirmation button is pressed, the quantity of coins is detected through an infrared counter. When the quantity is consistent, the shipment is simulated by rotating the stepper motor forward 180 °. After 5 seconds of shipment, the stepper motor reverses 180 ° to return and clear the displayed product. When the payment exceeds 10 seconds without any increase in coin count, the initial interface will be restored. When the margin is 0, the motor does not work; By storing the quantity of goods through AT24C02, data can be saved after power failure; Display relevant data through the LCD12864 display screen. In addition, wireless communication is achieved through the Bluetooth module and the number of products can be viewed. This design can achieve the function of automatic sales, which can save a lot of manpower and material resources. Therefore, this design has certain research value and practical significance.

Keywords: automatic sales; Matrix keyboard; Display screen; Single chip microcomputer; AT24C0

目录

第1章  绪论 5

1.1  选题背景及实际意义 5

1.2  国内外发展历程 6

1.3  本论文研究目标与框架 7

第2章  系统设计方案 8

2.1  主要元器件选择 8

2.2  整体设计方案 9

第3章  硬件设计 11

3.1 单片机最小系统 11

3.2 LCD12864显示模块电路 18

3.3 矩阵键盘模块 20

3.4 步进电机模块 20

3.5 红外对射模块(测速/计数)电路 22

3.6 AT24C02存储模块电路 23

第4章  系统程序设计 25

4.1 编程软件介绍 25

4.2 系统主流程设计 25

4.3 矩阵键盘子流程 26

4.4 LCD12864显示模块子流程设计 27

4.5 存储模块子流程 28

第5章 仿真测试 30

5.1电路仿真总图 30

5.2上电运行仿真测试 30

5.3商品购买仿真测试 31

5.4蓝牙模块仿真测试 33

第6章 实物制作与调试过程 34

6.1电路焊接总图 34

6.2上电运行实物测试 34

6.3商品购买实物测试 35

6.4蓝牙模块实物测试 37

结  论 38

参考文献 39

致  谢 40

附录1:原理图 41

附录2:PCB 42

附录3:主程序 43

……………..本设计说明书是配套实物或仿真来写的,完整的设计参考书请购买后下载,购买过程遇到任何问题请联系客服进行咨询。本资料是一次性商品,不支持退货,感谢您对单片机俱乐部的支持……………..

发表评论

后才能评论

本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。

最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。 若排除这种情况,可在对应资源底部留言,或联络我们。

对于会员专享、整站源码、程序插件、网站模板、网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。

如果您已经成功付款但是网站没有弹出成功提示,请联系站长提供付款信息为您处理

源码素材属于虚拟商品,具有可复制性,可传播性,一旦授予,不接受任何形式的退款、换货要求。请您在购买获取之前确认好 是您所需要的资源