watney icon indicating copy to clipboard operation
watney copied to clipboard

Watney Microphone Loud Static, No sound

Open rtaylo opened this issue 3 years ago • 6 comments

I ordered a replacement mic module thinking that was the issue. But even after swapping the micrphone and double checking my wiring all I'm hearing on the Watney web interface is loud static. Any suggestions?

rtaylo avatar Aug 01 '22 21:08 rtaylo

Hey @rtaylo ! I've seen this happen a few times while I was developing Watney. There are a few suspects:

  • Are you using the recommended microphone - the one matching the picture from BOM? Or are you using SPH0645? I've had nothing but issues with the latter, which is why I switched to the current one.
  • If you are using the mic from BOM, make sure the wiring is correct when it comes to L/R selection - the microphone LR pin should be connected to a 3.3V pin on Raspberry pi, which forces it to use the left channel. At the same time, the amp's SD pin should be connected according to the diagram - this will force the amp to receive on the right channel. If either get crossed up, you'll get static
  • One of my microphone boards simply did not produce anything but static. I chucked it, since doing a drop in replacement with another board solved the issue
  • If nothing else works, do a test in isolation - install plain raspbian on your raspberry pi, hook up just the microphone and try recording
  • Another thing I observed - if the wiring for LR for amp / mic is wrong, hooking it up the right way does not clear the issue immediately. It seems that you need to power everything down and let it sit for a couple of hours. I have no idea why that happens

nikivanov avatar Aug 03 '22 16:08 nikivanov

Here is the microphone I purchased. I printed out the wiring diagram and followed it closely. Does this seem like the right microphone?

https://m.aliexpress.com/item/2251832824703750.html?spm=a2g0n.order_detail.0.0.32cef19cur1lzU

On Wed, Aug 3, 2022, 12:17 PM Nik Ivanov @.***> wrote:

Hey @rtaylo https://github.com/rtaylo ! I've seen this happen a few times while I was developing Watney. There are a few suspects:

  • Are you using the recommended microphone - the one matching the picture from BOM? Or are you using SPH0645? I've had nothing but issues with the latter, which is why I switched to the current one.
  • If you are using the mic from BOM, make sure the wiring is correct when it comes to L/R selection - the microphone LR pin should be connected to a 3.3V pin on Raspberry pi, which forces it to use the left channel. At the same time, the amp's SD pin should be connected according to the diagram https://github.com/nikivanov/watney/blob/master/images/wiring/audio%20wiring.png
  • this will force the amp to receive on the right channel. If either get crossed up, you'll get static
  • One of my microphone boards simply did not produce anything but static. I chucked it, since doing a drop in replacement with another board solved the issue
  • If nothing else works, do a test in isolation - install plain raspbian on your raspberry pi, hook up just the microphone and try recording

— Reply to this email directly, view it on GitHub https://github.com/nikivanov/watney/issues/32#issuecomment-1204178406, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFAV6K4ZHXJGNBCMN75QRQTVXKLSFANCNFSM55I4AQNA . You are receiving this because you were mentioned.Message ID: @.***>

rtaylo avatar Aug 04 '22 01:08 rtaylo

That looks to be the right microphone. I suggest you install vanilla raspbian on your RPI and make sure the mic works OK in that environment.

nikivanov avatar Aug 04 '22 16:08 nikivanov

Good thinking, I will do that and report back

rtaylo avatar Aug 09 '22 13:08 rtaylo

I have exact same issue with https://www.aliexpress.com/item/4001244371729.html

Do you have a link to a known working microphone?

nurglexp avatar Oct 15 '22 15:10 nurglexp

I still haven't been able to get this working

On Sat, Oct 15, 2022, 10:44 AM nurglexp @.***> wrote:

I have exact same issue with https://www.aliexpress.com/item/4001244371729.html

Do you have a link to a known working microphone?

