edge lab LIVE! starts Tuesday in Munich. Grab a workshop seat and take home the board you build on. Code FRIEND-HACKSTER saves 20%. () Learn more!
Yun Jin Yonggledel임동교
Published © GPL3+

Innovation Lab #9: Piezo Buzzer Sound Settings

A Bongilcheon High School Innovation Lab project.

BeginnerShowcase (no instructions)10 minutes2,041
Innovation Lab #9: Piezo Buzzer Sound Settings

Things used in this project

Story

Read more

Schematics

Piezo Buzzer

Piezo Buzzer

Code

Piezo Buzzer

Arduino
Piezo Buzzer (play do re mi fa sol ra)
int buzz = 7;

void setup() {
  pinMode(buzz, OUTPUT);
}

void loop() {
  tone(buzz, 262, 500);
  delay(500);
  tone(buzz, 294, 500);
  delay(500);
  tone(buzz, 330, 500);
  delay(500);
  tone(buzz, 349, 500);
  delay(500);
  tone(buzz, 392, 500);
  delay(500);
  tone(buzz, 440, 500);
  delay(500);
}

Credits

Yun Jin Yong
6 projects • 10 followers
gledel
100 projects • 117 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