Welcome to the forum   
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Share
Options
View
Go to last post in this topic Go to first unread post in this topic
Offline gungri84  
#1 Posted : 06 March 2026 13:56:48(UTC)
gungri84

Norway   
Joined: 06/02/2019(UTC)
Posts: 8
Location: Rogaland, Kleppe
I’m considering adding a stay-alive capacitor circuit to my Märklin loco 39206, BR 01.5 - and maybe more of my locos, eventually. Got a small size C-track layout. Sometimes my locos struggle to go over turnouts without stopping, especially at low speeds. As this is a well known problem with Märklin, I hope there’s someone out there who have tried to do something similar. The factory installed decoder for this locomotive (sitting in the tender) does not come with a connector for stay alive capacitor, unlike the mSD3 /mLD3 decoders for retrofit (for example the 60975). I’m not very keen on replacing my decoder(s) just to get this connectivity. So I’ve been trying to figure out how the decoder is working and where to connect in with my add-on circuit. It seems that the decoder has its own rectifier from AC digital to DC, and a smoothing capacitor of 470µF. Not to be mixed with the rectifier on main board below (main board rectifier is not used in this loco?). This gives the +Ub, aka DC-bus, used internally on the decoder and for motor switching transistors. Also being fed back to main board via the 21pin MTC connector. I suspect +Ub is controlled by a transistor or something. The positive side of the smoothing cap is not connected directly to MTC pin 16 (+Ub), so there must be some kind of switch between. My guess; in case of “overcurrent”, measured by a small low ohmic resistor for current sense just after rectifier and capacitor, this transistor will cut power out to avoid stuff burning up (short circuit or high loads). Also off by default (normally open) when decoder is not powered. Negative side of smoothing cap is connected directly to MTC pin 20 (gnd).
So ideally my stay alive circuit should be connected in parallel with the smoothing cap, and feed in power whenever track connection is bad. Then the displayed locomotive current consumption in CS3 will be correct, regardless if the power comes from track or stay alive capacitor. Also, if there is any overcurrent, the “safety switch” will prevent capacitor from feeding power into a short.
BUT:
It is a pain to get my solder tip onto the positive side of the smoothing cap, really tight space. Alternatively; I’ve found a good spot to solder on another capacitor, easy access, but this one is connected to MTC pin 16, which is +Ub after the current measuring resistor and safety switch. Guess this will also work, as long as the “+Ub switch” stays on (no overcurrent or other major issue..) But feels a bit more risky to solder in here.
And hoping there’s no forwarding diode that will prevent stay alive cap to feed back power in opposite direction on +Ub line.
To avoid any potential problems with loco programming, I’ll put in a switch to turn on/off stay alive circuit. Meaning, if the microcontroller need to lose (track-) power for a split second in order to reboot (?), the stay alive circuit should be turned off, not to keep the microcontroller alive at this point.
Am I missing something here? Have anyone tried something similar, or have relevant info on how the decoder is working? Does anyone have a schematic for Märklin decoders, even if not exactly the same model? It’s a pain to identify components /reverse engineer these small decoder boards, any info would be much appreciated.
Yes, I am aware of the downsides of having a (large) stay alive capacitor, wrt dead sections, emergency stops and so on. Hope my cap is not too big… Then again, in normal operation my locos will mainly stop based on position feedback and digital signals, not so much relays and dead sections.

Stay alive circuit:
Planning to use the smallest supercapacitor module I could find, with integrated cell balancing, plenty high voltage for Märklin, and (hopefully) a sensible amount of capacitance. Testing will tell. It will be a pain to squeeze into the loco tender, maybe I’ll have to move it into a box car or something. Not critical for initial testing, though.
https://www.digikey.no/n...SM154Q030W075PB/17047446
47Ω charging resistor in series with supercapacitor, to limit inrush current and slow charge. Parallel Schottky diode to feed power to +Ub when track connection is poor. High current capable and low forward voltage drop.

Marklin 21MTC (NEM 660) 20260306.pdf (466kb) downloaded 8 time(s).
Marklin 21MTC (NEM 660) 20260306.png
thanks 3 users liked this useful post by gungri84
Offline JohnjeanB  
#2 Posted : 06 March 2026 19:44:55(UTC)
JohnjeanB

France   
Joined: 04/02/2011(UTC)
Posts: 3,735
Location: Paris, France
Hi Gunnar
Thank you for this interesting information.
The difference with using the Märklin stay-alive capacitor (Buffer electronic unit - 60974)) together with the provided PCB on mSD3 is the fact that an adjustable time setting allows to avoid long over runs on stop sections. Märklin sets the standard value to 5 seconds but the unit has an electronic control using SUSI and a capacity of 1 Farad
In the mounting you propose, the capacity of the stay-alive capacitor determines the timing and of course it is depedant on the current need of the engine I think.
Probably a value of less than 1 Farad would allow to stop the loco after 5 secs on average

On the other hand, like me, you use a train control software (Rocrail for me) then no stop sections and nothing to worry about
Cheers
Jean
Offline Kiko  
#3 Posted : 06 March 2026 22:24:26(UTC)
Kiko

Canada   
Joined: 13/02/2017(UTC)
Posts: 203
Location: Ottawa, ON
Originally Posted by: gungri84 Go to Quoted Post
I’m considering adding a stay-alive capacitor circuit to my Märklin loco 39206, BR 01.5 - and maybe more of my locos, eventually.

Hello Gunnar,

I'm glad to see someone else getting into this area of adding stay-alives to Marklin locos equipped with Marklin decoders.

Here's a bit of background. I have only Marklin locomotives and have converted my older DCM (6090, 60902) locos with LokSound decoders and ESU PowerPacks. I love the LokSound decoders and the ESU programming capabilities.

