2021-08-18 21:42:25 索煒達(dá)電子 3462
項(xiàng)目編號:E351
文件大?。?3M
源碼說明:帶中文注釋
開發(fā)環(huán)境:C編譯器
簡要概述:
本項(xiàng)目為復(fù)旦大學(xué)2016級電子工程系《電子系統(tǒng)設(shè)計(jì)》課程項(xiàng)目, 要求設(shè)計(jì)一個(gè)聲音采集系統(tǒng),實(shí)現(xiàn)音頻的采集、放大、濾波、AD轉(zhuǎn)換, 并上傳到PC端進(jìn)行播放
聲音信號由咪頭采集,經(jīng)過放大,加直流偏置,濾波,AD轉(zhuǎn)換,被單片機(jī)采集到,然后可以通過USB數(shù)據(jù)線或者一對藍(lán)牙模塊發(fā)送給上位機(jī),合成音頻文件并播放。
如果選擇用USB數(shù)據(jù)線傳輸,可以不用外接電源,因?yàn)閁SB可以給系統(tǒng)提供5V電壓;如果選擇無線藍(lán)牙傳輸,則需要外接12V鋰電池,同時(shí)其中一個(gè)藍(lán)牙模塊連接到stm32的USART2,另一個(gè)通過CH340模塊連接到PC機(jī)。
受限于串口波特率,stm32中最好不要同時(shí)使用USART1和USART2發(fā)送數(shù)據(jù),可能會導(dǎo)致緩沖區(qū)滿,丟失數(shù)據(jù)。
另外,當(dāng)串口數(shù)據(jù)超出100 ~ 200的范圍時(shí),音頻播放噪聲較大,所以咪頭采集時(shí)離聲源的距離應(yīng)該適當(dāng)。盡管stm32的AD采集管腳處外接了BAT54S限壓,也不要使信號長時(shí)間處于較高電壓。
目錄│文件列表:
└ SoundCollector-master
│ 電子系統(tǒng)設(shè)計(jì)實(shí)驗(yàn)報(bào)告.docx
├ AltiumDesignerProject
│ │ readme.md
│ │ soundcollector.Dat
│ │ SoundCollector.OutJob
│ │ soundcollector.PcbDoc
│ │ soundcollector.PcbDocPreview
│ │ SoundCollector.PrjPcb
│ │ SoundCollector.PrjPcbStructure
│ │ soundcollector.SchDoc
│ │ soundcollector.SchDocPreview
│ ├ datasheet
│ │ │ 3296W.pdf
│ │ │ BAT54S.pdf
│ │ │ LM358.pdf
│ │ └ S8050.pdf
│ ├ LIB
│ │ │ SClib.PcbLib
│ │ └ SClib.SchLib
│ ├ Project Logs for SoundCollector
│ │ │ soundcollector PCB ECO 2019-3-14 16-16-56.LOG
│ │ │ soundcollector PCB ECO 2019-3-16 13-39-58.LOG
│ │ │ soundcollector PCB ECO 2019-3-16 14-39-25.LOG
│ │ │ soundcollector PCB ECO 2019-3-16 14-43-22.LOG
│ │ │ soundcollector PCB ECO 2019-3-17 13-38-24.LOG
│ │ │ soundcollector PCB ECO 2019-3-17 13-39-05.LOG
│ │ │ soundcollector PCB ECO 2019-3-17 13-40-00.LOG
│ │ │ soundcollector PCB ECO 2019-3-21 16-02-31.LOG
│ │ │ soundcollector PCB ECO 2019-3-25 11-00-30.LOG
│ │ │ soundcollector PCB ECO 2019-3-28 15-42-25.LOG
│ │ │ soundcollector PCB ECO 2019-4-12 21-07-11.LOG
│ │ └ soundcollector PCB ECO 2019-4-19 10-46-09.LOG
│ └ Project Outputs for SoundCollector
│ │ CAMtastic1.Cam
│ │ CAMtastic2.Cam
│ │ CAMtastic3.Cam
│ │ rawScalePCB.pdf
│ │ soundcollector-macro.APR_LIB
│ │ soundcollector-RoundHoles.TXT
│ │ soundcollector-SlotHoles.TXT
│ │ soundcollector.apr
│ │ soundcollector.DRL
│ │ soundcollector.DRR
│ │ soundcollector.EXTREP
│ │ soundcollector.GBL
│ │ soundcollector.GBS
│ │ soundcollector.GD1
│ │ soundcollector.GG1
│ │ soundcollector.GM1
│ │ soundcollector.GM13
│ │ soundcollector.GM15
│ │ soundcollector.GPB
│ │ soundcollector.GPT
│ │ soundcollector.GTL
│ │ soundcollector.GTO
│ │ soundcollector.GTP
│ │ soundcollector.GTS
│ │ soundcollector.LDP
│ │ SoundCollector.pdf
│ │ soundcollector.REP
│ │ soundcollector.RUL
│ └ Status Report.Txt
├ Images
│ │ 117S船形開關(guān).jpg
│ │ 3296W電位計(jì)實(shí)物圖.jpg
│ │ BAT54S.jpg
│ │ CH340.jpg
│ │ CH340C.jpg
│ │ DC005.jpg
│ │ LM358.jpg
│ │ microUSB轉(zhuǎn)SIP.jpg
│ │ PCB板.jpg
│ │ PCB板.jpg.jpg
│ │ S8050.jpg
│ │ stm32f103c8t6.jpg
│ │ 咪頭.jpg
│ │ 成果實(shí)物圖1.jpg
│ │ 成果實(shí)物圖2.jpg
│ │ 成果實(shí)物圖2.jpg.jpg
│ │ 排針.jpg
│ │ 電容實(shí)物圖.jpg
│ │ 電阻實(shí)物圖.jpg
│ │ 系統(tǒng)框圖.PNG
│ │ 藍(lán)牙模塊.jpg
│ │ 跳線帽.jpg
│ │ 鋰電池.jpg
│ └ 降壓模塊.jpg
├ KeilProject
│ │ keilkilll.bat
│ │ readme.md
│ │ SoundCollector.uvguix.LiRen
│ │ SoundCollector.uvoptx
│ │ SoundCollector.uvprojx
│ ├ App
│ │ │ adc.c
│ │ │ adc.c.orig
│ │ │ adc.h
│ │ │ IndicatorLight.c
│ │ └ IndicatorLight.h
│ ├ images
│ │ └ 程序框圖.png
│ ├ Libraries
│ │ ├ CMSIS
│ │ │ │ core_cm3.c
│ │ │ │ core_cm3.h
│ │ │ │ startup_stm32f10x_md.s
│ │ │ │ system_stm32f10x.c
│ │ │ └ system_stm32f10x.h
│ │ └ STM32F10x_StdPeriph_Driver
│ │ ├ inc
│ │ │ │ misc.h
│ │ │ │ stm32f10x_adc.h
│ │ │ │ stm32f10x_bkp.h
│ │ │ │ stm32f10x_can.h
│ │ │ │ stm32f10x_cec.h
│ │ │ │ stm32f10x_crc.h
│ │ │ │ stm32f10x_dac.h
│ │ │ │ stm32f10x_dbgmcu.h
│ │ │ │ stm32f10x_dma.h
│ │ │ │ stm32f10x_exti.h
│ │ │ │ stm32f10x_flash.h
│ │ │ │ stm32f10x_fsmc.h
│ │ │ │ stm32f10x_gpio.h
│ │ │ │ stm32f10x_i2c.h
│ │ │ │ stm32f10x_iwdg.h
│ │ │ │ stm32f10x_pwr.h
│ │ │ │ stm32f10x_rcc.h
│ │ │ │ stm32f10x_rtc.h
│ │ │ │ stm32f10x_sdio.h
│ │ │ │ stm32f10x_spi.h
│ │ │ │ stm32f10x_tim.h
│ │ │ │ stm32f10x_usart.h
│ │ │ └ stm32f10x_wwdg.h
│ │ └ src
│ │ │ misc.c
│ │ │ stm32f10x_adc.c
│ │ │ stm32f10x_bkp.c
│ │ │ stm32f10x_can.c
│ │ │ stm32f10x_cec.c
│ │ │ stm32f10x_crc.c
│ │ │ stm32f10x_dac.c
│ │ │ stm32f10x_dbgmcu.c
│ │ │ stm32f10x_dma.c
│ │ │ stm32f10x_exti.c
│ │ │ stm32f10x_flash.c
│ │ │ stm32f10x_fsmc.c
│ │ │ stm32f10x_gpio.c
│ │ │ stm32f10x_i2c.c
│ │ │ stm32f10x_iwdg.c
│ │ │ stm32f10x_pwr.c
│ │ │ stm32f10x_rcc.c
│ │ │ stm32f10x_rcc.c.orig
│ │ │ stm32f10x_rtc.c
│ │ │ stm32f10x_sdio.c
│ │ │ stm32f10x_spi.c
│ │ │ stm32f10x_tim.c
│ │ │ stm32f10x_usart.c
│ │ └ stm32f10x_wwdg.c
│ ├ Objects
│ │ └ SoundCollector.hex
│ ├ Public
│ │ │ system.c
│ │ │ system.h
│ │ │ SysTick.c
│ │ │ SysTick.h
│ │ │ timer.c
│ │ │ timer.h
│ │ │ usart1.c
│ │ │ usart1.h
│ │ │ usart2.c
│ │ └ usart2.h
│ └ User
│ │ main.c
│ │ stm32f10x.h
│ │ stm32f10x_conf.h
│ │ stm32f10x_it.c
│ └ stm32f10x_it.h
├ MultisimProject
│ │ 1KHz電壓放大.png
│ │ schematic.ms12
│ │ 二階低通濾波上截止頻率.png
│ │ 交流仿真上截止頻率.png
│ │ 交流仿真下截止頻率.png
│ │ 濾波后系統(tǒng)下截止頻率.png
│ │ 濾波后輸出電壓.png
│ └ 直流偏置與放大.png
├ Reference
│ ├ 3296W電位計(jì)
│ │ │ 3296W電位計(jì)產(chǎn)品參數(shù).png
│ │ └ 3296W電位計(jì)實(shí)物圖.jpg
│ ├ SignalAmplifier
│ │ │ readme.md
│ │ ├ LM358
│ │ │ │ LM358.jpg
│ │ │ │ LM358.pdf
│ │ │ │ LM358_100.png
│ │ │ └ LM358中文資料及24個(gè)典型應(yīng)用電路.pdf
│ │ └ MAX9814
│ │ │ 9814_sch.jpg
│ │ │ MAX9814_cn.pdf
│ │ │ MAX9814模塊實(shí)物圖正面.jpg
│ │ └ MAX9814模塊實(shí)物圖背面.jpg
│ ├ 供電
│ │ │ 鋰電池.jpg
│ │ └ 降壓模塊.jpg
│ ├ 單片機(jī)最小系統(tǒng)
│ │ │ boot.docx
│ │ │ CH340.jpg
│ │ │ Readme.md
│ │ │ stm32f103c8t6.jpg
│ │ │ stm32f103c8t6.pdf
│ │ │ stm32f103c8t6.png
│ │ │ STM32F103C8T6核心板原理圖.PDF
│ │ │ STM32F103C8T6核心板尺寸.pdf
│ │ └ STM32F103x8B_DS_CH_V10.pdf
│ ├ 咪頭
│ │ │ EM-B9760UL規(guī)格書.pdf
│ │ │ K596datasheet.pdf
│ │ │ readme.md
│ │ │ 參考電路.png
│ │ │ 咪頭.jpg
│ │ │ 咪頭內(nèi)部電氣原理圖.png
│ │ └ 咪頭參考連接電路.png
│ └ 程序下載與調(diào)試
│ │ ch340ds1.pdf
│ │ mcuisp.exe
│ │ pz.exe
│ └ 技小新-USB轉(zhuǎn)TTL模塊-CH340-學(xué)習(xí)手冊.pdf
└ Scripts
│ demo.wav
│ readme.md
│ readwave.py
│ SerialRead.py
│ wave.npy
├ images
│ │ gui.png
│ │ littleStar.ico
│ │ run_gui_mini.py.png
│ │ run_SerialRead.py.png
│ └ 對電位計(jì)進(jìn)行AD采樣.png
└ QtProject
│ .tempwav.wav
│ demo.ui
│ gui.py
│ noise.npy
│ readme.md
│ signal.npy
│ SNR.py
│ Ui_demo.py
└ images
└ littleStar.ico