Cov txheej txheem:

Band Hero PS2 MIDI Hloov Kho: 8 Kauj Ruam
Band Hero PS2 MIDI Hloov Kho: 8 Kauj Ruam

Video: Band Hero PS2 MIDI Hloov Kho: 8 Kauj Ruam

Video: Band Hero PS2 MIDI Hloov Kho: 8 Kauj Ruam
Video: Resultado da Quina Concurso 5974 - #shorts #short #shortvideo #quina #quina5974 2024, Kaum ib hlis
Anonim
Image
Image

Nov yog kuv thawj qhov kev qhia thiab siv rau kev hloov kho Band Hero PS2 tus tswj kom tsim nyog MIDI lub nruas tswj rau cov kws ntaus nkauj uas xav tau txais txoj hauv kev pheej yig zoo nkauj zoo nkauj nruas MIDI. Tau kawg Band Hero PS2 tau pib siv MIDI thiab yuav tsum ua haujlwm tsis zoo nrog MIDI tab sis kuv tus tswj tsis ua haujlwm kom raug. Tom qab lub zog nce Band Hero tus tswj hwm tuaj yeem xa cov ntaub ntawv MIDI tab sis nrog lub sijhawm loj thiab kab nyob hauv MIDI raws tu qauv. Ntxiv mus txhua lub sijhawm tus tswj tau sim txuas nrog PS2. Tom qab ob peb feeb txiav tawm yog ua tsis tau zoo txuas nrog PS2 console. Kuv tau sim hla qhov kev ua tsis tiav ntawd tab sis kuv ua tsis tau. Googling thoob ntiaj teb txog teeb meem dab dab Band Hero PS2 Kuv xam tawm tsuas yog kuv tsis nyob ib leeg thiab lwm tus neeg siv Band Hero muaj kev paub zoo ib yam nrog thawj qhov kev siv MIDI.

Yog li kuv txiav txim siab hloov kho kuv cov khoom.

Kuv vam tias qhov kev cuam tshuam no yuav muaj txiaj ntsig zoo rau ib tus neeg uas xav siv Band Hero cov khoom ua si zoo li MIDI tus tswj kom zoo.

Txog qhov kev hloov kho yooj yim no koj tsis xav tau siv ib qho ntxiv microcontroller zoo li Arduino, ib qho kev ua haujlwm coding. Tsuas yog koj xav tau ob peb yam khoom siv hluav taws xob tsis tu ncua.

Siv cov qauv no tsuas yog tias koj tsis xav tau ntxiv siv koj Band Hero nrog PS2 console

Tom qab qhov kev hloov kho no Band Hero dhau los ua MIDI tiag thiab cov khoom siv ib leeg uas tsis ua haujlwm ntxiv rau PS2 console.

Kauj Ruam 1: Daim duab qhia chaw thiab Cov Npe

Daim duab qhia chaw thiab Tshooj Npe
Daim duab qhia chaw thiab Tshooj Npe
Daim duab qhia chaw thiab Cov Npe
Daim duab qhia chaw thiab Cov Npe
Daim duab qhia chaw thiab Tshooj Npe
Daim duab qhia chaw thiab Tshooj Npe

Cov duab kab hluav taws xob txuas nrog yuav tsum muaj txiaj ntsig thiab nyeem tau rau cov pib siv hluav taws xob.

Hmoov tsis tsis muaj ib qho Band Hero Circuit kos duab thiab cov ntaub ntawv rau thawj qhov suav nrog "txawv" ntu.

Tsawg kawg kuv tsis pom nws.

Hauv qab no yog cov npe ntu uas xav tau rau kev hloov kho.

2x 220R resistor 1x 330R resistor

1x 1 N4148 diode

2 x 220uF 6.3V

1x ON/OFF toggle hloov me me

1x universal boost nce qib hloov pauv 3 txog 5V

Yog tias koj txiav txim siab siv 2 lub tswv yim ntxiv (lub nruas ntses bass thib ob thiab Hi-hat pedals) koj yuav tsum tau:

1x ib txwm piezo disc 25 txog 35mm

1x SPDT hloov zoo li Otehall 343-40-120NOZD40 nrog qib ntev dua.

2m ib leeg tub ntxhais kuaj xyuas kab

2x 3, 5mm jack plug mono.

Kauj Ruam 2: Tshem Tawm PCB

Rub tawm PCB
Rub tawm PCB

Tom qab qhib Band Hero pem hauv ntej teeb tsa game ncoo thiab rub tawm cov laug cam, koj tuaj yeem pom PCB tseem ceeb nrog txuas rau sab saum toj, pawg thawj coj saib me me qhov twg tau teeb tsa lub wireless transceiver, txhawb kev hloov pauv 3, 3V, nco nti thiab tus tswv MCU. Lub rooj tsav xwm me me tsis muaj txiaj ntsig ntxiv raws li kev hloov kho thiab xav tau tshem tawm tas li los ntawm Circuit.

Tom qab tshem lub rooj tsavxwm ntawd, txhua lub khawm ua si tsis ua haujlwm vim tias lawv txuas nrog tus tswv MCU thiab feem ntau txuas nrog kev tswj hwm PS2 kev ua haujlwm

Tsis muaj kev txhawj xeeb txog qhov ntawd, koj tsis xav tau lawv hauv qhov yooj yim midi nruas ncoo tswj. Drums ua haujlwm ntau dua qhov zoo yam tsis muaj cov nyees khawm no. Tau kawg lawv tuaj yeem muaj txiaj ntsig zoo rau kev teeb tsa lawv rau MIDI CC lus lossis yog li ntawd. Ib qho ntxiv tom qab koj tuaj yeem siv cov nyees khawm rau MIDI kev ua haujlwm tab sis lwm qhov yooj yim MCU xav tau nkag rau hauv Circuit Court thiab kev ua haujlwm coding yuav tsum ua tiav rau qhov ntawd. Sib cais tsis yooj yim Kuv yuav npaj rau kev txuas ntxiv mus.

Kuv qhia tawm tsuas yog cov qauv yooj yim uas tso tawm tag nrho cov peev xwm HA2005 thiab pib siv MIDI.

Kauj Ruam 3: Kev Txheeb Xyuas Circuit thiab Yam

Kev Txheeb Xyuas Circuit and Parts
Kev Txheeb Xyuas Circuit and Parts
Kev Txheeb Xyuas Circuit and Parts
Kev Txheeb Xyuas Circuit and Parts
Kev Txheeb Xyuas Circuit and Parts
Kev Txheeb Xyuas Circuit and Parts
Kev Txheeb Xyuas Circuit and Parts
Kev Txheeb Xyuas Circuit and Parts

Midi board uas muaj IC s: optocoupler PC900, MCU HA2005 qhov twg hauv qab cov cai no tau zais PIC 16Fxxx series thiab ob op amps HA1504 nrog transistors thiab lwm qhov chaw lav phib xaub rau cov teeb liab analog nkag los ntawm piezoelectric sensors faus hauv cov pawm. Kuv tsis 100% paub tseeb qhov twg op amp tau zais nyob rau hauv txoj cai HA1504 tab sis nws yog quad op amp zoo ib yam li LM324.

Kuv tsis tuaj yeem pom cov ntaub ntawv ntseeg tau txog cov khoom hauv qab cov cai tiv thaiv no.

Cov neeg tsim khoom feem ntau tsim tus kheej "khawv koob" cov lej thiab hais tawm qhov tsis tu ncua. Kuv twv qhov no yog ib qho ntawm kev tiv thaiv tsis ntse heev los ntawm DIY thiab nyiag cov zej zog.

Kauj Ruam 4: Ntxiv Cov Khoom Siv Hluav Taws Xob

Ntxiv Cov Khoom Siv Hluav Taws Xob
Ntxiv Cov Khoom Siv Hluav Taws Xob
Ntxiv Cov Khoom Siv Hluav Taws Xob
Ntxiv Cov Khoom Siv Hluav Taws Xob
Ntxiv Cov Khoom Siv Hluav Taws Xob
Ntxiv Cov Khoom Siv Hluav Taws Xob
Ntxiv Cov Khoom Siv Hluav Taws Xob
Ntxiv Cov Khoom Siv Hluav Taws Xob

Rau kev ua haujlwm roj teeb koj xav tau siv kuj tseem nce qib hloov pauv rau txhawb qib qib mus rau 5V.

HA2005 programmed rau MIDI cov haujlwm ua haujlwm tau zoo dua thiab muaj kev ruaj khov ntau dua 5V dua 3.3V.

Kuv siv tsis tu ncua thiab ib txwm muaj nyob ntawm eBay txhawb kev nce qib hloov pauv 3V rau 5V nrog ntxiv 220uF capacitors rau lub zog cia thiab lim dej ripples nkag los ntawm hloov pauv.

Kaw rau Ic PC900 yog cov tswv yim rau 5V VCC.

Kuv soldered ntawm no ob tus pin. To cov pins yuav tsum tau txuas nrog hloov pauv hloov pauv thiab ib qho ntawm cov lim dej lim.

Kauj Ruam 5: Txiav Kab

Txiav Txoj Kev
Txiav Txoj Kev
Txiav Txoj Kev
Txiav Txoj Kev
Txiav Txoj Kev
Txiav Txoj Kev
Txiav Txoj Kev
Txiav Txoj Kev

Nov yog cov kauj ruam tseem ceeb tshaj plaws uas yuav tsum tau ua tib zoo ua yam tsis muaj qhov yuam kev.

Nyob ze rau lub qhov (socket) MIDI qhov tso tawm yog ib feem me me ntawm lub Circuit Court uas yuav tsum tau txiav tawm thiab tshem tawm los ntawm kev txiav ob peb txoj kab.

Ib feem ntawm qhov Circuit Court yog MIDI qub Circuit Court, suav nrog voltage doubler rau tus pin 4 thiab TTL shifter. Lawv tsis muaj txiaj ntsig ntxiv thiab xav tau rho tawm.

Zoo li kuv pom ntawm cov duab:

Ze heev rau GND qhov, txiav tawm ntawm txoj kab nruab nrab ntawm transistor thiab resistor. Taug qab saum toj no resistor los ntawm

UART TX, pin 17 HA2005.

Muaj qhov chaw zoo rau xaim xaim thiab los ntawm tus tiv thaiv 220R yuav tsum txuas nrog tus pin 5 hauv MiDI tawm DIN qhov (socket).

Cov tshuaj tiv thaiv tuaj yeem siv tau "hauv huab cua" raws nraim rau lub qhov ntsawb thiab yuav tsum raug cais tawm hauv cov cua sov ntsws.

Qhov taw tes zoo yog nyob rau sab nraud ntawm lub rooj tsavxwm, hauv qab lub qhov (socket).

Tsis tas li hauv qab lub qhov (socket) peb xav tau txiav tawm ntawm txoj kev taug thiab los ntawm qhov no tshem tawm qhov qub MIDI tawm hauv Circuit.

Cov tswv yim Midi zoo thiab tsis xav tau kev ua haujlwm ntxiv.

Tus Pin 17 HA2005 yog UART TX, cov ntaub ntawv los ntawm tus pin ntawd yog MIDI hom ntawv raug thiab qib raug, yuav tsum txuas nrog tus qauv ib txwm los ntawm 220R resistor rau tus pin 5 DIN qhov (socket). Lwm yam kev thaiv hluav taws xob zoo li kev siv hluav taws xob qub tau cuam tshuam tsis zoo thiab tuaj yeem ua rau muaj kab hauv MIDI cov ntaub ntawv.

Kev siv hluav taws xob ntawm tus pin 4, DIN qhov (socket) MIDI tawm yuav tsum yog 5V. Txuas tus pin 4 los ntawm 220R tus tiv thaiv rau 5V tso tawm los ntawm kev hloov pauv.

Kauj Ruam 6: Sib dhos

Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos

Kuaj zaum kawg thiab muab rov qab hloov kho lub rooj rau hauv cov ntaub qhwv lub rooj. Txuas ON/OFF hloov nruab nrab ntawm lub roj teeb zoo thiab lub roj teeb zoo tso rau ntawm lub rooj hloov pauv hloov pauv. Ntsia ua ke txhua yam.

Yog tias kev hloov pauv mus yam tsis muaj qhov ua yuam kev, Band Band 2 MIDI lub nruas tshiab tau npaj rau kev ua si tom qab lub zog nce.

Kauj Ruam 7: Ntxiv Bass Nruas thiab Hi-Hat Pedal

Ntxiv Bass Nruas thiab Hi-Hat Pedal
Ntxiv Bass Nruas thiab Hi-Hat Pedal
Ntxiv Bass Nruas thiab Hi-Hat Pedal
Ntxiv Bass Nruas thiab Hi-Hat Pedal
Ntxiv Bass Nruas thiab Hi-Hat Pedal
Ntxiv Bass Nruas thiab Hi-Hat Pedal

Yog tias koj tsis muaj thawj lub nruas nruas thib ob thiab hi-hat foot pedal ces koj tuaj yeem yooj yim ua lwm lub ncoo lossis ko taw taw los ntawm cov khoom siv ib txwm muaj xws li cov ua npuas dej, roj hmab, cov piezoelectric disc tsis tu ncua thiab hloov.

Thib ob lub nruas nruas ntsuas yuav tsum txuas nrog lub qhov hluav taws xob xim xim thib ob yam tsis muaj qhov txuas ntxiv.

Tsuas yog siv lub ntsuas ntsuas kab ntsuas kab thiab ib sab txuas rau lub mono 3, 5mm nkaus ntsaws. Cov tub ntxhais cable yuav tsum tau muab txuas rau "cov lus qhia" thiab lub vijtsam yuav tsum tau muab txuas rau lub tes tsho, lwm sab cable yuav tsum txuas nrog lub piezoelectric disc, cov tub ntxhais mus rau cov phaj nquag ntawm lub disc feem ntau cim ua + thiab lub vijtsam xav tau muab txuas rau GND daim disk Tam sim no muab piezo disc nruab nrab ntawm 2 daim ua npuas ncauj thiab ua kom tawg. Pluag tab sis txoj hauv kev yooj yim kom tau txais nrawm nrawm nrawm nruas.

Yog tias koj googling ib puag ncig "diy nruas piezo ncoo" muaj ntau qhov piv txwv thiab txoj hauv kev zoo los tsim cov pawm lossis cov pedals zoo tiag tiag.

Hi-hat foot pedal yog qhov qhib qhib ib txwm txuas nrog ua ke nrog 330R resistor thiab diode 1N4148. Saib daim duab txuas nrog. Resistor tseem ceeb heev, ua haujlwm ntawm no zoo li kev tiv thaiv tam sim no. Muaj zog tswj lub teeb liab ua rau tsis sib xws thiab kab hauv MIDI ua. Hi-hat tswv yim thaum xub thawj tsis muaj kev tiv thaiv.

Kev hloov ko taw tuaj yeem ua tiav hauv ntau txoj hauv kev zoo li lub nruas los yog siv lub hauv paus qub uas muaj tam sim no nrog tus tiv thaiv thiab cov diode hauv koob xws li daim duab qhia chaw.

Kuv cia koj muaj sijhawm rau kev tshawb fawb thiab nrhiav pom qhov tsim qauv zoo tshaj plaws rau koj cov kev xav tau yam tsis muaj kuv cov lus qhia.

Kuv "nruas ncoo" thiab "hloov taw" tau ua tiav rau kev sim cov tswv yim thiab nws ua haujlwm tau zoo txawm tias lawv tsis zoo thiab yooj yim tshaj plaws "tsim"

Kauj Ruam 8: Xaus

Xaus
Xaus

Kuv nthuav qhia txoj hauv kev yooj yim tshaj plaws los txhim kho Band Hero los ntawm PS2 thiab MIDI kev tswj tsis zoo rau 100% midi nruas maub los uas muaj txiaj ntsig zoo tsis yog rau kev xyaum ua si nkaus xwb tab sis koj tuaj yeem siv nws rau kaw ntu nruas hauv koj cov nkauj lossis tseem ua lub neej vim tam sim no Band Hero tau txais lub sijhawm teb nrawm heev, nrawm nrawm thiab ua tau zoo dua uas yog sib xws nrog MIDI cov qauv.

Tau kawg qib ntawm latency yog nyob ntawm tus kheej kev teeb tsa koj cov khoom siv lossis software uas yuav siv nrog Band Hero.

Hauv kuv qhov xwm txheej qhov ntsuas lub tshuab yog lub qub MacBook Pro 2009, Logic X thiab pheej yig dongle MIDItoUSB Kuv tuaj yeem khaws qib ntawm 5.2ms latency. Dab tsi yog ntau tshaj qhov txaus rau yuav luag ua "lub sijhawm tiag tiag".

Kuv muaj kev lom zem ua si yam tsis muaj kev ncua. Kuv muaj peev xwm ua si ntawm cov nrawm nrawm, kuv cov ntaub ntawv yog 12 tsoo hauv 1 thib ob thiab cov tswj tau yooj yim ntes txhua yam thiab tsis muaj teeb meem, ua nws rau MIDI!

Raws li Logic Pro, FL Studio Ableton Live koj tuaj yeem yooj yim teeb tsa ib tus zuj zus rau qhov koj nyiam nruas sib txuas ua ke, hloov pauv teeb tsa lub txhab nyiaj txuas nrog rau cov pawm lossis tswj hwm kev ua haujlwm hauv software.

Hais txog cov khawm game uas tsis ua haujlwm tom qab hloov kho. Nws yog qhov ua tau kom lawv ua haujlwm tab sis rau qhov uas koj xav tau siv lwm MCU thiab cov lej yooj yim. HA2005 tom qab mod muaj DATA dawb thiab CLK pins thiab npaj rau kev cuam tshuam nrog lwm MCU. Kuj tseem tuaj yeem ntxiv lwm cov kev tswj hwm xws li lub zog loj lossis lub cim xeeb, lub vijtsam me me thiab lwm yam. Cov lus txhua yam uas muaj nyob hauv MIDI cov kev cai tswj hwm cov cuab yeej suab paj nruag lossis software.

Yog tias tib neeg qhia kuv tias cov lus qhia muaj txiaj ntsig, kuv yuav tshaj tawm ntu 2, lwm qhov kev qhia paub txog Band Hero 2 txuas ntxiv, I/O tswj hwm pawg raws li kev siv microcontroller thib ob.

Ua tsaug rau koj mloog thiab koj lub sijhawm!

Pom zoo: