• 沒有找到結果。

電子音樂盒之設計與製作

N/A
N/A
Protected

Academic year: 2021

Share "電子音樂盒之設計與製作"

Copied!
40
0
0

加載中.... (立即查看全文)

全文

(1)

The Design and Implementation of an Electronic

Musical Box

: : D9827320 D9827232 D9827350 D9827215 D9872318 99

(2)

1 ePaper (2011 )

Layout

(3)

2 ePaper (2011 )

Abstract Abstract Abstract Abstract

The aim of this project is to design and implement an electronic musical box based on a microcontroller .

Most of the people listen to the musical box .The first impression is a revolving baby doll accompanying with the amazing music .Apparently, This is really monotonous .

In order to design a colorful and versatile electronic musical box ,the dot matrix LEDS are replacing the revolving baby doll . In this project . The musical codes is stored in the memory by table form . Finally , the circuit scheme , circuit layout and printed circuit board are presented . Moreover , the experimental results are demonstrated in this project.

Keyword KeywordKeyword

(4)

3 ePaper (2011 ) 緒論 ... 4 系統架構 ... 7 實驗結果與操作說明 ... 22 結論與討論 ... 26 組員工作劃分 ... 28 工作日誌 ... 29 組員心得 ... 31 附錄一 ... 34

(5)

4 ePaper (2011 ) 緒論 1.1 15 Peter Henlein Carillon 1796 Antoine Faver 1 (Cylinder music

(6)

5 ePaper (2011 ) ? 1.2 - (Movement) IC (Comb teeth) (Cylinder) (Pin) 18 30 72 3 (Octave) 1.5 1.5

(7)

6 ePaper (2011 )

1 3

(Weight)

(8)

7 ePaper (2011 )

系統架構

系統架構

系統架構

系統架構

2.1 (1) (2)8052 (3)74138 (4)16*16 (1) (2)8052 (3) 2.1 2.1 (1)AT89S52

(9)

8 ePaper (2011 ) (2)74LS138 (3)8 * 8 (4)LED (5) (6)BJT 2.1.1 AT89S52 2.2 AT89S52 8052 32pin I/O (RESET) (VDD GND) (EA) / (XTAL1 XTAL2) 2.2 2.1 (1) (2) (3) 256KB RAM 4K ROM

(10)

9 ePaper (2011 ) 2.1 8051 VCC +5V GND XTAL1 2 Port0~Port3 8 Port0 Port1~Port3 Port3 P3.0 RXD P3.1 TXD P3.2 INT0 0 P3.3 INT1 1 P3.4 T0 0 P3.5 T1 1 P3.6 WR P3.7 RD

(11)

10 ePaper (2011 ) 2.1.2 74LS138 74LS138 3 8 2.3 2.2 3 74138 8052 PORT (P0.0~P0.4) 2.3 74138 2.2 74LS138 Inputs Outputs Enable Select G1 G2(Note1) C B A Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 X L H H H H H H H H H X L L L L L L L L X X L L L L H H H H X X L L H H L L H H X X L H L H L H L H H H L H H H H H H H H H H L H H H H H H H H H H L H H H H H H H H H H L H H H H H H H H H H L H H H H H H H H H H L H H H H H H H H H H L H H H H H H H H H H L

(12)

11 ePaper (2011 ) 2.1.3 8 * 8 8*8 2.4 2.4 8 * 8 2.1.4 2.5 : 1. 2. 1/2 3. 9V 1.裏V 8裏dB

(13)

12 ePaper (2011 ) 2.5 2.1.5 74245 74245 (Data Bus) 2.6 CPU 74245 74245 DIR G L G H A B

(14)

13 ePaper (2011 ) 2.6 74245 2.2 74245 Enable Direction G Control DIR Operation L L L H H X B Data to A BUS A Data to B BUS Isolation H=High Level L = Low Level X =Irrelevant

(15)

14 ePaper (2011 ) 2.1.6 BJT Q B C E 2.7 BJT BJT pn pnp npn emitter E base B collector C pn p n 2.2 2.2.1 2.2.2 16*16 LED 2.8 4 8*8 LED 16*16 LED

(16)

15 ePaper (2011 ) 2.8 8052 74138 32 2.9 2.9 8*8 LED 2.2.3 8052 P1.0

(17)

16 ePaper (2011 ) 2.2.4 : : 2.10 2.11 2.3 2.3.1 2.10 2.3.2 74138 5 32 COM 16*16LED 2.3.3 8052 timer TIMER0

(18)

17 ePaper (2011 )

TIMER1 TIMER0

(19)

18 ePaper (2011 ) 2.3.4

:

(20)

19 ePaper (2011 )

:

TIMER

A

(21)

20 ePaper (2011 )

(22)

21 ePaper (2011 ) . .. . 2.12 , 2.13 . .. . R6=(500000/f-9)/15 : ( ) : 16*16 ( ) :

(23)

22 ePaper (2011 )

實驗結果與操作說明

實驗結果與操作說明

實驗結果與操作說明

實驗結果與操作說明

: ( ) : 16 *16 ( ) : 3.1 (1) (2)8052 (3) (4)74LS245 (5)74LS04 (6)74LS138 (7) (8) 8052微處理器 8052微處理器 按鈕 揚聲器 74LS138 74LS04 74LS245 1 2 16*16點矩陣

(24)

23 ePaper (2011 ) 3.1 1. 2 2. 1 3. 2 4. 1 5. 2 6. 1 7. 2 3.2 A. : B. (1) 3.2 3.2

(25)

24 ePaper (2011 )

(2) 3.3

3.3

(3) 3.4.1~3.4.2

(26)

25 ePaper (2011 )

3.4.1

(4) 3.5

(27)

26 ePaper (2011 )

結論與討論

結論與討論

結論與討論

結論與討論

4.1 CAPTURE LAYOUT KEIL

(28)

27 ePaper (2011 ) A. Layout layout B. C.

(29)

28 ePaper (2011 )

組員工作劃分

組員工作劃分

組員工作劃分

組員工作劃分

PCB Layout

(30)

29 ePaper (2011 )

4 27 4 28 4 29 4 30 裏 1 裏 2 裏 3

裏 4 裏 裏 裏 6 裏 7 裏 8 裏 9 裏 10

(31)

30 ePaper (2011 ) 5 18 5 19 5 20 5 21 5 22 5 23 5 24 5 25 5 30 6 1 6 2 6 3 6 4 6 5 PCB PCB PCB PCB 6 6 6 7 6 8 6 9 6 10 6 11 6 13 PCB PCB PCB

(32)

31 ePaper (2011 )

組員心得

組員心得

組員心得

組員心得

: :

(33)

32 ePaper (2011 ) :

!!

(34)

33 ePaper (2011 ) :

LAYOUT

LAYOUT

(35)

34 ePaper (2011 )

附錄一

附錄一

附錄一

附錄一

(us) THx TLx Do 262 1908 248 140 Do# 277 1805 248 243 Re 294 1701 249 92 Re# 311 1608 249 185 Mi 330 1515 250 21 Fa 349 1433 250 104 Fa# 370 1351 250 185 So 392 1276 251 5 So# 415 1205 251 76 La 440 1136 251 144 La# 464 1078 251 208 Si 494 1012 252 12

(36)

35 ePaper (2011 ) (us) THx TLx Do 523 956 252 68 Do# 554 903 252 122 Re 587 852 252 173 Re# 622 804 252 221 Mi 659 759 253 10 Fa 698 716 253 52 Fa# 740 676 253 93 So 784 638 253 131 So# 831 602 253 167 La 880 568 253 200 La# 982 536 253 232 Si 988 506 254 6

(37)

36 ePaper (2011 ) (us) THx TLx Do 1046 478 254 34 Do# 1109 451 254 62 Re 1175 426 254 87 Re# 1245 402 254 111 Mi 1318 379 254 133 Fa 1397 356 254 155 Fa# 1480 338 254 175 So 1568 319 254 194 So# 1661 301 254 211 La 1760 284 254 228 La# 1869 268 254 244 Si 1976 253 255 3

(38)

37 ePaper (2011 ) 11 8051 PSENALE2930 VCC 40 EA 31 X1 19 X2 18 RST 9 P0.0/AD0 39 P0.1/AD1 38 P0.2/AD2 37 P0.3/AD3 36 P0.4/AD4 35 P0.5/AD5 34 P0.6/AD6 33 P0.7/AD7 32 P1.0 1 P1.1 2 P1.2 3 P1.3 4 P1.4 5 P1.5 6 P1.6 7 P1.7 8 P2.0/A821 P2.1/A922 P2.2/A1023 P2.3/A1124 P2.4/A1225 P2.5/A1326 P2.6/A1427 P2.7/A1528 P3.0/RXD10 P3.1/TXD11 P3.2/INT012 P3.3/INT113 P3.4/T014 P3.5/T115 P3.6/WR16 P3.7/RD17 12 U2 8*8 +5 1 +7 2 -2 3 -3 4 +8 5 -5 6 +6 7 +3 8 +2+4+1-8-4-6-7-1101113121415169 7 4 L S1 3 8 U14 74138 Vcc16 O015 O114 O213 O312 O411 O510 O69 GND 8O7 7E3 6E2 5E1 4A2 3A1 2A0 1 13 U5 74ABT245 A0 2 A1 3 A2 4 A3 5 A4 6 A5 7 A6 8 A7 9 G 191DIR B018 B117 B216 B315 B414 B513 B612 B711 GND10 VCC20 R130 14 9 R230 15 R330 Q33 2N1069 R430 R530 R630 R730 R830 16 10 7 4 LS 1 3 8 U15 74138 Vcc16 O015 O114 O213 O312 O411 O510 O69 GND 8O7 7E3 6E2 5E1 4A2 3A1 2A0 1 7 4L S 1 38 U13 74138 Vcc16 O015 O114 O213 O312 O411 O510 O69 GND 8O7 7E3 6E2 5E1 4A2 3A1 2A0 1 7404 U19 7404 1 2 3 4 5 6 7 8 9 10 11 12 13 14 R41 1k 11 C1 C 7 4L S 1 38 U16 74138 Vcc16 O015 O114 O213 O312 O411 O510 O69 GND 8O7 7E3 6E2 5E1 4A2 3A1 2A0 1 C2 C U20 BATTARY 1 2 12 2 3 4 5 6 XTAL 12M 7 8 VCC_BAR VOICE U18 VOICE 1 2 13 VCC_BAR VCC_BAR +C3 10u 1 10k R VCC_BAR 14 1 15 2 3 4 5 6 7 U6 8*8 +5 1 +7 2 -2 3 -3 4 +8 5 -5 6 +6 7 +3 8 +2+4+1-8-4-6-7-1101113121415169 8 VCC_BAR 1 16 22 21 20 19 17 2 24 18 23 4 3 22 21 20 19 5 VCC_BAR 24 23 6 7 8 18 R1710K R1810K R1910K Q9 2N2218 R2010K Q10 2N2218 Q11 2N2218 R2110K R2210K R2310K R2410K Q12 2N2218 Q13 2N2218 Q14 2N2218 Q15 2N2218 Q16 2N2218 17 R1010K A4 R910K R1110K Q1 2N2218 29 28 27 25 30 26 31 29 28 27 32 31 30 32 26 R1210K Q2 2N2218 U7 8*8 +5 1 +7 2 -2 3 -3 4 +8 5 -5 6 +6 7 +3 8 +1-41615 -614 +4-11312 +2-7-811109 VCC_BAR Q3 2N2218 1 R1310K R1410K R1510K R1610K 12 R 2 Q4 2N2218 4 3 5 6 7 8 R2510K R2610K R2710K Q17 2N2218 R2810K Q18 2N2218 Q19 2N2218 36 35 R2910K Q5 2N2218 33 38 37 R3010K Q6 2N2218 Q7 2N2218 R3110K A0 A1 A2 A3 39 Q8 2N2218 R3210K 36 35 40 34 Q20 2N2218 38 37 Q21 2N2218 40 39 Q22 2N2218 Q23 2N2218 SW3 SW PUSHBUTTON C830p Q24 2N2218 34 25 9 SW2 SW PUSHBUTTON C730p U3 8051 PSENALE2930 VCC 40 EA 31 X1 19 X2 18 RST 9 P0.0/AD0 39 P0.1/AD1 38 P0.2/AD2 37 P0.3/AD3 36 P0.4/AD4 35 P0.5/AD5 34 P0.6/AD6 33 P0.7/AD7 32 P1.0 1 P1.1 2 P1.2 3 P1.3 4 P1.4 5 P1.5 6 P1.6 7 P1.7 8 P2.0/A821 P2.1/A922 P2.2/A1023 P2.3/A1124 P2.4/A1225 P2.5/A1326 P2.6/A1427 P2.7/A1528 P3.0/RXD10 P3.1/TXD11 P3.2/INT012 P3.3/INT113 P3.4/T014 P3.5/T115 P3.6/WR16 P3.7/RD17 C4 C C5 C VCC_BAR XTAL1 12M +C6 10u 10k1 R U8 8*8 +5 1 +7 2 -2 3 -3 4 +8 5 -5 6 +6 7 +3 8 +2+4+1-8-4-6-7-1101113121415169 VCC_BAR VCC_BAR VCC_BAR 1 2 3 4 6 5 7 8 R3310K R3410K R3510K Q25 2N2218 R3610K Q26 2N2218 Q27 2N2218 R3710K R3810K R3910K R4010K Q28 2N2218 Q29 2N2218 Q30 2N2218 Q31 2N2218 Q32 2N2218 33 10

(39)

38 ePaper (2011 ) LAYOUT

(40)

39 ePaper (2011 )

[1]. 8051/8951

2006 6

[2]. 74245:http://www.ltivs.ilc.edu.tw/kocp/mpu/m2/m2-4-2.htm

參考文獻

相關文件

Valor acrescentado bruto : Receitas do jogo e dos serviços relacionados menos compras de bens e serviços para venda, menos comissões pagas menos despesas de ofertas a clientes

Reading Task 6: Genre Structure and Language Features. • Now let’s look at how language features (e.g. sentence patterns) are connected to the structure

Now, nearly all of the current flows through wire S since it has a much lower resistance than the light bulb. The light bulb does not glow because the current flowing through it

Study the following statements. Put a “T” in the box if the statement is true and a “F” if the statement is false. Only alcohol is used to fill the bulb of a thermometer. An

Using this formalism we derive an exact differential equation for the partition function of two-dimensional gravity as a function of the string coupling constant that governs the

Courtesy: Ned Wright’s Cosmology Page Burles, Nolette & Turner, 1999?. Total Mass Density

The existence of cosmic-ray particles having such a great energy is of importance to astrophys- ics because such particles (believed to be atomic nuclei) have very great

Other researchers say one way to solve the problem of wasted food is to take steps to persuade people to stop buying so much food in the first place.. People buy more food