So I'm effectively building my own bluetooth speaker. I have an RN52 bluetooth module mounted to a PCB I made.
https://www.microchip.com/wwwproducts/en/RN52
I then output the audio from the bluetooth module to an audio amp
https://www.digikey.com/en/products/detail/pui-audio-inc/AMP2X15/8567350
I've configured the amp to run in mono differential mode. I'm sending an audio + and - signal to the amp. Not sure if those are the correct terms but I hope you can understand what I mean. I shorted the out1+ and out1- together as instructed (same with out2)
Now, I can get audio to the speaker so the system is working. However there is a nasty high frequency whine when I do so. 12V is going to the PCB and then it heads straight to the amp from there. On the PCB itself is a linear regulator, that in all honesty is stressed out and probably overloaded.
Interestingly when I power the audio amp with my power supply and then power the board itself with 5V USB through the Arduino on the board the high frequency noise goes away. However I pick up what sounds to me like a ground loop, a 60Hz drone. Which makes sense because they don't share a ground. When I'm powering the amp through the PCB they do share a ground.
If it will help I can record the high frequency noise.
Here's the schematic for what it's worth. I'll attach the files as well.
https://drive.google.com/file/d/1FHvSMnOOzbkGnSzdkvgecrVPBWnQCM2W/view?usp=sharing
Any help is greatly appreciated!
https://www.microchip.com/wwwproducts/en/RN52
I then output the audio from the bluetooth module to an audio amp
https://www.digikey.com/en/products/detail/pui-audio-inc/AMP2X15/8567350
I've configured the amp to run in mono differential mode. I'm sending an audio + and - signal to the amp. Not sure if those are the correct terms but I hope you can understand what I mean. I shorted the out1+ and out1- together as instructed (same with out2)
Now, I can get audio to the speaker so the system is working. However there is a nasty high frequency whine when I do so. 12V is going to the PCB and then it heads straight to the amp from there. On the PCB itself is a linear regulator, that in all honesty is stressed out and probably overloaded.
Interestingly when I power the audio amp with my power supply and then power the board itself with 5V USB through the Arduino on the board the high frequency noise goes away. However I pick up what sounds to me like a ground loop, a 60Hz drone. Which makes sense because they don't share a ground. When I'm powering the amp through the PCB they do share a ground.
If it will help I can record the high frequency noise.
Here's the schematic for what it's worth. I'll attach the files as well.
https://drive.google.com/file/d/1FHvSMnOOzbkGnSzdkvgecrVPBWnQCM2W/view?usp=sharing
Any help is greatly appreciated!