Trains.com

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Question about a constant lighting circuit for rolling stock (DCC)

6387 views
17 replies
1 rating 2 rating 3 rating 4 rating 5 rating
  • Member since
    October 2006
  • 18 posts
Question about a constant lighting circuit for rolling stock (DCC)
Posted by macmack on Wednesday, September 30, 2009 11:54 PM

I have a question about the constant lighting circuit (for rolling stock) on page 48-49 of the May 2008 issue of MR.  I was wondering if this circuit would power 3 - 4 miniatronics, 3mm yeloglo LEDs?  I would rather build this circuit myself than buy any overpriced, ready-made, lighting kit, as I have several passenger cars to upgrade.  Also I don't want a circuit that uses batteries, as I don't want to have to disassemble the cars to change out the batteries.

 Thanks in advance for any replies.

  • Member since
    February 2007
  • From: Christiana, TN
  • 2,134 posts
Posted by CSX Robert on Thursday, October 1, 2009 10:44 AM
I believe so, but I need to find my May 2008 issue before I can say for certain. I don't remember the output from the circuit. I think it was 12 volts, but it could have been 1.5 volts powering 1.5 volt lights. I also do not know the voltage drop of the yeloglo LED's. If the circuit output is 1.5 volts and the yeloglo LED is a tinted white LED, then there is a good chance the circuit won't work because many white LED's have a voltage drop of over 3 volts; however, if the output is 12 volts then circuit would work. Do remember that you have to use current limiting resistor s with LED's. Also, if you have enough voltage(which you would with 12 volts), you can wire LED's in series to reduce the current draw of the circuit. If you can tell us the output from the circuit and the voltage drop and current rating of the LED's, then we can show you how to figure out how to wire them up.
  • Member since
    July 2003
  • From: Sierra Vista, Arizona
  • 13,757 posts
Posted by cacole on Thursday, October 1, 2009 11:57 AM

 I'm not familiar with the circuit you're asking about, but if LEDs will work okay I think you'd be much better off using inverted cone LEDs from moreleds instead of the yellow glow ones.  Inverted cone LEDs radiate light 360 degrees instead of being a pinpoint source like the ones from Miniatronics.

http://www.moreleds.com/railroad.htm

  • Member since
    October 2006
  • 18 posts
Posted by macmack on Monday, October 5, 2009 10:01 PM

Sorry it took me so long to get back to you on this.  They don't mention the output from the circuit in the article.  The "critical" items that were listed in the article for this circuit are as follows:

Bridge Rectifier (50V - 1A)

Capacitor (4.7UF - 25V)

Resistor (4.7K - 1/4w)

LED super-bright white (5mm / 3.5V / 20mA)

There was only one LED connected to the circuit in the article, with no mention of adding any additional LEDs.  I was hoping that I could connect 3 or 4 LEDs & would also like to use yeloglo LEDs on this circuit (I personally think they look better than super-bright white LEDs.)

Yeloglo LED (3mm / 3 - 4V / ??mA)

Thanks again for any replies.

  • Member since
    October 2004
  • From: Colorful Colorado
  • 8,639 posts
Posted by Texas Zepher on Monday, October 5, 2009 11:13 PM

I, of course, can find every MR issue from Feb 2009 to Nov 2009 EXCEPT the May issue, so I can't see the circuit.   From the part's list I would guess they are rectifying the DCC into a straight DC current and then filtering it with the capacitor.  The 4.7K is a load, but that seems high to me.   Is the diode in series with the resistor?  If so I would guess that no it won't handle another LED.   To put another diode in parallel with the existing one, one would need to increase the current coming through the circuit by lowering resistance.

But I am guessing. 

Why don't you just build the circuit.  Add the extra LED and see what happens? If it doesn't work adjust accordingly, then add another, etc.

  • Member since
    February 2002
  • From: Reading, PA
  • 30,002 posts
Posted by rrinker on Tuesday, October 6, 2009 6:43 AM

 Yelo Glo LEDs have pretty much the same rating as most other white LEDs - 3.5v, 20ma. So it's a direct substitute in this circuirt. I don't have the issue handy to see what it actually looks like as far as adding additional LEDs. With the limited number of parts it sounds like the LED is a key part of the circuit, not just the load applied to an otherwise independent circuit, so just plugging in more LEDs with the circuit as-is may not be possible.

                            --Randy

 


