Difference between revisions of "Arduino buzzer Module"

From Geeetech Wiki
Jump to: navigation, search
(Usage)
(Usage)
Line 13: Line 13:
 
[[File:Buzzer usage.jpg]]
 
[[File:Buzzer usage.jpg]]
  
VCC - 5V
+
VCC - 5V<br>
GND - GND
+
GND - GND<br>
S - Digital pin2
+
S - Digital pin2<br>
  
 
==Example code==
 
==Example code==

Revision as of 03:15, 10 May 2012

Introduction

BUZZER1.jpg

This is the Arduino Buzzer Module. Through the Arduino or other controllers, this module will be able to control the buzzer sounds or MID music easily. It is extended with the Arduino board sensors used in combination, to achieve the control of an interactive sound and light works.

Specification

Pin Definition

Buzzer2.jpg

Usage

Buzzer usage.jpg

VCC - 5V
GND - GND
S - Digital pin2

Example code

int buzzPin =  2;    //Connect Buzzer on Digital Pin3 
void setup()   
 {         
 pinMode(buzzPin, OUTPUT);      
} 
 void loop()                      
{ 
 digitalWrite(buzzPin, HIGH); 
 delayMicroseconds(50); 
 digitalWrite(buzzPin, LOW);  
 delayMicroseconds(50);    
}

How to buy it

Click here to buy Arduino buzzer module