Ks0105 keyestudio EASY plug Analog Sound Sensor

From Keyestudio Wiki
Jump to: navigation, search
Keyestudio EASY plug Analog Sound Sensor

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

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


Buy from