nikivanov / watney

Watney is a low-cost 3D-printable FPV rover
GNU General Public License v3.0
384 stars 39 forks source link

Watney Microphone Loud Static, No sound #32

Closed rtaylo closed 1 year ago

rtaylo commented 2 years ago

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?

nikivanov commented 2 years ago

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

rtaylo commented 2 years ago

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: @.***>

nikivanov commented 2 years ago

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.

rtaylo commented 2 years ago

Good thinking, I will do that and report back

nurglexp commented 1 year ago

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

Do you have a link to a known working microphone?

rtaylo commented 1 year ago

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: @.***>

nikivanov commented 1 year ago

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!

rtaylo commented 1 year ago

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: @.***>

nikivanov commented 1 year ago

@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.

rtaylo commented 1 year ago

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 commented 1 year ago

@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

nikivanov commented 1 year ago

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

rtaylo commented 1 year ago

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

nikivanov commented 1 year ago

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: @.***>

nurglexp commented 1 year ago

@rtaylo any luck with the replacement microphone?

nikivanov commented 1 year ago

I'm also very curious about this new version!

rtaylo commented 1 year ago

@nurglexp the new microphone fixed the issue!

nurglexp commented 1 year ago

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

nikivanov commented 1 year ago

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: @.***>