Ks0102 keyestudio EASY plug Active Buzzer Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==EASY plug Active Buzzer Module ==
[[image:Ks0103-1-.png|thumb|600px|right|EASY plug Active Buzzer Module]]
<br>[[File:ks0102-1.png|500px|frameless|thumb]]<br>


<br>
==Introduction==
==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.
Hey want to hear a really loud noise? Apply 3.3V to 5V to this buzzer module and you'll be rewarded with a loud beep. <br>
Just try it!! You will find the electronic sound it creates so fascinating.<br>
Here is the simplest sound making module. You can use high/low level to drive it. Just change the frequency it buzzes, you can hear different sound. <br>
Note: this module needs to be used together with EASY plug control board.<br>
It is really great for integrating into projects with this small but useful module. Have a try! You will find the electronic sound it creates so fascinating.<br>
This module is widely used on your daily appliance, like PC, refrigerator, phones, etc. <br>
<span style="color: red">'''Note: ''' </span> this module should be used together with EASY plug control board.<br>


<br>


==Specification==
==Specification==
* Interface: Easy plug
* Interface: Easy plug
* Working voltage: 3.3-5v
* Working voltage: 3.3-5V
* Sensor type: digital
* Sensor type: digital
* Size: 39*20mm
* Easy to use
* Weight: 6g


<br>
==Technical Details==
* Dimensions: 39mm*20mm*18mm
* Weight: 5.6g
<br>


==Connection Diagram ==
== Connect It Up ==
<br>[[File:ks0102-2.png|500px|frameless|thumb]]<br>
Connect the EASY Plug passive buzzer module to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
 
<br>[[File:Ks0103-2-.png|700px|frameless|thumb]]<br>
<br>


==Sample Code==
==Sample Code==
Copy and paste below code to [http://wiki.keyestudio.com/index.php/How_to_Download_Arduino_IDE Arduino IDE] and upload.
<pre>
<pre>
int buzzPin = 10;   //Connect Buzzer on Digital Pin10
int buzzer=8;//set digital IO pin of the buzzer
void setup()
void setup()
{      
{
pinMode(buzzPin, OUTPUT);  
pinMode(buzzer,OUTPUT);// set digital IO pin pattern, OUTPUT to be output
}
}
void loop()                  
void loop()
{ unsigned char i,j;//define variable
while(1)
{ for(i=0;i<80;i++)// output a frequency sound
{ digitalWrite(buzzer,HIGH);// sound
delay(1);//delay1ms
digitalWrite(buzzer,LOW);//not sound
delay(1);//ms delay
}
for(i=0;i<100;i++)// output a frequency sound
{
{
digitalWrite(buzzPin, HIGH);
digitalWrite(buzzer,HIGH);// sound
delay(1);
digitalWrite(buzzer,LOW);//not sound
digitalWrite(buzzPin, LOW);
delay(2);//2ms delay
delay(1);      
}
}
}
}
</pre>
</pre>


<br>
==What You Should See==
Done uploading the code, you should be able to hear the buzzer module make a small “click”.
<br>[[File:Ks0103-3.png|500px|frameless|thumb]]<br>
<br>
==Resources ==
==Resources ==


'''Datasheet'''
'''Download the PDF:'''<br>
https://drive.google.com/open?id=1pQj561dWpMkzIBY1siyFwDCJgOCjXUPi
 
'''Download the Code:'''<br>
https://drive.google.com/open?id=1PBnazbkjn06xvLcIw2G4GqYJiH5W4Xsf
 


https://drive.google.com/open?id=1Ak9val5HWKKb7B8gSwwykKUhk9Ewfolu
<br>


==Buy from ==
==Buy from ==
'''Official Website'''
*'''Official Website:''' http://www.keyestudio.com/ks0103.html
 
*[https://www.aliexpress.com/store/product/2016NEW-Keyestudio-EASY-plug-Passive-Buzzer-Module-for-Arduino/1452162_32637357831.html?spm=2114.12010612.8148356.11.43b8484e8Kd7LP  Shop on aliexpress ]


http://www.keyestudio.com/keyestudio-easy-plug-active-buzzer-module-for-arduino.html


[[category:EASY Plug]]
[[category: EASY Plug]]

Revision as of 15:45, 27 November 2018

EASY plug Active Buzzer Module


Introduction

Hey want to hear a really loud noise? Apply 3.3V to 5V to this buzzer module and you'll be rewarded with a loud beep.
Here is the simplest sound making module. You can use high/low level to drive it. Just change the frequency it buzzes, you can hear different sound.
It is really great for integrating into projects with this small but useful module. Have a try! You will find the electronic sound it creates so fascinating.
This module is widely used on your daily appliance, like PC, refrigerator, phones, etc.
Note: this module should be used together with EASY plug control board.


Specification

  • Interface: Easy plug
  • Working voltage: 3.3-5V
  • Sensor type: digital
  • Easy to use


Technical Details

  • Dimensions: 39mm*20mm*18mm
  • Weight: 5.6g


Connect It Up

Connect the EASY Plug passive buzzer module to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
thumb

Sample Code

Copy and paste below code to Arduino IDE and upload.

int buzzer=8;//set digital IO pin of the buzzer
void setup()
{
pinMode(buzzer,OUTPUT);// set digital IO pin pattern, OUTPUT to be output
}
void loop()
{ unsigned char i,j;//define variable
while(1)
{ for(i=0;i<80;i++)// output a frequency sound
{ digitalWrite(buzzer,HIGH);// sound
delay(1);//delay1ms
digitalWrite(buzzer,LOW);//not sound
delay(1);//ms delay
}
for(i=0;i<100;i++)// output a frequency sound
{
digitalWrite(buzzer,HIGH);// sound
digitalWrite(buzzer,LOW);//not sound
delay(2);//2ms delay
}
}
}


What You Should See

Done uploading the code, you should be able to hear the buzzer module make a small “click”.
thumb


Resources

Download the PDF:
https://drive.google.com/open?id=1pQj561dWpMkzIBY1siyFwDCJgOCjXUPi

Download the Code:
https://drive.google.com/open?id=1PBnazbkjn06xvLcIw2G4GqYJiH5W4Xsf



Buy from