5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



EASY PLUG Super Starter Kit For Arduino Project 15: How to use Sound Sensor

Posted by Fiona Su on

Overview
When we walk through the corridor to make a sound, the corridor light will automatically light up, after that, quiet down, the lights are off. Why? Actually inside the lighting circuit, it has installed a sound sensor. When detects the sound, light is turned on, or else LED off.
In this lesson, we will connect a sound sensor to EASY Plug control board, detecting the outside sound and printing out the analog value.
Component Required

  • EASY plug control board*1
  • EASY plug Analog Sound Sensor *1
  • EASY plug 1602 LCD Module *1
  • RJ11 cable*1
  • USB cable*1

Component Introduction


It 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.

  • Sensor type: Analog
  • Supply Voltage: 3.3V to 5V
  • Operating current:<10mA
  • Output signal:analog signal

Connect It Up
Connect the EASY Plug analog sound sensor to control board using an RJ11 cable.

thumb

Upload the Code
Below is an example code.

thumb
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 is showed on the monitor.

thumb

thumb

Extension Experiment
Adding LCD Display
Connect It Up
Connect the EASY Plug sound sensor and LCD module to control board using RJ11 cables.

thumb
Upload the Code
Below is an example code.

thumb

What You Should See

Upload the code successfully, when the sensor detects the outside sound, the LCD screen will show the sound volume, and its unit is decibel (dB).

thumb

Little Knowledge:

  • Remember you can adjust the contrast by rotating a blue potentiometer on the LCD back if you can’t make out the words clearly.

thumb

All Tutorial

 Buy here>>EASY PLUG Super Starter Kit For Arduino STEM EDU

0 comments

Leave a comment

Please note, comments must be approved before they are published