Hello, I am a newbie to Arduino and am trying to get the sound sensor to work with an LED. The sound sensor led works but a separate LED stays on and does not blink with the sound sensor. I am not sure what the issue is and was wondering if anyone could help.
This is my Code
int soundSensor = A0;
int LED = 13;
void setup() {
pinMode (soundSensor, INPUT);
pinMode (LED, OUTPUT);
}
void loop() {
int statusSensor = digitalRead(soundSensor);
if (statusSensor == 1)
{
digitalWrite (LED, HIGH);
}
else
{
digitalWrite(LED, LOW);
}
}
the high sensitivity sound microphone sensor detection?
The red one with 4 pins. For Arduino UNO. Sorry I am new to this.
@strawberry277
Other post/duplicate DELETED
Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.
Continued cross posting could result in a time out from the forum.
Could you take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum in the future.
strawberry277:
The red one with 4 pins. For Arduino UNO. Sorry I am new to this.
Can we get a link to it, please?
Those have to be one of the nastiest microphones around for use with an Arduino.
Have at least three of them here and they only seem to pick up certain frequencies at quite close range.
The trimmer is used to set the "trigger" point for the DIGITAL output.
It is a multiturn so you may have to turn it down or up quite a way to find a suitable trigger point.
Bob.