EEVblog Electronics Community Forum

Electronics => Projects, Designs, and Technical Stuff => Topic started by: microvia on December 16, 2024, 05:55:11 pm

Title: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 16, 2024, 05:55:11 pm
Hi,

I designed an audio circuit containing a charge pump generating up to -10V for driving an optional circuit which hardly draws over 1µA when properly used.
The charge is a simple chain of BAT54 shottky diodes driven by a +3V square wave of variable frequency using the existing MPU of the initial design.
The charge pump generates a low audible background noise, which I would like to suppress.
Can ferrite beads do the trick, for example by inserting one between the main ground and all gound points of the charge pump, one at the charge pump input, one at its output ? If so, what types should be used to remove audible background noise ?
The final pcb has 4 layers, with a few tiny tracks of the charge pump passing through internal layers (I minimized them already but can't suppress them all).
If ferrite beads can't be used, what other methods are effective ?
Are there low-noise ICs which can replace the charge pump and generate the required variable negative voltage without background noise ? I can't use anything expensive such as MAX, DACs and the like. However I can easily adapt the MPU software (for example if the IC is driven in I2C).
Thanks in advance.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: pardo-bsso on December 16, 2024, 07:03:51 pm
Are the ICL7660 or MAX232 really out of your budget?

Also, please share a bit more of your circuit (schematic and real life photos if possible) so we can help you better.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PGPG on December 16, 2024, 07:05:49 pm
of variable frequency

I don't design audio circuits.
I have never written even a led blinking microcontroller program.

If this frequency is high enough to be over audible range than may be what you hear are its variations.
I think the key is to make this frequency being stable and not variable.
If you have UART you can generate stable frequency by continuously sending 0x55 (I believe bytes are send low bit first).
Interrupt telling you that the byte was moved into sending buffer gives you enough time to insert next byte allowing UART to send byte after byte without any interrupts.

Can ferrite beads do the trick,

Ferrite beds are used to suppress frequencies in the range 10MHz...1GHz and higher and not audible.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 16, 2024, 08:10:21 pm
Are the ICL7660 or MAX232 really out of your budget?

Also, please share a bit more of your circuit (schematic and real life photos if possible) so we can help you better.

I don't see how the ICL7660 can easily produce a variable negative voltage from an MPU output.
The schematic below shows the basic charge pump schematic.

[attachimg=1]
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 16, 2024, 09:02:09 pm
I designed an audio circuit containing a charge pump generating up to -10V for driving an optional circuit which hardly draws over 1µA when properly used.

What is the exact load here ?
If it is always low uA averaged, you could switch to a photo voltaic generator(s) like TLP3906 etc.
Zero switching noise from those, as they are a string of photocells with a LED driver.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: John B on December 16, 2024, 09:03:28 pm
I've had success using RLC filters on both the input and output of a 7660, but they're designed to invert an input voltage so that the output is roughly -1*Vin

Maybe you'd have better luck with a different topology rather than a switched capacitor. Maybe some LLC switchmode coverters, like Cuk converters?
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: Smile2016 on December 16, 2024, 09:21:09 pm
Try increasing the frequency to above 500kHz. Remove the last diode. Use PWM instead of "variable frequency". RLC filters on the output might help.  ground connection is key...
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: tszaboo on December 16, 2024, 10:32:09 pm
I've had success using RLC filters on both the input and output of a 7660, but they're designed to invert an input voltage so that the output is roughly -1*Vin

Maybe you'd have better luck with a different topology rather than a switched capacitor. Maybe some LLC switchmode coverters, like Cuk converters?
What's the point of the 7660 if you place an inductor to filter it? Might as well use a regular inductor based DC-DC at that point.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: moffy on December 16, 2024, 11:49:27 pm
Slow down the edges of the square wave, slower edges less noise.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: John B on December 17, 2024, 02:09:26 am
Charge pumps are usually more efficient compared to buck boost topologies, which is useful when creating any battery powered audio device.

As mentioned in this case, the charge pump won't create a regulated output without additional circuitry (there's examples in the app notes for the 7660), and it can't create a voltage greater in magnitude than -Vin. At least not without cascading multiple of them to make voltage doublers etc, which I think is a bit of a waste of space/parts at that point.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: jonpaul on December 17, 2024, 02:32:18 am
"charge pump" is a classic Crockofft -Walton multiplier originally used in HV particle accelerators back to 1930s.

Sould not create audio noise, but add a lytic or mono cap on output.

Check diode reverse recover time

j
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 17, 2024, 07:50:36 am
Thanks for your suggestions.
Increasing the frequency is a real trouble because even if I lower the capacitor values down to 1nF for example the frequency range doesn't change much if I want to have the same output levels.
I will try replacing the square wave by a PWM and see if I can play with the duty cycle to get the same result without noise.
I'm also wondering if the pcb layout is ok. I initially thought I could contour the charge pump to suppress residual noise, but it may have the opposite behavior. The 4 layers are Signal / Vcc / Signal / Ground.
[attachimg=1]
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: moffy on December 17, 2024, 08:35:18 am
You could try putting a resistor in series with the square wave, it will have have similar effect to slowing the edges, and adjust the value to reduce noise, a no cost experiment.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: Kleinstein on December 17, 2024, 09:07:26 am
The charge pump chip like ICL7660 are notorious for EMI from switching pulese. So these chips would more make things worse.
A series resistor at the drive side is a good idea. The layout can be a factor too, but the picture is missing a lot - no idea where the parts are and parts seem to be missing.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: AndyC_772 on December 17, 2024, 09:31:11 am
Things like ferrite beads, or resistors in series with your square wave, might well be effective at MHz frequencies but will do nothing at all at audio. Same goes for your PCB layout, which I'm sure is fine. What you're hearing really isn't the same problem at all.

What's the frequency of your square wave? How does it vary? Why does it vary?

If it's varying at a speed that's within the audio range, then there's your problem - after all, you've literally built a type of audio DAC in the form of a frequency-to-voltage converter.

Try driving it from a fixed square wave, generated by a hardware timer and not modulated in any way. See if the noise is still there. If not, you know it's nothing to do with recovery times, layout, ferrite beads, or anything else that might influence *rf* noise.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: hanakp on December 17, 2024, 09:36:18 am
I agree with @Kleinstein, most of these charge pump IC are unsuitable for audio, because they run at too low frequencies.  Two years go, I've tried LT1054 in a headphone preamp, but no matter what I did (LC filters, shielding box), it injected noise into the audio band. LT1054 nominally runs at 25 kHz, but increasing it with an external cap didn't help much. And pumps that run at higher frequencies (like LTC1983) usually can't handle voltages over 5 V.

@PCB.Wiz thanks for TLP3906 tip, that may come in handy sometime.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 17, 2024, 12:03:21 pm
The square wave frequency determines the output voltage and varies between 200 and 20,000 Hz. It's generated by a timer of the MPU.
This frequency is what I hear, even though it is a low background noise. There was no such background noise before adding this charge pump.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PGPG on December 17, 2024, 12:34:34 pm
The square wave frequency determines the output voltage

From your first post it was not clear that your frequency varies intentionally. It looked that you just can't get it being stable.
It was also not clear that you use charge pump to get regulated voltage (up to -10V only informs that it is the value you get).
Charge pump is not good choice to get other voltage ratio than x2, x3 and so on (subtracting diode voltage drop if they are used). When it works close to these ratios current pulses are small as only replenish the small charge that was lost between impulses. If you drive it with too low frequency than charged to much higher voltage capacitor is connected to discharged one and high current pulse is going between them generating noise. Output voltage also gets high ripple as average output voltage is get by charging capacitor to specific max voltage and waiting while it is discharged by load. If the charged voltage is for example 1V and expected average is 0.1V than capacitor is probably charged to 1V thane discharged to 0V and then stays at 0 for long time to get average of this pulse being 0.1V. I assume such pulses are not what you wanted to get.
You can use charge pump (supplied with constant frequency) to get negative supply for circuits that then produce in analog way the voltage in a 0..-10V range.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: tszaboo on December 17, 2024, 01:35:04 pm
Charge pumps are usually more efficient compared to buck boost topologies, which is useful when creating any battery powered audio device.

As mentioned in this case, the charge pump won't create a regulated output without additional circuitry (there's examples in the app notes for the 7660), and it can't create a voltage greater in magnitude than -Vin. At least not without cascading multiple of them to make voltage doublers etc, which I think is a bit of a waste of space/parts at that point.
You have it kind of backwards. Inductor based converters are very efficient across a wider frequency range, and wider current range. Charge pumps are only efficient when they are operated in the audio range, and that's not very good. Not only it's harder to filter them, with larger value components required, they are also more noisy in general.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 17, 2024, 02:25:17 pm
From your first post it was not clear that your frequency varies intentionally. It looked that you just can't get it being stable.

Once set the frequency doesn't change.
I only set it to obtain a specific voltage between -10V and 0V.
It actually works very well with the target circuit, only the background noise is the issue.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: mtwieg on December 17, 2024, 02:27:13 pm
I think most of us missed the fact that the OP wants a variable negative DC voltage. Hence why they are using variable frequency from the MPU to adjust the voltage (duty cycle isn't so effective in such a case).

IMO if you need a predictable output voltage, the charge pump approach isn't viable (too dependent on diode characteristics not under control) without some sort of feedback loop.

I would second PCB.Wiz's suggestion of using a photovoltaic isolator to generate the negative voltage, as it requires no switching circuits at all.

One could use one or more PVI in series to generate a fixed negative supply which would then provide the supply rail for an inverting opamp circuit (with a very low Iq opamp), which would provide your variable negative vout based on a variable positive vin (from the MPU).

Or you could get fancier and actually use the PVI(s) as part of the feedback loop (adjusting the LED current based on detected output voltage). Would likely be tricky to stabilize though.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 17, 2024, 03:49:38 pm
You have it kind of backwards. Inductor based converters are very efficient across a wider frequency range, and wider current range. Charge pumps are only efficient when they are operated in the audio range, and that's not very good. Not only it's harder to filter them, with larger value components required, they are also more noisy in general.

I'd be happy to put a better circuit on the existing pcb as long as it doesn't cost significantly more, but space is quite limited. Unless something can fit in the layout I posted above.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: tszaboo on December 17, 2024, 04:11:45 pm
I would second PCB.Wiz's suggestion of using a photovoltaic isolator to generate the negative voltage, as it requires no switching circuits at all.
If you have a noisy supply for your PV, you get a noisy supply for your isolated supply. So I'm somewhat perplexed what it would actually solve. Plus the efficiency would be like 1% or something close to that. Negative supply is a solved engineering problem. You use a switched capacitor for low effort. Negative output DC-DC or a buck converter with grounded output for higher currents. If you need low noise, then you post regulate, with a regulator that has meaningful PSRR in the switching frequency and the required harmonics.
You have it kind of backwards. Inductor based converters are very efficient across a wider frequency range, and wider current range. Charge pumps are only efficient when they are operated in the audio range, and that's not very good. Not only it's harder to filter them, with larger value components required, they are also more noisy in general.

I'd be happy to put a better circuit on the existing pcb as long as it doesn't cost significantly more, but space is quite limited. Unless something can fit in the layout I posted above.
As I understand your current circuit doesn't fulfill the design requirements. I don't advocate throwing out entire circuits, but if it doesn't work well, there is only so many things you can do. I would try to hack in a negative LDO if you really don't want to change too much.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: Kleinstein on December 17, 2024, 04:18:19 pm
A series resistor could make the charge pump a bit more sensitive to the PWM ratio and not just the frequency. It would already reduce the current peaks too.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: mtwieg on December 17, 2024, 05:18:29 pm
If you have a noisy supply for your PV, you get a noisy supply for your isolated supply. So I'm somewhat perplexed what it would actually solve.
I'm operating under the assumption that the charge pump itself is the source of the audible noise (not sure this has been verified though). In that case, removing the switching circuitry eliminates the OP's problem.
Quote
Plus the efficiency would be like 1% or something close to that.
AFAIK efficiency is not a concern of the OP.
Quote
Negative supply is a solved engineering problem.
Agreed, and there are many different solutions. It's likely that the charge pump could be modified to resolve the issue, but it's not clear how the noise is contaminating the audio circuit (if at all). There's no guarantee that adding an LDO would help either. One way around this is to not use a switching DCDC at all.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: Ian.M on December 17, 2024, 05:39:36 pm
The charge is a simple chain of BAT54 shottky diodes driven by a +3V square wave of variable frequency using the existing MPU of the initial design.
The charge pump generates a low audible background noise, which I would like to suppress.

I think we need more info about the other tasks that MCU performs.   The charge pump is a large capacitive load (10 nF) on its GPIO pin, which as it switches will draw large current spikes which will inevitably pollute  the MCU's internal Vcc and Gnd rails, which will in turn pollute the logic levels on other output pins with pairs of positive and negative going spikes at the switching frequency.  If any of those other pins directly couple into the audio path, the resulting noise will be very difficult to suppress.   

IMHO the first thing to try would be to drive the charge pump from a well decoupled single gate buffer, with a resistor (try 10 ohms) feeding it from logic Vcc.  It probably should also have a 1K resistor between it and the GPIO driving it, as I expect a fair bit of ground bounce.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: shakalnokturn on December 18, 2024, 10:11:57 am
If possible use less stages from higher input voltage rather than straight from MCU.
Switch above audio frequency.
Limit current peaks as previously mentioned.
Pay special attention to layout, any ground shared between charge pump and audio will be a problem. This also applies if connecting your option that requires -10V creates a ground loop. (Switching current peaks will cause voltage variations on shared ground lines, consider star grounding.)
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: mtwieg on December 18, 2024, 02:22:36 pm
Quote
IMHO the first thing to try would be to drive the charge pump from a well decoupled single gate buffer, with a resistor (try 10 ohms) feeding it from logic Vcc.  It probably should also have a 1K resistor between it and the GPIO driving it, as I expect a fair bit of ground bounce.

Fine suggestion. I would suggest doing some simpler tests first:
1. Disable the charge pump entirely and provide the negative voltage from a low noise DC bench supply. If the noise issue persists, then the charge pump isn't the issue. Otherwise goto 2...
2. Enable the charge pump, but with its output still disconnected from the rest of the circuitry (but give the charge pump a dummy load). If the noise does not come back, then it was likely coupled through conduction on the output, and you could resolve it with a simple RC or LC filter on the output. If the noise does come back, then goto 3...
3. It must be coupling either through conduction in a supply rail (or gnd), or via EM fields (not likely at audio frequencies). You should experiment with other methods of driving the charge pump like what Ian suggested above.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 18, 2024, 07:52:21 pm
Thanks to all of you for your interesting replies, that's much appreciated and will surely help soon or later.  :-+


Fine suggestion. I would suggest doing some simpler tests first:
1. Disable the charge pump entirely and provide the negative voltage from a low noise DC bench supply. If the noise issue persists, then the charge pump isn't the issue. Otherwise goto 2...
2. Enable the charge pump, but with its output still disconnected from the rest of the circuitry (but give the charge pump a dummy load). If the noise does not come back, then it was likely coupled through conduction on the output, and you could resolve it with a simple RC or LC filter on the output. If the noise does come back, then goto 3...
3. It must be coupling either through conduction in a supply rail (or gnd), or via EM fields (not likely at audio frequencies). You should experiment with other methods of driving the charge pump like what Ian suggested above.

I have the design both in breadboard prototype and assembled pcb. I didn't notice the background noise with the former, but will test again tomorrow.
However, the noise is definitely the charge pump frequency.
The real problem is that such circuits behave differently between their breadboard form and the assembled pcb form, and I am a total novice in term of complex noise reduction / cancellation, especially with 0402 smd components and a pcb that had to keep its initial size.


IMHO the first thing to try would be to drive the charge pump from a well decoupled single gate buffer, with a resistor (try 10 ohms) feeding it from logic Vcc.  It probably should also have a 1K resistor between it and the GPIO driving it, as I expect a fair bit of ground bounce.

Excellent suggestion, thanks ! I happen to have a schematic of a positive charge pump made around two schmitt trigger inverters, but I didn't figure out what the first gate did...  :palm:
Due to size restrictions, I wonder if an equivalent negative charge pump can be made out of inverters rather than all those diodes. I don't have time to experiment this at the moment, but will try to find online examples  to save some time.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 18, 2024, 08:27:16 pm
However, the noise is definitely the charge pump frequency.
What frequency does the MCU generate ?

You could also soften the edges before they enter the charge pump. 
eg A 74LVC1GU04 with input R and feedback C will let you define a slew rate.


Due to size restrictions, I wonder if an equivalent negative charge pump can be made out of inverters rather than all those diodes. I don't have time to experiment this at the moment, but will try to find online examples  to save some time.
You need some switching elements in a charge pump.
What current do you actually need ?
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 18, 2024, 08:45:05 pm
However, the noise is definitely the charge pump frequency.
What frequency does the MCU generate ?

You could also soften the edges before they enter the charge pump. 
eg A 74LVC1GU04 with input R and feedback C will let you define a slew rate.

Frequency: 200Hz to 20,000Hz roughly.


Due to size restrictions, I wonder if an equivalent negative charge pump can be made out of inverters rather than all those diodes. I don't have time to experiment this at the moment, but will try to find online examples  to save some time.
You need some switching elements in a charge pump.
What current do you actually need ?


Current needed is very low, typically 1µA if the target circuit is used correctly.
The problem is, I can hardly increase the frequency without making the output voltage increase drastically (it must be within -10V and 0V).
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: mr ed on December 18, 2024, 09:21:10 pm
Use a battery.  Trickle charge it in standby. Nothing quieter. High performance low level amps, audio and instrumentation used batteries.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 18, 2024, 09:31:28 pm
Quote
What current do you actually need ?
Current needed is very low, typically 1µA if the target circuit is used correctly.
Then the simplest solution is a Photovoltaic generator as already suggested.


Quote
What frequency does the MCU generate ?

You could also soften the edges before they enter the charge pump. 
eg A 74LVC1GU04 with input R and feedback C will let you define a slew rate.
Frequency: 200Hz to 20,000Hz roughly.
....
The problem is, I can hardly increase the frequency without making the output voltage increase drastically (it must be within -10V and 0V).
I'm unclear what that last comment means ?
You can add a zener to lightly clamp the charge pump, and push the MCU drive source ultrasonic, so you cannot hear the crosstalk.
If you have excessive clamping, you might be able to reduce the number of stages at higher frequency.
If you need to vary the output voltage, you can vary the supply of the 74LVC1GU04 buffer.

The LVC1GU04 has
• Overvoltage tolerant inputs to 5.5 V
• Wide supply voltage range from 1.65 V to 5.5 V

So you could vary the supply up to 5.5V if you have that available, to reduce the pump chain stages.
If you have more voltage available, you could use a SOT23 gate driver like x27517, that has 3V in and up to 20V Vcc, so a single stage can get you -10V, with ~ 11V in.
 
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 19, 2024, 08:44:05 am
Current needed is very low, typically 1µA if the target circuit is used correctly.
Then the simplest solution is a Photovoltaic generator as already suggested.

I'd love to use this option but such devices are rather big and would require significant pcb size increase unless miniature versions exist.


Frequency: 200Hz to 20,000Hz roughly.
....
The problem is, I can hardly increase the frequency without making the output voltage increase drastically (it must be within -10V and 0V).
I'm unclear what that last comment means ?
You can add a zener to lightly clamp the charge pump, and push the MCU drive source ultrasonic, so you cannot hear the crosstalk.
If you have excessive clamping, you might be able to reduce the number of stages at higher frequency.
If you need to vary the output voltage, you can vary the supply of the 74LVC1GU04 buffer.

The LVC1GU04 has
• Overvoltage tolerant inputs to 5.5 V
• Wide supply voltage range from 1.65 V to 5.5 V

So you could vary the supply up to 5.5V if you have that available, to reduce the pump chain stages.
If you have more voltage available, you could use a SOT23 gate driver like x27517, that has 3V in and up to 20V Vcc, so a single stage can get you -10V, with ~ 11V in.

I use a dual LDO delivering 3.3V and 5V. The former is to power a bluetooth  device, so I cant afford to send any noise there.

I tried using 1nF capacitors for testing at higher frequencies, but the maximum output voltage was significantly reduced, and the frequency range didn't change much. Increasing the first two caps to 10nF increased the max output voltage of course, bit this brings back to square one.

The positive charge pump schematic I mentioned earlier uses two 74LVC1G14. I have a pair of 74LVC1GX04 mounted on DIL8 adaptors. The 74LVC1GX04 includes one 74LVC1GU04 (usable separately) and 3 x 74LVC1G04 in series. I'll try adding the GU04 section as buffer with the 10 ohms at Vcc and 1K at the output.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: psydaddy on December 19, 2024, 09:45:41 am
You can use a linear regulator after the charge pump, this will decrease the noise (ripple rejection) but it'll waste more energy while being used.
Can you divide the supply in half with 2 capacitors to create a negative voltage?
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 19, 2024, 10:06:01 am
You can use a linear regulator after the charge pump, this will decrease the noise (ripple rejection) but it'll waste more energy while being used.
Can you divide the supply in half with 2 capacitors to create a negative voltage?

The output voltage is variable, so no regulator at the output.
I can't divide the power supply unfortunately.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 19, 2024, 04:39:23 pm

The output voltage is variable, so no regulator at the output..
Over what variable range, to what precision and what is the exact load ?
What is this concoction actually doing ?

The currents in charge pumps are very spiked, and that’s why it is important to keep this ultrasonic to avoid audible injection, as you have found.

If you have two MCU pins, you may be better to have one as a fixed f pump and a second one as pwm dac that controls a micro power opamp post regulator.

An alternative is an inductor fly back design, which is better suited to variable out.

Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 19, 2024, 04:42:45 pm
I use a dual LDO delivering 3.3V and 5V.
From what main supply voltage ?
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: tom66 on December 19, 2024, 05:27:06 pm
You have it kind of backwards. Inductor based converters are very efficient across a wider frequency range, and wider current range. Charge pumps are only efficient when they are operated in the audio range, and that's not very good. Not only it's harder to filter them, with larger value components required, they are also more noisy in general.

ADI has some DC-DC converters based on charge pumps that operate in the MHz+ range with 98%+ efficiency (example (https://www.analog.com/media/en/technical-documentation/data-sheets/MAX77932C.pdf)).  Charge pumps are universally more efficient than inductor based converters for similar load currents.  Their major limitation is relatively low output currents because your switch impedance is the only thing limiting the current flow in/out of the fly capacitor.  But there are applications I've designed where a charge pump converter is absolutely the most appropriate solution and achieves excellent efficiency.  Inductor based converters always have magnetic losses to contend with, ideal efficiency will always be better with a charge pump but it's hard to get without extremely careful layout due to the very high peak currents involved.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: mtwieg on December 19, 2024, 06:40:36 pm
I tried using 1nF capacitors for testing at higher frequencies, but the maximum output voltage was significantly reduced
Odd, you should be able to get the same output by just increasing the drive frequency by a factor of ten (BAT54 should be fast enough for ~1MHz). Maybe there's parasitic leakage and capacitance on various nodes of the charge pump bogging it down.
Quote
and the frequency range didn't change much.
....huh? Isn't switching frequency something you control directly?

Did you try and of the tests I proposed (where the charge pump is disabled and/or its output disconnected)?

Could you explain what the negative bias is used for? Does it directly interface to the audio circuitry in some way?
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: Someone on December 19, 2024, 09:27:39 pm
You can use a linear regulator after the charge pump, this will decrease the noise (ripple rejection) but it'll waste more energy while being used.
Can you divide the supply in half with 2 capacitors to create a negative voltage?
The output voltage is variable, so no regulator at the output.
Then you've disregarded one of the quickest and cheapest ways to solve the problem of "I want a low noise 0 to -10V variable output and dont have a negative supply"
Right now the design on my desk is relatively similar, requiring a low noise adjustable negative voltage at relatively trivial DC current. Switching regulator + opamp as a linear regulator.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: tszaboo on December 19, 2024, 11:28:13 pm
You have it kind of backwards. Inductor based converters are very efficient across a wider frequency range, and wider current range. Charge pumps are only efficient when they are operated in the audio range, and that's not very good. Not only it's harder to filter them, with larger value components required, they are also more noisy in general.

ADI has some DC-DC converters based on charge pumps that operate in the MHz+ range with 98%+ efficiency (example (https://www.analog.com/media/en/technical-documentation/data-sheets/MAX77932C.pdf)).  Charge pumps are universally more efficient than inductor based converters for similar load currents.  Their major limitation is relatively low output currents because your switch impedance is the only thing limiting the current flow in/out of the fly capacitor.  But there are applications I've designed where a charge pump converter is absolutely the most appropriate solution and achieves excellent efficiency.  Inductor based converters always have magnetic losses to contend with, ideal efficiency will always be better with a charge pump but it's hard to get without extremely careful layout due to the very high peak currents involved.
This is not a voltage regulator. This is a converter, that halves the input voltage, and probably generates so much ripple on the input and output, that maxim didn't dare to place it into any documentation. Let's just try to compare apples to apples.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: SiliconWizard on December 19, 2024, 11:56:35 pm
Add a small negative LDO. If it hasn't been suggested before.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: tom66 on December 19, 2024, 11:59:01 pm
This is not a voltage regulator. This is a converter, that halves the input voltage, and probably generates so much ripple on the input and output, that maxim didn't dare to place it into any documentation. Let's just try to compare apples to apples.

Ok, but the point is it's possible to make an efficient charge pump converter.  Though, I suppose unlike an inductor-based converter, you cannot make an infinitely variable converter with excellent efficiency.  You can only make some pre-defined fraction efficient.  The most efficient converters switch between e.g. 1.33x, 1.5x and 2x output and then pulse modulate between those modes to obtain high efficiency.  But switching at audio frequency is definitely not needed.

There is no need for a converter like that to produce any more ripple than an SMPS, as long as the layout is tight with the input and output capacitors where they should be, it won't be too bad.  Samsung's Galaxy A23 smartphones use a charge pump voltage halving circuit to charge the 3.7V battery from a 7.4V charger input at 25W, which saves substantial board space over an inductor solution.  IIRC there was also a Chinese vendor selling a phone capable of~100W charging using the same technology but I can't find it right now.  Point is they're absolutely commercially viable at high powers and high switching frequencies, they are not restricted to audio.

Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: Someone on December 20, 2024, 01:12:28 am
This is not a voltage regulator. This is a converter, that halves the input voltage, and probably generates so much ripple on the input and output, that maxim didn't dare to place it into any documentation. Let's just try to compare apples to apples.
Ok, but the point is it's possible to make an efficient charge pump converter.  Though, I suppose unlike an inductor-based converter, you cannot make an infinitely variable converter with excellent efficiency.  You can only make some pre-defined fraction efficient.  The most efficient converters switch between e.g. 1.33x, 1.5x and 2x output and then pulse modulate between those modes to obtain high efficiency.  But switching at audio frequency is definitely not needed.
Possible, but getting off into things the OP isn't interested in such as the LTC7820.

Efficiency of a uA load at 10V is pretty much irrelevant given the rest of the system the OP describes. Heads towards the ultra low activity/frequency fixed on time converters that get used for battery powered radiation tubes for example.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 20, 2024, 08:18:16 am
Quote
and the frequency range didn't change much.
....huh? Isn't switching frequency something you control directly?

Did you try and of the tests I proposed (where the charge pump is disabled and/or its output disconnected)?

Sorry I didn't express myself correctly. I meant that the frequency range required to obtain -10V to 0V using 1nF capacitors didn't really change and still covered a good part of the audio spectrum.

I was a bit busy yesterday but got time to test the 74LVC1GU04 buffer with a 10R at its Vcc and 1K at its output on the breadboard prototype. This board doesn't have the background noise issue because the charge pump isn't as close to the audio circuit as on the target pcb, and doen't use tiny smd components. As it can only improve things, I added the buffer to the pcb, which is really tight now.

I also thought about some possible crosstalk with the Vcc layer underneath and added a ground area under the charge pump. Can only help as well.
My biggest problem is that I can't modify the target pcb while testing.


Could you explain what the negative bias is used for? Does it directly interface to the audio circuitry in some way?

It's to drive a 6FG6 magic eye vaccuum tube as a percentage level indicator (so not a VU). The charge pump goes to the grid, hence the very low current draw.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 20, 2024, 08:48:56 am

I was a bit busy yesterday but got time to test the 74LVC1GU04 buffer with a 10R at its Vcc and 1K at its output on the breadboard prototype.
You can also place a series R at input and a cap feedback.
That gives a user defined slew rate that helps current peaks in the charge pump.
 
You could also test varying the supply of the 1GU04.

For a uA ballpark micro power ldo / opamp there are surprisingly few low uA and > 10V options out there.
Rare demand.
There is a NJM2825 in SOT23 that is 0.7uA shunt regulator, high side reference voltage.
Discrete regulators need more pcb space, but can do uA regulation.


Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 20, 2024, 08:52:51 am

It's to drive a 6FG6 magic eye vaccuum tube as a percentage level indicator (so not a VU). The charge pump goes to the grid, hence the very low current draw.
That means you probably do not care too much about ripple on the supply.
How critical is it to get to 0 V ?  ie what is the control range of the 6fg6 ?
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: Ian.M on December 20, 2024, 09:12:47 am
As others have explained above, a charge pump is a poor choice for applications that need a variable output voltage, while keeping the switching frequency well above audio frequencies, and minimising supply rail disturbance.

Assuming you can implement the required voltage control loop in your MCU, and have a PWM capable GPIO you can drive at a high enough frequency with sufficient duty cycle resolution, its worth investigating an inverting buck-boost topology.   

(https://www.eevblog.com/forum/projects/negative-voltage-charge-pump-in-audio-circuit-how-to-remove-background-noise/?action=dlattach;attach=2466187;image)

The high side switch is controlled by a fixed frequency PWM.  The PWM off time must always be sufficient for the current through the inductor to reach zero*, and its maximum on time must be limited to avoid the inductor saturating.  As cycle skipping could cause undesirable subharmonics in the audio band, the switch on time should always be greater than zero.  The feedback divider resistance should be chosen to provide sufficient load to allow this even at minimum (least negative) output voltage.

A high gain PNP BJT may be preferable to a P-MOSFET if you don't buffer the MCU PWM output, as the noise on the MCU supply rails from its base current may be less objectionable than that due to the current spikes charging and discharging a MOSFET gate. 

If you need a smoother negative voltage, as the load current is negligible, add several stages of RC filtering.  Feedback should be taken from before the filter.

* i.e. The circuit must operate in discontinuous mode, as it is impractical to operate in continuous mode (inductor current does not fall to zero each cycle) without a current sensor + hardware support for terminating the switch's on time if the increasing inductor current indicates its close to saturation.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: mtwieg on December 20, 2024, 12:56:46 pm
Quote
and the frequency range didn't change much.
....huh? Isn't switching frequency something you control directly?

Sorry I didn't express myself correctly. I meant that the frequency range required to obtain -10V to 0V using 1nF capacitors didn't really change and still covered a good part of the audio spectrum.
Wait, now I'm even more confused. You said that with 1nF the voltage range decreased greatly, but now you say you were still able to get -10V without changing the drive frequency significantly... those two things can't both be true...

Quote
I was a bit busy yesterday but got time to test the 74LVC1GU04 buffer with a 10R at its Vcc and 1K at its output on the breadboard prototype. This board doesn't have the background noise issue because the charge pump isn't as close to the audio circuit as on the target pcb, and doen't use tiny smd components. As it can only improve things, I added the buffer to the pcb, which is really tight now.

I also thought about some possible crosstalk with the Vcc layer underneath and added a ground area under the charge pump. Can only help as well.
My biggest problem is that I can't modify the target pcb while testing.
Hard to give feedback on this without some pictures of the breadboard/pcb setups...

Quote
Could you explain what the negative bias is used for? Does it directly interface to the audio circuitry in some way?

It's to drive a 6FG6 magic eye vaccuum tube as a percentage level indicator (so not a VU). The charge pump goes to the grid, hence the very low current draw.
I'm not a tube expert, but I'm assuming ripple on the grid will cause ripple on the plate/cathode current, which might be the path for this to contaminate the rest of the system. If you disable the tube by disconnecting the plate bias, does the audio noise go away?
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 20, 2024, 05:08:07 pm
Fine suggestion. I would suggest doing some simpler tests first:
(...)
2. Enable the charge pump, but with its output still disconnected from the rest of the circuitry (but give the charge pump a dummy load). If the noise does not come back, then it was likely coupled through conduction on the output, and you could resolve it with a simple RC or LC filter on the output. If the noise does come back, then goto 3...
3. It must be coupling either through conduction in a supply rail (or gnd), or via EM fields (not likely at audio frequencies). You should experiment with other methods of driving the charge pump like what Ian suggested above.

Further tests show that the noise is still there even with the charge pump output disconnected. I had a 2M ground resistor at its end.
I tried putting a 47K at the end, which reduced the noise a bit, but the output voltage was affected, so not a solution.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 20, 2024, 07:57:56 pm

It's to drive a 6FG6 magic eye vaccuum tube as a percentage level indicator (so not a VU). The charge pump goes to the grid, hence the very low current draw.
I found some info, these are cute devices !

https://mauser.pt/catalog/product_info.php?products_id=086-0216 (https://mauser.pt/catalog/product_info.php?products_id=086-0216)
https://www.radiomuseum.org/tubes/tube_em84.html (https://www.radiomuseum.org/tubes/tube_em84.html)

They give varying indications of drive voltage.
Can you measure the actual voltages and currents uA you need ?

What MCU are you using?
Spice indicates you can get wide voltage control from a damped ringing fly back inductor, with uA loads, but the pulse widths get down to sub us for a fixed 30us period, which means jellybean MCU may be a bit coarse.
A sawtooth + fast comparator can give smooth control.

Or, a MCU could give a fixed -ve voltage you then regulate with a small linear circuit.

Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 21, 2024, 03:50:41 pm
What MCU are you using?

PIC16F (up to 32MHz).
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 21, 2024, 10:10:52 pm
What MCU are you using?

PIC16F (up to 32MHz).
Does that model have a 8MHz or 32MHz PWM clock ?
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 21, 2024, 10:51:05 pm
Here is a quick example of a MCU pulse driven simply flyback converter.
There is no regulation, the load resistor determines the voltage per impulse. You could measure the Vo on a ADC pin, if you wanted this more precise.

I took a 125ns step and a 1210 sized 1mH ballpark inductor - spice says this can give 30-40 steps to cover a 10V grid sweep.
That may be good enough for an indication meter ?
Frequency is always ultrasonic and fixed, and you can increase R8 grid resistor for softer edges, at the expense of more loss.
( at 3v3 drive, you would choose a lower threshold PFET, I picked a very modest FET as this is uA loads)
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 22, 2024, 01:20:43 am
I'd still suggest you get some of these - they are low cost (39c 10+) and claim 12V 8uA

https://www.lcsc.com/product-detail/Transistor-Photovoltaic-Output-Optoisolators_SUPSiC-GAQV1123S_C22385005.html (https://www.lcsc.com/product-detail/Transistor-Photovoltaic-Output-Optoisolators_SUPSiC-GAQV1123S_C22385005.html)

and experiment with linear or PWM drive into RC filter load for gate.

Addit: I find the Vishay Photovoltaic models include nice curves for Io/Vo and applications circuits
https://www.vishay.com/en/product/84639/ (https://www.vishay.com/en/product/84639/)
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 22, 2024, 08:29:51 am

It's to drive a 6FG6 magic eye vaccuum tube as a percentage level indicator (so not a VU). The charge pump goes to the grid, hence the very low current draw.
That means you probably do not care too much about ripple on the supply.
How critical is it to get to 0 V ?  ie what is the control range of the 6fg6 ?

The 6FG6 has a grid voltage range of -22V to 0V. For now -10V is perfectly sufficient as I don't need that it be fully off. However, 0V corresponds to full deflection (maximum indication) which is most important.
I will eventually use a similar tube with a lower grid range limit of -12V or -8V.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 22, 2024, 08:50:36 am
I'd still suggest you get some of these - they are low cost (39c 10+) and claim 12V 8uA

https://www.lcsc.com/product-detail/Transistor-Photovoltaic-Output-Optoisolators_SUPSiC-GAQV1123S_C22385005.html (https://www.lcsc.com/product-detail/Transistor-Photovoltaic-Output-Optoisolators_SUPSiC-GAQV1123S_C22385005.html)

It's a great suggestion. The only limitation is that the part isn't available from usual providers (Mouser, Digikey etc.).


and experiment with linear or PWM drive into RC filter load for gate.

Not easy. The breadboard prototype doesn't behave like the 4-layer target pcb. The charge pump works almost pereftly on the breadboard with no audible background noise, whereas the target pcb has the noise issue (mostly because the components are close to each other).


Addit: I find the Vishay Photovoltaic models include nice curves for Io/Vo and applications circuits
https://www.vishay.com/en/product/84639/ (https://www.vishay.com/en/product/84639/)

Too expensive unfortunately: $3-$4 as opposed to the 3 BAT54 arrays which cost $0.05 each. Not that  I can't afford the part itself, but production cost must stay reasonable.
Other problem: its 'If' is 50mA. Even if I added a buffer, this would increase the current draw too much as to what the dual 3.3V+5V LDO can provide (80mA for both outputs and 50mA max per output when both are used).

Edit: Panasonic makes two candidates: APV1121S (8.7V, 14µA short-circuit current) and APD2121S (8.2V, 8µA short-circuit current). Both draw only 3mA. Datasheets are vailable here (https://www3.panasonic.biz/ac/e_download/control/relay/photomos/catalog/semi_eng_apv.pdf).

Thanks for your suggestions. I'll try to test that.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: sarge on December 22, 2024, 04:45:31 pm
Someone in the IRC channel spotted this thread, and asked kindly if someone could forward information; via the user Kuschelpony:

Quote
connect the grid to ground, and place a positive control voltage to the cathode, and the noisy charge pump is non longer needed
or, skip the triode entirely and apply amplified control voltage directly to the control rod of the indicator system
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 22, 2024, 06:17:22 pm


Addit: I find the Vishay Photovoltaic models include nice curves for Io/Vo and applications circuits
https://www.vishay.com/en/product/84639/ (https://www.vishay.com/en/product/84639/)

Too expensive unfortunately: $3-$4 as opposed to the 3 BAT54 arrays which cost $0.05 each. Not that  I can't afford the part itself, but production cost must stay reasonable.
Other problem: its 'If' is 50mA. Even if I added a buffer, this would increase the current draw too much as to what the dual 3.3V+5V LDO can provide (80mA for both outputs and 50mA max per output when both are used).

You do not have to feed to the data sheet max, if you look at the 8uA curves, it is a more modest drive.
I linked the (new) Vishay parts because they are the only ones I find that have full curves, a great help to understand how these niche photovoltaic parts work.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 22, 2024, 06:54:03 pm

You do not have to feed to the data sheet max, if you look at the 8uA curves, it is a more modest drive.
I linked the (new) Vishay parts because they are the only ones I find that have full curves, a great help to understand how these niche photovoltaic parts work.

You mean the slope difference between the VO1263 (p. 3, Fig. 2, orange curve) and APV1121S (p. 10, first graphic) ?
Indeed the APV seems to raise much faster, which could be a problem.
I ordered a few pieces for the sake of testing. I plan to use two in series, which allows up to -16.4V and a direct LED connection.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 22, 2024, 07:39:33 pm
You mean the slope difference between the VO1263 (p. 3, Fig. 2, orange curve) and APV1121S (p. 10, first graphic) ?
Indeed the APV seems to raise much faster, which could be a problem.
Not really, the Vishay parts have Io/Vo load lines, which few others give. The APV is Vo/If


I ordered a few pieces for the sake of testing. I plan to use two in series, which allows up to -16.4V and a direct LED connection.
Toshiba have Spice models, if you want to experiment.
The Photovoltaic parts with a box called [control circuit] have an additional active turn off (a modest current sink) to discharge FET gates.

The Toshiba parts with [control circuit]  simulate slightly better with a series diode, when used as PWM to DC generators with output RC loads.
If you read back the gate voltage on the MCU via a resistive divider, a second clamp diode to stop positive valve gate would be needed.

If you can rewire the valve as suggested in #58, you then only need to sink cathode current with ~ 20V compliance.
You could even current drive the cathode.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 23, 2024, 09:23:13 am
Toshiba have Spice models, if you want to experiment.
The Photovoltaic parts with a box called [control circuit] have an additional active turn off (a modest current sink) to discharge FET gates.

The Toshiba parts with [control circuit]  simulate slightly better with a series diode, when used as PWM to DC generators with output RC loads.
If you read back the gate voltage on the MCU via a resistive divider, a second clamp diode to stop positive valve gate would be needed.

If you can rewire the valve as suggested in #58, you then only need to sink cathode current with ~ 20V compliance.
You could even current drive the cathode.

I must confess that I hardly do Spice simulations. I once tried under KiCad but had troubles.
Groundig the grid is an option, but this method isn't necessary since the photovoltaic device is isolated.
Also, most other magic eye grids require -8V to 0V. The 6FG6 requires a higher range, but at the end I may opt for another type to make it easier.
I'll try the APV1121S to see how it performs, and have ordered a few SUPSiC GAQV1123S as well. Both part numbers are amazingly similar...
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: shakalnokturn on December 23, 2024, 12:43:25 pm
Have you considered just using a filtered 0 to +3V PWM output from the MCU and doing the necessary level shifting on the magic eye / supply board to keep the grid in the -15V to 0V range relative to cathode ?
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 25, 2024, 11:15:54 am
A quick update after testing a pair of APV1121S in series: driving the magic eye works, but the output rapidly raises from 0 to 3V or so when powering the LED between 1.03V and 1.07V (just above the 1V required to light it), causing the magic eye to deflect too quickly. Same behavior with a pulsed output, where the frequency range giving the same effect seems too narrow (I need to experiment a bit further on this).
I'm happy to see that such components could be used, the only problem being to find one with an appropriate curve. I will try the Vishay you recommended.
I also ordered a few pcb samples for testing the buffered charge pump which, if no longer causing background noise, will be the default design until a photovoltaic device gives satisfactory results.
Tthanks a lot for your suggestions. Will keep you informed when further tests are done.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 25, 2024, 07:07:03 pm
A quick update after testing a pair of APV1121S in series: driving the magic eye works, but the output rapidly raises from 0 to 3V or so when powering the LED between 1.03V and 1.07V (just above the 1V required to light it), causing the magic eye to deflect too quickly. Same behavior with a pulsed output, where the frequency range giving the same effect seems too narrow (I need to experiment a bit further on this).
I'm happy to see that such components could be used, the only problem being to find one with an appropriate curve. I will try the Vishay you recommended.
You should current drive the led, not voltage, and experiment with load resistors.
The Vishay part was linked because it has very good curves, but they should all have similar actions, just at different current levels.
There will be some temperature variations, so you could feedback to a MCU ADC for high precision. (or use an opamp, as shown below)
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 25, 2024, 08:15:45 pm
Here are the Toshiba TLP3905 / TLP3906 Photovoltaic generators spice curves, to match the Vishay test condition ones, you can see the similarities.
Essentially constant current until the voltage max clamp action occurs.

The second plot sweeps the current to 10mA and plots the voltage across a low load, adjusted to give appx 4.7V max in both cases.
The effect of that active clamp shows up a bit more here.

Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 25, 2024, 09:25:50 pm
and here are more complete voltage generation alternatives.
One uses PWM drive and output side filtering to give DC voltages.

The second one uses a simple OpAmp with feedback to eliminate In-Iout transfer gain / non linearities. It is 100% linear, no switching at all*, and very tolerant of OPTO device selection.
If you look at I(R3) I(R5) you can see the bending effects of non linear drive current to give a linear V output.
This needs a DC 0~2.17V DC* drive range for appx full Photovoltaic output on these parts. It is slightly over driven in spice to check the limits.

*You may use PWM to generate the DC reference control voltage, but that can be any frequency and very local/low energy.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 25, 2024, 10:40:24 pm
Thanks a lot for taking the time to share these detailed examples. The op-amp circuit looks really interesting even though I won't have enough pcb space to fit everything on.
Precise linearity isn't a problem as the frequencies can be adapted in software. I'll try to see how the circuit performs without op-amps first.
Also, I would like to obtain "maximum" -17V or so using two photovoltaic devices in series, which I am currently testing using 1121S.
I found that a rather correct deflection could be obtained with a pulse ranging between 8KHz and 10KHz. I didn't put a resistor before the LED and will test further tomorrow.
I also ordered a two pairs of Vishay. They were pretty inexpensive at RS even in very low amount.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: PCB.Wiz on December 25, 2024, 11:51:57 pm
Thanks a lot for taking the time to share these detailed examples. The op-amp circuit looks really interesting even though I won't have enough pcb space to fit everything on.
You can get opamps in SOT353 packages, which may help (eg LMV321) ?

I found that a rather correct deflection could be obtained with a pulse ranging between 8KHz and 10KHz. I didn't put a resistor before the LED and will test further tomorrow.
Do you vary the duty cycle ?
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: microvia on December 27, 2024, 07:56:05 am
I did further tests yesterday. After fixing a minor bug the basic circuit works well using the 16KHz-24KHz range. I used a pair of APV1121S in series directly connected between the MPU and the magic eye grid. I will make the same tests with the other devices when they arrive. Next step will be to use the MPU's PWM to replace the software-generated square wave which slows the program a bit, which requires a different pin configuration.
Title: Re: Negative voltage charge pump in audio circuit: how to remove background noise ?
Post by: Datman on December 28, 2024, 11:45:45 am
It could be a wrong ground path. It would be useful to know better what are you doing...