The buzzer module is for making sound in your project. It sounds when activated by a logic HIGH signal. Connect the buzzer to any of the D(digital) ports of Crowtail- Base Shiled, you can easily make it sounds with setting the related ports to logic HIHG.
The buzzer module can be also connected to an analog pluse-width modulation(PWM) output to generate various of tones.
Features
- Connection Mode:D(digital);
- Panel Mount;
Part List
- 1 X Crowtail- Buzzer
- 1 X Crowtail 3 Pin Cable
Wiki & External links
Features
- Easy to use piezoelectric buzzer
- Standard 3-pin Crowtail Cables
Specifications
- Operating Voltage: 5V
- Sound Output: ≥85dB
- Resonant Frequency: 2300±300Hz
Usage
Follow these simple steps to build a Crowtail circuit using the buzzer:
1.Hardware connection Use the Crowtail – Base Shield and connect the Crowtail – Buzzer module to the shield using a designated Crowtail Interface as shown below:
2.Upload the following sample sketch to make the Buzzer make a beeping noise:
#define buzzer 5 //connect Buzzer to digital pin5 void setup() { // initialize the digital pin5 as an output. pinMode(buzzer, OUTPUT); } void loop() { digitalWrite(buzzer, HIGH); // set the Buzzer on delay(500); // for 500ms digitalWrite(buzzer, LOW); // set the Buzzer off delay(500); }
Resource
نقد و بررسیها
هیچ دیدگاهی برای این محصول نوشته نشده است.