Why am I getting noise on the LM48100Q audio amplifier, even from a flashing LED ?

drjohsmith

Joined Dec 13, 2021
1,680
Finally got round to measuring the FFT of the STM32 DAC output, but it does not mean much to me...

View attachment 355550

The measurement was taken at the STM32 DAC output pin and a local ground....

View attachment 355551
Good probing there , well done
You have two spikes there and lots of noise .
Sort out the spike first.
Find out what frequency they are at , that should give u clue as to source that needs to be filtered...
Zoom in on the noise , see what frequency that has ,
But I must admit , I've seen much worse than that so I'm lead to believe it's your ground between the proc and the amp.
What ground is your probe on there ?
 

Thread Starter

freeflyer

Joined Sep 9, 2016
169
Good probing there , well done
You have two spikes there and lots of noise .
Sort out the spike first.
Find out what frequency they are at , that should give u clue as to source that needs to be filtered...
Zoom in on the noise , see what frequency that has ,
But I must admit , I've seen much worse than that so I'm lead to believe it's your ground between the proc and the amp.
What ground is your probe on there ?
Thanks drjohsmith,

Where are the two spikes, have I identified them correctly on the image below ?

1757336528846.png

The center is 10.6kHz and the scaling is 10kHz per division.

So spike 1 would be around 32kHz and spike 2 would be around 67kHz, but neither of these frequencies are in the audible range.

The ground point was where I linked analogue ground (GNDA) to the main ground (GND)

1757336658617.png
 

drjohsmith

Joined Dec 13, 2021
1,680
Thanks drjohsmith,

Where are the two spikes, have I identified them correctly on the image below ?

View attachment 355553

The center is 10.6kHz and the scaling is 10kHz per division.

So spike 1 would be around 32kHz and spike 2 would be around 67kHz, but neither of these frequencies are in the audible range.

The ground point was where I linked analogue ground (GNDA) to the main ground (GND)

View attachment 355554
so a few things

fft , spectrums start at dc , and the large spike on the left is just that the dc power.
as you see with the fft, as you change sampling ranges, the max frequency changes ,,
would be interesting if you can look in the dc to say 10 khz range,

also try with the link removed , so yiu just looking at the output, and the analog ground ,

what your doing is contrasting and comparing

its only the 2 positive spikes, 1 and 2,
32 and 64 khz look like switch mode power supply noise or the dac sample clock feedthrough, and your wrong , all frequencies fold / mix with other frequencies,,
the action of the output filter on the dac is to attenuate any frequency above your frequency of interest
what frequency are you running the dac clock at?

what signal were you outputting when you made the measurement ?
for interest you might want to output white noise , a prbs may be, you should see how your output filter is working then,,

to get estimate of the snr of the dac output, take fft measurement with no output , and that's your noise floor, then output either a full scale sine mid way of your expected range , or white noise and measure the fft amplitude , the db difference is your dynamic range, this needs to be at least 60 db to avoid hiss .
 

Thread Starter

freeflyer

Joined Sep 9, 2016
169
so a few things

fft , spectrums start at dc , and the large spike on the left is just that the dc power.
as you see with the fft, as you change sampling ranges, the max frequency changes ,,
would be interesting if you can look in the dc to say 10 khz range,

also try with the link removed , so yiu just looking at the output, and the analog ground ,

what your doing is contrasting and comparing

its only the 2 positive spikes, 1 and 2,
32 and 64 khz look like switch mode power supply noise or the dac sample clock feedthrough, and your wrong , all frequencies fold / mix with other frequencies,,
the action of the output filter on the dac is to attenuate any frequency above your frequency of interest
what frequency are you running the dac clock at?

what signal were you outputting when you made the measurement ?
for interest you might want to output white noise , a prbs may be, you should see how your output filter is working then,,

to get estimate of the snr of the dac output, take fft measurement with no output , and that's your noise floor, then output either a full scale sine mid way of your expected range , or white noise and measure the fft amplitude , the db difference is your dynamic range, this needs to be at least 60 db to avoid hiss .
Thanks drjohsmith

There is no analogue ground (GNDA) anymore, it originally was a track from the STM32 VSSA pin that went back to the battery negative terminal, but I have since cut that track....

1757415850290.png

The wire link connects the STM32 VSSA pin GNDA to main GND...

1757416275171.png

The DAC output does not have a filter, its connected directly to the input of the audio amplifier via a series 100nF capacitor.

The DAC frequency is 44.4 kHz.

When taking the measurements, the DAC output was at mid voltage (1.65V) which is the silent gap between the spoken voice prompts.

I did try something else to reduced noise, but that has left me more confused

I thought I would try supplying the STM32 VDDA and VSSA with a cleaner 3.3V from a bench PSU, instead of a noisy 3.3V SMPS. I did this modification on my prototype setup which uses development boards...

1757420923574.jpeg

I first tested it with the bench power supply disconnected but was surprised to see that the DAC still worked, it made no difference to the behavior the fact that STM32 VDDA and VSSA were now floating.

So why does the DAC work when the he STM32 VDDA and VSSA pins are floating ?

I measured the voltage on the STM32 VDDA pin (with reference to the VSSA pin) and it was around 1.6V.

When I did connect the STM32 VDDA and VSSA pins to the bench PSU and supplied it with 3.3V, it made no difference to the behavior.

These were the modifications I made on the STM32 development board...

1757421599419.png


This is the bench PSU....

https://cpc.farnell.com/tenma/72-10480/power-supply-1ch-30v-3a-adjustable/dp/IN06822
 
Last edited:
Top