However, the newer Marklin MFX and MFX+ locos have nice running characteristics and decent sound but don't have stay-alives. I really don't want to spend money on replacing these good decoders. Hence, I started down the rabbit hole of adding my own stay-alives to MFX decoders. (BTW, I'm glad that Marklin has finally made the move to include stay-alives on their newer locos.)

Getting back to your questions. You are correct in your statement -- pins 16 (U+) and 20 (digital GND) are used to power stay-alives. In your circuit, I'm not sure why you'd need a big 3W resistor and that capacitor is sure expensive.

Picture 1 is a circuit diagram of the setup I use. However, for this to work, some space is required. This works for most steam locomotives with tenders. I'm pretty sure it would work for your 39206. I have this setup in my BR01.10 (39103), BR44 (39889), BR50 (37897), E151 (39581 -- C-Sine), V200 (39821 -- C-Sine), and a few others. If space is a problem, then I revert to a simpler setup (see picture 2).

The setup in picture 1 provides plenty of stay-alive power to help a loco bridge most gaps. The capacitors that I use (Digikey #4688-CXP-3R0105R-TWX-ND) are pretty small, so I can fit 5 of them in a tender (see picture 3). 15 volts with a Zener diode for protection works well. I have not had any issues with this setup.

The setup in picture 2 is for locos that don't have space for the super caps. I try to fit as big a capacitor as I can in the space available. By "big", I don't mean size but capacitance. I tend to try and fit at least two 1000uf capacitors and if not, then only one (Digikey #1189-1583-1-ND). Manipulating placement of these capacitors is the hard part (see picture 4).

If there's no room for any of the above, then I'll try to use at least a few smaller capacitors. However, going below 500uf is not worth it -- just not enough "value for effort". Even anything below 1000uf is marginal.

I hope this helps. I'm still learning, so please feel free to ask questions or provide suggestions.

Cheers,
Andry


Picture 1
Keep-Alive Circuit.jpg

Picture 2
Buffer Capacitor Add-on (MFX Loco).jpg

Picture 3
BR44 1315 (39889).jpg

Picture 4
BR53.0 0005 (37023).jpg
Andry
// Marklin HO K track; ECoS; TrainController Gold; Marklin & ESU decoders; Arduino controlled Switches, Semaphores & Accessories (DCC); Win 11 //
thanks 3 users liked this useful post by Kiko
Offline gungri84  
#4 Posted : 06 March 2026 22:29:47(UTC)
gungri84

Norway   
Joined: 06/02/2019(UTC)
Posts: 8
Location: Rogaland, Kleppe
Thanks JohnjeanB, good point about the adjustable time. I definitely think that could be an advantage, especially on a small layout with limited distances for (emergency-) stop sections, even if dead sections are just used as extra safety. Even more important for me to find a suitable capacitance then, fingers crossed the 0.15F will be ok. If I understand the 60974 manual correctly you can also have individual time settings for motor, lights, sound, etc. (like setting priority, which functions live longer). Please keep in mind that total energy in a capacitor depends not only on the Farad, but also the voltage. I think the 60974 has two supercapacitor cells in series, which would give a total voltage of 6V or something like that. If the total capacitance is 1F (?), then the total amount of energy is 18 joule. Further, I think Märklin use a small "voltage booster" on the 60974 to increase voltage from 5-6V to 18~19V = +Ub voltage level. With my supercap module charged to 18.4V I should get ~25 joule, a bit more than the 60974. I am worried this solution could give too much running time, maybe I have to find a way to choke it down a bit. But that might call for a more complex electronic circuit, I love the simplicity of just having 3 components as I have planned for now. Does anyone know what is the minimum voltage a Märklin decoder will work at? Will the motor stop when supply voltage drops below 10V or so? This means the stay alive circuit only works for roughly half of the voltage range, so less than 25 joule "available for work". I guess the microcontroller circuitry will work down to 5 or maybe 3V, but I'm more interested in the motor threshold.
Offline Bart  
#5 Posted : 07 March 2026 12:13:56(UTC)
Bart

Netherlands   
Joined: 13/05/2002(UTC)
Posts: 692
Originally Posted by: Kiko Go to Quoted Post

Getting back to your questions. You are correct in your statement -- pins 16 (U+) and 20 (digital GND) are used to power stay-alives. In your circuit, I'm not sure why you'd need a big 3W resistor and that capacitor is sure expensive.

The setup in picture 2 is for locos that don't have space for the super caps. I try to fit as big a capacitor as I can in the space available. By "big", I don't mean size but capacitance. I tend to try and fit at least two 1000uf capacitors and if not, then only one (Digikey #1189-1583-1-ND). Manipulating placement of these capacitors is the hard part (see picture 4).

If there's no room for any of the above, then I'll try to use at least a few smaller capacitors. However, going below 500uf is not worth it -- just not enough "value for effort". Even anything below 1000uf is marginal.

I hope this helps. I'm still learning, so please feel free to ask questions or provide suggestions.

Cheers,
Andry

Picture 2
Buffer Capacitor Add-on (MFX Loco).jpg


Hi Gunnar, Andry,

Indeed, I have been using MTC pins 16 and 20 to connect my capacitors.

I have applied the picture 2 diagram shown by Andry, but also supercap circuits by Fischer-Modell, Lüssi or Train-O-Matic (SPP nano).

In older locos with 6090/60902 decoders, I derive U+ and GND from the 4 large diodes that form the bridge rectifier (also for providing a flicker-free function return (orange) for the lights, if they were still connected to brown.

Originally Posted by: gungri84 Go to Quoted Post
It seems that the decoder has its own rectifier from AC digital to DC, and a smoothing capacitor of 470µF. (...) This gives the +Ub, aka DC-bus, used internally on the decoder and for motor switching transistors. Also being fed back to main board via the 21pin MTC connector. I suspect +Ub is controlled by a transistor or something. The positive side of the smoothing cap is not connected directly to MTC pin 16 (+Ub), so there must be some kind of switch between. My guess; in case of “overcurrent”, measured by a small low ohmic resistor for current sense just after rectifier and capacitor, this transistor will cut power out to avoid stuff burning up (short circuit or high loads). Also off by default (normally open) when decoder is not powered. Negative side of smoothing cap is connected directly to MTC pin 20 (gnd).


I haven't worked on many locos with such a smoothing capacitor, but in the one I found (36198 Vectron), it was directly wired to pins 16 and 20 of the MTC, so a good spot to connect my supercap circuit in parallel.

However, I have learned that the buffer circuits don't work in some of my locos (some with 6090 or 1st generation mLD), and I can't figure out why.
The buffer circuit connections (taken as described from pins 16/20 or directly from the bridge rectifier) correctly provide +17V, but in those locos, neither a DIY circuit (picture 2) nor any of the commercially available boards seem to work.
Anyone with similar experience?


*Bart
thanks 2 users liked this useful post by Bart
Offline Kiko  
#6 Posted : 07 March 2026 15:37:16(UTC)
Kiko

Canada   
Joined: 13/02/2017(UTC)
Posts: 203
Location: Ottawa, ON
Originally Posted by: Bart Go to Quoted Post
However, I have learned that the buffer circuits don't work in some of my locos (some with 6090 or 1st generation mLD), and I can't figure out why.
The buffer circuit connections (taken as described from pins 16/20 or directly from the bridge rectifier) correctly provide +17V, but in those locos, neither a DIY circuit (picture 2) nor any of the commercially available boards seem to work.
Anyone with similar experience?

Hello Bart,

Yes, I've had similar problems with the old decoders. That, plus the lack of sound, made me change those decoders to LokSound. The DCM 5-star motors in Marklin locos are very good and with LokSound decoders these locos run amazingly well.

Cheers,
Andry
// Marklin HO K track; ECoS; TrainController Gold; Marklin & ESU decoders; Arduino controlled Switches, Semaphores & Accessories (DCC); Win 11 //
Offline gungri84  
#7 Posted : 07 March 2026 17:05:30(UTC)
gungri84

Norway   
Joined: 06/02/2019(UTC)
Posts: 8
Location: Rogaland, Kleppe
Hi Andry, thanks for excellent info. I find this very useful, maybe I should have spent some time playing with electrolytic capacitors instead of going straight for the supercap module 😊 Anyway, it’s already ordered, will get in a few days I guess. If it’s way too much capacitance, I will consider an electrolytic cap instead (or several smaller in parallel). But there’s a huge difference in capacitance on your two setups, for sure there must be some difference when running over turnouts or sections with poor connection, at low speed? I thought 1000-2000 µF would only help to avoid short dips and blinking lights, not for running the motor for more than a split second. A supercap setup will be quite different, probably running the motor for a few seconds. Am I right?
In picture 2 you have 5 caps in series, each 1F, giving a total capacitance of 0.2F. This is roughly 90 times more than the 2200µF electrolytic cap… Just saying. My module is 0.15F, almost the same as yours. I get a little higher charging voltage though, rectified +Ub is around 18.4V I think, and I won’t need the 15V Zener diode. Have you considered adding two more cells to take advantage of the full +Ub voltage? If space allows.
I think the 1N5818 Schottky diode could be slightly better, as it has a lower voltage drop and super fast switching. But not a big deal, the 1N4001 is also solid, and differences could be negligible.
Have you considered adding high ohmic balancing resistors to your supercap cells? Like a voltage divider circuit. These supercap cells are never 100% identical, and the total voltage does not necessarily distribute evenly across cells. Worst case is that a cell gets more voltage than the others, and gets strained /destroyed over time. Same thing with electric vehicles and charging of Li-ion batteries, they also need cell balancing like this. But there’s probably some wiggle room from nominal voltage, data sheet should say something about that. The supercap module I found has an integrated balancing circuit, so it seems very robust.
And yes, I agree my 3W charge resistor is probably oversized! It will see a 7W peak for a very short time when track is powered up and capacitor is charged from empty. But Watts go down fast, as cap is charged and voltage diff over resistor drops. So I could probably decrease to 1-2W without problems, just playing it very safe at first as I have not done this before and don’t want to fry anything. The resistor should not get very hot unless I have super dirty tracks with dead spots all over the place, so the stay alive circuit is working overtime!
Offline LeoArietis  
#8 Posted : 07 March 2026 17:43:55(UTC)
LeoArietis

Sweden   
Joined: 07/02/2008(UTC)
Posts: 219
Location: Lindome, Sweden
In an ESU installation they used tiny inductive coils in series with the capacitor to not filter out the DCC in the capacitor for the decoder, and thus not using a switch. I think Roco and Märklin are also using an inductive coil in their stay alive.
Current layout:
http://www.svensktmjforu.../index.php?topic=10990.0
The former project:
http://www.svensktmjforu...forum_posts.asp?TID=1097
With Pictures and trackplans, but in Swedish
Transitation-curves in C-track:
https://www.marklin-user...9-on-75-cm.aspx#post9281
thanks 1 user liked this useful post by LeoArietis
Offline gungri84  
#9 Posted : 07 March 2026 19:29:10(UTC)
gungri84

Norway   
Joined: 06/02/2019(UTC)
Posts: 8
Location: Rogaland, Kleppe
Originally Posted by: LeoArietis Go to Quoted Post
In an ESU installation they used tiny inductive coils in series with the capacitor to not filter out the DCC in the capacitor for the decoder, and thus not using a switch. I think Roco and Märklin are also using an inductive coil in their stay alive.


Hi Leo
I think you are perfectly right. The inductive coil is used to separate digital commands (read&write) from the power line, and the capacitor is used to smooth the DC used for power. This is a typical setup when combining power and digital communication on same line (communication is "superimposed" on power line).
But the coils used on stay alive units I think is for a voltage step-up /booster, as these modules typically have a low voltage from supercapacitors that need to be transformed up to correct voltage level for decoder&loco.
The booster probably have switching transistors that drives the primary side of coil, would be my guess.
Offline Kiko  
#10 Posted : 07 March 2026 20:09:06(UTC)
Kiko

Canada   
Joined: 13/02/2017(UTC)
Posts: 203
Location: Ottawa, ON
Originally Posted by: gungri84 Go to Quoted Post
But there’s a huge difference in capacitance on your two setups, for sure there must be some difference when running over turnouts or sections with poor connection, at low speed? I thought 1000-2000 µF would only help to avoid short dips and blinking lights, not for running the motor for more than a split second. A supercap setup will be quite different, probably running the motor for a few seconds. Am I right?

You are correct. However, it's all a matter of physical size and space in the HO locos that I have. Using the super cap approach is what I always try first. If space is limited, then it's trying to find the biggest capacitor in the smallest form factor that will fit. The locos with super caps never stall and work great. I don't have that many locos fitted with the circuit in picture 2, but these locos also work well because I try to keep my track clean.

I don't have an issue with trains over-running stop positions because my layout is computer controlled. I don't use "brake modules" and the software tracks speed and position because all locos are calibrated.


Originally Posted by: gungri84 Go to Quoted Post
In picture 2 you have 5 caps in series, each 1F, giving a total capacitance of 0.2F. This is roughly 90 times more than the 2200µF electrolytic cap… Just saying. My module is 0.15F, almost the same as yours. I get a little higher charging voltage though, rectified +Ub is around 18.4V I think, and I won’t need the 15V Zener diode. Have you considered adding two more cells to take advantage of the full +Ub voltage? If space allows.

I think you're referring to picture 1. You are correct in your statements. The issue is physical space. The five super caps are fairly small and they can be configured to fit into tight spaces. One big module might not fit because you're limited in how to "stuff it" inside the small voids. Adding the zener, which is very small, makes this setup as compact as I need to fit the various tenders. Adding more caps would make the setup too bulky. I've had very good luck with this setup -- it prevents lights and sound drop-off and keeps the motor running to bridge any possible dead spots.


Originally Posted by: gungri84 Go to Quoted Post
... I could probably decrease to 1-2W without problems, just playing it very safe at first as I have not done this before and don’t want to fry anything.

You probably took a more analytical approach to this whole stay-alive concept. When I started playing with this a few years ago, it was more "trial and error" and feedback from various forums. I kind of stuck with what works for me. So far, I have not blown any decoders with either setup. The biggest problem is making sure that I make a clean solder joint to the U+ and GND locations.

Please let me know how your experiment works out. I'm alwyas on the lookout for new ideas.

Good luck!
Andry
// Marklin HO K track; ECoS; TrainController Gold; Marklin & ESU decoders; Arduino controlled Switches, Semaphores & Accessories (DCC); Win 11 //
Users browsing this topic
Guest (7)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

| Powered by YAF.NET | YAF.NET © 2003-2026, Yet Another Forum.NET
This page was generated in 0.705 seconds.