文档详情

基于51单片机的摇摇棒简版少图.doc

发布:2019-06-09约4.99千字共12页下载文档
文本预览下载声明
基于STC89C52单片机的 摇摇棒系统 沈阳工业大学 信息科学与工程学院 电子信息工程 0802班 闫博謇 080402056 摘 要 随着科技的不断发展,社会的不断进步,供人们娱乐休闲的工具越来越多, 摇摇棒也随之成为一个热点产品。“摇摇棒”是基于人眼视觉暂留原理而产生的, 当进行摇动时,由于人的视觉暂留会在发光二极管摇动区域产生一个视觉平面,从而达到在该视觉平面上传达信息的作用。本文介绍了以STC89C52单片机控制为主控芯片、配合高亮度LED二极管以及水银开关构成简易摇摇棒的设计过程,通过分时刷新20个发光二极管来显示输出文字或图案等信息。并在此基础上,利用DS1302时钟芯片显示当前时间,可通过按键对时间进行设置。 关键词:视觉暂留;单片机;LED;DS1302 Abstract With the continuous development of the science and technology and the society, a lot of tools , providing the entertainment and leisure for people, have been more and more .So the shaking stick has been a kind of hot produces gradually. It is based on the principle of the human visual and temporary leave to product .when shaken it , the mens visual and temporary leave can produce a visual plane in the LED’s shaking region, in order to achieve the function conveying information in the plane of vision. This paper introduces the process of designing the simple shaking stick with the controlling chip (It is controlled mainly by the STC89c52 MCU ) , a high brightness LED and the mercury switch .It is completed through refreshing 20 LED in the time—sharing to display some information like the text--- output or the design. And on this basis, the use of the chip of the DS1302 would show current time .It would be set time through the button. Keywords: Visual staying phenomenon,MCU,LED,DS1302 目录 摘要 ………………………………………………………… 第一章 基本原理 …………………………………………… 1.1 视觉暂留现象………………………………………… 1.2 STC单片机简介……………………………………… 1.3 水银开关……………………………………………… 1.4 时钟芯片……………………………………………… 1.5 按键…………………………………………………… 1.6 LED …………………………………………………… 第二章 原理图 ……………………………………………… 第三章 实物说明图 ………………………………………… 第四章 使用说明 …………………………………………… 步骤一……………………………………………………… 步骤二……………………………………………………… 步骤三……………………………………………………… 步骤四……………………………………………………… 步骤五……………………………………………………… 第五章 软件设计……………………………………………… 5.1 设计思路……………………………………………… 5.2 系统工作流程………………………………………… 5.3 主程序流程图………………………………………… 第六章 部分效果图…………………………………………… 参考文献 ……………………………………………………… 附件 …………………………………………………………… 第一章 基本原理 1.1视觉暂留现象   (Visua
显示全部
相似文档