I have used the code below which is for a single sound sensor. I need help in getting a code for connecting 2 sound sensors. Also is it possible to get two graphs at the same time? And is there a way to record the obtained graph?
Read the forum guidelines to see how to properly post code.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Yes. If you are new to programming or coding whatever you are calling it, you will soon see that recognizing patterns and changing them to do more or new stuff is an essential skill.
So take a look at how micPin is used, and fake your way to having all the same things but talking about a newly introduced micPin2.
Thank you so much. Much appreciated.. The code worked.
Is there a way to get two graphs? So that it's easier to detect the sound obtained in each sensor?
The image uploaded below is what I get in the serial plotter.
You can print multiple values to the serial potter and it will draw them in different colors. If the data is well behaviour, the auto scaling isn’t a problem. I sometimes just write constants at the extremes to keep it from juggling the scale, like lower than the minimum and higher than the max you expect to see.
You can screen grab, obvsly, or do a run and capture the data and use it i a program that produces graphs. I use Open Office spreadsheet, which isn’t Excel and is cheaper and isn’t Microsoft, that’s just me. Cheap and bitter.