marklin-users.net community | Forum
»
General topics
»
Digital
»
How to use a decoder function to activate a relay, and keep alive?
Joined: 05/12/2004(UTC) Posts: 2,975 Location: CA, USA
|
Hi everyone, I am aiming to use a function decoder in order to control interior passenger car lighting. The load on a set of passenger cars. (LED, current conducting couplers, each car with its own ground spring/return) is too many milliamps for the function decoder to supply on its own. The good solution for this to use a relay, which simply turns the power to the current conducting couplers "on" and "off" I have procured ESU relays, number 51963, to do this: https://www.esu.eu/en/pr...sories/miniature-relays/My challenge: in case of momentary power interruption, the relay will unlatch and need to be re-activated via the function decoder to turn the lights on again. So my question: I'd like to use a capacitor to buffer against this, but don't know where to wire it in line? Would I be correct in placing it between the decoder function outputs and the relay? Meaning: F1 output - Capacitor - Relay - Lighting (via current conducting couplers) Thanks in advance! In theory this works the same for any decoder, but the subject in question is an old marklin accessory decoder number 60960 |
SBB Era 2-5 |
|
|
|
Joined: 05/12/2004(UTC) Posts: 2,975 Location: CA, USA
|
An update for everyone: I tried my idea above, and it did not work.
So for fun, I did a relay test and it turns out the product information ESU gave me was incorrect. (to my advantage!) The relay does indeed go back to its last position when re-energized after a power break. So in the end- no need to buffer the relay after all. (led strips of course still need a cap to avoid flicker)
The relay is really cool, simple solution to an annoying problem. Time to go run trains! |
SBB Era 2-5 |
 3 users liked this useful post by 5HorizonsRR
|
|
|
Joined: 11/07/2018(UTC) Posts: 217 Location: Aruba (general), Oranjestad
|
Did exactly the same in my coaches The relay however is in my lok's and turned on/off via F1 from the lok decoder, "main power" to the relay comes from the pickup slider of the lok As you found out, no need for a cap on the relay, the cap on the LED strips keep the lights on even when the relay opens up intermittent....
Regards Jean-Pierre
|
|
|
|
Joined: 04/08/2018(UTC) Posts: 1,155
|
|
 1 user liked this useful post by bph
|
|
|
Joined: 08/12/2021(UTC) Posts: 141 Location: California, Sonoma County
|
Thanks for this thread John (5HorizonsRR).
I have a decoder (used in Marklin ALCO PA) that powers the lok for movement and also for the sound. However, the decoder is slightly malfunctioning and allows sound on all the time when the lok address is used. Function F1 - does not work and the locomotive running diesel sound is on all the time. Can be annoying.
I need a relay that will allow current to pass to the speaker and also to disconnect current to the speaker. I can cut one of the speaker wire that connects from the speaker and to the decoder. I can then connect the 2 cut ends of the wire (white here) to this relay. All I want is to allow/not allow current to go the speaker. How would I solder the 2 wires (one from the decoder, and one from the speaker).
Since this is an ESU relay, I have a spare ESU 60760 decoder to use for this.
Thanks.
|
|
|
|
Joined: 11/07/2018(UTC) Posts: 217 Location: Aruba (general), Oranjestad
|
Hi Bill
This should be fairly easy to do I think. Solder the two ends of the speaker wire on the N.O. (Normally Open) section / switch of the relay. I would modify the 60760 decoder to get the F1 or F3 functions (search the forum / WWW on how to do that and how to use the aux outputs) and use that aux output to activate the coil of the relay.... done! Alternatively you could use the light outputs from the 60760 also to activate the relay by putting a diode inline so it would work driving forwards and reverse..... Put the address from the 60760 the same as the ALCO PA
Regards Jean-Pierre
|
|
|
|
Joined: 05/12/2004(UTC) Posts: 2,975 Location: CA, USA
|
One note if it helps, as I've now done my second set and found a few details of note: - Marklin decoders use ~12v for the functions (typically, I'm not sure about all Marklin decoders) - The ESU relay is designed for 12-16v, so you should be fine if using a Marklin decoder. - Some NEM DCC decoder function outputs are 5v- which might make for a slow and noisy ESU relay. (they do still work though- which surprised me) - Your ESU 60760 decoder might be putting out 5v per the NEM standard, creating the (minor) issue above. Something to check, or get a lower voltage relay for. I am working through this challenge myself, the subject of another forum thread. Perhaps a 5.5v coin capacitor will buffer the relay and then you will only have the noise at initial startup. Or you can use a lower voltage relay. I'll report back once I've made more progress on this.... Edited by user 04 March 2025 18:51:12(UTC)
| Reason: Not specified |
SBB Era 2-5 |
|
|
|
Joined: 08/12/2021(UTC) Posts: 141 Location: California, Sonoma County
|
Thanks Jean-Pierre & John:
I have a spare LokPilot version 3 that I can also use instead of the 60760 (forgot it has no function wires, AUX).
I am a novice, and I mean it. - in connecting decoder wires. I am familiar with wiring the simple Marklin 6090 (60902) decoder (6 colored wires) and the simple LPV3 decoder wiring (and have not ever used the AUX1 green wire and AUX2 Violet wires). That is it, no other wiring ever done by me.
So please help me. In post #1 there is a link to the picture of the ESU 51963. I presume I solder the red (ESU color coding) and the black ground (ESU color coding) of the LPV3 as usual to the power and ground of the lok. Then I solder the AUX1 green wire (ESU color coding) to #4. And the blue wire (ESU color coding to #3 as shown in the picture of the ESU 51963. And the 2 wires from the cut speaker connection to the relay, where on the relay are they soldered to. (I see numbers 2 and 5 that are left to use), not sure what wires are soldered there on the ESU relay 51963 pictured in the link)??
Thanks so much for your guidance.
|
|
|
|
Joined: 28/11/2007(UTC) Posts: 8,225 Location: Montreal, QC
|
With the MS or CS, you can select for each function whether it is a momentary (when pushed), duration or switch operation, so you can toot a horn, sound a long blast or trip a switch (lights on). When you are running a consist with lights/function via a decoder, normally you run wires from the decoder, so you are no longer using ground or live from each car/coach. For this type of setup, a two or multi-pole coupling allows you to provide power for lights and functions. A multi-pole allows you to have control of lights on/off and also have elements like tail lights or special feature controlled separately.
@Bill, I am pretty certain you wired something incorrectly. You should be able to have sounds and operation separately. The outputs from the motor connections and the speaker connections should be separate and you should make sure that you are not using a common ground. You should make sure that the speaker circuit is connected to the proper outputs. You should also check because some decoders may have settings allowing you to select operation in analog mode, where the sound would be on all the time and your decoder might think that this was the setting in digital use too.
Both you and 5Horizons have good questions that can possibly be asked to digital(at)marklin.com to see what Curtis and Rick have to say.
Regards
Mike C
|
 1 user liked this useful post by mike c
|
|
|
Joined: 11/07/2018(UTC) Posts: 217 Location: Aruba (general), Oranjestad
|
Originally Posted by: Bill L  Thanks Jean-Pierre & John:
I have a spare LokPilot version 3 that I can also use instead of the 60760 (forgot it has no function wires, AUX).
I am a novice, and I mean it. - in connecting decoder wires. I am familiar with wiring the simple Marklin 6090 (60902) decoder (6 colored wires) and the simple LPV3 decoder wiring (and have not ever used the AUX1 green wire and AUX2 Violet wires). That is it, no other wiring ever done by me.
So please help me. In post #1 there is a link to the picture of the ESU 51963. I presume I solder the red (ESU color coding) and the black ground (ESU color coding) of the LPV3 as usual to the power and ground of the lok. Then I solder the AUX1 green wire (ESU color coding) to #4. And the blue wire (ESU color coding to #3 as shown in the picture of the ESU 51963. And the 2 wires from the cut speaker connection to the relay, where on the relay are they soldered to. (I see numbers 2 and 5 that are left to use), not sure what wires are soldered there on the ESU relay 51963 pictured in the link)??
Thanks so much for your guidance.
Bill Concerning the speaker wires: one side should be connected to #2 of the relay, the other one to the #5 or the one next to #5 (has no number in the diagram) depending if the #5 is the "Normally Open" (N.O.) contact or the one next to it.... If you have an Ohm meter its easy to check, measure between #2 and #5 or the one next to it, the one that has NO continuity is the N.O. contact Assuming the blue wire is the return for the AUX functions, you are correct connecting the blue and green wire to the coil of the relay (#3 & #4) Red and black wires are correct also. Regards Jean-Pierre
|
|
|
|
Joined: 11/07/2018(UTC) Posts: 217 Location: Aruba (general), Oranjestad
|
Originally Posted by: mike c 
@Bill, I am pretty certain you wired something incorrectly. You should be able to have sounds and operation separately. The outputs from the motor connections and the speaker connections should be separate and you should make sure that you are not using a common ground. You should make sure that the speaker circuit is connected to the proper outputs. You should also check because some decoders may have settings allowing you to select operation in analog mode, where the sound would be on all the time and your decoder might think that this was the setting in digital use too.
Mike If I remember correctly from a previous post from Bill, the decoder in the Alco PA is the original one equipped at the factory, "old style" sound decoder. Something like this: Not much you can do with this decoder Regards Jean-Pierre
|
 1 user liked this useful post by cintrans
|
|
|
Joined: 08/12/2021(UTC) Posts: 141 Location: California, Sonoma County
|
Thanks Mike & Jean-Pierre.
The decoder is the original decoder in this ALCO PA locomotive. I have not rewired it or modified it. It is a bigger 6090 (60902) with manual DIP switches and with 3 potentiometers to adjust for (1) max speed, (2) accel & braking, and (3) sound volume on another circuit board. F1 controls motor sound, F2 controls the bell din-din sound, F3 controls the horn, F4 is the usual. No CVs to adjust. Picture that Jean-Pierre shows is very similar to my decoder.
F1 control is broken, it is on all the time with motor sound, the F2 and F3 buttons still work here. I can move some of the DIP switches up or down and does not affect the F1 sound. It is always on. So changing the address does not shut this sound off.
I have another 37610 UP ALCO PA loco and this one works fine- no issues at all. They were introduced by Marklin early year 2000.
So all I need to do is to learn how to manually shut the speaker off or on. Like I said in the earlier thread. The sounds can be very annoying after a while. Not soothing at all after a while. Right now I run it with the sound off.
I will go ahead and purchase an ESU relay 51963 and play with it.
Thanks again.
|
|
|
|
marklin-users.net community | Forum
»
General topics
»
Digital
»
How to use a decoder function to activate a relay, and keep alive?
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.