Op-amp compensation of cascade fudges audio signal oddly

In summary: MoreIn summary, the conversation revolves around designing a pre-amp for an analogue MEMS microphone for bioacoustic recording. The pre-amp consists of a cascade with a differential first stage and an inverting second stage. The op-amp chosen for the design is the MAX40089 and the datasheet suggests using compensation for gains of 10 or higher. However, compensation introduces a broad, continuous, and seemingly random band in the frequency spectrum. There is a discussion about the need for compensation and tips for removing the fuzzy band. The use of digital potentiometers in low noise analog designs is also mentioned, with suggestions to use analog switches instead.
  • #1
Callicious
2
0
TL;DR Summary
Op-amp cascade as pre-amp for MEMS microphone decompensated has banding. With compensation, no banding- but a strange continuous random noise.
Links:
LTSpice Pre-amp schematic (resistor values/capacitor values different)
Gerber
Op-amp Datasheet

Hi all;

Presently designing pre-amp for my analogue MEMS microphone for bioacoustic recording (ultrasonic, especially.) Don't own an oscilloscope, so relying on spectrograms of audio for examining noise/etc in circuit.

See above links for the LTSpice, gerber for the PCB, and the op-amp datasheet (all the other schemas for the PCB and whatnot are in there too- just not the EasyEDA files for the PCB.)

The pre-amp consists of a cascade, with a differential first stage and inverting second, the first stage having set gain of 22 and the latter having variable gain (through an MCP4131 digital potentiometer- a gain of 20-30 works well.) The datasheet for the op-amp specifies that I should compensate the MAX40089 (my dual op-amp of choice) when dealing with gains of 10+, putting a capacitor in parallel with the inverting feedback resistor with gain multiplied by 10 pF. For compensation, I thus place 220 pF SMD film caps on the (-) feedback resistors on both the differential and inverting parts of the cascade.

With compensation, I get the leftmost part of the below image. Without compensation, the rightmost. Compensation eliminates the banding in the circuit (no clue why- I'm aware of RC/LRC/LR circuits mathematically but I've never seen an op-amp before this project) but it introduces a broad continuous seemingly-random band distributed somewhat normally in frequency. So, with all that in mind, I was wondering if anyone had any tips/tricks they could recommend to get rid of that fuzzy band on the leftmost portion of the below image- am I doing something wrong in my compensation method following the DS? ... More importantly, does anyone here think that I actually need compensation (I'm only interested in audio from 0 to ~240 kHz)...? Without compensation, is there any way to get rid of those bands, which almost certainly seem to be associated with the actual circuit design rather than external i.e. power/RF noise?

Note: the compensated band varies over time, too.


In the case I don't compensate- how would I go about removing that banding in the rightmost image- is the banding actually from the lack of compensation?... I've filtered the power line relentlessly with LC and RC filtering, and the ADC doesn't seem to have this banding if you run it without the mic assembly attached, so... :-;

Compensated (left) Without (right) Audio Spectrogram. Ignore the white peaks- those are just from Kaleidoscope.
example.PNG


LTSpice Schematic for my pre-amp (Note that parts will differ for the regulator + reference, and the OPs are MAX40089... close as I could get with LTSpice straight out the box. See the toplinked GitHub page for the download.
Circuit.png


Addendum/notes
I've also noticed that the frequency response at higher frequencies, when compensated, diminishes- without compensation LTSpice showed the circuit as working well up into the few 100'kHz before dB gain gets reduced- with 220 pF in parallel (I know it's not exactly the same parts, but aye) the gains at higher frequencies are much much lower. Running without compensation would be ideal- but those bands ruin the experience.

The fuzzy band, when compensated, changes in frequency domain over time- see below for example. Sometimes it shoots up, sometimes down, seemingly randomly. In some recordings it's near 150 kHz- in some, near 10-20 kHz.
alt freq.PNG


Those bands around 20-25 kHz seem to be some sort of wireless signal induced noise- similar to some sort of switching noise. When I dump the device inside a ball of grounded copper mesh, most of it vanishes (the actual enclosure is somewhat EMI shielded which will help with this- I'm just testing this in a plastic bag in the garden at the moment.)
 
Last edited:
Engineering news on Phys.org
  • #2
Sorry, I don't have a lot of time to review this. But...

Does your SW also have a spectrum analyzer display mode (amplitude vs. frequency)? This is much more understandably to me than spectrographs.

One perhaps peripheral comment. Digital pots usually aren't great for low noise analog. There is usually poor isolation from digital buss and PS noise. There are also bandwidth and frequency response issues, usually in the form of extra capacitance. They aren't really resistors, they're a bunch of transistors that act like resistors. You might try replacing them with some fixed resistors for troubleshooting. In low noise PGA designs I did years ago, we needed real resistors that were switched with analog switches. The analog switches are designed with good analog specs, like low noise, wide bandwidth, and good isolation. Digital pots and DACs, less so.
 
  • Like
Likes Callicious, berkeman and dlgoff
  • #3
DaveE said:
Sorry, I don't have a lot of time to review this. But...

Does your SW also have a spectrum analyzer display mode (amplitude vs. frequency)? This is much more understandably to me than spectrographs.

One perhaps peripheral comment. Digital pots usually aren't great for low noise analog. There is usually poor isolation from digital buss and PS noise. There are also bandwidth and frequency response issues, usually in the form of extra capacitance. They aren't really resistors, they're a bunch of transistors that act like resistors. You might try replacing them with some fixed resistors for troubleshooting. In low noise PGA designs I did years ago, we needed real resistors that were switched with analog switches. The analog switches are designed with good analog specs, like low noise, wide bandwidth, and good isolation. Digital pots and DACs, less so.
Thanks for your reply :)

I've attached the spectra via Imgur (Had to use Python to FFT the .wav files- I am very new to Kaleidoscope and can't see any obvious FFT method in the window.) I set the x-y lims arbitrarily (otherwise you cannae zoom too well for the peaks!)

Interesting to know- I assumed that the ICs just had a shed load of resistors in a row (the taps) and would iterate a wiper forward/backward mechanically somehow- didn't realize that it was all just one giant cake of a lie- a bunch of transistors in the proverbial trenchcoat... the actual datasheet seems to imply it is a "true" resistor network rather than the trenchcoat, but nonetheless your advice w.r.t noise/digital crosstalk/etc has been taken.

If I were to go down the route of dumping the digital potentiometer and opting for a configuration in which gain is selectable by logic alone using one of these analogue switches, would I be looking for something like this? Not necessarily that particular part- just something in that domain. Based on what I can understand, an analogue switch is just similar to a conventional load switch- a bunch of MOSFETs or something similar controlling the path of the signal by logic- in which case, it'll be quite easy for me to set up a discrete array of resistors for gain control (I only need 3-4 gain settings anyway.)

I'll get to setting up a system for switching the gain using a discrete set of resistors & an analogue switch IC as you've mentioned- and here I thought I was happy and content with this version of the PCB! :nb) Back to EasyEDA I go.

https://www.analog.com/media/en/reference-design-documentation/reference-designs/cn0146.pdf Ora! Analogue have something on it too!

https://www.mouser.co.uk/ProductDetail/Analog-Devices/ADG812YRUZ?qs=BpaRKvA4VqEDBeBBg%2BqxHg== Settled on this part- should perform well enough.


Click here for Spectra. Note: imgur link. Confirm if you don't trust moi! (Manual link below.)


Note that I took these spectra on different days. The compensated one has a little bit of squirrel chatter & birdsong- sorry ;-;
 
Last edited:
  • #4
That spectrum looks suspiciously like there is a switching power supply being picked up by your circuit. Realize that modern light bulbs, both fluorescent and LED, often contain a such a supply, as do low-cost (cheap) line powered power supplies.

Since you don't have a 'scope, hopefully you can hear the interfering signal.
Try listening to the amplifier output. If that doesn't work, try a signal diode on the amp output and either listen or measure the DC output with a voltmeter. (Series Capacitor, followed by series Diode, followed by a 0.001uF to 0.01uF shunt capacitor.)

One way to track it down, besides shielding it, is see if the frequency changes when moving your hand very near the circuit... or even putting you finger on various points of the circuit. If the 25kHz signal stops or changes frequency then the circuit is likely oscillating.

If it is external interference, you may get lucky and be able to track down the interference source... or it may be easier to just shield everything.

Try removing all the external input wiring from U1 to see if the external wiring is picking up anything, either interference or contributing to oscillation.

A photo of your assembly could help us come up with other ideas, as could its intended use. From your schematic, the frequency range of your input signal seems rather large, especially since the stage coupling only goes down to 5Hz. (or maybe I misread your AC source definitions)

Cheers,
Tom
 

1. How does op-amp compensation affect the audio signal in a cascade fudge?

Op-amp compensation is crucial in maintaining stability and preventing oscillations in a cascade fudge. Without proper compensation, the audio signal can become distorted and noisy, leading to poor sound quality.

2. What is the purpose of op-amp compensation in a cascade fudge?

The main purpose of op-amp compensation in a cascade fudge is to maintain stability and prevent oscillations, which can cause distortion and noise in the audio signal. It also helps to improve the overall performance and accuracy of the circuit.

3. How do you determine the appropriate compensation for a cascade fudge op-amp?

The appropriate compensation for a cascade fudge op-amp can be determined by analyzing the frequency response of the circuit and adjusting the compensation components accordingly. It is also important to consider the specific requirements and characteristics of the audio signal being processed.

4. Can op-amp compensation be adjusted after the cascade fudge is built?

Yes, op-amp compensation can be adjusted after the cascade fudge is built. However, it is recommended to carefully design and test the compensation before building the circuit to ensure optimal performance.

5. What are the consequences of inadequate op-amp compensation in a cascade fudge?

Inadequate op-amp compensation can lead to instability and oscillations in the circuit, resulting in distorted and noisy audio signals. It can also cause the op-amp to overheat and potentially damage the circuit components. Therefore, proper compensation is essential for the optimal functioning of a cascade fudge.

Similar threads

  • Electrical Engineering
Replies
6
Views
1K
  • Electrical Engineering
Replies
6
Views
1K
  • Electrical Engineering
Replies
9
Views
3K
Replies
31
Views
3K
  • Electrical Engineering
Replies
6
Views
1K
  • Electrical Engineering
Replies
15
Views
11K
  • Electrical Engineering
Replies
7
Views
3K
Replies
5
Views
4K
  • Electrical Engineering
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
2K
Back
Top