Modeling the Reading Railroad in the 1950's

 

Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.

  • Member since
    October 2006
  • 18 posts
Posted by macmack on Tuesday, October 6, 2009 3:23 PM

This is the wiring diagram of the circuit that I'm questioning about, from the May 2008 issue.  I drew this diagram using Microsoft Paint (following the July 2008 "corrected" magazine illustration) and added the values of the components that were listed in the article.  I would build the circuit and try it out, but the local Radio Shack here where I live, does not carry the particular bridge rectifier or capacitor that is required by this article.  The only place I can find them is online and I do not want to have to order multiple components and pay $10 or more in shipping fees unless this circuit is going to do what I want it to do.

http://www.flickr.com/photos/69815348@N00/3987511229/

Thanks again for any replies.

 

  • Member since
    March 2008
  • 53 posts
Posted by Valleycrest RR on Tuesday, October 6, 2009 4:53 PM

The circuit does not appear correct. I don't have that issue of MR handy, but I will look for it.

The numbers imply that if you put 3.5 volts across the LED it would draw 20 milliamps. The same current must pass through the 4.7K resistor. Ohm's Law says the voltage across the resistor would equal the resistance times the current. 4700 X  .02 = 94. I don't think the circuit develops 97.5 volts. If the circuit developed 12 volts, 470 ohms would be a realistic value for the resistor. 470 X .02 = 9.4 volts.

9.4 volts across the resistor plus 3.5 volts across the LED would be 12.9 volts. This could make some sense.

If you put 2 LEDs in parallel, they would draw twice the current. You would have to cut the resistance in half. The resistance equals the desired voltage divided by the current. 12.9 / .04 = 322.5 ohms.

  • Member since
    March 2008
  • 53 posts
Posted by Valleycrest RR on Tuesday, October 6, 2009 5:12 PM

Oops

You still want to drop 9.4 volts. 9.4 / .04 = 235 ohms. You need to watch the power. Power equals the voltage times the current. 9.4 volts X 40 milliamps = .376 watts. You need a half watt resistor.

If you put two LEDs in series, you need to drop 12.9 - 7 = 5.9 volts. 5.9 / .02 = 295 ohms. 5.9 volts X 20 milliamps = .118 watts. you need a 1/4 watt resistor.

I think there were some comments made about this circuit and drawing power from the power for locos. The current for lamps can add up quickly.

  • Member since
    July 2006
  • 3,312 posts
Posted by locoi1sa on Tuesday, October 6, 2009 5:32 PM

 Why not get a TCS FL2 decoder and program the address of the car # into it? You could use the one lighting circuit for the main cabin and put another LED in the lavatory and control it with your throttle. I put an FL4 decoder in a friends car with 4 drawing rooms and each room was lit with a different LED. An FL2 can be had for around $12.

        Pete

 I pray every day I break even, Cause I can really use the money!

 I started with nothing and still have most of it left!

  • Member since
    November 2002
  • From: Colorado
  • 4,075 posts
Posted by fwright on Tuesday, October 6, 2009 5:33 PM

The circuit shown is very simple.  The bridge rectifier changes the DCC to DC for the LED power.  Any current rating in excess of 100ma will do (for 4 LEDs).  You can also use 4 diodes wired as a bridge to do the same thing (25PIV or better, 100ma or higher).  The capacitor filters out any ripple in the power - 25 volt rating is minimum, 4.7ufd can be varied substantially without effect.  The higher the value in ufds, the better the filtering of low freq components.

The resistor will have to be changed to handle the number of LEDs if the LEDs are wired in series.  A much better arrangement is to use a resistor for each LED, and wire the LED-resistor combos in parallel.  The resistor value given seems a little high, you might want to go lower if the LED is not bright enough.  Somewhere between 1K and 1.5K is usually about right, depending on actual input voltage.  Shoot for 10-15 ma through the LED.

Measure the voltage out from the rectifier/capacitor combo with track power in.  Then subtract the voltage drop of the chosen LED from the output voltage.  Divide the result by 0.012 amps to get the ideal resistance.  Drop down to the next commercially available resistor size and you should be around 15ma.  A 1/2 watt resistor should be fine unless the track voltage is higher than 14 and/or you are pushing the full 20ma through the LED.  If you want a dimmer LED go to the next higher available resistor size. 

hope this helps

Fred W

  • Member since
    February 2002
  • From: Reading, PA
  • 30,002 posts
Posted by rrinker on Tuesday, October 6, 2009 6:45 PM

 The capacitor in a full-wace rectifier circuit 'pumps' up the voltage quite a bit. Say you feed it with 14.5V DCC, there will be a drop across the diode bridge but that will more than be compensated for by the capacitor. I'd expect 15-15V at the terminals of the capacitor, depending ont he exact stream of DCC commands goign out - at least. Build it with no LED or resistor, measure the volts across the cap, and then plan for LEDs and resistors based on that voltage.

Radio Shack 276-1152 is a reasonable sub for the bridge, it's 1.4 amps at 100 volts.

272-1024 is a 4.7uF 35 volt electrolytic capacitor - use that one.

Both those parts are typically available in the stores. In the case of the rectifier, you can use one with a higher amp rating and/or higher voltage - just the more amps and more volts they get physically bigger. As for the capacitor, the same value at a higher voltage is always safe.

                                            --Randy

 


Modeling the Reading Railroad in the 1950's

 

Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.

  • Member since
    February 2007
  • From: Christiana, TN
  • 2,134 posts
Posted by CSX Robert on Tuesday, October 6, 2009 8:57 PM
fwright
...The resistor will have to be changed to handle the number of LEDs if the LEDs are wired in series.  A much better arrangement is to use a resistor for each LED, and wire the LED-resistor combos in parallel...
I agree that when you run LEDs in parallel, it is better to have a separate resistor for each LED, but in this situation, I think it would be even better to wire the LEDs in series and use one resistor. If you wire the LEDs in parallel and limit each one to 20 ma, then the circuit would draw 20 ma for each LED, but if you wire some of them in series, then each group wired in series would draw 20 ma. As an example, with 12 volts at the capacitor, you could run 3 3.5v LEDs in series. To run them at 20 ma would require: 12 - (3 x 3.5) / .02 = 75 ohms. The closest standard 10% resistor would be 82 ohms. With the 82 ohms resistor, the circuit would draw 12-(3 x 3.5) / 82 = 0.018 amps(18 ma). The disadvantage to wiring them in series is each group has to run at the same current, while if you wired them all in parallel, each with it's own resistor, you could adjust the brightness of each one individually.
rrinker
The capacitor in a full-wace rectifier circuit 'pumps' up the voltage quite a bit. Say you feed it with 14.5V DCC, there will be a drop across the diode bridge but that will more than be compensated for by the capacitor...
I don't believe that is correct. When talking about sine wave AC power fed through a bridge rectifier and filter capacitor, the DC output voltage is greater than the AC input voltage. The reason for this is the "voltage" when referring to AC voltage is the root mean square voltage, but the peak to peak voltage is much higher and the peak voltage(minus the diode drops) is what you get out of the capacitor. The voltage of a square wave is the peak to peak voltage. Regardless, it is still a good idea to measure the voltage at the capacitor to calculate what resistors are needed.
  • Member since
    October 2006
  • 18 posts
Posted by macmack on Tuesday, October 6, 2009 10:38 PM

I was thinking of wiring the circuit like this.  The only problem is, I don't know what the rating of the bridge rectifier or capacitor should be.  I was hoping I could use 1K resistors, either 1/4 or 1/2 watt, as I have several left over from a previous project.  The voltage input that is shown in this diagram, I measured from my MRC Prodigy Advance (the original one, not the newer Squared version.)  With power to the track (no engines or rolling stock on it,) I measured 13.5V.  With power on and running my newest engine (MTH GS4 Daylight,) I measured a peak of 13.9V.  I put 14.5V max. on the diagram just for a little protection against any spikes in power from any other engines.

http://www.flickr.com/photos/69815348@N00/3989277076/

 Thanks again for any replies.

  • Member since
    November 2002
  • From: Colorado
  • 4,075 posts
Posted by fwright on Wednesday, October 7, 2009 4:51 AM

macmack

I was thinking of wiring the circuit like this.  The only problem is, I don't know what the rating of the bridge rectifier or capacitor should be.  I was hoping I could use 1K resistors, either 1/4 or 1/2 watt, as I have several left over from a previous project.  The voltage input that is shown in this diagram, I measured from my MRC Prodigy Advance (the original one, not the newer Squared version.)  With power to the track (no engines or rolling stock on it,) I measured 13.5V.  With power on and running my newest engine (MTH GS4 Daylight,) I measured a peak of 13.9V.  I put 14.5V max. on the diagram just for a little protection against any spikes in power from any other engines.

http://www.flickr.com/photos/69815348@N00/3989277076/

 Thanks again for any replies.

 

As was discussed in the previous couple of posts, your meter reads an RMS AC voltage.  In the case of a sine wave, the RMS is 0.707 times the peak voltage (or the peak voltage is 1.414 times RMS).  DCC is not a sine wave, and calculating the peak voltage is rather difficult - the easiest way is to measure with an oscilloscope.

The full wave rectifier will have a voltage drop of 1.4 volts from whatever the peak input is.  The capacitor, if of reasonable size, will charge to pretty close to the peak voltage it receives, not the RMS.  Again, if DCC were a sine wave (it's not even close), the output of the power circuit would be 1.4 times the input RMS minus 1.4 volts dropped by the rectifier.  In your case of a DCC input, we don't know what the DC output of the power circuit will be - it will be somewhere between (1.4*14)-1.4=18.4 and 14-1.4=12.6 volts.  Correct resistor size is going to vary, depending on what the true output voltage is.  Please measure it.

The experience of friends who have installed LED headlights and marker lights on their DCC locomotive (function outputs from a decoder) is that resistors of 1K to 1.5K seem to work best.  Less than 860 ohms tends to overdrive the LED and may cause it to self-destruct, although Circuitron supplies smaller resistors (usually 560 ohms) with their "12V" LEDs.  My friends usually try several different size resistors in the suggested range to get the LED brightness that suits them.

To answer your question, the rectifier has to have a current rating high enough to drive the current of all of your LEDs, so 100ma or higher is fine (I think 1 amp is the smallest common rating).  The PIV (peak inverse voltage) rating has to be higher than the peak voltage, so a 25 PIV or higher is fine.

The suggested capacitor size of 4.7ufd is good, and voltage rating again needs to be higher than any peak.  25V would be the minimum.  In both the capacitor and rectifier, ratings higher than 25 volts will protect against any surges and spikes, at the cost of larger physical size.

hope this helps

Fred W

  • Member since
    October 2006
  • From: Western, MA
  • 8,571 posts
Posted by richg1998 on Wednesday, October 7, 2009 5:16 PM

If you ever fall over in public, pick yourself up and say “sorry it’s been a while since I inhabited a body.” And just walk away.

  • Member since
    October 2006
  • 18 posts
Posted by macmack on Wednesday, October 7, 2009 10:57 PM

To fwright, thanks for all your help, this info is greatly appreciated, I'm sorry that I missed this info in the earlier posts, I have been checking this forum in the late hours of the night (12-3AM Eastern.)  I am not sure how to measure the "true" output voltage of my DCC system, but I've just found (I've been looking for it for 3 years now) the book to my DCC system.  In it, it says the output to the track is "DCC signal with 14.5V amplitude" (don't know if that helps.)  I have installed LEDs in a few of my locos with 1K resistors, but I have never dealt with rectifiers or capacitors and wanted to be dead sure what to use, before I attempted anything.

Thanks again,

Chris M.

  • Member since
    November 2002
  • From: Colorado
  • 4,075 posts
Posted by fwright on Thursday, October 8, 2009 4:33 AM

macmack

To fwright, thanks for all your help, this info is greatly appreciated, I'm sorry that I missed this info in the earlier posts, I have been checking this forum in the late hours of the night (12-3AM Eastern.)  I am not sure how to measure the "true" output voltage of my DCC system, but I've just found (I've been looking for it for 3 years now) the book to my DCC system.  In it, it says the output to the track is "DCC signal with 14.5V amplitude" (don't know if that helps.)  I have installed LEDs in a few of my locos with 1K resistors, but I have never dealt with rectifiers or capacitors and wanted to be dead sure what to use, before I attempted anything.

Thanks again,

Chris M.

 

Again, you don't need to worry about your DCC output voltage for the purposes of installing LEDs.  What does matter is the DC voltage across the LED/resistor combination.  That DC voltage (output across the filter capacitor) is easily measured with a meter and is used to calculate the resistor size.  There are several on-line resistor calculators for LEDs - Rich gave some links.  1K or 1.5K is usually a safe starting point in mr applications and LEDs, with final size being determined by desired brightness.

Fred W

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Users Online

There are no community member online

Search the Community

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT
Model Railroader Newsletter See all
Sign up for our FREE e-newsletter and get model railroad news in your inbox!