Cov txheej txheem:

Raspberry Pi LED Teeb Schroeder Piano: 3 Kauj Ruam (nrog Duab)
Raspberry Pi LED Teeb Schroeder Piano: 3 Kauj Ruam (nrog Duab)

Video: Raspberry Pi LED Teeb Schroeder Piano: 3 Kauj Ruam (nrog Duab)

Video: Raspberry Pi LED Teeb Schroeder Piano: 3 Kauj Ruam (nrog Duab)
Video: Raspberry Pi LED Light Schroeder Piano - Twinkle Little Star 2024, Kaum ib hlis
Anonim
Image
Image
Cov Ntaub Ntawv Xav Tau
Cov Ntaub Ntawv Xav Tau

Raspberry Pi LED Teeb Schroeder Piano

LED (Lub Teeb Emitting Diode) thiab LDR (Lub Teeb Pom Kev Tiv Thaiv, lossis cov duab teeb pom kev zoo) tau siv los ua suab paj nruag sau siv Raspberry Pi Pygame MIDI sequencer. Muaj 15 paris ntawm LED & LDR (12 rau tag nrho octave ntawm cov ntawv, 1 mus rau thiab octave, 1 mus rau hauv thiab octave, thiab 1 rau cov ntawv qhia zaub mov). Thaum lub teeb nruab nrab ntawm LED thiab LDR tau tawg, suab paj nruag tau ua los ntawm Pygame MIDI tus lej. Thaum lub teeb nruab nrab ntawm Octave nce lossis nqis LED/LDR tau tawg, tag nrho lwm cov ntawv tau hloov pauv lossis nce ib qho octave. Pygame MIDI txhawb nqa ntau dua 75 lub suab paj nruas thiab 128 sau ntawv rau ib lub twj paj nruag (10 octaves). Cov ntawv qhia zaub mov tuaj yeem siv los hloov cov twj paj nruag. Raspberry Pi, lub rooj noj mov, thiab tus hais lus nyob hauv 20 nti x 30 nti ntoo piano uas zoo li me me piano loj.

Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau

Cov ntaub ntawv xav tau:

1. Raspberry Pi. Kuv siv tus qauv B qub, rov kho dua 2. Cov qauv tshiab muaj cov txheej txheem nrawm dua thiab muaj GPIO ntau dua uas tuaj yeem nthuav txoj haujlwm 2. 15 pcs LED (Tsom/nqaim teeb nqaj), ci 3. 2 pcs LED (generic) rau xwm txheej (yeem) 4. 19 pcs 100 Ohm resistors 5. 15 pcs 47k Ohm resistors 6. 15 pcs LDR (Light Dependent Resistor) 7. 1 Breadboard 8. Cov xov txuas rau txuas Raspberry Pi rau breadboard, breadboad rau LDR/LED/resistors 9. Piano Ncej a 20 nti x 30 nti 1/2 "plywood b. 4 ko taw x 8 ko taw "hardboard c. 1 nti x 2 nti x 20 nti ntoo mus rau Mount LDR thiab LED (hardwood nyiam) d. 2 nti x 2 nti x 40 nti sab hauv cov lus e. ¾ inch x 15 nti dowel rau ob txhais ceg

Kauj Ruam 2: Tsim Piano Ncej

Saib txuas Raspberry Pi LED Teeb Schroeder Piano - Frame.pdf kom paub meej.

CEEB TOOM

Walls Sab phab ntsa tuaj yeem khoov nrog kua nplaum ntoo (kua nplaum nplaum) thiab clamps yog siv ⅛ Hardboard

❏ Xav tau 4'x8 'Hardboard ntawv rau sab ntev txaus

❏ Ntxiv 4'x8 Hardboard tuaj yeem siv rau Sab Saum thiab Hauv Paus (xav tau ntau txheej rau lub zog)

❏ Lub hauv paus tuaj yeem yog 1/2 Plywood

❏ 2 "x2" cov lus xa tawm los ntawm sab hauv qab ntawm lub hauv paus kom tuav khoov sab tawv

❏ Cov hlua thiab cov hlua txuas nyob rau hauv pem hauv ntej ntawm LDR mounts yeej pab hnav cov xov hlau nyob hauv qab tus ncej mus rau qhov ze ntawm daim txiag ntoo

❏ Hardboard npog sab puag

❏ Siv cov xovxwm laum rau LDR/LED mount qhov kom lawv ncaj ncaj kom haum raws qhov sib txawv

Holes 15 qhov (12 rau Cov Lus Cim, 1 rau Octave Up, 1 rau Octave Down, 1 rau Ntawv Qhia zaub mov

Kauj Ruam 3: Tsim Cov Khoom Siv Hluav Taws Xob

Saib txuas nrog Raspberry Pi Light Schroeder Piano - Schematic.pdf rau txuas xov tooj cua.

LUS CEEB TOOM: ❏ 6 "qhov siab tshaj plaws nrog 1" sib nrug ntawm LDR thiab LED nrog nqaim nqaim LED ua lub teeb pom kev nruab nrab ntawm (1/4 "raj tuav LDR thiab LED) tso rau hauv 1" tag nrho ntawm 1 "x2" txiav

Background Tsaus tom qab ib puag ncig LED pab tshem lub teeb ib puag ncig

❏ 2.0 Volts nrog lub teeb

❏ 15 LED/LDR khub (12 Sau ntawv rau tag nrho Octave, 1 Octave Up, 1 Octave Down, 1 Menu)

❏ LED ib puag ncig tiv thaiv tuaj yeem kho qhov ci ci LED thiab kos tam sim no

❏ Tsis txhob qhib qhov rub tawm/rub tawm ntawm GPIO

DR LDR> 50k Ohm w/ o teeb, <10k Ohm w/ teeb

❏ 5V ntawm Raspberry Pi muaj ntau dua tam sim no/lub zog los tsav LEDs ci dua

❏ Teem LDR nrog Chaw Teeb LED

Pom zoo: