Grove starter kit for arduino --- Buzzer

Grove starter kit for arduino --- Buzzer © LGPL

Teaches you how to use the buzzer in the Arduino Grove starter kit.

  • 400 views
  • 0 comments
  • 4 respects

Components and supplies

Apps and online services

About this project

Setup:

Just connect the buzzer to D6.

Code:

The code is extremely easy, use digitalWrite().

digitalWrite(6, HIGH);

Code

simple buzzer beepArduino
void setup()
{
  pinMode(6, OUTPUT);
}

void loop()
{
  digitalWrite(6, HIGH);
  delay(analogRead(0));
  digitalWrite(6, LOW);
  delay(analogRead(0));
}

Schematics

images_grMwMaeWm8.png
Images grmwmaewm8

Comments

Similar projects you might like

Grove Starter Kit For Arduino --- RGB LCD

by Grant

  • 8,017 views
  • 2 comments
  • 10 respects

Grove Starter Kit for Arduino: Touch sensor

by Grant

  • 1,085 views
  • 1 comment
  • 2 respects
Add projectSign up / Login