1 Overview

In the lesson, we’ll show how to use sound Sensor detect the sound intensity of the environment through Cayenne IOT Platform. This sound sensor is used to detect whether there’s sound surround or not, please don’t use the module to collect sound signal.  The sound sensor module has a built-in capacitive electret microphone which is highly sensitive to sound. Sound waves cause the thin film of the electret to vibrate and then the capacitance changes, thus producing the corresponding changed voltage., so it can detect the sound intensity in ambient environment. You can adjust the sensitivity with by adjusting the Potentiometer.

2 Hareware preparation

Quantity
UNO R3 board 1
W5500 Ethernet shield 1
USB Cable 1
Sound detector sensor module 1
Jumper Wires several
Breadboard 1

3 Hardware connection

Connect the W5500 ethernet with UNO as following diagram:

UNO R3 board W5500
5V 5v
GND GND
D10 SCS
D11 MOSI
D12 MISO
D13 SCLK

Connect sound sensor with UNO as followed diagram:

UNO Board Gas detector sensor
DO D4
GND GND
5V VCC

4 Add new device

Log in Cayenne IOT platfro, a dd new…->Device/Widget

Choose Sensors->”Generic”

Click Digital Input,setting the datasheet as followed:

In your dashboad click”Step 1:Sketch File”, the sample sketch will be displayed, in this example,we creat a new sketch, please download from http://osoyoo.com/driver/soundsensor.txt

Copy and paste the sketch into Arduino IDE ,please remember to use your own authentication token. Upload to your Uno board, then click “Setp 2 :Add Sensor”, Once the Arduino connects to the Dashboard it should automatically update the Digital Sound Sensor widget with data.

When you speak or make noise intermittently near the sound sensor, in your dashboad, you can see the data will change between 0 and 1.

Leave a Reply

WordPress spam blocked by CleanTalk.
Bombax Theme designed by itx