KS0035 Microphone Sound Sensor with Potentiometer: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 40: Line 40:
Connect it up and upload the code successfully, then open the serial monitor on the right upper corner of Arduino IDE.<br>  
Connect it up and upload the code successfully, then open the serial monitor on the right upper corner of Arduino IDE.<br>  
The analog value will pop up on the monitor window. The greater the sound, the greater the analog value is.
The analog value will pop up on the monitor window. The greater the sound, the greater the analog value is.
<br>[[File:Ks0035(3).png|600px|frameless|thumb]]<br>
<br>[[File:Ks0035(3).png|700px|frameless|thumb]]<br>


<br>
<br>
== Further Use ==
== Further Use ==
<br>[[File:Ks0035(4).png|600px|frameless|thumb]]<br>
<br>[[File:Ks0035(4).png|600px|frameless|thumb]]<br>
Line 54: Line 55:


* '''PDF and Code'''<br>
* '''PDF and Code'''<br>
https://drive.google.com/open?id=1K2ocHu9EkZBvBLtArgkE815qWCJeqfkE
https://fs.keyestudio.com/KS0035


<br>
<br>

Latest revision as of 14:54, 7 January 2021


Introduction

The keyestudio microphone sensor is typically used in detecting the loudness in ambient environment. The Arduino can collect its output signal by analog input interface. 
The S pin is analog output, that is voltage signal real-time output of microphone. The sensor comes with a potentiometer, so that you can turn it to adjust the signal gain.
It also has a fixed hole so that you can mount the sensor on any other devices. You can use it to make some interactive works, such as a voice operated switch.
thumb


Specification

  • Operating voltage: 3.3V-5V(DC)
  • Operating current: <10mA
  • Interface:3PIN
  • Output signal: Analog


Connection Diagram


thumb


Sample Code

int sensorPin =A0 ;  // define analog port A0
int value = 0;    //set value to 0
void setup() 
{
 Serial.begin(9600); //set the baud rate to 9600
} 
void loop() 
{
value = analogRead(sensorPin);  //set the value as the value read from A0
Serial.println(value, DEC);  //print the value and line wrap
delay(200);  //delay 0.2S
} 


Test Result

Connect it up and upload the code successfully, then open the serial monitor on the right upper corner of Arduino IDE.
The analog value will pop up on the monitor window. The greater the sound, the greater the analog value is.
thumb


Further Use


thumb



Resources

  • Video

http://video.keyestudio.com/ks0035/

  • PDF and Code

https://fs.keyestudio.com/KS0035


Buy From