# SMPS Oscillating Output

**URL:** <https://forum.digikey.com/t/smps-oscillating-output/37776>\
**Category:** Power Supplies (board mount)\
**Tags:** power-supplies-board-mount, maker-diy, design-tools-and-resources, power\
**Created:** [January 7, 2024, 5:40pm UTC](https://forum.digikey.com/t/smps-oscillating-output/37776 "2024-01-07T17:40:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![thebutterminecutter](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@thebutterminecutter](https://forum.digikey.com/u/thebutterminecutter)\
**Post date:** [January 7, 2024, 5:40pm UTC](https://forum.digikey.com/t/smps-oscillating-output/37776/1 "2024-01-07T17:40:42Z")

</div>

I designed a SMPS and made a PCB for it. It successfully can output **6.4V** on the output, but whenever any kind of load is attached to it, it starts oscillating for some reason. The following is the schematic and PCB layout.

 ![](https://global.discourse-cdn.com/digikey/original/3X/c/f/cf55817cb178881f7e815b279d48d87f90383f4a.png)  
 ![](https://global.discourse-cdn.com/digikey/original/3X/1/a/1a47c4bcd7edc5775cee1b52e228e13c5c252a0c.png)

**A few things I’ve noticed that may be a problem :**

- The voltage at the Vcc pin of the NCP1070 PWM is **7.4-7.5V** when the min is **7.8V** according to datasheet
- The reference voltage of the TL431AC is **1.25V** instead of the desired **2.5V** (this is because I assumed the voltage would be **12V** at the output prior of assembling the PCB)

These problems may effect the final output of the circuit, but I don’t think they are the cause of the output oscillating.

---

<div class="post-metadata">

**Author:** ![heke](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/heke/32/14420_2.png) [@heke](https://forum.digikey.com/u/heke)\
**Post date:** [January 8, 2024, 12:57am UTC](https://forum.digikey.com/t/smps-oscillating-output/37776/2 "2024-01-08T00:57:54Z")

</div>

Hi @thebutterminecutter ,

What is the frequency of the oscillation, roughly?

One thing you could try is connecting a, say 100uF, capacitor from D7 cathode to AC-ground. Does it make any difference?

Cheers, heke

---

<div class="post-metadata">

**Author:** ![thebutterminecutter](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@thebutterminecutter](https://forum.digikey.com/u/thebutterminecutter)\
**Post date:** [January 8, 2024, 2:36am UTC](https://forum.digikey.com/t/smps-oscillating-output/37776/3 "2024-01-08T02:36:19Z")

</div>

Hi @heke,

No, adding a capacitor does not change anything. Other people suggested that I change the D6 & D7 into a Schottky diode because it’s faster. They also said that R3 is not doing a good job at limiting current to the PWM, which is causing it to shut off and on. Any thoughts?

---

<div class="post-metadata">

**Author:** ![APDahlen](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/apdahlen/32/40191_2.png) [@APDahlen](https://forum.digikey.com/u/APDahlen)\
**Post date:** [January 8, 2024, 3:14am UTC](https://forum.digikey.com/t/smps-oscillating-output/37776/4 "2024-01-08T03:14:48Z")

</div>

Hello thebutterminecutter,

Random thought, what if you removed R3 and connected a 9 VDC battery into the circuit to pins 1 (pos) and 3 (neg).

1. Double check the datasheet to verify 9 VDC is appropriate for VCC.

2. As always, be safe working on these line powered circuits. The battery will float along with the power line. Don’t touch the battery while the device is active.

3. Use an isolation transformer plus a ground fault interrupter.

4. Don’t work alone!

Best Wishes,

APDahlen

P.S. I focus on safety from experience. Things can and will catch fire and electrical shocks are serious.

---

<div class="post-metadata">

**Author:** ![heke](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/heke/32/14420_2.png) [@heke](https://forum.digikey.com/u/heke)\
**Post date:** [January 8, 2024, 3:15am UTC](https://forum.digikey.com/t/smps-oscillating-output/37776/5 "2024-01-08T03:15:47Z")

</div>

Hi @thebutterminecutter ,

OK. I wonder, could you tell what output voltage you are after?  
The circuit would work for 5V, but if you try to get higher voltage then the Auxiliary voltage is so high that the current through the R3 is too high, turning the switcher OFF. Try increasing the R3.  
Cheers, heke

---

<div class="post-metadata">

**Author:** ![thebutterminecutter](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@thebutterminecutter](https://forum.digikey.com/u/thebutterminecutter)\
**Post date:** [January 9, 2024, 12:38am UTC](https://forum.digikey.com/t/smps-oscillating-output/37776/6 "2024-01-09T00:38:04Z")

</div>

Hello,

I tried increasing R3 to 1K and nothing changed. I went up to 10K but still nothing changed. I initially wanted it to output 12V, but now realized that the transformer is not built for that (5V). So, now my focus is just to get rid of the oscillation. 9V is to high as a Vcc, the max of the PWM is 8.2V

---

<div class="post-metadata">

**Author:** ![APDahlen](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/apdahlen/32/40191_2.png) [@APDahlen](https://forum.digikey.com/u/APDahlen)\
**Post date:** [January 9, 2024, 2:18am UTC](https://forum.digikey.com/t/smps-oscillating-output/37776/7 "2024-01-09T02:18:15Z")

</div>

Voltage divider for the battery?

---

<div class="post-metadata">

**Author:** ![thebutterminecutter](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@thebutterminecutter](https://forum.digikey.com/u/thebutterminecutter)\
**Post date:** [January 9, 2024, 3:17am UTC](https://forum.digikey.com/t/smps-oscillating-output/37776/8 "2024-01-09T03:17:32Z")

</div>

Yeah I tried but there are still oscillations. I was able to get it working by changing R4 & R5 to 1K each and changing R3 to 10K. It now supplies 4.3V and is able to power a DC motor. Although, I don’t think its able to supply a lot of current since I place four LEDs and the motor in parallel and its starts to oscillate again. Is there a way that I can increase the current it can supply, without adding new components?

---

<div class="post-metadata">

**Author:** ![APDahlen](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/apdahlen/32/40191_2.png) [@APDahlen](https://forum.digikey.com/u/APDahlen)\
**Post date:** [January 9, 2024, 3:45am UTC](https://forum.digikey.com/t/smps-oscillating-output/37776/9 "2024-01-09T03:45:36Z")

</div>

Looking back at the datasheet, the MOSFET has an R\_{DS(on)} = 4.7 \ \Omega.

The chip will have considerable self-heating if a large load is applied.

I wonder if your oscillation isn’t a thermal shutdown.

Have you performed the power consumption calculations for the motor and LED combination?

It may be possible to add an external MOSFET. However, you may be money and time ahead using a different driver chip or topology.

BTW, in case I didn’t say this. Well done!

I get the impressing that you had a considerable increase in your knowledge and skill.

r/

Aaron

---

<div class="post-metadata">

**Author:** ![heke](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/heke/32/14420_2.png) [@heke](https://forum.digikey.com/u/heke)\
**Post date:** [January 9, 2024, 4:19am UTC](https://forum.digikey.com/t/smps-oscillating-output/37776/10 "2024-01-09T04:19:54Z")

</div>

Hi @thebutterminecutter ,

When you changed the R4 and R5 to 1k in order to get 5V output, then the R3 cannot be 10k, as it will drop the supply voltage too much. Try 1k for R3, then the current through it will be 2mA, enough for the switcher, but not overloading the internal shunt regulator.  
For 12V, try R4 =3.9k, R5=1k (or anything with ratio close to 3.8:1, your originals should be fine), R3=3k9 to yield approx. 4mA supply current. Does that stop the anomaly?  
Cheers, heke

---

<div class="post-metadata">

**Author:** ![thebutterminecutter](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@thebutterminecutter](https://forum.digikey.com/u/thebutterminecutter)\
**Post date:** [January 9, 2024, 5:46pm UTC](https://forum.digikey.com/t/smps-oscillating-output/37776/11 "2024-01-09T17:46:56Z")

</div>

I don’t think 12V is achievable with the current transformer I’m using, but I’m happy with the 5V output. I decreased the value of R3 and there seems to be no impact, I think the output mostly depends on the voltage divider of R4 & R5. Anyways, thank you guys for everything, I really appreciate it 😁.

One last question, do you guys know any resource that I can learn more about power electronics?

---

<div class="post-metadata">

**Author:** ![Brian\_German](https://sea2.discourse-cdn.com/digikey/user_avatar/forum.digikey.com/brian_german/32/4563_2.png) [@Brian\_German](https://forum.digikey.com/u/Brian_German)\
**Post date:** [January 25, 2024, 8:42pm UTC](https://forum.digikey.com/t/smps-oscillating-output/37776/12 "2024-01-25T20:42:10Z")

</div>

> [@thebutterminecutter](#):
>
> NCP1070

If you are still interested in getting 12V out of the NCP1070, this reference design from our library may help…

> **[NCP1072DIPGEVB: 12V @ 500mA, 85 ~ 264VAC in](https://www.digikey.com/reference-designs/en/ac-dc-and-dc-dc-conversion/ac-dc-smps-single-output/1851)**
>
> View NCP1072DIPGEVB: 12V @ 500mA, 85 ~ 264VAC in reference design. Specifications, support documents, and additional tools available at DigiKey.
