【正文】
編號(hào)實(shí)現(xiàn)方式 方案評(píng)估方案擇優(yōu)1 單片機(jī)定時(shí)器,用軟件實(shí)現(xiàn)AVR 芯片內(nèi)部有定時(shí)器,無需附加外部元器件,通過編程實(shí)現(xiàn)時(shí)鐘功能,但容易受單片機(jī)外接的電容等的影響,精度差,準(zhǔn)確性不高,成本低,程序設(shè)計(jì)困難。采用2 通過串口的通信方式,利用電腦里自帶的聲卡來實(shí)現(xiàn)音樂的播放與彈奏功能。本課題的主要難點(diǎn)是電腦通信利用電腦聲卡的音色來發(fā)音,利用小型上位機(jī)與產(chǎn)品配合,利用AD 采樣掃描 LED 燈作為雙重按鍵功能,在編程過程中都需要處理好些問題。自動(dòng)播放歌曲功能可以根據(jù)自已喜歡的歌曲進(jìn)行自動(dòng)播放,可以在幾首歌里進(jìn)行選擇。串口上位機(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。它是可以帶動(dòng)小朋友對(duì)音樂的興趣,有助于提高他們的動(dòng)手能力和思考能力。本系統(tǒng)以 AVR 單片機(jī)為控制核心,配合 AD 非接觸式按鍵輸入,串口模塊、時(shí)鐘模塊、顯示模塊及小型上位機(jī)的應(yīng)用組成,實(shí)現(xiàn)了非接觸式的設(shè)置時(shí)間,彈奏音樂及時(shí)間準(zhǔn)確顯示等功能。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ì)流程圖 .........