Author Topic: Good video explaining SM power supplies  (Read 7780 times)

Alan

  • Conductor
  • ****
  • Posts: 1073
    • LK&O Railroad
Good video explaining SM power supplies
« on: May 09, 2017, 10:10:09 AM »
On many threads there is discussion about power supplies and battery converters. Whether we are talking about RP power supplies, DCC power supplies, wall warts, laptop power bricks, cell phone chargers, or even battery converters for dead rail they all share one thing in common - they are all switch mode power supplies at heart.

I stumbled across this great video that explains the fundamental operation of a switch mode power supply in an easily understood way.

frameborder="0" allowfullscreen></iframe>[/youtube]
Alan

LK&O Railroad website

When I was a kid... no wait, I still do that. HO, 28x32, double deck, 1969, RailPro

G8B4Life

  • Signalman (Global Mod)
  • Conductor
  • *****
  • Posts: 1237
  • I'll think of a catchy tag line one day
Re: Good video explaining SM power supplies
« Reply #1 on: May 09, 2017, 10:46:26 AM »
That is a good video Alan. I would certainly hope though that the PSU in my PC is more complicated than shown in the video  ;D

I think I'll have to watch it again once it isn't in the wee hours anymore; and see what their other videos have to say as well.

- Tim

Alan

  • Conductor
  • ****
  • Posts: 1073
    • LK&O Railroad
Re: Good video explaining SM power supplies
« Reply #2 on: May 09, 2017, 11:13:57 AM »
Functionally, the video accurately describes the PSU in your PC. Yes, your PC supply has multiple output voltages, features, and safeguards hence the increased component count but the fundamental principle is the same.

Here is the inside of an Apple laptop PSU. Notice the items labeled in purple are identified in the video. The items labeled in brown and green are needed because the Apple PSU operates from AC house current instead of a battery as shown in the video. The items labeled in blue are a refined version of what is a single capacitor in the video. The only significant difference is the micro controller that manages the Apple device. Surprisingly simple, eh?

components.png
Alan

LK&O Railroad website

When I was a kid... no wait, I still do that. HO, 28x32, double deck, 1969, RailPro

G8B4Life

  • Signalman (Global Mod)
  • Conductor
  • *****
  • Posts: 1237
  • I'll think of a catchy tag line one day
Re: Good video explaining SM power supplies
« Reply #3 on: May 09, 2017, 11:54:25 AM »
I'm not sure if you got my smiley, but it was supposed to be a tongue in cheek poke at the comment at the end of the video.

Quote
...hence the increased component count...
I can't resist, maybe I'm over tired. Here is the inside of my PC's PSU


Courtesy link, with more pictures: https://www.techpowerup.com/reviews/EVGA/SuperNOVA_G2_750/4.html

Well, not my own PSU but the same make and model. I wouldn't even know where to start labeling that out (I would make a terrible PSU reviewer and tester  :D ).

As for simple, well I'll call that objective.

- Tim, who is up waaaaay past his bedtime again!


Alan

  • Conductor
  • ****
  • Posts: 1073
    • LK&O Railroad
Re: Good video explaining SM power supplies
« Reply #4 on: May 09, 2017, 12:24:10 PM »
Yeah, simple is a relative term. I can calculate the resonant frequency of an LC circuit on the back of a napkin. My wife finds that to be mind boggling. I think it is simple. Yet with a single subtle motion she can get the horses to do exactly what she wants while I can barely get them to whoa. She says talking to a horse is simple. I find it incomprehensible. Everyone has their thing I suppose. Thank goodness for her playing with trains doesn't require formulae and trains, unlike horses for me, do exactly what you tell them.  :D
Alan

LK&O Railroad website

When I was a kid... no wait, I still do that. HO, 28x32, double deck, 1969, RailPro

G8B4Life

  • Signalman (Global Mod)
  • Conductor
  • *****
  • Posts: 1237
  • I'll think of a catchy tag line one day
Re: Good video explaining SM power supplies
« Reply #5 on: May 10, 2017, 03:33:16 AM »
Quote
...Everyone has their thing I suppose.

Which is what makes this group so great. Between all the members here I'm sure we'd have just about every facet of model railways covered; even though we don't know what over 90% of the members of this group "things" are.

Back to it. I watched a few of the videos from the channel you posted. Very informative so thank you for posting it; though I think on more than one occasion I was asking myself "hang on , isn't there a piece of information missing here?".

I found this video quite good and also quite relevant to our hobby. I think it should be mandatory viewing for anyone planning to build a very large layout (DC or DCC).  Understanding what's going on with the transmission lines we build and how to address it might have saved many a "double voltage" blown decoder.


- Tim

Alan

  • Conductor
  • ****
  • Posts: 1073
    • LK&O Railroad
Re: Good video explaining SM power supplies
« Reply #6 on: May 10, 2017, 06:56:11 AM »
Quote
I think it should be mandatory viewing for anyone planning to build a very large layout (DC or DCC).

Agreed.

The concept explained in the video is the very reason this (below) exists on the LK&O Railroad. Three power buses, three resistance terminations. In addition to dampening, the parasitic resistance also helps stabilize the SMPSs' output effectively cancelling out the load change voltage ringing problem caused by sensing delay in long DC wiring. My power supplies are over 50' away from the pictured point on the layout. I fan cooled the resistors only because they are directly below foam. The PWM fan speed control lowers the fan speed to inaudible. Also notice the twisted pair bus runs. Working with 12 AWG solid wires twisted into pairs is no joy but it was a one time aggravation that prevents a lot of operational problems down the road.

Alan

LK&O Railroad website

When I was a kid... no wait, I still do that. HO, 28x32, double deck, 1969, RailPro

Alan

  • Conductor
  • ****
  • Posts: 1073
    • LK&O Railroad
Re: Good video explaining SM power supplies
« Reply #7 on: May 10, 2017, 11:42:29 AM »
For someone following along in the discussion that may be asking "What signal on the track bus? This is RailPro, not DCC. There is no signal, just pure DC on the track bus."

You are right that only DC is on a RP bus. Until the load changes and it is no longer so pure...

The "signal" that Tim and I are discussing is the momentary voltage fluctuation that occurs on a DC bus when either a load is applied or removed. This can simply be throttling up/down a loco or as severe as a wheelset causing a short circuit. Possibly more common, is the on again off again load change caused by dirty track. The signal is only present during the transition from one power level to another. It is brief. The signal goes away once voltage stabilization is achieved at the new power level. It is more accurate to call these spikes rather than signals since we are not transmitting information. But the spike effects in the transmission line (DC bus) are the same as if a continuous signal were being sent (DCC bus). The difference is how long the signal/spike is present. It only has to be present once for a split second to potentially do damage to sensitive electronics.

The problem, as illustrated in the video, is the potential for the voltage to momentarily be much higher than the system rated voltage. This extreme voltage occurs for two reasons. One is the inductance/capacitance effect (commonly abbreviated LC) produced by the bus wires which is the focus of the video. This is why we twist bus wires and provide termination at the end. The second reason, and more concerning to RP model railroading, is the length of wire run between the load (a loco) and the power supply. The voltage regulator responsible for maintaining an exact voltage on the track is located inside the power supply which is many feet away from the load. This causes a time delay between when the load changes and when the regulator makes a voltage correction. The poor regulator is always late making corrections because of the distance. The net result of the LC effect over a long bus length is the regulator first over-corrects and then under-corrects as it tries to adjust the voltage based on a signal that is time delayed. Voltage ringing occurs. Voltage ringing is the "signal" in the video and why a supposedly DC only power bus actually has a signal on it for brief periods.

Consider this scenario: A train is moving along level track at a steady speed. The load on the power bus is stable, no load change occurring. Since no load change then no signal on the buss. The power supply voltage regulator is maintaining the correct track bus voltage. All is well. Then you throttle up a lash of 6 locos with a heavy train. The lashed-up locos add a 6 fold load increase on the bus because of their combined large current draw. As current goes up, voltage goes down. The voltage "signal" propagates down the bus. By the time it reaches the regulator the LC bus effect has made the low voltage even lower. The voltage regulator senses the low voltage and attempts to ramp it up. But it is doing the ramp up based on an erroneous exaggerated voltage reading causing it to over-correct. The same happens when the over-corrected voltage signal comes back high. Back and forth the regulator goes, each time getting closer to correct, until finally the track bus voltage is stable under the new load (1 train + the 6 unit train). This is the ringing. The illustration below is conceptually what the voltage on the track bus looks like immediately after the 6 loco lash-up was throttled. For illustration purposes let's say the combined load momentarily drops the track voltage clear to zero. The green line is what we want to happen, the brown line is what is actually happening.



By adding resistance termination to the bus we get this:



Is all this electronics techie crap really necessary just to run trains? Obviously it is not. RP modules have proven themselves to be exceptionally tolerant of bus voltages. Is it worth considering? Quite possibly, if your layout is large (long bus wires, many trains) and most importantly you are hell bent on making your layout operate as well as possible (no fried electronics). That would be me.  :D
Alan

LK&O Railroad website

When I was a kid... no wait, I still do that. HO, 28x32, double deck, 1969, RailPro