Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ESP32 bluetooth speaker noise problem

Status
Not open for further replies.

csibi

Newbie level 4
Joined
Sep 11, 2020
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
62
Hello

I am trying to make a Bluetooth speaker. I use an esp32, that receives the media from Bluetooth and the microcontroller sends it to the internal DAC (8bit). The DAC pins are routed to the speaker. The sound has noise. What do I have to do to avoid the noise? I attached the connection, code, and sound sample.
 

Attachments

  • project schematic.png
    project schematic.png
    296.3 KB · Views: 1,671
  • Bluetooth_Speaker.zip
    808 bytes · Views: 226
  • Noise1.mp4
    434.9 KB
  • Noise2.mp4
    236.8 KB

Hi,

I don't know your speaker specification....but are you sure the ESP is able to drive the speaker directly?
Usually one needs an amplifier to drive a speaker.

Even for high ohmic speakers I expect a DC blocking capacitor.

Is this your own idea/design? If not give a link to the document you used.

Klaus
 

Hi,

Some issues:
* the ESP is not made to drive 8 ohm loads. The current will be too high and the ESP may be killed sooner or later
* the ESP not made to drive inductive loads. The ESP may be killed sooner or later.
* the ESP can't output negative - true AC - signals, there will be DC component of about VCC/2 (without load). Audio signals are not made for DC, in best case an amplifier input will have a DC blocking input. A direvtly driven low power speaker (or erarphone) may be killed. You high power speakers will cause distortion.
* an 8 bit DAC is not suitable for some expectable audio quality. Even 1980s standard uses 16 bits ... which means 1/256 resolution.
Less resolution means higher quatisation noise.
* audio DACs need an analog reconstruction filter

Klaus
 

    csibi

    Points: 2
    Helpful Answer Positive Rating
There is no noise but instead there is severe distortion.
If the system has a volume control then turn down the level until there is no distortion.
 
Thank you for helping me out.
I think the esp32's DAC only has positive voltage. I found this: https://www.adafruit.com/product/3678 (In my opinion with that I will get a negative voltage too.)
Is it a good idea?
 

Hi,

It's an audio DAC ...that's what you want.
Add an audio amplifier and it's a perfect solution.

Klaus
 

The Adafruit schematic shows that its outputs have coupling capacitors then its output signals are AC that swing both positive and negative.
Maybe you damaged your esp32 by overloading its outputs with speakers.
Most amplifiers work fine with an AC audio signal (plus and minus) as their input.
 

I upgraded the setup and attached it. The problem is the following one: If I cover the Adafruit UDA 1334 with my hand it sounds great and has no noise. Without my hand, it is still noisy. What can be the problem?
schematic.png
 

Attachments

  • BluetoothSpeaker.zip
    6.7 KB · Views: 155

Hi,

No (unused) input pin must be left floating. So hopefully all the unconnected pins are pulled to a valid logic levels.

As far as I can see there is no connection between GND and AGND.
Try to do this. Maybe try a 100R at first, or simply short circuit them...

But ground signals on analog audio systems are critical. One good approach should be star wiring.

Klaus
 

Thank you for helping me out, it's fully working.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top