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