基于单片机的电子琴设计

基于单片机的电子琴设计

摘 要

读书、看电影、听音乐,都是最常见的丰富内心世界的良剂。听音乐,作为陶冶情操、提升境界最便捷的方式,正受到越来越多人们的欢迎。音乐可以很轻松的融入各种场合,给人们带来很轻松的氛围,只有真正的接触它,才可以真正的感受到它的魅力。
本次设计正是基于这样的一种考虑,将实现一种简易电子琴的制作,考虑到市面上的电子琴因型号各异,款式各异,所以在价格方面也会有很大的差别,而这次设计将结合电子琴的功能性以及实用性将成本降至最小化来进行制作。本次设计主要用到的芯片是STC89C51,系统里包含了几大核心模块主要有按键模块 、扬声器模块、数码管模块等。
此次设计主要能实现的功能是:键盘上有12个按键,上面8个分别代表不同的音符键,当触发到某一个按键时扬声器会发出对应的音符,这样只要有完整的乐谱,就可以弹奏出非常美妙的音乐。此外剩下的4个按键是功能键。此次系统的设计不仅涉及到硬件方面还涉及到软件方面,所以得从两方面展开巩固系统。

关键词:STC89C51单片机 电子琴 键盘

Design of electronic organ based on single chip microcomputer

Abstract

Reading, movies, listening to music are a good dose of the most common rich inner world.To listen to music, as the mold sentiment, enhance the realm of the most convenient way, is being more and more people’s welcome。Music can be very easy to integrate into various occasions, to give people a very relaxed atmosphere, only the real contact with it, you can really feel its charm.
The design is based on such a consideration, the production of a simple electronic piano,Taking into account the electronic organ on the market due to different models, different styles, so there will be a lot of difference in terms of price,And this design will combine the function of electronic organ and practicality to minimize the cost of production.The design of the main use of the chip is STC89C51,System contains several major core modules are key modules, speaker module, digital control module and so on.
This design can achieve the main function is:There are 12 keys on the keyboard, the top 8 respectively represent different notes, when the trigger to a certain button when the speaker will send the corresponding note,So as long as there is a complete score, you can play a very wonderful music.In addition to the remaining 4 buttons,which have some funactions.The system is not only involved in the design of hardware, but also related to the software, so we have to start from two aspects of the consolidation of the system.

Key words: STC89C51 electronic organ keyboard

目 录

摘 要 I
Abstract II
目 录 III
1 绪论 1
1.1电子琴设计的背景及意义 1
2 硬件设计及说明 3
2.1系统组成及总体框图 3
2.2元件简介 3
2.3 各功能模块原理图 8
3 软件设计 11
3.1 音乐方面知识 11
3.2 用单片机产生音频脉冲 11
3.3系统总体功能流程图 11
4 系统调试 13
4.1硬件调试 13
4.2 软件调试 13
5 毕业设计总结以及心得体会 14
参考文献 15
致谢 16

1 绪论

1.1电子琴设计的背景及意义
在当代科技迅猛发展的今天,电子产品凭借它的可玩性强、实用性高以及性价比高等特点,迅速吸引住人们的眼球,越来越受到大家的青睐。电子琴作为当代电子科技与音乐相结合的典型代表,在现代音乐中占据着相当重要的地位。电子琴发展于美国,在国外电子琴的使用早已普及,传到中国后,随着人们生活水平的提高也逐渐对电子琴这种性价比较高且实用性较强的乐器产生兴趣,发展至今,电子琴已经成为非常频繁可见的一种乐器。而涉及到硬件的制作就不得不提单片机,单片机因其小巧且功能强大颇受电子爱好者们的喜爱,在硬件设计方面它是必不可少的存在。因此,我选择了简易电子琴这个题目来作为我的毕业设计课题,在提高我的动手实践能力的同时,也能紧密地与实际生活相联系,

  • 42
    点赞
  • 27
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值