D-Noizator: a magic active noise canceller to retrofit & upgrade any 317-based V.Reg.

I finally got to test the three legged regulator pcbs from post #1940. A bit harder to correctly test them as they are small and load+ DC in + sense cable make for a non-optimal measurement setup.
Even so the dienoiser PSRR came out at around 110dB. Denoiser PSRR came out at around 105dB. Not the best but maybe it could be better with better measurement setup. Noise seems typical for de/dienoiser.
For LM317 version I used 2x10uF output caps, 150mOhm resistor and the diy inductor.

For LM337 it's more finicky. Dienoiser worked with 3x10uF output caps and 2x50mOhm in parallel (also with the diy inductor). The denoiser worked with 50mOhm instead of 25mOhm.
Compensation network was 47nF+1R for both.

Measurement pictures:

1. input ripple
2. LM317 denoiser PSRR
3. LM317 denoiser noise
4. LM317 dienoiser PSRR
5. LM317 dienoiser noise.
I made a revision of the pcbs to also include the protection diodes.
 

Attachments

  • input_ripple.png
    input_ripple.png
    248.8 KB · Views: 617
  • Screenshot from 2021-04-10 14-22-28.jpg
    Screenshot from 2021-04-10 14-22-28.jpg
    68.6 KB · Views: 223
  • Screenshot from 2021-04-10 14-22-10.png
    Screenshot from 2021-04-10 14-22-10.png
    776.4 KB · Views: 240
  • LM337N_SOT223.zip
    133.2 KB · Views: 87
  • LM317N_SOT223.zip
    130.9 KB · Views: 96
  • Screenshot from 2021-04-10 14-04-32.png
    Screenshot from 2021-04-10 14-04-32.png
    797.5 KB · Views: 232
  • N_LM317N_dienoiser.png
    N_LM317N_dienoiser.png
    180.6 KB · Views: 575
  • LM317N_dienoiser.png
    LM317N_dienoiser.png
    178 KB · Views: 565
  • N_LM317N_denoiser.png
    N_LM317N_denoiser.png
    192.4 KB · Views: 569
  • LM317N_denoiser.png
    LM317N_denoiser.png
    193.6 KB · Views: 580
Made the LM338 pcb which should be good for the full 5A output. As long as you fill the power traces with solder.
For 5A it's best you have a separate rectification board, so this pcb is only DC input.
If you want a THT denoiser board ask and I might do it when I find the time. I made the denoiser circuit SMD for the smallest board size. It's around 35mm x 42mm.
I have not tested this design so you make it at your own risk.
The board is diyable with a topside link.

edit: I added a pot footprint, forgot about it.
 

Attachments

  • Screenshot from 2021-04-10 16-23-43.png
    Screenshot from 2021-04-10 16-23-43.png
    279.8 KB · Views: 198
  • Screenshot from 2021-04-10 16-23-59.png
    Screenshot from 2021-04-10 16-23-59.png
    233.1 KB · Views: 163
  • Screenshot from 2021-04-10 16-23-28.png
    Screenshot from 2021-04-10 16-23-28.png
    105.3 KB · Views: 145
  • LM338.zip
    153.5 KB · Views: 71
Last edited:
This is the THT denoiser version for LM338. Size is around 47mm x 35mm. Compensation network is still smd.
Instead of the U.FL connectors you can directly solder the wire on the pcb. Twist them both together until the sense point.
 

Attachments

  • LM338_THT.zip
    165.9 KB · Views: 90
  • Screenshot from 2021-04-10 18-17-29.png
    Screenshot from 2021-04-10 18-17-29.png
    518.2 KB · Views: 177
  • Screenshot from 2021-04-10 18-17-50.png
    Screenshot from 2021-04-10 18-17-50.png
    373.2 KB · Views: 158
  • Screenshot from 2021-04-10 18-18-07.png
    Screenshot from 2021-04-10 18-18-07.png
    90.3 KB · Views: 140
