Cov txheej txheem:

Arduino Piano With Manual and 7 Presets Songs: 7 Kauj Ruam
Arduino Piano With Manual and 7 Presets Songs: 7 Kauj Ruam

Video: Arduino Piano With Manual and 7 Presets Songs: 7 Kauj Ruam

Video: Arduino Piano With Manual and 7 Presets Songs: 7 Kauj Ruam
Video: Arduino 7 keys piano 2024, Hlis ntuj nqeg
Anonim
Arduino Piano Nrog Phau Ntawv thiab 7 Presets Nkauj
Arduino Piano Nrog Phau Ntawv thiab 7 Presets Nkauj
Arduino Piano Nrog Phau Ntawv thiab 7 Presets Nkauj
Arduino Piano Nrog Phau Ntawv thiab 7 Presets Nkauj

Arduino Piano Keyboard cuam tshuam nrog LCD muaj 2 hom.

Phau ntawv hom & Lub presets hom. Kuv siv 7 Pushbutton rau qhov yooj yim 7 tus yuam sij piano thiab 1 khawm rau Teeb Hom los hloov mus rau 7 nkauj presets.

. Preset hom nkauj: Nyem rau khawm teeb hom ua ntej.

  1. super mario theem 1
  2. super mario theem 2
  3. fur lis
  4. despacito
  5. kev zoo siab rau lub ntiaj teb
  6. jingle tswb
  7. lub hnub qub Wars

PROGRAM CODE

Kauj ruam 1: Cov ntaub ntawv

Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv

Cov ntaub ntawv:

  • Arduino UNO (Kuv siv clone ntawm nws)
  • Breadboard (ntev)
  • 1 LED (xim twg koj xav tau. Kuv siv xiav)
  • 8 - 10k ohms resistor
  • 2 - 220 ohms resistor
  • 1 Piezo buzzer
  • 8- tactile laub-khawm
  • Txuas Cov Hluav Taws Xob (txiv neej rau txiv neej) - tsawg kawg 40pcs
  • 1 LCD 16x2 w/ header pins (kuv siv lcd w/ teeb pom kev zoo)
  • Potentiometer

Kauj Ruam 2: Kev Sib Txuas Pushbutton

Pushbutton Kev Sib Txuas
Pushbutton Kev Sib Txuas

Pushbutton muaj 4 tus pin. Los ntawm lub neej ntawd (Khawm tsis tau nias) A & B txuas nrog, C & D kuj tseem txuas nrog. Yog li yog lub pob nyem ABCD txhua tus txuas nrog. 1.) Txuas Pin D ntawm Pushbutton w/ 10 kilo ohms resistor (Tsis muaj teeb meem twg txhais ceg ua rau resistor tsis muaj polarity). Lwm ceg ntawm tus tiv thaiv txuas nrog Av (GND) ntawm Arduino.2.) Txuas Pin B ntawm Pushbutton mus rau 5 volts (5V) ntawm Arduino.3.) Txuas Pin C ntawm Pushbutton rau tus pin ntawm Arduino (2, 3, 4, 5, 6, 7, A0, A1).

Pom zoo: