Difference between revisions of "Arduino buzzer Module"
From Geeetech Wiki
(Created page with "==Introduction== 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...") |
(→Pin Definition) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Introduction== | ==Introduction== | ||
+ | |||
+ | [[File: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. | 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. | ||
Line 6: | Line 8: | ||
==Pin Definition== | ==Pin Definition== | ||
+ | [[File:BUZZER11.jpg]] | ||
+ | |||
+ | ==Usage== | ||
+ | [[File:Buzzer usage.jpg]] | ||
− | + | VCC - 5V<br> | |
+ | GND - GND<br> | ||
+ | S - Digital pin2<br> | ||
==Example code== | ==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== | ==How to buy it== | ||
+ | Click here to buy [http://www.geeetech.com/arduino-buzzer-module-p-13.html Arduino buzzer module] |
Latest revision as of 05:55, 10 May 2012
Introduction
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
Usage
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