Ks0105 keyestudio EASY plug Analog Sound Sensor: Difference between revisions
Keyestudio (talk | contribs) |
Keyestudio (talk | contribs) |
||
Line 44: | Line 44: | ||
==What You Should See== | ==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. | 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| | <br>[[File:ks0105 Result.gif|700px|frameless|thumb]]<br> | ||
<br> | <br> | ||
==Resources == | ==Resources == | ||
'''Download the PDF:'''<br> | '''Download the PDF:'''<br> |
Revision as of 16:45, 22 November 2018
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.
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.
Resources
Download the PDF:
https://drive.google.com/open?id=1Rd2-D2ls9-8YS0o0njbK1bTLSarXd5CM
Buy from
- Official Website: http://www.keyestudio.com/ks0105.html