Lesson 20 - Sound Sensor Module KY-038

preview_player
Показать описание
KY-038 (KY-037) Sound Sensor Module. Demonstrate the Elegoo sketch provided in the tutorial covering the Sound Sensor Module and expand the sketch to include an LED and OLED meter. A beginner's guide to the Most Complete Starter Kit by Elegoo.

Hello everyone, I'm Rick the Tech Enthusiast here with the next Elegoo Lesson. This is the next lesson on my Arduino UNO Series covering the Most Complete Starter Kit by Elegoo. I try to follow the included tutorial and will point out any changes or corrections as I find them.

As mentioned before, I purchased this Elegoo starter kit and Elegoo isn't sponsoring me. I just thought it would be fun to do a video of each Lesson as I was learning the Arduino environment.

We’ll need a few things from your Elegoo Arduino UNO kit. I’ll list the items below. In this lesson we’re going to check out the Sound Sensor Module, aka, KY-038 (perhaps wrongly identified as KY-037). I’ll step through the Elegoo provided tutorial, briefly explain the code, and build and configure a simple circuit that is provided in the tutorial to demonstrate the functionality. Then will expand the sketch to include an LED an OLED voltage meter. I hope you enjoy it.

Parts you’ll need for the tutorial:
* Elegoo Arduino UNO R3 board
* KY-038 Analog and Digital output Sound Sensor Module (KY-037 typically only has a Digital output)
* Four female-to-male jumper wires

The next lesson will be Lesson 21: RC522 RFID Module

Links:

Various Parts can be found: (Note these are Amazon Associates links)
(Full Disclosure: I get a little credit/$ if you purchase a linked item.)

Software:

Affiliate Links that Help my channel:

♫♪ Credits ♪♫

This is another video for my Arduino tutorial series. If you like the series, be sure to rate and subscribe.

Thanks for watching
Рекомендации по теме
Комментарии
Автор

Thanks for clearing up my mess. I thought it was a sensor fault until I found this amazing video :)

hashanshalitha
Автор

this video made things way better, i am not sure why the documentation isn't up to par. It was really annoying trying to find out how to set this up before i got to your video. GREAT JOB!

mattlovestechyt
Автор

Super clear explanation 👌🏽
Well done bro 👍🏽

thisismehrab
Автор

I can't understand how this device can be useful. The analog out does not change if you speak or if you clap your hands. You can get significative variations only blowing in the mic, tapping on the mic or with anything else that applies a "physical pressure" to the mic itself. Probably it's because the analog out is a not-amplificated signal. Anyone else with the same experience ?

alessandrozanino
Автор

Unfortunately, my example sketch is heavy on the OLED, string manipulation, and kinda light on the KY-038. It tracks the maximum and minimum values and shows a bar graph. I revised the sketch after making the video. The revised version is available on GitHub (see link in show notes).

rickmorenojr
Автор

this sensor suks almost no changes on analog input even when starting from almost dead silence to a crazy LOUD clapping (btw removed even the delay and dumped all the values to a file still no significant change to know when there is some sound...)

alessandroblue
Автор

Really appreciate the callibration part and pointing out the correct internal schematics. This module was driving me crazy and I thought it was just a useless piece of junk...

andresmata
Автор

@9:40, effective code flow will read sensor value every (2xSensor value) millisec, which effectively should be every 1 sec (based on the output 516 @10:31). The noise that you are producing is short lived, less than a sec. Is this the reason, it is not able to read the value?

mrinnalsahani
Автор

How can I use this in a system that deters barking dogs? I currently have a system I wired together that runs high pitch piezo tweeter speakers on a remote but that doesn't work when I'm not home to activate it. The over the counter bark deterrents are useless. I need it to stay on for 30 seconds when it detects noise but no shut off when it detects the second bark. Any ideas?

jefferyhammond
Автор

I have researched this for quite sometime now, used a couple of codes and setups online as well as this video but can't seem to get the desired result. So what's happening is when the code is uploaded as well as the exact same setup of the sensor writing to the Arduino LED on pin 13, the sensor doesn't output anything despite my earnest attempts of clapping. Following one of the tutorials, it suggested to tweak the potentiometer until the 'LED2' starts flickering. So I have it set on that, and notice that when I clap loudly the LED2 on the sensor flickers on however the Arduino LED (or an external LED with a resistor attached to its anode to ground on a breadboard does not). The Arduino LED / external LED however very rarely responds to my claps whereas LED2 seems to always be responsive although when blowing over the microphone the load LEDs turn on. I can assure you my wiring is the same as a basic setup and heres a pseudo list just in case:

Sensor's D0 ----> Arduino Pin 3
Sensor's A0 ----> Arduino Pin A0
Sensor's V+ ----> Arduino 5V
Sensor's GND ----> Arduino GND

Arduino Pin 13 (onboard LED)
(Arduino Pin 7 ----> external LED)


Any help will be appreciated thanks!

ThCuriousGeorgE
Автор

Why the analog output has a same value even our voice is loud and low?

imamarifann
Автор

Good day Sir 👋

How may I set my 4 pcs of 4 pin rgb led module to my 4 pcs of speakers separately 1st 4pin rgb led module to 1st speaker, 2nd 4pin rgb led module to 2nd speaker, 3rd 4pin rgb led module to 3rd speaker and 4th 4pin rgb led module to 4th speaker with super slow changing colors such as 10 seconds delay transition colors of fading rgb and switch automatically to music reactive mode when there is playing music or songs on my videoke and turn back automatically to super slow changing colors of red green blue when there's no music playing or in standby mode?


4 pcs of 4 pin rgb led module to my 4 pcs of speakers separately:

1st 4pin rgb led module to 1st speaker,

2nd 4pin rgb led module to 2nd speaker,

3rd 4pin rgb led module to 3rd speaker and

4th 4pin rgb led module to 4th speaker

michaeldeloso
Автор

Used your code to try it...and just doesn't work
Circuit is very simple i'm totally sure I've done it well
So...just don't understand why both leds are turned on all the time

justzcross
Автор

Hallo sir.I am making this experiment.I have connected my LED to pin no.4 of Arduino and the output of sensor to A0.But what is happening with me is that when I am making sound, the LED of sound sensor is blinking but the LED of breadboard is not blinking.Sir what can be the problem? I have connected the anode of the LED to a wire and that wire is connected to D4 pin and the cathode is connected to ground via a resistor.
Sir please solve my problem.

nirnimeshkumarbasak
Автор

all i want to do is get my sound system to move a servo but i cant find anything, anyone know how to accomplish?

kennethkindrich
Автор

... I couldn't hear what you were saying _after_ you tidied up the code, until you indented line 18 .. 🤤

lazertroll
Автор

Hi! I have a question!
I dont understand why the volts, minvolts and maxvolts are calculated like ("value"*5.0)/1024.
If you explain it to me I would be grateful. Thank you

azulgiraud
Автор

Our ky-038 don't light the L2 anymore were very dead 😭 😭 is there anything we can do ???

angelitomasalta
Автор

And all of that would work with Any Input right?

ironclay
Автор

Hello sir, i want to use three pins of KY-038(DO, G and +), just like KY037. Will this work with only three pins? Can you please tell me which three pins are same in KY-038 module as compare to KY-037. Actually I don’t have much knowledge about arduino and electronics, so I don’t know about this thing.

ankur