Ks0018 keyestudio Digital Buzzer Module

From Keyestudio Wiki
Revision as of 11:24, 8 January 2021 by Keyestudio (talk | contribs) (→‎Resources)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Introduction

Here is the simplest sound making module. You can use high/low level to drive it. Changing the frequency it buzzes can produce different sound. This module is widely used on your daily appliance, like PC, refrigerator, phones etc. And you can also create many interesting interactive project with this small but useful module. Just try it!! You will find the electronic sound it creates so fascinating.
thumb


Specification

  • Working Voltage: 3.3-5v
  • Interface Type: digital


Connection Diagram


thumb


Sample Code

int buzzPin =  3;    //Connect Buzzer on Digital Pin3
 void setup()  
 {        
  pinMode(buzzPin, OUTPUT);     
}
 void loop()                     
{
  digitalWrite(buzzPin, HIGH);
  delay(1);
  digitalWrite(buzzPin, LOW); 
  delay(1);        
}


After uploading the code, you can hear the buzzer beep continually.
thumb


Resources

  • Video

http://video.keyestudio.com/ks0018/

  • PDF and Code

https://fs.keyestudio.com/KS0018


Get One Now