Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | ここでご購入を! |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
In the lesson, we’ll show how to use sound Sensor detect the sound intensity of the environment and use APP 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 mianboard,
OSOYOO Basic Board | Sound sensor |
D9 | OUT |
GND | GND |
5V | VCC |
Step A) Install latest IDE from https://www.arduino.cc/en/Main/Software?setlang=en. If you have IDE version after 1.1.16, please skip this step)..
Step B) Connect the mainboard to computer via USB cable,
Step C) Open the IDE and choose corresponding board type and port type for you project.
Step D) Download the sketch file from https://osoyoo.com/driver/wifi-iot/lesson10/wifi-lesson10.zip
unzip the file and double click the esp8266-lesson10.ino file, load the sketch into 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 IDE.
Step A) Open your Serial Monitor, you can see your router will assign an IP address to your IDE as following:
Step B) Open your OSOYOO IOT UDP Robot APP , If you haven’t installed this APP, please read APP installation section in Lesson 2
Step C)Make sure your Cell phone is in the same Local Network of Arduino. Open the APP, click Settings, enter your Arduino IP address from Step F and Port to 8888 in settings:
Now press any Key of your APP, your Arduino will start to send sound status data to APP. When noisy is detected, APP will show Noisy!, otherwise APP will show Quiet! as following picture:
DownLoad Url osoyoo.com