— Reply to this email directly, view it on GitHub https://github.com/nikivanov/watney/issues/32#issuecomment-1279769961, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFAV6K5DMER6ZCKMITZVMTTWDLGNHANCNFSM55I4AQNA . You are receiving this because you were mentioned.Message ID: @.***>

rtaylo avatar Oct 15 '22 16:10 rtaylo

Hi @nurglexp and @rtaylo. @nurglexp this is the correct microphone. Generally, when I buy parts from aliexpress I buy a bunch, 3-5 depending on the price. Usually they are cheap enough that I'd rather pay a bit more money than order one, wait a month, get a part that's potentially broken and then have to order again. I ordered 5 of these microphones and had this exact issue with one of them. To be fair, I had this same issue but more intermittent with the Adafruit I2S microphone that I used in the previous version of Watney. However, with these mics my experience has been that they either always work or never.

My advice is to buy 1-2 more of the microphones, preferably from a different supplier, and see if you can resolve the issue by simply replacing the part.

Another thing you can try is to disconnect everything but the microphone from the raspberry pi, leave it unpowered for a few hours (more on that later), start it up, SSH into watney and run this script It will record from the mic into test.ogg file. Transfer it to your PC and see if it's noise, silence, or actual sound recording.

As to why I suggested leaving RPI unpowered above: when I was trying to get the Adafruit I2S mic to work, I noticed that when it intermittently gave me static, I could turn Watney off and wait a few hours before turning it back on, when it would start working again. Curiously, simply rebooting or powering off Watney for a brief period of time did not fix the issue.

Let me know how that goes for you!

nikivanov avatar Oct 20 '22 18:10 nikivanov

Will do, thanks Nik! I've actually got a new baby and I'm about to start heading back into the office. I'll be using Watney to spend time with the wife and baby while I'm at work lol

On Thu, Oct 20, 2022, 1:59 PM Nik Ivanov @.***> wrote:

Hi @nurglexp https://github.com/nurglexp and @rtaylo https://github.com/rtaylo. @nurglexp https://github.com/nurglexp this is the correct microphone. Generally, when I buy parts from aliexpress I buy a bunch, 3-5 depending on the price. Usually they are cheap enough that I'd rather pay a bit more money than order one, wait a month, get a part that's potentially broken and then have to order again. I ordered 5 of these microphones and had this exact issue with one of them. To be fair, I had this same issue but more intermittent with the Adafruit I2S microphone that I used in the previous version of Watney. However, with these mics my experience has been that they either always work or never.

My advice is to buy 1-2 more of the microphones, preferably from a different supplier, and see if you can resolve the issue by simply replacing the part.

Another thing you can try is to disconnect everything but the microphone from the raspberry pi, leave it unpowered for a few hours (more on that later), start it up, SSH into watney and run this script https://github.com/nikivanov/watney/blob/master/testrecord.sh It will record from the mic into test.ogg file. Transfer it to your PC and see if it's noise, silence, or actual sound recording.

Let me know how that goes for you!

— Reply to this email directly, view it on GitHub https://github.com/nikivanov/watney/issues/32#issuecomment-1286003985, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFAV6K5EM4REBMKV5WBEML3WEGJBBANCNFSM55I4AQNA . You are receiving this because you were mentioned.Message ID: @.***>

rtaylo avatar Oct 20 '22 23:10 rtaylo

@rtaylo congrats! Coincidentally, I just got a brand new baby as well! I'm hoping to get some time to work on a new project of mine during my paternity leave (stay tuned), though so far it's been pretty baby-centric, as expected.

nikivanov avatar Oct 23 '22 19:10 nikivanov

Congratulations to you as well!! Our little one just hit one month old yesterday. Sleep is getting pretty hectic lol. Looking forward to see what new projects you come up with!

On Sun, Oct 23, 2022, 2:13 PM Nik Ivanov @.***> wrote:

@rtaylo https://github.com/rtaylo congrats! Coincidentally, I just got a brand new baby as well! I'm hoping to get some time to work on a new project of mine during my paternity leave (stay tuned), though so far it's been pretty baby-centric, as expected.

— Reply to this email directly, view it on GitHub https://github.com/nikivanov/watney/issues/32#issuecomment-1288179116, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFAV6KZYQLKNJAOI36NFMTLWEWE7BANCNFSM55I4AQNA . You are receiving this because you were mentioned.Message ID: @.***>

rtaylo avatar Oct 24 '22 07:10 rtaylo

@nurglexp I was looking on Ali Express and someone seems to be selling a "new" version of the Sipeed microphone. https://bit.ly/3FfLEH6 Ordered a few to test out, I'll report back

rtaylo avatar Oct 26 '22 14:10 rtaylo

@rtaylo The link appears to be broken - could you repost it, or post a screenshot of the new item?

nikivanov avatar Oct 26 '22 16:10 nikivanov

Whoops sorry about that. Try this: https://www.aliexpress.us/item/3256804659411651.html?spm=a2g0o.productlist.0.0.63b812593zLp7P&algo_pvid=233c5f61-5917-451c-ae98-dfc271e8fd38&algo_exp_id=233c5f61-5917-451c-ae98-dfc271e8fd38-1&pdp_ext_f=%7B%22sku_id%22%3A%2212000030719724355%22%7D&pdp_npi=2%40dis%21USD%212.78%211.81%21%21%21%21%21%40210318b916668204406674262e4389%2112000030719724355%21sea&curPageLogUid=QW33FW1Rzlte

rtaylo avatar Oct 26 '22 21:10 rtaylo

That looks like a drop in replacement. Please let me know how it goes and I can update the BOM if all goes well. Thanks!

On Wed, Oct 26, 2022, 5:41 PM rtaylo @.***> wrote:

Whoops sorry about that. Try this:

https://www.aliexpress.us/item/3256804659411651.html?spm=a2g0o.productlist.0.0.63b812593zLp7P&algo_pvid=233c5f61-5917-451c-ae98-dfc271e8fd38&algo_exp_id=233c5f61-5917-451c-ae98-dfc271e8fd38-1&pdp_ext_f=%7B%22sku_id%22%3A%2212000030719724355%22%7D&pdp_npi=2%40dis%21USD%212.78%211.81%21%21%21%21%21%40210318b916668204406674262e4389%2112000030719724355%21sea&curPageLogUid=QW33FW1Rzlte

— Reply to this email directly, view it on GitHub https://github.com/nikivanov/watney/issues/32#issuecomment-1292684042, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ45SHWXXXEWJPDWM64KP3WFGQP3ANCNFSM55I4AQNA . You are receiving this because you commented.Message ID: @.***>

nikivanov avatar Oct 26 '22 22:10 nikivanov

@rtaylo any luck with the replacement microphone?

nurglexp avatar Dec 03 '22 09:12 nurglexp

I'm also very curious about this new version!

nikivanov avatar Dec 14 '22 19:12 nikivanov

@nurglexp the new microphone fixed the issue!

rtaylo avatar Feb 04 '23 15:02 rtaylo

Amazing, thanks for the confirmation. Ordered the replacement microphone 👯

nurglexp avatar Feb 04 '23 16:02 nurglexp

I'd recommend ordering a couple, especially if ordering from AliExpress - quality control seems to be pretty poor with them. Glad this worked out!

On Sat, Feb 4, 2023, 11:07 AM nurglexp @.***> wrote:

Amazing, thanks for the confirmation. Ordered the replacement microphone 👯

— Reply to this email directly, view it on GitHub https://github.com/nikivanov/watney/issues/32#issuecomment-1416790006, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ45SB7MEMKYC3HHRQL3OTWVZ5DBANCNFSM55I4AQNA . You are receiving this because you commented.Message ID: @.***>

nikivanov avatar Feb 04 '23 16:02 nikivanov