CN205406081U - Digital control electron tone system - Google Patents
Digital control electron tone system Download PDFInfo
- Publication number
- CN205406081U CN205406081U CN201620161524.3U CN201620161524U CN205406081U CN 205406081 U CN205406081 U CN 205406081U CN 201620161524 U CN201620161524 U CN 201620161524U CN 205406081 U CN205406081 U CN 205406081U
- Authority
- CN
- China
- Prior art keywords
- chip microcomputer
- digital control
- tone system
- control electronics
- electronics tone
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Electrophonic Musical Instruments (AREA)
Abstract
Description
技术领域technical field
本实用新型涉及一种电子音调系统,具体说,是涉及一种单片机制成的播放器,属于电子声乐器领域。The utility model relates to an electronic tone system, in particular to a player made of a single-chip microcomputer, which belongs to the field of electronic acoustic instruments.
背景技术Background technique
最早的电子音乐是由一个美国科学家在六十年代发明的一款电子合成器,随后在此以后,中国和很多其他国家也渐渐地进行了电子音乐的研究和开发。可以说,电子音乐的研究是现代音乐信息科技领域进步的关键点。目前市场上的电子音乐播放器普遍价格较高,电路复杂,令消费者难以承受。The earliest electronic music was an electronic synthesizer invented by an American scientist in the 1960s. After that, China and many other countries gradually carried out the research and development of electronic music. It can be said that the research of electronic music is the key point of progress in the field of modern music information technology. Electronic music players currently on the market generally have high prices and complex circuits, making it unaffordable for consumers.
实用新型内容Utility model content
针对现有技术存在的上述问题,本实用新型的目的是提供一种结构简单,成本低廉的数字控制电子音调系统。Aiming at the problems mentioned above in the prior art, the purpose of this utility model is to provide a digitally controlled electronic tone system with simple structure and low cost.
为实现上述目的,本实用新型采用如下技术方案:In order to achieve the above object, the utility model adopts the following technical solutions:
一种数字控制电子音调系统,包括单片机、播放模块、键盘以及片外存储器,所述单片机包括若干输入输出接口,所述播放模块连接在一个输入输出接口上,所述键盘的每一个按键分别对应连接在一个输入输出接口上,用以控制所述单片机工作,所述片外存储器与所述单片机相连接,用以存储乐曲的音阶信息,所述单片机根据从所述片外存储器中获取的不同音阶输出对应的频率信号至所述播放模块。A digitally controlled electronic tone system, comprising a single-chip microcomputer, a playback module, a keyboard and an off-chip memory, the single-chip microcomputer includes several input and output interfaces, the playback module is connected to an input and output interface, and each key of the keyboard corresponds to Connected to an input and output interface to control the operation of the single-chip microcomputer, the off-chip memory is connected to the single-chip microcomputer to store the scale information of the music, and the single-chip microcomputer is based on the difference obtained from the off-chip memory. The scale outputs the corresponding frequency signal to the playing module.
作为一种实施方式,所述播放模块包括信号放大器以及扬声器,所述单片机输出的频率信号经过所述信号放大器的放大处理后输入至所述扬声器。As an implementation manner, the playback module includes a signal amplifier and a speaker, and the frequency signal output by the single-chip microcomputer is amplified by the signal amplifier and then input to the speaker.
作为一种实施方式,所述键盘包括若干开关以及扩展输入口,所述开关通过所述扩展输入口与所述单片机连接,所述扩展输入口将所述开关的开合状态转换成二进制数至所述单片机。As an implementation, the keyboard includes several switches and extended input ports, the switches are connected to the single-chip microcomputer through the extended input ports, and the extended input ports convert the opening and closing states of the switches into binary numbers to the microcontroller.
作为一种实施方式,所述数字控制电子音调系统还包括复位电路,所述复位电路连接在所述单片机的RST引脚。As an implementation manner, the digitally controlled electronic tone system further includes a reset circuit, and the reset circuit is connected to the RST pin of the single-chip microcomputer.
作为一种实施方式,所述数字控制电子音调系统还包括时钟电路,所述时钟电路连接在所述单片机的XTAL引脚。As an implementation manner, the digitally controlled electronic tone system further includes a clock circuit, and the clock circuit is connected to the XTAL pin of the single-chip microcomputer.
相较于现有技术,本实用新型的有益技术效果在于:Compared with the prior art, the beneficial technical effect of the utility model lies in:
本实用新型提供的数字控制电子音调系统用单片机制成电子音乐播放器结构简单、成本低,播放的效果好,体积很小便于携带,并且易于扩展其他功能。The digital control electronic tone system provided by the utility model uses a single-chip computer to make an electronic music player with simple structure, low cost, good playing effect, small volume, easy to carry, and easy to expand other functions.
附图说明Description of drawings
图1为本实用新型提供的一种数字控制电子音调系统的部分电路图;Fig. 1 is a partial circuit diagram of a kind of digital control electronic tone system provided by the utility model;
图2为本实用新型所述的键盘的电路图;Fig. 2 is the circuit diagram of the keyboard described in the utility model;
图3为本实用新型所述的播放模块的电路图;Fig. 3 is the circuit diagram of the playing module described in the utility model;
图中标号示意如下:1-单片机;2-播放模块;201-信号放大器;202-扬声器;3-键盘;301-开关;302-扩展输入口;4-复位电路;5-时钟电路。The symbols in the figure are as follows: 1-single-chip microcomputer; 2-player module; 201-signal amplifier; 202-speaker; 3-keyboard; 301-switch; 302-extended input port; 4-reset circuit; 5-clock circuit.
具体实施方式detailed description
以下结合本实用新型的附图,对本实用新型实施例中的技术方案进行清楚、完整的描述。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the present invention.
如图1和图2所示,本实施例提供的数字控制电子音调系统包括单片机1、播放模块2、键盘3、片外存储器(图中未示出)、复位电路4以及时钟电路5。As shown in Figures 1 and 2, the digitally controlled electronic tone system provided by this embodiment includes a single-chip microcomputer 1, a playback module 2, a keyboard 3, an off-chip memory (not shown), a reset circuit 4 and a clock circuit 5.
如图1中所示,单片机1包括8个输入输出接口(P1.0-P1.7),播放模,2连接在输入输出接口P1.0上,其余的输入输出接口(P1.1-P1.7)与图2的键盘3连接。复位电路4连接在单片机1的RST引脚,时钟电路5连接在单片机1的XTAL引脚。As shown in Figure 1, the single-chip microcomputer 1 includes 8 input and output interfaces (P1.0-P1.7), the playback mode, 2 is connected to the input and output interface P1. .7) be connected with the keyboard 3 of Fig. 2. The reset circuit 4 is connected to the RST pin of the single-chip microcomputer 1 , and the clock circuit 5 is connected to the XTAL pin of the single-chip microcomputer 1 .
如图2所示,键盘3包括开关301(共8位,SW1-SW8)以及扩展输入口302,开关301通过扩展输入口302分别与单片机1的输入输出接口(P1.1-P1.7)连接,扩展输入口将8位开关301的开合状态转换成8位二进制数至单片机1。举例来说,8位开关301的初始状态为11111111,代表没有一个开关301打开。当第一个开关301打开时,则为11111110,当第二个开关301打开时,则为11111101,以此类推至01111111,分别用来控制单片机实现对应的功能,例如选歌、播放、暂停等。As shown in Figure 2, the keyboard 3 includes a switch 301 (a total of 8 bits, SW1-SW8) and an expansion input port 302, and the switch 301 is respectively connected to the input and output interfaces (P1.1-P1.7) of the single-chip microcomputer 1 through the expansion input port 302 connected, the expansion input port converts the on-off state of the 8-bit switch 301 into an 8-bit binary number and sends it to the single-chip microcomputer 1. For example, the initial state of the 8-bit switch 301 is 11111111, which means none of the switches 301 is turned on. When the first switch 301 is turned on, it is 11111110, when the second switch 301 is turned on, it is 11111101, and so on to 01111111, which are used to control the microcontroller to achieve corresponding functions, such as song selection, play, pause, etc. .
单片机1的RST引脚连接复位电路4,其主要作用是每当单片机1断电通电一次,单片机1就会进行复位操作,这样上一次操作的程序和结果就不会和下次发生重叠的情况。单片机1的EA引脚接高电平时,单片机1会直接从片外程序存储器中读取乐曲的音阶信息,而如果EA接了低电平,那它就会从单片机1的内部程序存储器中的程序开始执行,将读取到的乐曲的音阶信息转换成对应的频率信号。单片机1的XTAL引脚与时钟电路5连接,用来或许时钟信号,时钟电路5包括3个电容分别为22μF,30μF和30μF,一个晶振12MHZ。The RST pin of MCU 1 is connected to the reset circuit 4. Its main function is that MCU 1 will perform a reset operation every time MCU 1 is powered off, so that the program and result of the last operation will not overlap with the next time. . When the EA pin of MCU 1 is connected to high level, MCU 1 will directly read the scale information of the music from the off-chip program memory, and if EA is connected to low level, then it will read the music scale information from the internal program memory of MCU 1. The program starts to execute, and converts the scale information of the read music into the corresponding frequency signal. The XTAL pin of the microcontroller 1 is connected to the clock circuit 5 for a clock signal. The clock circuit 5 includes three capacitors of 22 μF, 30 μF and 30 μF respectively, and a crystal oscillator of 12MHZ.
如图3所示,播放模块2包括信号放大器201以及扬声器202,单片机1输出的频率信号经过信号放大器201的放大处理后输入至扬声器202进行播放。As shown in FIG. 3 , the playback module 2 includes a signal amplifier 201 and a speaker 202 . The frequency signal output by the single chip microcomputer 1 is amplified by the signal amplifier 201 and then input to the speaker 202 for playback.
单片机1的工作原理在于使用它的定时器和计数器可以产生一定频率的波,然后驱动扬声器发出对应的音符。要产生这样的声音频率,首先要对音符的频率进行转化成对应的数值,从而驱动扬声器发出声音组合成歌曲。在本实施例中,采用的音阶与频率的对应表如下(本实施例对此只是举例说明,以便技术人员理解,但并不以此为限):The working principle of the single-chip microcomputer 1 is to use its timer and counter to generate waves of a certain frequency, and then drive the speaker to emit corresponding notes. To generate such a sound frequency, the frequency of the note must first be converted into a corresponding value, so as to drive the speaker to make a sound and combine it into a song. In the present embodiment, the corresponding table of the scale and the frequency used is as follows (the present embodiment is only an example to illustrate this, so that the skilled person understands, but is not limited thereto):
表1各音阶对应频率(基本与高8度)Table 1 Corresponding frequency of each scale (basic and high 8 degrees)
表2各音阶对应频率(高15度)Table 2 Corresponding frequency of each scale (higher 15 degrees)
除此以外还用到了最高的一个音,是高22度的1,频率为2093.00Hz。频率之中有很多是小数,为了之后便于计算,全部四舍五入转化为整数值。P1.0口作为单片机1的输出信号端口,连接到播放模块2的信号接收口SD上,通过电阻R40,然后由信号放大器201(三极管9012)将信号放大,传送给扬声器202(8欧姆喇叭插座),由VCC供电发出声音。In addition to this, the highest sound is used, which is 22 degrees higher than 1, and the frequency is 2093.00Hz. Many of the frequencies are decimals. For the convenience of calculation later, all are rounded and converted to integer values. The P1.0 port is used as the output signal port of the single-chip microcomputer 1, connected to the signal receiving port SD of the playback module 2, through the resistor R40, and then the signal is amplified by the signal amplifier 201 (transistor 9012), and transmitted to the speaker 202 (8 ohm speaker socket ), powered by VCC to produce sound.
最后有必要在此指出的是:以上所述仅为本实用新型较佳的具体实施方式,但本实用新型的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本实用新型揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本实用新型的保护范围之内。Finally, it is necessary to point out that: the above is only a preferred specific embodiment of the utility model, but the scope of protection of the utility model is not limited thereto, and any person familiar with the technical field shall disclose Within the technical scope, easily conceivable changes or replacements shall be covered by the protection scope of the present utility model.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201620161524.3U CN205406081U (en) | 2016-03-03 | 2016-03-03 | Digital control electron tone system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201620161524.3U CN205406081U (en) | 2016-03-03 | 2016-03-03 | Digital control electron tone system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN205406081U true CN205406081U (en) | 2016-07-27 |
Family
ID=56443297
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201620161524.3U Expired - Fee Related CN205406081U (en) | 2016-03-03 | 2016-03-03 | Digital control electron tone system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN205406081U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108648737A (en) * | 2018-06-15 | 2018-10-12 | 广西职业技术学院 | A kind of electronic organ for integrated amplifier electric circuit teaching |
-
2016
- 2016-03-03 CN CN201620161524.3U patent/CN205406081U/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108648737A (en) * | 2018-06-15 | 2018-10-12 | 广西职业技术学院 | A kind of electronic organ for integrated amplifier electric circuit teaching |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3257045B1 (en) | Clock switching in always-on component | |
US20100312998A1 (en) | Direct communication with a processor internal to a memory device | |
CN106814788A (en) | For the apparatus and method of active circuit | |
US9311906B2 (en) | Electronic organ with free-combined keys and a method to realize free combination | |
CN205406081U (en) | Digital control electron tone system | |
JPH0321920B2 (en) | ||
CN105187982A (en) | Intelligent sound box system based on voice and body feeling technology and control method thereof | |
CN115153108A (en) | Electronic cigarette microphone detection circuit and method | |
WO2022237728A1 (en) | Apparatus for electronic percussion melody instrument and electronic percussion melody instrument | |
CN205789092U (en) | A kind of MLSA composite filter based on FPGA | |
CN202171944U (en) | Electronic organ | |
CN202930018U (en) | An Electronic Organ Based on Single-chip Computer Control | |
CN201570248U (en) | Electronic keyboard system | |
CN203456074U (en) | A kind of piano that can be used as a computer | |
CN205609197U (en) | Wearable electrical music | |
CN2922038Y (en) | Digital sound effect device with recording function | |
CN205792544U (en) | A kind of Intelligent bracelet musical instrument based on micro radar | |
CN214586474U (en) | A kind of music performance controller based on single chip microcomputer | |
CN203133750U (en) | Music computer keyboard | |
CN209090126U (en) | Gloves for virtual instrument performance | |
CN202887696U (en) | One-key chord system | |
CN203324737U (en) | Intelligent frequency variable sinusoidal signal generator | |
CN205384607U (en) | Intelligent mathematical calculation device | |
CN105023556A (en) | Music box design based on AT 89S52 | |
CN201733882U (en) | Electronic guitar T-shirt |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160727 Termination date: 20200303 |
|
CF01 | Termination of patent right due to non-payment of annual fee |