Noise on speaker
-
Yes, I hear white noise (I have to put my ear to be heard) + and second one, annoying, audible from a distance.
I have too M5Stack limited edition -
I also noticed a lot of noise on the speaker, and I can tell that a large part of it comes from the SPI signal going to the display, from the PWM on the display backlight, from the signal on the UART from uploading, and pretty much from every single thing the module does. The reason for this is probably that the audio lines are not designed and shielded properly, and all sort of electrical activity in the module affects the audio signal.
I noticed that moving the speaker leads under the PCB affects the intensity of the noise in different situations (probably depends on which part it is closer to).
This is exceptionally poor design, I'm afraid.
-
@deshipu This is for those who can live without audio and want to safe on power consumption along the way.
Note that the audio amplifier can be disabled by placing a solder bridge over the two correspondingly marked PCB pads next to the ESP32.
-
@on4aa Hi Serge,
I haven't had any significant ongoing problem with this....
Regardless, just to clarify for those playing along at home, I take it this is where you suggest the solder bridge - (Edit: photo deleted as it ultimately did not aid the discussion and added unnecessary additional screen scrolling - JimiT.)
-
No, I am talking rather about this optional solder bridge marked with AMP on the PCB:
-
With respect to the noise, I hear the following:
- Interference or capacitor noise on every instance when something on the screen is being drawn,
- A very brief high-pitched squeak when the device is connected through USB and the cable temporarily makes a bad contact when being manipulated.
There is little that can be done about the first source apart from redesigning the PCB and perhaps replacing certain capacitors with more expensive tantalum variants.
As for the second source, I am wondering if we are dealing here with an undocumented audible brown out (i.e. undervoltage) warning. I am using the optional 850mAh battery and I charged my device well before use. By consequence, I do not hear it that often, only when manipulating the USB cable when connected.
However, those using the bottom plate battery of a mere 150mAh battery, perhaps without properly charging it, might here the high tone more often or even continuously.
I am hoping more users and certainly the designers will chime in here (pun intended) to clarify this situation.
-
Here is how the audio amplifier can be disabled:
-
Hi,
If someone still have the issue these two lines should solve the problem
ledcDetachPin(SPEAKER_PIN);
pinMode(SPEAKER_PIN, INPUT); -
The solution is much easyer:
dacWrite (25,0);
-
@calin Thanks!
Precision: dacWrite (25,0); must be in the void loop