基于单片机的自动售货机控制程序设计_毕业设计论文.doc
文本预览下载声明
编号:
毕业设计说明书
题 目: 基于单片机的自动售货机控制程序设计
学 院: 机电工程学院
专 业:机械设计制造及其自动化
学生姓名:
学 号:
指导教师:
职 称:
√√√√√√题目类型: 理论研究 实验研究 √工程设计 工程技术研究 软件开发
√√√√√√
年 月 日
PAGE \* MERGEFORMAT I
摘 要
自动售货机是劳动密集型的产业结构向技术密集型社会转变的产物。其诞生和发展,充分地体现了当代科学技术正在向着高度智能化、网络化的方向发展。作为整个自动售货机系统的核心,主控制系统主要负责协调各种外部设备的工作,以实现各个外设的功能最大化,完成销售过程。自动售货机作为自助服务领域中的一员,早已被国内外该领域的厂商所研究,并且得到了广泛的应用。为了适应市场的发展和客户的需求,需要开发一套功能更加完善、更加人性化及扩展性能更强的自动售货机控制系统。本文设计的是一种以MCS系列单片机中的89C52作为中央控制器的自动售货机系统控制装置。主要介绍了自动售货机系统的方案设计、硬件选择、软件规划和编写,并重点描述了自动售货机系统的工作原理、系统设计、软件编程的原则和技巧。本系统以89C52单片机芯片作为核心,采用集中控制方式以实现对自动售货机全过程的自动控制。本系统以6个独立按键作为购物选择端,采用7个LED作为出货提示和退币提示,采用LCD1602作为投币显示端,用光电传感器模拟货币识别和检测投币数,采用H桥电路作为电机驱动电路,实现了货物掉出、投币显示以及出货退币提示等功能。另外,本系统程序将采用KEIL软件进行编写和编译,该软件具有编程简单、查错方便、阅读容易等特点。C语言是最常用的单片机编程语言,具有容易理解,便于记忆和使用等特点。
关键词:自动售货机;控制系统;89C52单片机;LCD1602;H桥电路
Abstract
The vending machine is labor-intensive industrial structure, product of transition to technology-intensive society. Because of the development in science and technology, the vending machine is becoming more intelligent and humanized gradually. As a multi-functional machine, vending machine is made up of a great many of modules. In order to realize the sale procedure, the controller must works as a commander in reasonable and optimized processes to make sure all those modules function harmoniously, which makes the controller the most important part of the whole intelligent machine. The vending machine as a member of self-service areas, the manufacturers of the field at home and abroad to study, and has been widely used. In order to adapt to market developments and customer needs, it is necessary to develop a more complete, more humane and expand the vending machine control system for more performance. Designed in this paper is an 89C52 microcont
显示全部