Trying to build a sound level logger using Grove Loudness or Sound Sensors on a raspberry pi. I am using the with the Grove Base Hat, but of the three sensors I have, none seem to register any changes in noise level. Tried on three different analog channels. On each one, I get some random fluctuations, but no noticeable difference between a quiet room, and a loud stereo on.
Readings in a quiet room:
251
256
260
257
258
257
278
255
255
262
262
257
276
262
265
267
258
Reading in a noisy room:
244
250
256
259
260
263
260
302
296
253
279
270
263
280
251
265
256
267
Any idea what I could be doing wrong?
Hello,
sounds that your ADC is connecting to Nothing, are you sure you have connected the sensor to the right port?
(By the way, Sound sensor and loudness sensor are different products, I wonder to know which one you are using)
It does sound like I’m picking the wrong port…
I have loudness sensors plugged into A0 and A1, a noise sensor plugged into A2, and nothing plugged into A3. Running the same program on all 4 different ports gives similar values.
I am referencing them using 0 - 3 in the adc.read() method. Is that not correct?
Could it be a faulty ADC chip on the grove base hat?
ok, so swapping out the hat made a huge difference. I can now look at the graphs and see when we a noisy period, and when it was quiet, so that’s something.