Strong noise floor when the mic is connected to the microcontroller

If you have a 5V power bank try powering MCU and mic with that.
i don't have a real powerbank. i have a jbl chargeplus bluetooth speaker. but with it you can also charge devices. but then the noise is bigger and the leds are no longer controlled correctly.


I have described my problems in parallel times in the Ti forum:
Hi,

Although I can't really solve any noise issues for you, I have a few comments that might contribute to the noises you are seeing.

- I see you are running 4 SPI modules at 4.8Mhz. This can create SSO (simultaneous switching output) which can draw quite some currents and affects the voltage supply. Proper decoupling caps and placement of them is critical for high speed operations.

#define SSI_CLOCK (4800000)

- You are using the LaunchPad board. The LaunchPad has VDDA for ADC tied to VDD for simplicity. In another word, any noise on the digital supply can couple to the analog supply for ADC which will affect ADC accuracy. If you were to design your own board, I will suggest you split the supplies to digital and analog domains. ADC VREFP and VREFN are connected to VDDA and GNDA internally. Any noises or ripples on the VDD/GND will follow VREF and hence the accuracy.

- I see you use CH5 for ADC. If you are willing to do an experiment you can try a different ADC channel perhaps with the pin that is far away from the SSI modules or reduce the SSI_CLOCK speed to see if it alleviates your finding. Other than that, I have not much left to offer.

MAP_ADCSequenceStepConfigure(ADC0_BASE, 3, 0, ADC_CTL_CH5 | ADC_CTL_IE |
ADC_CTL_END);

When you create your own design, please go through section 4.5 for ADC design considerations as well as the rest of the document for best design practices.
 
Lowering SSI clock speed makes sense.
My recommendation is to use Mean Well only for LEDs. Instead of power bank do you any other 5V supply to power MCU and mic? And if you power MCU and mic from lab supply and LEDs from Mean Well do you still have noise?
 
Assuming the crosstalk comes from the LED strip's ground current, this would be one way to lay the wiring out. Star connection at the supply to minimize the mutual impedance, twisting to avoid magnetic coupling as much as possible, capacitor reduces efficacy of the star connection, but provides a return path for the data signal close to the data wire. Value of the capacitor to be determined experimentally, you could try 0, 1 nF and 100 nF to get an idea what works best.
i will try everything what it comes from you.
 
IMG_20230419_173731.jpg
I have changed the wiring according to your instructions
The noise goes down to an rms value of -40dB.
good, but not enough for my application.
what else can i do to improve it?

I would like to correct again.
after these changes but also before:
the noise is only there during a transmission of data over spi.
it does not matter whether the data lines are connected or not.
it doesn't matter where the mcu is connected, the noise will still be transmitted through the different power supplies.
 

Attachments

  • noise_new_cable_connection_without_cap.png
    noise_new_cable_connection_without_cap.png
    90.7 KB · Views: 80
  • noise_new_cable_connection_with_cap_1nF_ceramic.png
    noise_new_cable_connection_with_cap_1nF_ceramic.png
    77.2 KB · Views: 82
  • tempImageh9GIvc.gif
    tempImageh9GIvc.gif
    1.4 MB · Views: 63
  • tempImagedFL3pX.gif
    tempImagedFL3pX.gif
    1.5 MB · Views: 71
Last edited:
What microphone and preamplifier board do you use at the moment? If it is something with an electret microphone, can you replace the resistor that supplies it with two resistors in series and an electrolytical capacitor from the node that connects them to ground?
 
I would try a separate low noise supply for the mics.
I just did that again with the lab power supply. but how do I disconnect the two power supplies so that the noise is not transmitted to the microphone. because as soon as I connect the two GND. the noise is there again.

What microphone and preamplifier board do you use at the moment?
I have two do choise, what is the best:

1. Analog MEMS Mikrofon ICS-40180
https://www.sparkfun.com/products/18011

2. Analog electret microphone Maxim MAX4466
https://www.adafruit.com/product/1063
If it is something with an electret microphone, can you replace the resistor that supplies it with two resistors in series and an electrolytical capacitor from the node that connects them to ground?
yes i can do this, but i dont understand it what is to do.
 
I have another EK-TM4C123GXL.
If I use one board for the SPI transmission and the other for the recording of the samples. Can I then separate both boards from one another so that the noise is not transmitted?
But I need a data interface between the boards. So that I can transfer data. And I need between the boards 3-5 GPIO ports as input or output.