How to find noise sources and countermeasures for digital modules (Patreon)
Content
In prototyping the AD9833 LFO/VCO rebuild module, I had a hard time finding digital noise countermeasures. The following is a record of my experience in doing so.
https://www.youtube.com/watch?v=dKddNuAXWYU&feature=youtu.be
1. How to investigate noise sources
Noise was found on the output voltage. I investigated each voltage with an oscilloscope and found that noise was on the OUTPUT pin of the AD9833.
Next, I investigated the noise source by setting the output of the AD9833 to low frequency, the oscilloscope to AC mode, and the voltage range to 50 mV/div. (yellow waveform)


It can be seen that noise is generated regularly.
Therefore, I investigated the pins of the Arduino that are regularly controlled,
and found that the output of the AD9833 (yellow waveform) was oscillating at the same timing as the LED PWM waveform (top image, blue waveform) and the SPI communication (bottom image, blue waveform).
2. LED PWM noise suppression
I thought that the voltage would fluctuate due to current flowing through the LEDs, so I removed the LEDs and operated them. However, the noise does not disappear.
Apparently, PWM switching inside the microcontroller was the noise source, and PWM current flowing to the LED was not the noise source.
As a countermeasure, we decided to turn off the LEDs in the frequency range of the VCO, which is greatly affected by noise.
3. SPI noise suppression
The most effective way is to reduce the SPI communication cycle, but the communication cycle cannot be reduced since the device is used as a VCO.
Since the voltage fluctuates due to current flow in SPI communication, it is necessary to suppress the current. We have added a 2.2kΩ resistor in the communication circuit to suppress the current and prevent noise.
When the resistance value was set to 10 kΩ, the communication waveform became sluggish and communication failed. Making the resistor too large can also cause problems.
4. Other measures
A 220uF electrolytic capacitor was placed in the power supply circuit, but this had no effect.
I tried several VCC voltage sources for the AD9833: the 5V and 3.3V pins of the Arduino nano generated noise, whereas the VREV pin as a voltage source reduced the noise.
Therefore, the AD9833 is powered by VREF.
The AD9833 has two types of GND: digital GND and analog GND.
Since the communication noise of the digital circuitry was causing bad effects, I used separate paths for the digital GND and analog GND, and there was a slight improvement in noise.