Ks0105 keyestudio EASY plug Analog Sound Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==EASY plug Analog Sound Sensor ==
[[image:KS0105图.jpg|thumb|600px|right|Keyestudio White LED Module]]
<br>[[File:ks0105-1.png|500px|frameless|thumb]]<br>


==Introduction==
==Introduction==
Analog Sound Sensor is typically used in detecting the loudness in ambient environment. The Arduino can collect its output signal by imitating the input interface. You can use it to make some interesting interactive works such as a voice operated switch.<br>
This sound sensor is typically used in detecting the loudness in ambient environment.You can use it to make interactive circuits such as a voice-operated switch.<br>
Note: this module needs to be used together with EASY plug control board.<br>
The sound sensitivity can be adjusted by the potentiometer.<br>
 
The sensor comes with a fixed hole, easy for fixation on other devices. <br>
<span style="color: red">'''Note: ''' this module should be used together with EASY plug control board.<br>


<br>
==Specification==
==Specification==
* Interface: Easy plug
* Sensor type: Analog
* Supply Voltage: 3.3V to 5V
* Supply Voltage: 3.3V to 5V
* Detecting sound intensity
* Operating current:<10mA
* Sensor type: Analog
* Output signal:analog signal
* Size: 38*20mm
* Weight: 6g


<br>
==Technical Details==
* Dimensions: 42mm*20mm*18mm
* Weight: 6.0g
<br>


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


 
==Upload the 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>
void setup()
void setup()
{
{
Serial.begin(9600); // open serial port, set the baud rate at 9600 bps
Serial.begin(9600);// open serial port, set the baud rate to 9600 bps
}
}
void loop()
void loop()
{
{
    int val;
int val;
    val=analogRead(0);   //connect mic sensor to Analog 0
val=analogRead(0); //connect mic sensor to Analog 0
    Serial.println(val,DEC);// print the sound value to serial monitor       
Serial.println(val,DEC);// print the sound value on serial monitor       
    delay(100);
delay(100);
}
}
</pre>
</pre>
<br>


==What You Should See==
After uploading the code, open the serial monitor and set the baud rate to 9600, you should see the analog value showed on the monitor.
<br>[[File:ks0105 Result.gif|500px|frameless|thumb]]<br>
<br>
==Resources ==
==Resources ==
 
'''PDF'''<br>
'''PDF'''
 
https://drive.google.com/open?id=1Rd2-D2ls9-8YS0o0njbK1bTLSarXd5CM
https://drive.google.com/open?id=1Rd2-D2ls9-8YS0o0njbK1bTLSarXd5CM


<br>
==Buy from ==
==Buy from ==
'''Official Website'''
'''Official Website'''<br>
http://www.keyestudio.com/keyestudio-easy-plug-analog-sound-sensor-for-arduino.html


http://www.keyestudio.com/keyestudio-easy-plug-analog-sound-sensor-for-arduino.html


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

Revision as of 15:23, 15 November 2018

File:KS0105图.jpg
Keyestudio White LED Module

Introduction

This sound sensor is typically used in detecting the loudness in ambient environment.You can use it to make interactive circuits such as a voice-operated switch.
The sound sensitivity can be adjusted by the potentiometer.
The sensor comes with a fixed hole, easy for fixation on other devices.
Note: this module should be used together with EASY plug control board.


Specification

  • Sensor type: Analog
  • Supply Voltage: 3.3V to 5V
  • Operating current:<10mA
  • Output signal:analog signal


Technical Details

  • Dimensions: 42mm*20mm*18mm
  • Weight: 6.0g


Connect It Up

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

Upload the Code

Copy and paste below code to Arduino IDE and upload.

void setup()
{
Serial.begin(9600);// open serial port, set the baud rate to 9600 bps
}
void loop()
{
int val;
val=analogRead(0); //connect mic sensor to Analog 0
Serial.println(val,DEC);// print the sound value on serial monitor      
delay(100);
}


What You Should See

After uploading the code, open the serial monitor and set the baud rate to 9600, you should see the analog value showed on the monitor.
thumb


Resources

PDF
https://drive.google.com/open?id=1Rd2-D2ls9-8YS0o0njbK1bTLSarXd5CM


Buy from

Official Website
http://www.keyestudio.com/keyestudio-easy-plug-analog-sound-sensor-for-arduino.html