文档详情

基于51单片机的音乐盒设计与制作.doc

发布:2024-01-18约1.39万字共31页下载文档
文本预览下载声明

PAGE

南京信息职业技术学院

毕业设计论文

作者魏蒙蒙学号31623F03

系部环境信息学院

专业光电子技术应用

题目基于51单片机的音乐盒设计与制作

指导教师王永

评阅教师张渊

完成时间:2019年5月5日

毕业设计(论文)中文摘要

(题目):基于51单片机的音乐盒设计与制作

摘要:伴随着社会的全面的发展,生活节奏也变得越来越快,人们生活,工作的压力也越来越大。听音乐可以缓解压力,有助于全身心放松。这个音乐盒给人们带来了很多便利和乐趣。

本文是应用MCS-51单片机原理和控制理论设计音乐演奏控制器的硬件电路,并利用C语言进行程序设计。通过控制单片机内部的定时器来产生不同频率的方波,驱动蜂鸣器发出不同音调的音乐,再利用延迟来控制发音时间的长短。把乐谱转化成相应的定时常数就可以从发音设备中演奏出悦耳动听的音乐。这种控制电路结构简单,可读性高,应用性强;软件程序适应范围广,对于不同的音乐只需要改变相应的定时常数即可。

关键词:单片机;音乐播放器;C语言

毕业设计(论文)外文摘要

Title:Designandproductionofmusicboxbasedon51singlechipmicrocomputer

Abstract:Withtheoveralldevelopmentofsociety,thepaceoflifehasbecomefasterandfaster,peopleslife,workpressureisalsogrowing.Listeningtomusiccanrelievestressandhelpyourelaxwholeheartedly.Thismusicboxhasbroughtpeoplealotofconvenienceandfun.

Inthispaper,thehardwarecircuitofmusicperformancecontrollerisdesignedbyapplyingtheprincipleandcontroltheoryofMCS-51singlechipcomputer,andtheprogramisdesignedbyusingClanguage.Bycontrollingthetimerinsidethemicrocontrollertoproducesquarewavesofdifferentfrequencies,thebuzzerisdriventoproducemusicofdifferenttones,andthepronunciationtimeiscontrolledbydelay.Convertingthemusicscoreintothecorrespondingtimingconstantcanproducepleasantandpleasantmusicfromthepronunciationequipment.Thiscontrolcircuithassimplestructure,highreadabilityandstrongapplicability.Thesoftwareprogramhasawiderangeofadaptability,andonlyneedstochangethecorrespondingtimingconstantfordifferentmusic.

Keyword:Single-chipprocessor;Musicplayer;Cprogramminglanguage

目录

TOC\o1-3\h\z\u1绪论 1

1.1概述 1

1.2单片机的产生和发展 1

1.3系统设计总体方案 3

2MCS-51单片

显示全部
相似文档