Cov txheej txheem:

Jukebox hauv Arduino: 4 Kauj Ruam
Jukebox hauv Arduino: 4 Kauj Ruam

Video: Jukebox hauv Arduino: 4 Kauj Ruam

Video: Jukebox hauv Arduino: 4 Kauj Ruam
Video: 🔶 Flipper Zero Fake Videos | everywhere... #shorts 2024, Hlis ntuj nqeg
Anonim
Image
Image

Txoj haujlwm no yog rau chav kawm hauv thawj xyoo ntawm peb txoj haujlwm hauv University of Valley, qhov no yog jukebox uas tuaj yeem qhia koj lub npe nkauj thiab tuaj yeem saib rau yav dhau los thiab zaj nkauj tom ntej. Cov nkauj uas koj tuaj yeem tso tawm tau txwv thiab nws tau txais kev pom zoo los ntawm txoj haujlwm hauv Arduino yog li peb yuav tso koj cov cai rau hauv cov theem hauv qab no. Txog qhov haujlwm no peb siv Arduino Uno vim peb xav tias nws yooj yim thiab yooj yim heev rau nrhiav rau txhua tus neeg uas xav rov ua dua lub jukebox no.

Cov ntaub ntawv peb tau ua nrog qee daim ntawm MDF, peb kuj siv lub tshuab txiav laser rau ua tsuas yog cov duab plaub ntawm lub npov thiab tom qab ntawd nrog phau ntawv txiav peb tau ua qhov chaw rau cov duab LCD, lub suab nrov, cov nyees khawm thiab rau lub zog txuas.

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau:

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

-1 Arduino Uno Board

-1 Passive Buzzer

-2 Nyees khawm

-dhia

-1 LCD zaub ntawm 16x2 (nrog i2C module

Kauj Ruam 2: Circuit thiab Kev Sib Txuas:

Circuit Court thiab Kev Sib Txuas
Circuit Court thiab Kev Sib Txuas

*Peb txiav txim siab muab lub Circuit tsis muaj tus qauv rau cov neeg uas tsis pom nws (Nrog tus qauv nws yuav yooj yim dua).

Kauj Ruam 3: Nrhiav Cov Nkauj

Koj yuav tsum nrhiav cov nkauj uas koj yuav muab tso rau hauv koj lub jukebox, nqes hauv qab koj muaj qee lub tswv yim rau koj.

*Tsis tas li koj tuaj yeem siv lwm zaj nkauj tab sis koj yuav tsum tau ceev faj nrog lub peev xwm nco ntawm pawg thawj coj saib.

#define NOTE_B0 31#txhais NOTE_C1 33

#Txhais NOTE_CS1 35

#Txhais NOTE_D1 37

#define NOTE_DS1 39

#Txhais NOTE_E1 41

#define NOTE_F1 44

#define NOTE_FS1 46

#define NOTE_G1 49

#define NOTE_GS1 52

#Txhais NOTE_A1 55

#define NOTE_AS1 58

#define NOTE_B1 62

#Txhais NOTE_C2 65

#define NOTE_CS2 69

#txhais NOTE_D2 73

#txhais NOTE_DS2 78

#Txhais NOTE_E2 82

#Txhais NOTE_F2 87

#txhais NOTE_FS2 93

#Txhais NOTE_G2 98

#define NOTE_GS2 104

#Txhais NOTE_A2 110

#define NOTE_AS2 117

#txhais NOTE_B2 123

#define NOTE_C3 131

#define NOTE_CS3 139

#txhais NOTE_D3 147

#txhais NOTE_DS3 156

#Txhais NOTE_E3 165

#Txhais NOTE_F3 175

#define NOTE_FS3 185

#define NOTE_G3 196

#define NOTE_GS3 208

#Txhais NOTE_A3 220

#define NOTE_AS3 233

#txhais NOTE_B3 247

#txhais NOTE_C4 262

#define NOTE_CS4 277

#define NOTE_D4 294

#txhais NOTE_DS4 311

#txhais NOTE_E4 330

#txhais NOTE_F4 349

#txhais NOTE_FS4 370

#define NOTE_G4 392

#define NOTE_GS4 415

#txhais NOTE_A4 440

#define NOTE_AS4 466

#define NOTE_B4 494

#txhais NOTE_C5 523

#define NOTE_CS5 554

#txhais NOTE_D5 587

#txhais NOTE_DS5 622

#txhais NOTE_E5 659

#txhais NOTE_F5 698

#txhais NOTE_FS5 740

#txhais NOTE_G5 784

#define NOTE_GS5 831

#txhais NOTE_A5 880

#define NOTE_AS5 932

#txhais NOTE_B5 988

#txhais NOTE_C6 1047

#define NOTE_CS6 1109

#txhais NOTE_D6 1175

#txhais NOTE_DS6 1245

#txhais NOTE_E6 1319

#define NOTE_F6 1397

#txhais NOTE_FS6 1480

#txhais NOTE_G6 1568

#define NOTE_GS6 1661

#txhais NOTE_A6 1760

#define NOTE_AS6 1865

#define NOTE_B6 1976

#define NOTE_C7 2093

#txhais NOTE_CS7 2217

#txhais NOTE_D7 2349

#txhais NOTE_DS7 2489

#txhais NOTE_E7 2637

#txhais NOTE_F7 2794

#txhais NOTE_FS7 2960

#txhais NOTE_G7 3136

#txhais NOTE_GS7 3322

#txhais NOTE_A7 3520

#define NOTE_AS7 3729

#txhais NOTE_B7 3951

#define NOTE_C8 4186

#txhais NOTE_CS8 4435

#txhais NOTE_D8 4699

#txhais NOTE_DS8 4978

#define REST 0

#define N_G4 392 // Sau ntawv qis tshaj hauv Nkauj

#Txhais N_GS4 415

#Txhais N_A4 440

#define N_AS4 466

#define N_B4 494

#nco N_C5 523

#define N_CS5 554

#Txhais N_D5 587

#define N_DS5 622

#Txhais N_E5 659

#Txhais N_F5 698

#define N_FS5 740

#Txhais N_G5 784

#Txhais N_GS5 831

#Txhais N_A5 880

#define N_AS5 932

#Txhais N_B5 988

Kauj ruam 4: Txoj Cai

Rub tawm cov cai no thiab sim nrog nws, sim cov nkauj tshiab lossis ntxiv lwm yam ntxiv.

Muaj ntau qhov muaj peev xwm yog li thov txaus siab rau txoj haujlwm no thiab qhia rau peb nrog koj tus kheej ntawm lub jukebox no;).

Att: Juani thiab Erick

Pom zoo: