Cov txheej txheem:

MIDI/Arduino Controlled 8-Bit Sound Generator (AY-3-8910): 5 Kauj Ruam
MIDI/Arduino Controlled 8-Bit Sound Generator (AY-3-8910): 5 Kauj Ruam

Video: MIDI/Arduino Controlled 8-Bit Sound Generator (AY-3-8910): 5 Kauj Ruam

Video: MIDI/Arduino Controlled 8-Bit Sound Generator (AY-3-8910): 5 Kauj Ruam
Video: AY-3-8910 Sound Generator with Arduino 2024, Kaum ib hlis
Anonim
Image
Image
MIDI/Arduino Tswj 8-Bit Suab Generator (AY-3-8910)
MIDI/Arduino Tswj 8-Bit Suab Generator (AY-3-8910)
MIDI/Arduino Tswj 8-Bit Suab Generator (AY-3-8910)
MIDI/Arduino Tswj 8-Bit Suab Generator (AY-3-8910)
MIDI/Arduino Tswj 8-Bit Suab Generator (AY-3-8910)
MIDI/Arduino Tswj 8-Bit Suab Generator (AY-3-8910)

Tsim kom muaj lub suab nrov rov qab 8-Bit Sound Generator thiab tswj nws los ntawm MIDI Qhov kev tsim no yog ib feem tau tshoov siab los ntawm Chiptune cov neeg txhawb siab tsim Arduino circuits ua si Chiptune cov ntaub ntawv thiab qee qhov ntawm kuv tus kheej lub tswv yim los ua ke lub suab ntawm cov vis dis aus game thaum ntxov tso rau hauv kuv cov synth-jam teeb tsa. Qhov tsim yog nyob ib puag ncig 1978 AY-3-8910 lub tshuab hluav taws xob tsim tawm tau. Cov nti no muaj peb qho ywj pheej square-wave oscillators (zoo rau kev tsim chords), lub tshuab hluav taws xob nrov, lub tshuab hluav taws xob lub hnab ntawv thiab lub tov khoom. Tag nrho cov haujlwm no yog tswj tau zoo, tab sis nws los nrog qee qhov kev txwv; tus qauv uas kuv nthuav qhia ntawm no yog lub ntsiab lus txuas ntxiv rau, piv txwv li, tshuab nruas/piv txwv muaj peev xwm xa MIDI (txhais) sau ntawv. Qhov kev tsim no, hu ua TB-AY-3 (lossis Techno Box AY-3-8910) suab zoo tshaj nrog kev tso tawm tsuas yog hom lub hnab ntawv (piv txwv li tsim kom muaj suab nrov hom), tab sis nws tso cai rau koj xaiv lwm hom. pre-programmed 8 thaj ua rau thaj: Thawj 5 koj tuaj yeem hloov kho dawb (Bass nruas, Snare nruas, Kaw hi-hat, Qhib hi-lub kaus mom thiab lub suab suab) Qhov seem 3 thaj ua rau thaj yog cov cim nyuaj (suab tsis zoo, hom arcade) ntawm cov vis dis aus game suab thiab Kraftwerk "lub tshuab xam zauv lub hnab" hom suab paj nruag tsis zoo) Koj tsis tuaj yeem txuag qhov kev hloov pauv uas koj ua rau 5 thaj ua haujlwm xaiv tau; lub hom phiaj ntawm no yog txhawm rau kho lub suab ntawm ya (raws li lawv yog MIDI -triggered) - feem ntau ua rau cov qauv thev naus laus zis txias. Yog lawm, Kuv suav nrog Arduino code, yog li xav tias dawb los kho qhov ua tsis tau zoo ua ntej.

Txaus intro - cia peb pib!

Kauj Ruam 1: Sau Cov Khoom

Ok, cia ua ke cov ntaub ntawv koj xav tau los tsim TB-AY-3. Tus nqi tag nrho yuav tsum tsis txhob ntau dua £ 75, - Tshawb nrhiav qhov tseeb ntawm ebay kom tau txais kev pom zoo.

AY -3-8910 - (1x) 40 -Pin ZIF DIP IC Socket - (1x) Arduino Nano - (1x) 30cm Mini USB 5pin Txiv neej rau USB 2.0B Poj Niam Socket Vaj Huam Sib Luag Mount Cable - (1x) Hammond 1456CE2WHBU Sloped Enclosure 146x102x56mm Aluminium Xiav/Beige - (1x) 12 Txoj Haujlwm 1 Ncej BBM Ua Ntej Ua Ntej Hloov - (2x) Teb Encoder Module KY -040 Clickable Switch - (1x) Resistors (hlau zaj duab xis 1/4 Watt) 3 x 220 Ohm3 x 10K1 x 3K31 x 4K73 x 8K26 x 2K712 x2 x 6N138 (Optocoupler) & 1 x DIL8 socket1 x 7404 (Hex Inverter) & 1 x DIL14 socket LEDs & Holder1 x Common cathode, pom tseeb, Tri-Color LED, 5mm & 1x 5mm chrome holder bezel mount1 x Liab, 3mm & 1 x 3mm dub yas yas dhos bezel mountDIN Sockets (rau MIDI hauv/thru) 2 x 5 Pin DIN chassis vaj huam sib luag mount poj niam socketVERO board1 x prototyping tooj liab strip board; 95mm x 127mm yuav tsum ua Cov ntawv nplaum (rau luam tawm cov vaj huam sib luag pem hauv ntej) & Zaj duab xis3 x A4 nplaum dawb ntawv A yob ntawm tus kheej nplaum pvc ntshiab zaj duab xis (muab tso rau saum cov ntawv luam tawm)

Kauj ruam 2: Daim duab

Daim duab
Daim duab
Daim duab
Daim duab

Rub daim duab ntawm no (zipped thiab.png). Nws tau faib ua ob ntu; 1 (ntawm 2)-Qhov no yog Arduino Nano + AY-3-8910 + MIDI Hauv/Thru circuitry2 (ntawm 2)-Qhov no qhia txog kev thaiv ntawm ob txoj haujlwm 12 txoj haujlwm hloov chaw Nco tseg: cov hloov pauv hloov muaj qhov hloov pauv tau-lub nplhaib uas tso cai rau koj teeb tsa hloov mus rau txoj haujlwm tsawg dua (xaiv thaj yuav tsum tau teeb tsa rau 5 txoj haujlwm thiab xaiv qhov ntsuas yuav tsum tau teeb tsa rau 11 txoj haujlwm)

Kauj Ruam 3: Cov Luam Luam Circuit Board (PCBs)

Rub tawm cov txheej txheem PCB ntawm no. Muaj PCB rau Arduino Nano & MIDI circuitry (ntxiv rau qee yam khoom siv) thiab muaj PCB rau ZIF lub qhov (socket) tuav AY-3-8910. Download tseem rub lub xov tooj mus rau/los ntawm kev xaiv hloov, LEDs, kab tawm, tus lej nkag (ntsuas hloov), MIDI cov chaw nres nkoj thiab AY-3-8910 pawg thawj coj saib.

Kauj ruam 4: Txoj Cai

Tau kawg, koj kuj xav tau Arduino code (lossis kos duab). Rub tawm thiab unzip cov ntawv uas tau qhia ntawm no. Ua kom koj muaj cov tsev qiv ntawv hauv qab no tau teeb tsa: MIDI.h (https://playground.arduino.cc/Main/MIDILibrary/)Encoder.h (https://github.com/PaulStoffregen/ Encoder) Button.h (https://github.com/tigoe/Button/blob/master/Button.h)Update: Gary Aylward kindly refactored txoj cai (txo nws 70%!), Uas tuaj yeem pom ntawm no ntawm github.

Kauj Ruam 5: Muab Nws Ua Ke

Muab tso ua ke
Muab tso ua ke
Muab tso ua ke
Muab tso ua ke
Muab tso ua ke
Muab tso ua ke
Muab tso ua ke
Muab tso ua ke

Yog tias koj txiav txim siab mus nrog Hammond 1456CE2WHBU Sloped Enclosure (146x102x56mm), tom qab ntawd thov luam tawm cov duab txuas ntawm daim ntawv dawb dawb. Txiav tawm daim ntawv lo thiab siv daim kab xev txuas rau lawv rau hauv lub thawv ntawv. Siv cov ntawv ib ntus los cim txhua qhov qhov tho qhov thiab hlau txiav tawm. Rem tshem cov ntawv ib ntus, laum lub qhov thiab txiav tawm thaj tsam kom lub ZIF ntsawb haum zoo. Ua kom ntseeg tau tias lub qhov rooj huv los ntawm kev tshem tawm txhua qhov chaw ntub los yog thaj chaw uas tsis yog cov ntawv nplaum, hauv cov kauj ruam tom ntej, yuav tsis lo zoo heev. Ib zaug ntxiv, luam tawm, ntawm tus kheej nplaum dawb ntawv A4 lub sij hawm no, cov duab vaj huam sib luag hauv ntej. Qhov luam tawm nrog tus kheej nplaum pvc ntshiab zaj duab xis thiab txiav tawm cov ntawv lo. Qhov cov ntawv lo hla qhov drilled qhov thiab duab plaub ZIF qhov chaw. Use lub taub hau kom ua tib zoo txiav tawm txhua thaj tsam npog lub qhov rau cov xov tooj, LEDs, tus lej nkag, MIDI, lub zog, cov zis thiab, ntawm chav kawm, lub xwmfab loj haum rau ZIF qhov ntsaws. Thov ua tibzoo saib cov duab uas qhia koj txog theem sib txawv ntawm kev tso qhov haujlwm ua ke.

Pom zoo: