Yun Jin Yonggledel임동교
Published © GPL3+

Innovation Lab #10: Piezo Buzzer Plays the School Song

A Bongilcheon High School Innovation Lab project.

BeginnerShowcase (no instructions)10 minutes947
Innovation Lab #10: Piezo Buzzer Plays the School Song

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Breadboard (generic)
Breadboard (generic)
×1
Arduino Piezo Buzzer
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Piezo Buzzer

Piezo Buzzer

Code

Piezo Buzzer

Arduino
Piezo Buzzer play school song
int speakerpin = 7;

int melody[] = {}
int noteDurations[] = {}

void setup() {
  for (int thisNote = 0; thisNote < 24; thisNote++) {
    int noteDuration = 1000 / noteDurations[thisNote];
    tone(speakerpin, melody[thisNote], noteDuration);
    int pauseBetweenNotes = noteDuration * 1.30;
    delay(pauseBetweenNotes);
    noTone(speakerpin);
  }
}

void loop() {
  
}

Credits

Yun Jin Yong

Yun Jin Yong

6 projects • 10 followers
gledel

gledel

100 projects • 115 followers
Looking back on my childhood, I was happy when I was making something and I was proud of myself. "Making is instinct!"
임동교

임동교

0 projects • 12 followers

Comments