文档详情

基于单片机的音乐彩灯控制器设计.doc

发布:2019-01-26约1.45万字共14页下载文档
文本预览下载声明
陕西理工学院毕业设计 PAGE 1 基于单片机的音乐彩灯控制器设计 许蕊 (陕西理工学院物电学院电子信息科学与技术专业电信103班,陕西汉中 723001) 指导教师:刘亚峰 [摘要] 本设计是一种基于AT89C51单片机音乐控制彩灯的方案,实现单片机演奏音乐,并且对LED彩灯随音符频率的不同而闪烁发光。本方案以AT89C51单片机作为主控核心,通过三极管放大电流使用蜂鸣器播放音乐,利用编程实现亮灯循环模式,在有8个LED彩灯,根据用户需求可以编写若干种亮灯模式.例如左右闪烁,隔几个亮灭,蜂鸣器可以根据用户需求改写编程播放各种音乐。本方案具有设计简单、体积小、元器件少、电路结构简单等优点。该设计方案设计及其简单,典型的AT89C51单片机,亮灯模式多,播放各种类型的音乐,具有体积小、价格低、低能耗等优点。在美丽的都市夜晚,彩灯的循环亮灭,播放动人的音乐,衬托出美丽的氛围。 [关键词] AT89C51 LED彩灯 音乐 Based on single chip music lights controller design Xu rui (Grade10,Class3,Major Electronic Information Science and Technology,.Content electric institute,Shaanxi University of Technology,Hanzhong 723000,Shaanxi) Tutor:Liu yafeng Abstract :This design is a musical based on AT89C51 microcontroller control program Lantern,realize MCU playing music,And the LED lights on the frequency of different notes with the light flashing。The program for AT89C51 microcontroller as the control center, the current through the transistor amplification using the buzzer to play music, Using programming lighting cycle mode, with 8 LED Lantern, according to user needs to write some kind of switch-mode. For example, flashing around, every few light off, the buzzer can be adapted according to user requirements play a variety of music programming . The program is simple in design, small size, less components, and simple circuit structure. The design and simple design, the typical 89c51 microcontroller, a switch-mode and more, playing all types of music, has a small size, low price and low power consumption and so on. In the beautiful city at night, lanterns light off cycle, play beautiful music, brings out the beautiful atmosphere. Key words :AT89C51 LED Lantern music TOC \o 1-3 \h \z \u HYPERLINK \l _Toc340999493 引言 PAGEREF _Toc340999493 \h 1 HYPERLINK \l _Toc340999494 1 音乐彩灯方案设计与选择 PAGEREF _Toc340999494 \h 1 HYPERLINK \l _Toc340999495 1.1设计要求 PAGEREF _Toc340999495 \h 1 HYPERLINK \l _Toc340999496 1.2 基本原理 PAGEREF
显示全部
相似文档