Cov txheej txheem:

Spartan Voice Changer Helmet: 14 Kauj Ruam (nrog Duab)
Spartan Voice Changer Helmet: 14 Kauj Ruam (nrog Duab)

Video: Spartan Voice Changer Helmet: 14 Kauj Ruam (nrog Duab)

Video: Spartan Voice Changer Helmet: 14 Kauj Ruam (nrog Duab)
Video: Колыма - родина нашего страха / Kolyma - Birthplace of Our Fear 2024, Kaum ib hlis
Anonim
Spartan Lub Suab Hloov Hloov Lub kaus mom hlau
Spartan Lub Suab Hloov Hloov Lub kaus mom hlau
Spartan Lub Suab Hloov Hloov Lub kaus mom hlau
Spartan Lub Suab Hloov Hloov Lub kaus mom hlau

Nyob zoo! Peb yog pab pawg ntawm 4 tus tub ntxhais kawm los ntawm Polytechnic lub tsev kawm ntawv ntawm Sorbonne University:

  • Louis Buchert: 5 Lab tus kiv cua tos koj rau Webtalk!
  • Bilal Melehi
  • Bao Tinh Piot
  • Marco Longépé

Txoj haujlwm no tau ua tiav raws li ib feem ntawm peb cov kev tshawb fawb, thiab lub hom phiaj yuav tuav tes cov cuab yeej, nrog rau qhia txog peb qhov kev ua tiav theoretical.

Cov khoom nto moo yuav siv lub ntsej muag zoo li tus hero ntawm qee qhov vis dis aus game uas lub npe yuav ploj. Rau sab tsim kuj peb muaj lub vijtsam uas qhia txog Fourier hloov pauv ntawm lub suab tawm los ntawm tus hais lus. Lub hom phiaj ntawm lub mloog pob ntseg no yog txhawm rau hloov lub suab ntawm cov neeg nqa khoom hauv lub sijhawm tiag tiag siv tus lej ntawm cov teebmeem xaiv tau.

Lub hom phiaj kev kawm:

  • Teem lub suab los ntawm lub microphone
  • Amplify, lim, digitize lub teeb liab
  • Paub txog FFT ntawm lub teeb liab
  • Qhia qhov FFT ntawm qhov screen
  • Teeb liab ua ke
  • Siv lub suab tawm ntawm tus neeg hais lus
  • Paub qhov cuam tshuam ntawm lub suab suab (reverberation, ncha, thiab lwm yam …)

Tam sim no peb tau muab keeb kwm yav dhau los thiab nthuav tawm txoj haujlwm, nws yog lub sijhawm kom tau txais koj txhais tes ntawm nws!

Kauj Ruam 1: Yuav tsum tau ua 1/3 - Kho vajtse

Yuav tsum tau ua 1/3 - Kho vajtse
Yuav tsum tau ua 1/3 - Kho vajtse

Txhawm rau txhawm rau ua kom tiav koj lub kaus mom hlau, peb yuav xav tau qee yam khoom siv los khiav lub cuab yeej.

  • DE0-Nano-SoC Pawg Neeg Saib Xyuas Kev Txhim Kho los ntawm Terasic + Adafruit TFT LCD Screen (Arduino)
  • Nkag mus rau lub tshuab luam ntawv 3D txhawm rau ua lub kaus mom hlau (Yog tias koj yog tub ntxhais kawm hauv tsev kawm qib siab txav los ze rau koj lub tsev kawm qib siab, qee qhov muaj kev sim siv rau cov tub ntxhais kawm)
  • Lub khoos phis tawj uas muaj kev txuas internet thiab yam tsawg kawg ntawm kev sib txuas (USB, Ethernet). Koj lub khoos phis tawj tseem yuav tsum muaj tus txheej txheem muaj zog raws li suav sau cov haujlwm ntawm Qsys siv sijhawm ntau.
  • (Tsis tas yuav tsum tau) Lub tshuab luam ntawv uas ua rau Luam Circuit Court Boards (PCB) los ntawm Gerber cov ntaub ntawv txhawm rau txhawm rau txo qhov Circuit Court loj + cov hlau txuas kom muab cov khoom sib txuas ntawm PCB.
  • (Cov Lus Pom Zoo): Haus kas fes zoo kom txaus siab rau koj txoj haujlwm nrog peb Cov Lus Qhia:)

