Sound/Loudness sensors not seeming to work

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, violet, jeremy882, crail.lyu969

Post Reply
simon859
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Sun Apr 14, 2019 7:31 am

Sound/Loudness sensors not seeming to work

Post by simon859 » Fri Apr 19, 2019 10:27 am

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?

User avatar
bestlux
Kindergarten
Kindergarten
Posts: 85
Joined: Wed Jan 30, 2019 11:51 am

Re: Sound/Loudness sensors not seeming to work

Post by bestlux » Fri Apr 19, 2019 5:26 pm

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)

simon859
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Sun Apr 14, 2019 7:31 am

Re: Sound/Loudness sensors not seeming to work

Post by simon859 » Fri Apr 19, 2019 9:18 pm

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?

simon859
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Sun Apr 14, 2019 7:31 am

Re: Sound/Loudness sensors not seeming to work

Post by simon859 » Thu Apr 25, 2019 7:24 pm

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.

Post Reply