KY-006 |
Part Number | KY-006 |
Manufacturer | Joy-IT |
Description | ..... 1 3 Pinout ...... |
Features |
to create different sounds from the Piezo-Buzzer.
Export: 16.06.2017
Copyright by Joy-IT - Published under CC BY-NC-SA 3.0
Page 34 of 214
KY-006 Passiv Piezo-Buzzer module
Pinout
Code example Arduino
This is an example program which will start an alarm signal on the buzzer via square wave voltage.
int buzzer = 8 ; // Declaration of the buzzer-output pin void setup () {
pinMode (buzzer, OUTPUT) ;// Initialization of the output pin. }
void loop () {
unsigned char i; while (1) {
// The buzzer will be controlled by 2 different frequencies in this program. // The signal is a square wave signa... |
Document |
KY-006 Data Sheet
PDF 352.10KB |
Distributor | Stock | Price | Buy |
---|