I was playing with LTSpice and noticed that replacing the top denoiser resistor with a LED CCS improves the performance of the circuit. For LM317 seems it does less than it does for the discrete regulator versions, at the same 5-7mA current.
But if you can spare around 30mA on the output, then it seems you can get an extra 12dB or so of PSRR for the denoiser. The dienoiser also gets some extra performance (about 6dB) but not as much as the denoiser.
Output impedance also seems to improve.
I have not measured this yet, it's all in LTSpice atm.
Added comparisons between denoiser and dienoiser with their corresponding ccs version. 2nd and 3rd photo are for output impedance comparison.
 

Attachments

  • lm317_output_impedance2.png
    lm317_output_impedance2.png
    107.5 KB · Views: 122
  • lm317_output_impedance.png
    lm317_output_impedance.png
    106.8 KB · Views: 153
  • lm317.png
    lm317.png
    118.8 KB · Views: 177
I got to make some measurements with CCS instead of the resistor and I got good results.
I measured the CCS version at 7mA and 22mA through the denoiser circuit. I measured this for both denoiser and dienoiser.
I used a LM317N from TI (performs better than a regular LM317), 220uF filter capacitance so input ripple is at around 0dBV, 150R load at 11.3Vout. The schematics in the first picture shows the exact values and parts I used in measurement.
I also did a sanity check and measured Cadj (220uF) and the simple configuration for the LM317N.
PSRR values:
1. simple LM317N - 64.7dB
2. Cadj 220uF - 83.5dB
3. normal denoiser - 113.8dB
4. 7mA CCS denoiser - 117.6dB
5. 22mA CCS denoiser - 123.8dB
6. normal dienoiser - 137.5dB
7. 7mA CCS dienoiser - 142.8dB
8. 22mA CCS dienoiser - 148.2dB
For 7mA I used 150R for current setting and for 22mA I used 47R.
Apart from the increase in PSRR it seems that noise goes lower as well by using the CCS.
For denoiser it dropped from around 7nV/sqrtHz to about 4.2nV/sqrtHz at 7mA and to 1.8nV/sqrtHz at 22mA.
For dienoiser it dropped from around 0.91nV/sqrtHz to 0.78nV/sqrtHz at 7mA and to 0.75nV/sqrtHz at 22mA. I subtracted my LNA noise from the values.
For denoiser BJTs I used the BC8x7 pair. For the CCS BJT I used a 2SA970, but you could use a BC560. The LED is red and draws around 3mA.
You can decide if it's worth the extra 15mA total for the higher performance.
The discrete Mosfet supply benefits of more performance at 7mA but not much extra at 22mA.
So seems that LM317N can do 148dB of PSRR with around 750pV/sqrtHz noise (10kHz-20kHz) with this improvement.
Maybe someone else can confirm this?
 

Attachments

  • schematic.png
    schematic.png
    148.6 KB · Views: 171
  • LM317N_PSRR.png
    LM317N_PSRR.png
    111.9 KB · Views: 167
  • noise_measurement.zip
    1.1 MB · Views: 68
  • LM317N_PSRR.zip
    438.2 KB · Views: 113
I like this circuit. OK, some criticism :D

Your THT board has good ground layout.

However the 3 terminal tiny board has a problem that's common and unavoidable with this kind of design: its GND is connected to the carrier PCB with only 1 GND pin.

So if there is HF noise on the input, it goes through the input cap of your regulator board, but the impedance of the ground pin is too high, so it can't shunt the noise to ground. Instead, it lifts the whole GND on the regulator board, and goes straight into the output via the output decoupling cap.

To get good performance with 3-terminal mini board the input cap must not be on the miniboard. It has to be on the carrier board, with good layout, like you did in your THT board.

Attached is PSRR of 3-terminal miniboard with TPS7A4700, -20dB PSRR at 10kHz, not really spectacular.

How did you measure PSRR?
 

Attachments

  • PSRR_TPS7A4700_IAN-3v3-Ipk12m-Date20140403-Cout=11u,Cin=11u-Rout=68-Rin=0.png
    PSRR_TPS7A4700_IAN-3v3-Ipk12m-Date20140403-Cout=11u,Cin=11u-Rout=68-Rin=0.png
    369.2 KB · Views: 161
I mean, did you measure it mounted on a board with the 3 pin connector as it would be used, or did you connect the analyzer probes directly to the miniboard? If you do the latter, the effect I described won't show up, because it is caused by the impedance of the ground pin, and if the analyzer probes are connected directly to the miniboard, the ground pin is not part of the circuit.
 
I got to make some measurements with CCS instead of the resistor and I got good results.
I measured the CCS version at 7mA and 22mA through the denoiser circuit. I measured this for both denoiser and dienoiser.
I used a LM317N from TI (performs better than a regular LM317), 220uF filter capacitance so input ripple is at around 0dBV, 150R load at 11.3Vout. The schematics in the first picture shows the exact values and parts I used in measurement.
I also did a sanity check and measured Cadj (220uF) and the simple configuration for the LM317N.
PSRR values:
1. simple LM317N - 64.7dB
2. Cadj 220uF - 83.5dB
3. normal denoiser - 113.8dB
4. 7mA CCS denoiser - 117.6dB
5. 22mA CCS denoiser - 123.8dB
6. normal dienoiser - 137.5dB
7. 7mA CCS dienoiser - 142.8dB
8. 22mA CCS dienoiser - 148.2dB
For 7mA I used 150R for current setting and for 22mA I used 47R.
Apart from the increase in PSRR it seems that noise goes lower as well by using the CCS.
For denoiser it dropped from around 7nV/sqrtHz to about 4.2nV/sqrtHz at 7mA and to 1.8nV/sqrtHz at 22mA.
For dienoiser it dropped from around 0.91nV/sqrtHz to 0.78nV/sqrtHz at 7mA and to 0.75nV/sqrtHz at 22mA. I subtracted my LNA noise from the values.
For denoiser BJTs I used the BC8x7 pair. For the CCS BJT I used a 2SA970, but you could use a BC560. The LED is red and draws around 3mA.
You can decide if it's worth the extra 15mA total for the higher performance.
The discrete Mosfet supply benefits of more performance at 7mA but not much extra at 22mA.
So seems that LM317N can do 148dB of PSRR with around 750pV/sqrtHz noise (10kHz-20kHz) with this improvement.
Maybe someone else can confirm this?

Great results for a simple addition.
Can you please indicate if similar results can be obtained for the negative regulator?
 
CCS - further question

I have pcbs for the original no-noiser circuit. Realise that the dienoiser circuit is slightly different.
Can the CCS be implemented in the no-noiser circuit with some benefit?
Regret I have not learnt simulation in LTSpice and may not have the skills to detect instability to take an experimental approach
 
AH okay! Misunderstanding. I thought you injected a signal in the input and measured the output to get PSRR, but you're doing a ratio of the mains harmonic before and after the regulator, right? In this case there is not much above a few kHz, so it doesn't tell a lot about PSRR above this...

I just used another LM317 board, and instead of using a denoiser circuit I directly injected audio signal into the ADJ pin.
Tested the CCS denoiser with this and seems that between 1kHz and 20kHz there's around 10dB loss in PSRR. I didn't calibrate anything, just wanted to see how much it dips and it's not much. So PSRR should be solid in the audio range.
 
Great results for a simple addition.
Can you please indicate if similar results can be obtained for the negative regulator?

Yes the LM337 should behave the same largely.

I have pcbs for the original no-noiser circuit. Realise that the dienoiser circuit is slightly different.
Can the CCS be implemented in the no-noiser circuit with some benefit?
Regret I have not learnt simulation in LTSpice and may not have the skills to detect instability to take an experimental approach

I tested in LTSpice and seems it should work. I attached a sim result.


edit: looking at different simulation results the CCS doesn't seem to affect the phase much, so it shouldn't change the stability requirements. I used the same compensation values I used with the normal dienoiser and didn't have issues.
 

Attachments

  • Screenshot from 2021-04-27 14-30-22.png
    Screenshot from 2021-04-27 14-30-22.png
    154.8 KB · Views: 589
Last edited:
Hi all,

I'm a latecomer to this thread - and am trying to catch up, but there are 220 pages! Is there is a list of suitable transistors anywhere? Or are we limited to the BD330/2n4401 from the first/last posts?

I have a range of other transistors here - BD140, MJE253, 2n3906, 2n5087 - are any of them suitable?
 
Last edited: