So, I bought sound sensor, and decided to do something with it
i tried to make a serial read of the analog input, "loudness" lets say
and it started off at around 350, and then steadily dropped to 330 and remained there ignoring all sound
so after it, i assumed i did something wrong, so i decided to find the simplest possible project, (picture below) and followed it to the step
i was met with odd behaviour in question
LED would blink once and then turn off
moment i opened serial monitor, it would blink twice and then remain on
serial monitor was constantly at "1", as if there was constantly a sound
i tried to change gain of the sensor, but it didn't change the situation
does anyone have any idea what could possibly go wrong?
Lell:
So, I bought sound sensor, and decided to do something with it
i tried to make a serial read of the analog input, "loudness" lets say
and it started off at around 350, and then steadily dropped to 330 and remained there ignoring all sound
so after it, i assumed i did something wrong, so i decided to find the simplest possible project, (picture below) and followed it to the step
i was met with odd behaviour in question
LED would blink once and then turn off
moment i opened serial monitor, it would blink twice and then remain on
serial monitor was constantly at "1", as if there was constantly a sound
i tried to change gain of the sensor, but it didn't change the situation
does anyone have any idea what could possibly go wrong?
I have an idea that you failed to tell us what sensor you have and if it is part of a printed circuit board and what the gain control does and what pins you have the sensor connected to and what software you are using and how you are powering the setup.
Paul_KD7HB:
I have an idea that you failed to tell us what sensor you have and if it is part of a printed circuit board and what the gain control does and what pins you have the sensor connected to and what software you are using and how you are powering the setup.
Paul
and i believe you haven't even bothered to see the attached screenshot which displays the entire code with comments in IDE and also shows entire circuit and how is it connected, while also showing which sensor was used and gain is self explanatory for the type of sensor i used
and I believe you haven't even bothered to see the attached screenshot which displays the entire code
I have not downloaded or looked at your screenshot of an image of code.
Please read 'how to use this forum - please read', (there's a clue in the title) then post your code as per the instructions along with a schematic and information about the parts you are using.
I don't know whether I can help or not, but you are more likely to get helpful, friendly advice if you follow the forum instructions.
Lell:
and i believe you haven't even bothered to see the attached screenshot which displays the entire code with comments in IDE and also shows entire circuit and how is it connected, while also showing which sensor was used and gain is self explanatory for the type of sensor i used
You obviously didn't read the "How to post" sticky of the forum.
You seem to have connected the digital output of the module to the RX pin of the Mega.
Can't do that, because pin 0 (RX) and 1(TX) are already used by the USB<>Serial chip.
The pot on the board is to set a sound threshold (not gain).
You likely have to experiment a bit with that to find the sond/no sound point setting.
Leo..
You seem to have connected the digital output of the module to the RX pin of the Mega.
Can't do that, because pin 0 (RX) and 1(TX) are already used by the USB<>Serial chip.
The pot on the board is to set a sound threshold (not gain).
You likely have to experiment a bit with that to find the sond/no sound point setting.
Leo..
Thank you very much, i will attempt it as soon as i can, and come back with feedback