Kauj Ruam 2: Yuav Tsum Tau 2/3 - Cheeb Tsam rau Koj Qhov Circuit

Qhov yuav tsum tau ua 2/3 - Cheeb Tsam rau Koj Qhov Circuit
Qhov yuav tsum tau ua 2/3 - Cheeb Tsam rau Koj Qhov Circuit
Qhov yuav tsum tau ua 2/3 - Cheeb Tsam rau Koj Qhov Circuit
Qhov yuav tsum tau ua 2/3 - Cheeb Tsam rau Koj Qhov Circuit
Qhov yuav tsum tau ua 2/3 - Cheeb Tsam rau Koj Qhov Circuit
Qhov yuav tsum tau ua 2/3 - Cheeb Tsam rau Koj Qhov Circuit

Nov yog cov khoom siv xav tau rau koj lub Circuit Court:

  • Texas Instrument LM386 AB class audio amplifier
  • BreadBoard
  • Teeb Txiv neej-Txiv neej, Txiv neej-Poj niam cables
  • LM358P Digital-rau-Analoh hloov (DAC)
  • Hais lus
  • Lub Microphone Me me siv hauv kev sib piv sib piv
  • Ib qho kev ua si ntawm cov resistors los ntawm 1kOhm txog 220kOhm
  • Lub cev muaj zog 1.5nF
  • Capacitor 50 nF
  • Capacitor 100 nF
  • Capacitor 100 ua
  • Capacitor 220 ua
  • x4 Capacitors 10uF

Kauj Ruam 3: Yuav Tsum Tau 3/3 - Software

Yuav tsum tau 3/3 - Software
Yuav tsum tau 3/3 - Software
Yuav tsum tau 3/3 - Software
Yuav tsum tau 3/3 - Software

Qhov kawg tab sis tsis tsawg, koj yuav xav tau software:

  • Quartus 15.1: Lite version
  • Ib tus C compiler (piv txwv li gcc)
  • Altium rau PCB Tsim
  • Altera's SoC embedded suite los sib tham nrog SoC daim ntawv qhia

  • Putty

Kauj Ruam 4: Cov tswv yim Circuit Court

Cov tswv yim Circuit Court
Cov tswv yim Circuit Court
Cov tswv yim Circuit Court
Cov tswv yim Circuit Court
Cov tswv yim Circuit Court
Cov tswv yim Circuit Court
Cov tswv yim Circuit Court
Cov tswv yim Circuit Court

Cia peb tsim lub voj voog. Siv daim duab saum toj no ntawm Circuit kom txhawm rau sib dhos nws ntawm koj lub khob cij. Koj tseem yuav pom daim duab ntawm BreadBoard thiab lub voj voos sab hauv kom pom tias cov pins txuas li cas. Tag nrho cov Circuit Court tau siv nrog 5V Ncaj Tam Sim No (DC). Rau qhov no, koj tuaj yeem siv lub roj teeb 5V nrog lub USB-B hloov pauv lossis lub tshuab hluav taws xob ua haujlwm.

Qee qhov kev ceeb toom:

  • 5V cov khoom siv hluav taws xob thiab hauv av tau txuas nrog ntawm kab kab sib cais ntawm lub khob cij
  • Yog tias koj xav txuas 2 cov khoom sib xyaw ua ke, muab tso rau hauv kab ib txwm ntawm lub khob cij
  • Yog tias koj xav txuas 2 cov khoom sib txuas, cov ntawv sib tw yuav tsum tsuas yog ib tus pin hauv kab ib txwm ntawm lub khob cij.

Tsis txhob ua siab deb los saib cov ntawv qhia tshwj xeeb yuav siv daim ntawv qhia zaub mov li cas thiab ua kom muaj Circuit hauv nws. Tsis tas li tsis txhob hnov qab nyeem ua tib zoo tus pin txoj haujlwm ntawm LM358P Suab Amplifier (saib daim duab saum toj no)

Kauj Ruam 5: Tso Tawm Circuit

Cov Hluav Taws Xob
Cov Hluav Taws Xob
Cov Hluav Taws Xob
Cov Hluav Taws Xob
Cov Hluav Taws Xob
Cov Hluav Taws Xob
Cov Hluav Taws Xob
Cov Hluav Taws Xob

Zoo ib yam cov lus qhia hauv Kauj Ruam 4. Plaub qhov kev nkag mus: SDI, tsis yog CS, SCK, tsis yog LDAC yog los ntawm koj li DE0-Nano-Soc Board. Peb yuav pom tom qab yuav tsim lawv li cas.

Tsis txhob hnov qab nyeem ua tib zoo tus pin txoj haujlwm ntawm LM386 Suab Amplifier (saib daim duab saum toj no)

Kauj Ruam 6: [Xaiv tau] Tsim Cov Ntawv Luam Circuit Borad thiab Cov Khoom Siv Hluav Taws Xob

[TSIS MUAJ] Tsim Cov Ntawv Luam Circuit Borad thiab Cov Khoom Siv Hluav Taws Xob
[TSIS MUAJ] Tsim Cov Ntawv Luam Circuit Borad thiab Cov Khoom Siv Hluav Taws Xob
[TSIS MUAJ] Tsim Cov Ntawv Luam Circuit Borad thiab Cov Khoom Siv Hluav Taws Xob
[TSIS MUAJ] Tsim Cov Ntawv Luam Circuit Borad thiab Cov Khoom Siv Hluav Taws Xob
[TSIS MUAJ] Tsim Cov Ntawv Luam Circuit Borad thiab Cov Khoom Siv Hluav Taws Xob
[TSIS MUAJ] Tsim Cov Ntawv Luam Circuit Borad thiab Cov Khoom Siv Hluav Taws Xob

Yog tias koj muaj hmoo txaus los ua tus tswv ntawm Circuit Board Tshuab Luam Ntawv lossis tuaj yeem siv tau, peb yuav tsim peb tus kheej Cov Ntawv Luam Circuit Board (PCB). Nco ntsoov tias cov kauj ruam no yog nyob ntawm yeem. Cov kauj ruam no tsuas yog ua kom txav koj lub Circuit Court los ntawm lub khob cij mus rau PCB.

Koj yuav xav tau 2 cov ntawv GERBER no.

Cov ntaub ntawv no tau ua ntawm Altium. Siv lawv ntawm koj lub tshuab luam ntawv PCB txhawm rau luam koj li PCB. Thaum koj tau txais koj li PCB, xyuas kom tseeb tias koj lub PCB tau huv thiab cov kab ntawv raug luam tawm kom raug.

Tam sim no ntawm no los qhov kev pom zoo tiag tiag: Soldering. 2 daim duab saum toj no yog daim duab qhia chaw ntawm Circuit Court ntawm PCB. Txhua ntu muaj npe (R6, C4, MK1 thiab lwm yam). Cov duab hauv Kauj Ruam 4 thiab 5 qhia txog cov khoom tsis sib xws (Kev tawm tsam, kev coj ua..). Muab txhua qhov khoom siv los ntawm koj lub khob cij rau PCB raws li lawv lub npe.

Thaum koj tau muag txhua yam nrog koj cov hlau txuas, ntsuas txhua qhov khoom siv nrog lub voltmeter los tshuaj xyuas yog tias muaj ib qho luv Circuit Court.

Kauj Ruam 7: SoC Teeb

SoC teeb tsa
SoC teeb tsa
SoC teeb tsa
SoC teeb tsa

Txog kev teeb tsa SoC, koj yuav tsum tau khiav qee cov lus txib thiab cov ntawv sau nrog hauv SoC embedded suite hauv lub davhlau ya nyob twg. Txhawm rau ua qhov no, koj yuav tsum tau ntxiv qee qhov $ PATH. PATH tau siv nyob rau hauv lub davhlau ya nyob twg los hais kom tshawb nrhiav cov ntaub ntawv hauv cov npe uas tau muab los ntawm txoj hauv kev thaum koj tab tom hais kom ua. Txhawm rau ua qhov no, ntaus kab lus hais hauv qab no:

