Sound sensor and LED light for project

Hello!

I am a beginner at Arduino programming. For a school project, I simply need to make an LED light bulb light up by clapping my hands using a sound sensor. I have tried many times to figure it out and watched multiple tutorials but nothing is working. If anyone has any website links, circuits, codes or really anything that might be able to help, please let me know!

The sound sensor I am using is the OSEPP SOUND-01.

Thank you in advance.

code sound sensor.jpg

Hello, @fmits, welcome! What type of Arduino board are you using? May you tell, please? Then, I could make a schematic for you.

Also, this seems like a really great link:

Arduino LED clapper

PLEASE, make sure to turn off the circuit breaker for that room as well, you know, because it’s high AC voltage you’re talking about.

This probably has everything you need to get a good start:

https://www.osepp.com/electronic-modules/sensor-modules/78-sound-sensor-module

UptownKitten:
Hello, @fmits, welcome! What type of Arduino board are you using? May you tell, please? Then, I could make a schematic for you.

I am using Arduino Uno. Thank you for the link! Just to clarify, it is not a light bulb to light up a room, it is simply an LED that can be put in a breadboard.

fmits:
Just to clarify, it is not a light bulb to light up a room, it is simply an LED that can be put in a breadboard.

It does not really matter if it's a light bulb (controlled via relay) or a led. You will have to understand the ideas behind the 'examples' to be able to adjust to your needs.

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.

Can you post your code and can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Have you adjusted the sensitivity control?
Was there any data at the site where it was purchased?
Such as an example code?

From the manufacturer;
https://www.osepp.com/electronic-modules/sensor-modules/78-sound-sensor-module

Thanks.. Tom.. :slight_smile:

TomGeorge:
Can you post your code and can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

I just added a screenshot of the code I am starting off with. It does not seem to work. The sound sesnor I am using requires that I attach it to the A0 port, so does that mean I can't write digitalWrite in my code? The tutorials I've been watching all include the digitalWrite function.

Thanks.

Hi,
Please read the post at the start of any forum , entitled "How to use this Forum".
It will show you how to post code.
OPs code.


Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Have you got the LED connected the right way around?

See if the LED lights when you do this.
If you remove the sensor module and using a jumper wire;
Connect A0 to gnd.
then
Connect A0 to 5V.

Tom... :slight_smile: