Cov txheej txheem:
- Kauj Ruam 1: Yuav tsum tau ua 1/3 - Kho vajtse
- Kauj Ruam 2: Yuav Tsum Tau 2/3 - Cheeb Tsam rau Koj Qhov Circuit
- Kauj Ruam 3: Yuav Tsum Tau 3/3 - Software
- Kauj Ruam 4: Cov tswv yim Circuit Court
- Kauj Ruam 5: Tso Tawm Circuit
- Kauj Ruam 6: [Xaiv tau] Tsim Cov Ntawv Luam Circuit Borad thiab Cov Khoom Siv Hluav Taws Xob
- Kauj Ruam 7: SoC Teeb
- Kauj Ruam 8: Programming C HPS
- Kauj Ruam 9: Kev Tau Txais Digital ntawm ADC Los Ntawm Daim Npav
- Kauj Ruam 10: Kev suav FFT
- Kauj Ruam 11: Qhia FFT
- Kauj Ruam 12: Sib dhos
- Kauj Ruam 13: Teeb Meem Suab
- Kauj Ruam 14: [YOOJ YIM] Ua Lub kaus mom hlau
Video: Spartan Voice Changer Helmet: 14 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
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
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
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
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
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
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
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
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
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
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
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
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
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.
- Cov kab hluav taws xob nkag yuav xa lub suab kaw los ntawm lub microphone, ua kom nrov nrov, lim thiab tshem tawm.
- 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.
- 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
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
Ntawm no peb nyob hauv cov lus qhia feem ntau ntawm txoj haujlwm:
- Ua ntej peb glued qhov sib txawv 3D luam tawm ntu ntawm lub kaus mom hlau.
- Txhawm rau sau qhov khoob ntawm cov nplaum peb tau ntxiv qhov ua tiav siv tus cwj mem 3D.
- 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.
- 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.
- Thaum kawg peb tau luam lub logo ntawm peb lub tsev kawm ntawv nyob rau sab ntawm lub kaus mom hlau
Pom zoo:
3D Printable Disco Helmet !: 11 Kauj Ruam (nrog Duab)
3D Printable Disco Helmet!: Kev tshoov siab los ntawm lub kaus mom Daft Punk 'Thomas'. Teeb lub chav thiab ua kev khib ntawm txhua tus phooj ywg nrog rau qhov zoo kawg Arduino siv lub kaus mom hlau disco! Koj yuav xav tau kev nkag mus rau lub tshuab luam ntawv 3D thiab cov hlau txuas kom ua tiav txoj haujlwm no Yog tias koj xav tau
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Ironman Welding Helmet Part 1.: 11 Kauj Ruam (nrog Duab)
Ironman Welding Helmet Part 1.: Kuv nyiam qhia kuv tus kheej kom ua tej yam. Yog tias koj zoo li kuv, nrhiav lub ntsiab lus txias rau ib qhov haujlwm los pab ua kom ntse dua qhov txuj ci yog ib txwm lom zem. Kuv nyuam qhuav pib ua kev cai "hero-themed" lub kaus mom hlau thiab lwm yam zoo li cosplay cov ntsiab lus uas muaj qhov zoo dua
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
DIY Helmet Bluetooth Headset: 11 Kauj Ruam (nrog Duab)
DIY Helmet Bluetooth Headset: Nov yog qhov yooj yim heev thiab pheej yig heev Ua Nws Koj Tus Kheej phau ntawv qhia yuav ua li cas thiaj ua Bluetooth Headset rau koj lub kaus mom hlau maus taus lossis hom kaus mom dab tsi uas koj xav siv rau ntawm no. Yog li qhov no tau tshwm sim raws li cov lus hais "NECESSITY YOG MOT