export PATH =/cygdrive/c/altera_lite/15.1/quartus/sopc_builder/bin: $ PATH

Tom qab ntawd ntaus kab hais kom ua kom tsim lub taub hau los ntawm cov ntaub ntawv sof. Koj tau txais cov ntaub ntawv sof los ntawm kev suav koj qhov haujlwm ntawm Quartus. Txhawm rau ua li ntawd, ntaus:./generate_header.

Kauj Ruam 8: Programming C HPS

Txoj Haujlwm C HPS
Txoj Haujlwm C HPS

Peb yuav tsum paub 2 yam hauv ntu no, uas yog nyeem nyeem tus nqi ntawm ADC thiab sau nws hauv SPI.

1. Nyeem tus nqi ntawm ADC

Qhov chaw nyob ntawm lub cim xeeb uas ADC muaj nyob tsis tuaj yeem siv tau ncaj qha, qhov tseeb cov kab ke linux tam sim no ntawm daim npav teeb tsa qhov tsis zoo ntawm lub cim xeeb. Txhawm rau nkag mus rau qhov chaw nyob ADC tiag tiag peb yuav siv lub mmap muaj nuj nqi.

"h2p_lw_spi_addr = virtual_base + ((tsis tau kos npe ntev) (ALT_LWFPGASLVS_OFST + SPI_0_BASE) & (tsis kos npe ntev) (HW_REGS_MASK));"

Cov lus qhia no tso cai rau kev txiav tawm ntxiv thaum pib ntawm lub hauv paus chaw nyob kom mus txog qhov chaw nyob ntawm lub cim xeeb faib rau ADC, thiab ua tiav ntawm qhov chaw nyob uas muaj qhov laj thawj THIAB xav txog qhov npog.

Tom qab ntawd, nws tsuas yog yuav tsum tau dereference tus pointer hauv qhov program kom tau txais nws qhov txiaj ntsig.

2. Sau tus nqi ntawm ADC hauv SPI

Kev tswj hwm zoo ib yam, lub sijhawm no peb muab mmap qhov kev txiav txim siab los tsaws ntawm qhov chaw nyob uas tau faib los ntawm SPI. Thaum sau hauv SPI, cov ntaub ntawv txheej txheem qhia meej tias koj yuav tsum sau rau qhov chaw nyob + 1 tus nqi ntawm adc.

"*(h2p_lw_spi_addr+1) = ((0x1 << 12) | *h2p_lw_adc_addr);"

Cov lus qhia no tso cai rau koj sau mus rau SPI. Qhov tseeb me ntsis 4, yog li 1 << 12, yog qhov uas tso cai rau qhib SPI. Nrog qhov laj thawj LOS YOG, peb yog li ntawd muab ob qho ua kom me ntsis thiab tus nqi ntawm ADC rau SPI.

Kauj Ruam 9: Kev Tau Txais Digital ntawm ADC Los Ntawm Daim Npav

Kev Tau Txais Digital ntawm ADC Los Ntawm Daim Npav
Kev Tau Txais Digital ntawm ADC Los Ntawm Daim Npav
Kev Tau Txais Digital ntawm ADC Los Ntawm Daim Npav
Kev Tau Txais Digital ntawm ADC Los Ntawm Daim Npav
Kev Tau Txais Digital ntawm ADC Los Ntawm Daim Npav
Kev Tau Txais Digital ntawm ADC Los Ntawm Daim Npav
Kev Tau Txais Digital ntawm ADC Los Ntawm Daim Npav
Kev Tau Txais Digital ntawm ADC Los Ntawm Daim Npav

Ua ntej tshaj plaws, koj yuav tsum teeb Ethernet IP chaw nyob ntawm koj lub computer los ntawm Tswj Vaj Huam Sib Luag -> Network -> Card Parmesals. Xaiv ethernet interface ntawm daim npav, khoom ntiag tug, ipv4 chaw nyob thiab nkag mus rau tus IP ruaj, daim npog ntsej muag thiab lwm yam …

