Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | Buy from JP |
In the lesson, we’ll show how to use sound Sensor detect the sound intensity of the environment and use browser to monitor the data. 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 electric microphone which is highly sensitive to sound. Sound waves cause the thin film of the electric 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.
First, please insert the ESP8266 wifi Shield into your UNO board,
UNO Board | Sound sensor |
D9 | OUT |
GND | GND |
5V | VCC |
Step A)Install latest Arduino IDE (If you have Arduino IDE version after 1.1.16, please skip this step).Download Arduino IDE from https://www.arduino.cc/en/Main/Software?setlang=en, then install the software.
Step B) Connect the Arduino UNO board to computer via USB cable,
Step C) Open the Arduino IDE and choose corresponding board type and port type for you project.
Step D) Download the sketch file from https://osoyoo.com/driver/Esp8266_Arduino_IOT/lesson10/esp8266-lesson10.zip
unzip the file and double click the esp8266-lesson10.ino file, load the sketch into Arduino IDE, find following lines:
char ssid[] = "******"; // your network SSID (name) char pass[] = "******"; // your network password
please replace the ****** with your correct wifi SSID and password, otherwise your project can not connect to Internet.
Step E) After change above lines, load the sketch into Arduino IDE.
Open your Serial Monitor, you can see your router will assign an IP address to your Arduino as following:
In above example, 192.168.50.116 is the IP address of my Arduino.
Now use another computer or your cell phone’s browser to visit url : http://192.168.50.116
Above result shows no sound detected by sensor. If there is some sound signal, then result will show as:
Environment sound status: Noisy!
DownLoad Url osoyoo.com