【正文】
摘 要本設(shè)計(jì)是一個(gè)創(chuàng)意音樂盒也是一款益智類的玩具,針對現(xiàn)在市場上給小朋友玩的音樂盒都是以敲擊和自動(dòng)播放作為彈奏音符的主要形式的這個(gè)特點(diǎn),設(shè)計(jì)一個(gè)集益智,非接觸式的彈奏方式,并具有電子時(shí)鐘功能為一體的音樂盒。它是可以帶動(dòng)小朋友對音樂的興趣,有助于提高他們的動(dòng)手能力和思考能力。本系統(tǒng)以 AVR 單片機(jī)為控制核心,配合 AD 非接觸式按鍵輸入,串口模塊、時(shí)鐘模塊、顯示模塊及小型上位機(jī)的應(yīng)用組成,實(shí)現(xiàn)了非接觸式的設(shè)置時(shí)間,彈奏音樂及時(shí)間準(zhǔn)確顯示等功能。經(jīng)測試,本系統(tǒng)彈奏音色好,誤差小反應(yīng)快,功耗小,能出色地完成所要求的功能。關(guān)鍵詞:AVR 單片機(jī)。串口上位機(jī);非接觸式按鍵;時(shí)鐘顯示 AbstractThis design is a creative music box is a puzzle for now, class of toys for kids to play on the market of music box are percussion and automatic playback as the main forms of play notes this characteristic, design a set of the plays, noncontact, and has the function of electronic music, as one of the clock. It can promote children39。s interest in music, which helps to improve their ability of thinking. This system in AVR core is MCU, cooperate with AD contactless keystroke serial module, the clock display module and small module, and the application of puter and a set of noncontact music playing time, and the time accurately display function. The test, this system is playing well and small error response tone, low consumption, can plete the required to function.Key Words: AVR microcontroller;Serial PC; Contactless buttons; The clock display目 錄畢業(yè)設(shè)計(jì)(論文)任務(wù)書 ........................................................................................................1摘 要 ....................................................................................................................................1第 1 章 系統(tǒng)功能說明 ..........................................................................................................1第 2 章 設(shè)計(jì)方案論證 ..........................................................................................................2 系統(tǒng)所選的控制芯片 ..............................................................................................2 聲音的實(shí)現(xiàn)方案論證和比較 ..................................................................................2 非接觸式的彈奏方案論證和比較 ..........................................................................3 時(shí)鐘源的方案論證和比較 ......................................................................................3 時(shí)鐘顯示的方案論證和比較 ..................................................................................4第 3 章 系統(tǒng)組成及設(shè)備造型 ..............................................................................................5 應(yīng)用系統(tǒng)結(jié)構(gòu)設(shè)計(jì) ..................................................................................................5 控制面板設(shè)計(jì) ..........................................................................................................5 設(shè)備造型 ..................................................................................................................6第 4 章 硬件總體說明 ..........................................................................................................8 硬件設(shè)計(jì)總體說明 ..................................................................................................8 硬件各模塊主要元器件說明 ..................................................................................9第 5 章 軟件設(shè)計(jì)流程圖 ....................................................................................................22 主程序流程圖 ............................