Tom ntej no, txuas daim npav los ntawm lub zog txuas sab nrog lub micro USB cable. Qhib Quartus programmer thiab pib xa tawm. Cov txheej txheem no yuav rov ua dua tom qab txhua lub zog tawm ntawm daim npav.

Hloov lub micro USB ntsaws cable, txhawm rau txuas lub sijhawm no nyob ib sab ntawm Ethernet nkaus. Tam sim no, nrog Putty nws yuav tsim nyog txuas rau daim npav los ntawm kab ntawv txuas. Kev teeb tsa tau pom hauv cov duab, lub tswv yim los hloov COM5 los ntawm COM ua raws tus lej uas koj tuaj yeem pom hauv koj tus thawj tswj ntaus ntawv (nyem rau ntawm lub qhov rais logo qhib nws).

Nias nkag, koj tau txuas nrog.

Cov ntaub ntawv kom rov pib ua haujlwm: - Txhim kho ethernet ip sib xws rau daim npav - Qhib daim npav, txhua zaus koj qhib lub zog, nws yog qhov tsim nyog yuav tsum tau muab tso nrog "program" hauv qab quartus qhov haujlwm tau sau ua ke hauv daim npav. Qhov no tau ua tiav ntawm qhov chaw nres nkoj micro -USB - Txhawm rau tuaj yeem tso tawm qhov tshwm sim ntawm qhov haujlwm peb siv ntau micro USB tab sis UART - Nrog cov xim tso rau teeb tsa rau COM5 (lossis 6 saib gestinnaire periph) Txuas rau daim npav. - Teeb tus password (passwd) - Teeb IP chaw nyob ifconfig ethxx IPchoice (IP tsis deb ntawm qhov ntawd rau kev ncaj ncees ntawm PC) - Tsim lub taub hau raws li Qsys nrog lub davhlau ya nyob twg embedded (PATH export) - ua - scp l exec hauv daim ntawv qhia - ua nyob rau hauv putty txoj haujlwm

Kauj Ruam 10: Kev suav FFT

FFT Xeem
FFT Xeem

Txhawm rau kom tau txais Fast Fourier Transform hauv peb txoj haujlwm C, peb yuav siv lub tsev qiv ntawv sau los ntawm Mark Borgerding: Kiss FFT. Koj tuaj yeem rub lub tsev qiv ntawv ntawm no: https://kissfft.sourceforge.net/. Ua ntawv thov FFT ntawm lub teeb liab yog qhov tsim nyog txhawm rau hloov kho thiab siv cov teeb liab cuam tshuam. Nws kuj tseem tuaj yeem pab ua kom pom qhov pom ntawm lub teeb liab.

Thawj kauj ruam hauv koj txoj haujlwm C suav nrog faib cov cim xeeb txhawm rau khaws cov txiaj ntsig FFT. Qhov loj ntawm kev nco yog nyob ntawm tus lej siv los ntsuas FFT. Qhov ntau koj muaj cov ntsiab lus, ntau pecise FFT yuav. Txawm li cas los xij, txoj haujlwm yuav qeeb dua thiab yuav siv lub cim xeeb ntau dua. Nco ntsoov tias koj yuav tau txais ob kab ntawv los ntawm kev ua haujlwm kiss_fft: cov tswv yim thiab cov txiaj ntsig ntawm kev ua haujlwm (cx_in thiab cx_out)

Thaum peb cov array tau ntim nrog FFT qhov tseem ceeb tshiab, piv txwv li thaum r = Yeej - 1, peb tab tom ua FFT. Hais txog cov zaub, peb tsuas yog nthuav tawm ib feem ntawm qhov pom zoo, vim tias muaj kev sib koom ua ke ntawm qhov tsis zoo thiab ib feem zoo.

Hais txog kab rov tav, peb tab tom txo qhov siab tshaj ntawm 100*qhov siab/(qhov siab ²) txhawm rau txhawm rau paub qhov txawv qhov sib txawv tseem ceeb 'ncov.

Peb tab tom siv kev siv lub kaw lus pw tsaug zog txhawm rau txhawm rau txheeb xyuas kev nyeem zaus rau ADC qhov tseem ceeb. Tam sim no qhov tam sim no tau teeb tsa ntawm 1, 5 Hz.

Kauj Ruam 11: Qhia FFT

Qhia tawm FFT
Qhia tawm FFT
Qhia tawm FFT
Qhia tawm FFT

Raws li qhov piv txwv muab rau ntawm Adafruit TFT LCD Screen muaj nyob ntawm no: https://www.terasic.com/downloads/cd-rom/de0-nano-s… ADC tus nqi.

Yog li ADC sau npe tau sib koom ntawm NIOS thiab HPS vim tias ADC qhov txiaj ntsig yuav raug siv los tso saib FFT ntawm NIOS screen, thiab cov txiaj ntsig zoo ib yam yuav raug sau rau ntawm SPI txhawm rau muab tso tawm ntawm lub rooj tsavxwm thiab thaum kawg tau hloov dua siab tshiab los ntawm DAC kom tau txais lub teeb liab sib piv.

Kauj Ruam 12: Sib dhos

Los ua ke
Los ua ke

Peb yuav luag tiav! Koj yuav tsum tau sib sau ua ke txhua qhov ntawm cov phiaj xwm (nkag mus rau hauv Circuit, tso tawm Circuit thiab Pawg Thawj Coj). Xyuas kom txuas cov ntu txhawm rau kho tus pin raws li Quartus Project.

  1. Cov kab hluav taws xob nkag yuav xa lub suab kaw los ntawm lub microphone, ua kom nrov nrov, lim thiab tshem tawm.
  2. Txoj haujlwm C tam sim no ntawm daim npav yuav nyeem qhov tseem ceeb ntawm ADC zoo li peb tau pom yav tas los, thiab yuav sau nws rau ntawm SPI kom peb tuaj yeem rov qab tau tus nqi ntawm GPIO ntawm daim npav.
  3. Tom qab ntawv qhov GPIO ntawm SPI yuav xa cov ntaub ntawv uas yuav raug txiav txim los ntawm peb DAC thiab nthuav dav los ntawm kev khiav kom mus txog tus hais lus.

Kauj Ruam 13: Teeb Meem Suab

Suab los
Suab los
Suab los
Suab los

Tsuas yog cov kauj ruam sab laug yog cov teebmeem suab.

Cov teeb meem availlable yog:

  • Lim Siab Zaus
  • Lim Zaus Tsawg

Koj tuaj yeem hloov pauv ntawm cov teebmeem ua tsaug rau lub pob. Lub pob no yuav hloov pauv qhov sib txawv hauv peb txoj haujlwm C, yog li nws tuaj yeem siv cov txiaj ntsig raug.

Kauj Ruam 14: [YOOJ YIM] Ua Lub kaus mom hlau

[TSIS MUAJ] Ua lub kaus mom hlau
[TSIS MUAJ] Ua lub kaus mom hlau
[TSIS MUAJ] Ua lub kaus mom hlau
[TSIS MUAJ] Ua lub kaus mom hlau
[TSIS MUAJ] Ua lub kaus mom hlau
[TSIS MUAJ] Ua lub kaus mom hlau

Ntawm no peb nyob hauv cov lus qhia feem ntau ntawm txoj haujlwm:

  1. Ua ntej peb glued qhov sib txawv 3D luam tawm ntu ntawm lub kaus mom hlau.
  2. Txhawm rau sau qhov khoob ntawm cov nplaum peb tau ntxiv qhov ua tiav siv tus cwj mem 3D.
  3. Peb txhuam cov ntu nruab nrab uas tau ntim nrog tus cwj mem thiab lub kaus mom hlau feem ntau kom cov duab thau zoo tom qab.
  4. Peb pleev xim lub kaus mom hlau nrog 2 txheej: Thawj hauv cov xim dub anthracite, nyob ze, thiab thib ob ntawm thawj qhov ntsuab los ntawm kev ntxiv kom muab ntxoov ntsuab tsaus.
  5. Thaum kawg peb tau luam lub logo ntawm peb lub tsev kawm ntawv nyob rau sab ntawm lub kaus mom hlau

Pom zoo: