Skip to main content

I can find 12v warm white LED strips on Ebay, but I am running conventional, so need 3 - 6 volt LED strips which will light using my 1033 PW transformer when I crack it on.  Aren't the 12v strips for DCS or TMCC  where there is contant voltage on the track?   Or perhaps I need to use single LED's that light up at a low voltage ??  I already know how to build the circuit using a bridge rectifier, capacitor, and resistor.   Any advice appreciated.                                

My youtube channel

 (19150dava)

Original Post

Replies sorted oldest to newest

I have used gunrunnerjohn's constant current driver with a CL2 on the roll strips that break off in sections of 3 leds. I just tested a caboose with only 3 and it lights at 6.6 volts ac track voltage. Fluke true rms meter.

Anyway, it's all about your driver circuit. the leds raw will light at 2.3 - 3.4 depending on the color. It's the driver circuitry converting the AC and controlling the voltage or current that uses the rest.

The 20110 LED Regulator was really designed with command operation and constant voltage in mind.  I like the module Stan shows for conventional operation.  Had I known then what I know now, I might have attempted to do a fancier module with the capability of operating over a wide range of voltages.  I think that ship has sailed at this point.  It would probably be a larger module than the one I came up with, but of course it would also be more capable.

This topic has rekindled my desire to convert some of my passenger cars to LED lighting. 

I found the following modules on Amazon for $12.98.

]WGCD 10pcs Mini 360 DC to DC Buck Converter Step Down Module 4.75V-23V to 1V-17V       

  • The input voltage: 4.75 V - 23 V
  • The output voltage: 1.0 V - 17 V
  • The output current: 3 A (Max)
  • Conversion efficiency: 96% (maximum)
  • Switching frequency: 340 KHZ

 

I realize I need to add a rectifier and capacitor for AC current input.  Does anyone know a reason not to use these units?

Last edited by GregM

Those modules only handle 23V DC maximum, rectified 18V track power will usually exceed that, something to keep in mind.  I use similar modules that have a 28VDC maximum in a little P/S module I created.  You'll need at least a rectifier and a filter cap, and for DCS compatibility, the 22uh choke.  Here's The board I used and my module perched on top that  adds the choke, bridge, and filter caps.  Note the hole in the upper PCB to allow for voltage adjustment.

This is the schematic for the module.  I have a jumper option to use full-wave or half-wave rectification.  That's useful as most TMCC stuff has a common AC and DC ground.  If I use this in a TMCC environment where I want the DC to have a common ground, I use the half-wave feature.  If I don't mind the DC requiring total isolation, I use the more efficient full-wave feature.

John H posted:

I have a good reason right here. $18 gets you two modules and the only thing to add is a light strip. That was my point in my post. I think it's a pretty good deal.

 In Greg's defense, he's talking about ten of the modules for that price. Of course, you do have to add the other components to make a complete solution.

Attachments

Images (2)
  • mceclip0
  • mceclip1
Last edited by gunrunnerjohn

GRJ, thank you for the information you provided above.  It has been a long time since l did electronic "stuff."  A couple questions if you don't mind, what is the reason for "common ground" setting with LED lights?  Also would adding a resistor between the unregulated DC and the module be sufficient to prevent voltage overload?

 

The reason for my option was as I stated, sometimes I need a common AC and DC ground.  Other times, such as my passenger car lighting module, I don't have that requirement and I use a bridge rectifier.

The resistor is probably not going to do the trick.  You can buy the proper 28V rated module for the same price on eBay, that's the way I'd go. 

You could use some back to back 5V Zener diodes to drop the voltage a bit for each module.  A kludge, but it works.  You still need the other components, rectifier and capacitor, also the choke if you use DCS.

If you're going to get into soldering components together, you can probable roll your own easier than using the modules.  For low currents for LED lighting, constant current is the way to go.  You can tune the brightness by varying the resistor value.  This is basically how my lighting modules work.

Constant Current LED Passenger Car Lights

Attachments

Images (1)
  • Constant Current LED Passenger Car Lights
Last edited by gunrunnerjohn

I go with 35V capacitors, they've always been sufficient.  The voltages on 18 volts end up being in the 26 volt range on the capacitor.  25V capacitors would probably fail pretty quickly with that voltage.  The circuit above is good for around 50ma without any heatsink, if you're driving 12V lighting strips with an 18V AC power supply, that results in .8 watts power dissipation in the LM317.  It'll get around 70C or so, but within it's operating ratings.  If you want more current, add a heatsink to the TO220 regulator package.

If you haven't yet placed your DigiKey order consider a 40 cent trimpot to adjust brightness.

http://www.digikey.com/product...1/3306F-201-ND/84621

In place of a fixed-value R1 in GRJ's diagram above you could use, say, a 27 ohm resistor in series with a 200 ohm trimpot to give an adjustable R1 range of 27 to 227 Ohms.  This would give a current range of about 5 mA to 45 mA.  This adjustment method is discussed/documented in one of GRJ's previous posts.

I realize you're not doing eBay but for anyone contemplating a roll-your-own you can get 200 ohm trimpots on eBay for about 10 cents each shipped.

200 ohm trimpots for 10 cents each

Attachments

Images (1)
  • 200 ohm trimpots for 10 cents each
Last edited by stan2004

Hi all - I did this conversion to my Polar Express but something seems amiss (don't want to hijack the thread): I don't have constant brightness (it still varies with power applied), and now there are tiny sparks/crackling where the wheels meet the rails when it rolls.  There's a very small hum too, changing pitch depending on power applied and whether or not the light strip is attached to the Buck (no strip = no hum).

I used these components:  Buck Converter,  Light string (3528)Bridge Rectifier, 220uf capacitor.  Piece of cake to solder up.  I removed both bulb sockets in there and ran the incoming power wires to one "~" of the bridge and the incoming black wires to the other "~".   "+" and "-" out to the Buck.  The power wires have a stripe on them (at least one does) and initially attached to the red wires of both sockets, opposite for the black wires.

The light string for the car lights up so I know the AC-DC conversion is happening.  Could something be improperly grounded or crossed (I don't see how, but...)?  Are my components wrong?  What should I check?

Thanks much

It has only been two years, but I finally sat down this month and learned enough about the KiCad EDA program to design a PCB to use the parts bought back in 2017.  Only ordered three PCB's from OSH Park to make sure I didn't screw up somewhere along the way.  Now to just wait for them to get here.

I believe I have the PCB matching the schematic, PCB layout passed all of KiCad's checks.  I just don't know if I left enough room around the components (using through hole for now) to be able to actually populate the board.  I think so, but we will see in a couple weeks or so.  I reworked the PCB a couple of times to get its dimensions under 1 inch by 2 inches.

 

Greg did say he's using a through-hole component design...a wise first step.  The components in his version would be about 50 cents per board in small quantities on eBay.  So even if the extra square inch increases board cost, in DIY quantities it might be a wash if eBay from Asia is an option.  Then there's the assembly and handling hassles of surface-mount parts which require the dexterity and eyesight of a teenager.  

 

Edited to clarify board dimensions.

This is the very first PCB I have ever had produced for me.  I only ordered three boards this go around for prototyping.  I hope I get better as I go along but for this time I was content when I got the board under two inches long, first layout was about 2.25 inches long.  Decreasing the board length did bring the cost down from my first attempt.  I really don't intend to produce that many boards in the long run, but if eventually these boards help others that would be nice.

 

P.S.  I never had the eyesight of a teenager when I was a teenager, let alone now.

 

 

Last edited by GregM

GREGM; I think it's commendable that you are brave enough to launch into designing and ordering your own PCB's from OSH Park. Hopefully they will work as you envision. I just received 2 orders of boards from OSH Park using grj's Gerber files which he kindly provided, and they look great. Kudos to grj for all the research and design work!  My first impression of the boards is how small they are. Yikes! I know they are going to be fiddely to build, but hopefully I am up to it. Time will tell I guess. I expect it will be one of those things where just as you finish the last one, you find the best way to do it. 

Rod

Rod, I always find something that could be done better AFTER I send the boards out to fabrication!

Ted, I just picked parts out of the PCB package, I'd have to scout them out.  I know they exist, because all the 3D models are of real parts.  The one I did specifically look up was the 470uf capacitor, I was trying to do it with a 13mm part, but couldn't find one that was the right value.

I have made a couple of additions to the circuit design.  I will wait until after I receive the ordered PCB boards to layout a new PCB to match this schematic.  Once I actually see the board I can work on placing the components closer together.

 

 

Let me know if you see something wrong.

Thanks for every ones input.

 

Attachments

Images (1)
  • mceclip0

John,

I reread your post at the top of this page again.  I see the confusion now, my board isn't 2 inches square, it is just under two square inches of PCB material.  I calculated the dimensions as 1.95 inches by .85 inches.  OSH Park calculated the dimensions as 1.96 inches by .86 inches.  My first attempt was (my calculation) 2.25 inches by .85 inches.  Decreasing the length of the boards reduced the cost for the three boards to under $8.00.

 

Rod,

Got distracted, meant to say Thank You when I typed this post.

Last edited by GregM

I'm confused about the PTC, the regulator has current limiting, the chance that the PTC will be used is pretty small.  You'd be better off with a universal design to toss in the 22uh choke for DCS in that spot.

----------------------------------

I missed that 10mm cap, I could have made that board smaller with that one.  With the 10mm diameter, it's now 1" x 3/4".

Attachments

Images (1)
  • mceclip0
gunrunnerjohn posted:

I'm confused about the PTC, the regulator has current limiting, the chance that the PTC will be used is pretty small.  You'd be better off with a universal design to toss in the 22uh choke for DCS in that spot.

----------------------------------

I missed that 10mm cap, I could have made that board smaller with that one.  With the 10mm diameter, it's now 1" x 3/4".

 

The PTC is there to prevent the wires from melting in the event of a derailment that causes a short between the rollers.  I have read that recommended here.

gunrunnerjohn posted:

I missed that 10mm cap, I could have made that board smaller with that one.  With the 10mm diameter, it's now 1" x 3/4".

John that is a petty nice compact board layout, and it looks like it would be simple enough to build, even for a hacker like me. Is that a complete ready to go Gerber file? And how did you create it so fast?

Rod

Last edited by Rod Stewart

It's not a Gerber file yet, but that's just because I didn't export it from the PCB layout package.  As for the creation speed, there are only a handful of components on the schematic, I just picked representative package sizes for the parts and then plopped them on the circuit board.

Before I committed it to Gerber, I'd probably want to insure I can actually buy the parts represented.  They are real part sizes, but they may not be readily available.  I refer specifically to the pot and the choke, the rest I know are available in that footprint.  I also thought that maybe trying to get a pot that is adjusted from above would be a better option.

Here you go, everything you need to build that board, including the BOM.  All the parts are available on Digikey, but you can also probably find even cheaper sources for some of them.

Have fun.

Pass_Car_Lighting thru-hole [top adjust) 3DPass_Car_Lighting thru-hole [top adjust) Schematic

Pass_Car_Lighting thru-hole (top adjust) BOM.pdf

Pass_Car_Lighting thru-hole Gerber (top adjust).zip

Attachments

Wow John, that is fantastic, thanks for taking the time out of your schedule to whip that up.  I especially appreciate that this is a leap of faith for you inasmuch as it competes with your kit already being sold by Hennings. But it is a great help for those of us who want to roll our own, and don't have the talent or time to whip up our own board design, and find thru-hole building easier.

It should be possible to make a 100 ma version simply by switching R1 & R2 to 12 and 50 ohm values respectively, correct? I may also poke around and see if Digi-Key has a larger value C1 cap, still in a 10 mm body style and 35V, accepting that it will be taller of course.

As always, my hat is off to you! 

Rod

Below is a link to a circuit that I just purchased which accepts AC in and outputs DC. It has an adjustable output as well. The cost is about $2.00 each The size is about 3/4 in by 2 in and is about 7/8 in tall. This should cover most the of questions being asked in this thread.

https://www.ebay.com/itm/AC-DC...p2060353.m2749.l2649

 

AC-DC-LM317-Linear-Regulator-Step-down-Rectifier-Buck-Power-Module-1-25-37V-1-Gh

 

 

Thanks;

idea-thinker

 

So with the latest incarnation, the bare per-board cost is down to ~$1.30...and if you do eBay for components, the total out-of-pocket is $2 per board!  Wow.

So I realize the thread is titled pax cars, but mate this with a 99-cent (free-shipping from Asia) eBay relay module, set the current to max (45 mA) and for $3 you have an insulated-rail relay module for gate-crossing mechanisms, dual-aspect signals, etc..  Again, this means you must know which end of a soldering iron to hold, but I believe this would be the lowest cost ever for an insulated-rail relay module.  

idea-thinker posted:

Below is a link to a circuit that I just purchased which accepts AC in and outputs DC. It has an adjustable output as well. The cost is about $2.00 each The size is about 3/4 in by 2 in and is about 7/8 in tall. This should cover most the of questions being asked in this thread.

https://www.ebay.com/itm/AC-DC...p2060353.m2749.l2649

That's certainly an option, but note that it's twice the size and also taller.  I use an LM317T that has the tab that can be folded down to reduce the height of the board to just over half an inch.  This board also lacks DCS compatibility, so you'd have to add an external choke.  Finally, my design is a constant current design for a very specific reason, it's very easy to get a precise intensity as the adjustment from dim to bright covers the entire pot travel.

Different strokes for different folks.

stan2004 posted:

So with the latest incarnation, the bare per-board cost is down to ~$1.30...and if you do eBay for components, the total out-of-pocket is $2 per board!  Wow.

If you buy a quantity of boards, you can do considerably better than that for this size board.  Here's one estimate, total looks to be around 20 cents a board for quantity 100.

Attachments

Images (1)
  • mceclip0

For those of us running conventional AC, here's another boost-buck unit, similar to what Stan showed earlier, FWIW. 

https://www.ebay.com/itm/DC-DC...047675.c100010.m2109

The one thing it lacks is a trimpot to fine-tune the LED brightness - though I note that these modules seem to come in different flavors, ~3, ~4, 5, 9 and 12 vDC, so doing something at 9v might be an option.  I have the LED strip I've been thinking about using (another one of those "round-tuit" projects) so I could see how bright that strip is at 9 v*.  What caught my eye was the small size - 19 x 14 x 4 mm.  These are $2.85 each, which is a bit pricier than others, but given the number of passenger cars and cabeese I have, affordable.  Still have to have an AC to DC bridge in front of them.

- Rich

*ps  Most of the LED strips I've seen and used (undercabinet lighting in my kitchen) are rated at 12 vDC input -- is there any reason NOT to operate them at a lower input voltage - e.g. 9 v (assuming the light quality is ok at that voltage)?

stan2004 posted:
                                                             **************

....but mate this with a 99-cent (free-shipping from Asia) eBay relay module, set the current to max (45 mA) and for $3 you have an insulated-rail relay module for gate-crossing mechanisms, dual-aspect signals, etc..  Again, this means you must know which end of a soldering iron to hold, but I believe this would be the lowest cost ever for an insulated-rail relay module.  

Okay Stan, where is the eBay link/item number for "99 cent ... relay module" for those of us who do not keep up with this stuff.

You and GRJ are terrific contributors to the content here--THANK YOU BOTH.

richs09 posted:
*ps  Most of the LED strips I've seen and used (undercabinet lighting in my kitchen) are rated at 12 vDC input -- is there any reason NOT to operate them at a lower input voltage - e.g. 9 v (assuming the light quality is ok at that voltage)?

Gosh, no!  Although my modules use constant current, the running voltage of the 12V LED strips actually have from around 8.5V to 11V applied, depending on the current setting.  You don't damage LED's with low current, only with high current!

Pingman posted:
stan2004 posted:
                                                             **************

....but mate this with a 99-cent (free-shipping from Asia) eBay relay module, set the current to max (45 mA) and for $3 you have an insulated-rail relay module for gate-crossing mechanisms, dual-aspect signals, etc..  Again, this means you must know which end of a soldering iron to hold, but I believe this would be the lowest cost ever for an insulated-rail relay module.  

Okay Stan, where is the eBay link/item number for "99 cent ... relay module" for those of us who do not keep up with this stuff.

Dozens of choices on eBay searching for "12V relay module"...such as

ebay 99 cent relay module 12v

The pairing is described in greater detail in this OGR thread which includes a video proof-of-concept.

And as GRJ points out, at higher board quantities the cost is almost unbelievable!  Again, this is for the DIY enthusiast as assembly-wiring-soldering is required.   Though it should be pointed out that off-the-shelf relay modules for insulated rail triggering typically don't have capacitor storage which provides anti-chatter protection and companion inductor for DCS compatibility.

Attachments

Images (1)
  • ebay 99 cent relay module 12v

Gene, yes, I uploaded the zip file to Osh Park.  Price is batches of three shipped.  I have an account as I have ordered other boards from them.  I don’t know if GRJ has shared the file or not, but I’m sure he would if need be.  I could share it under my account also, I guess.(but is it mine to share?)  FWIW, I had to use an old windows laptop to upload file.  Copied it to the desktop then within OP’s site pointed the “browse for files” box to that zip.  Was automatic from there.  Really pretty easy.  Couldn’t make it work from the iPad I use for forum work.  Let me know if you need something additional.  Perhaps someone else has help for you also.

Last edited by TedW

Gene, like TedW, I downloaded GRJ's zip file and then uploaded it to OSH Park to order some boards.

Also, after I read your post and TedW's reply, I tried to use the link in his post, and copy and paste the zip file link that GRJ posted.  I had no success in doing this.

As GRJ said, his zip file is safe, and if you want the boards it's an easy way to order them.

And props to TedW for letting me know off forum of the availability of these GRJ/JWA boards.

Now, I'v off to re-read the link in Stan's reply regarding the relays, and then order some on the bay.

Once you have an account set up with OSH Park, it is very easy to do a repeat order or a new order. Uploading John's Gerber files to their site is quite simple. Once the site has processed the files you can see all the front and back views, the silk screening, etc. And they accept Paypal. My first two orders went very smoothly and I had the boards delivered in about 2 weeks.

Rod

Actually I find that the time consuming part of this is ordering all the needed components. John has kindly provided the BOM, but you still need to go to the Digi-Key site and find each component and add it to your cart, then when its all correct go ahead and place your order.

I usually set it all up in a spreadsheet first and I am just working on this for these new boards. If anyone is interested I can post it once complete. Another option would be a snip of my cart summary once complete. I could just post that here for anyone to duplicate. I wonder if its possible to export the electronic cart summary from their site, anyone know?

Rod

Last edited by Rod Stewart

I have another question for John/Stan/et al. - but first, Kudos.  I'm sure some of you have seen the missive from Alan Arnold (OGR head honcho) about his growing concerns about the escalation of negative posts in some of the discussions (something I recall Rich Melvin - his predecessor - worrying about).  Fortunately I haven't seen a lot of that and in apparent (and delightful) contrast to that concern has been the very helpful discussions and inputs in this forum on converting passenger car lighting to LEDs.  This is a topic that has been discussed quite a bit over the past several years yet the really knowledgeable and helpful folks like John, Stan and others haven't dismissively said 'we covered that back in "aught six" - go look it up...' but instead have engaged with the various 'new to the topic' folks and those of us that have been in the 'contemplation' stage for a couple of years.  So I just wanted to say "thanks" for both the knowledge and experience, the willingness to offer help, but also the attitude.  Nice goin'...

So my question - looking back at the earlier part of this thread, which is a couple of years old - John, you made a comment about not having anything grounded to the frame (in response to a troubleshooting question).  I'm not sure how Lionel passenger cars are wired up - I'm a Flyer guy and in my case, the track power circuit is typically the 'hot' pickup through one truck which is insulated from the car frame and a wire lead from that truck (usually from the top of the truck rivet) to one side of the light bulb socket.  The other side of the socket is usually connected physically to the metal floor of the passenger car, which in turn is connected to the other truck (uninsulated).  My plan is to take the leads from the two trucks (I'll solder a lead to the rivet on the uninsulated truck or connect it to the frame) as inputs to the AC side of the AC-DC bridge circuit.  Nothing 'downstream' of that connection will electrically connect to the metal floor/frame.  Is that consistent with not grounding to the frame?  I suppose alternatively I could insulate the other truck from the floor/frame - which turns this into a somewhat bigger project.

Thanks,

Rich

richs09 posted:

So my question - looking back at the earlier part of this thread, which is a couple of years old - John, you made a comment about not having anything grounded to the frame (in response to a troubleshooting question). 

RIch, that comment is on the DC side of the lighting module. Since the frame & center roller go into the bridge and there's a diode between them and the output + or -, you MUST NOT ground either + or - on the output. For a Flyer 2-rail scenario, same caution applies, except it's the power from the wheels. You don't have to isolate anything, just make sure the DC out of the module doesn't connect to the frame anywhere.

TedW posted:

FWIW,  Here’s a cart share from digikey on the products for the GRJ-JWA pcb.  I’m very sure as GRJ sez, you can find cheaper prices from Asia.  YMMV

Edit:  I already had the chokes which is why they aren’t included.

digikey Parts

Did you see this?

Attachments

Images (1)
  • mceclip0
gunrunnerjohn posted:
richs09 posted:

So my question - looking back at the earlier part of this thread, which is a couple of years old - John, you made a comment about not having anything grounded to the frame (in response to a troubleshooting question). 

RIch, that comment is on the DC side of the lighting module. Since the frame & center roller go into the bridge and there's a diode between them and the output + or -, you MUST NOT ground either + or - on the output. For a Flyer 2-rail scenario, same caution applies, except it's the power from the wheels. You don't have to isolate anything, just make sure the DC out of the module doesn't connect to the frame anywhere.

TedW posted:

FWIW,  Here’s a cart share from digikey on the products for the GRJ-JWA pcb.  I’m very sure as GRJ sez, you can find cheaper prices from Asia.  YMMV

Edit:  I already had the chokes which is why they aren’t included.

digikey Parts

Did you see this?

Yeah, backordered, but they said estimated ship was 2/4/19, so I went with it as I’m in no rush.  The boards will take a week or so too.  BTW, thx again for the share, that should work for everyone directly to the order page.

https://www.digikey.com/produc...497-1575-5-ND/591677

Here's a version that is apparently in-stock at DigiKey and less expensive 67 cents (vs. 87 cents).  While I appreciate the convenience of 1-stop-shopping from DigiKey, given the ~2 week delivery time from OSH park, I wonder if going with an eBay Asia source is something one might consider.  IIRC the LM317 goes for less than 20 cents on eBay (from Asia).

Wow, a lot of activity on this thread since it was revived the other day.  

I had time this afternoon, so I revised my version of the PCB layout compressing it as much as possible.  Got it down to 1.08 by .86 inches.  Total area .9288 square inches.  Just like the previous time, OSH Park made the dimensions just .01 inches bigger in each dimension.  Not an issue, just made me laugh.  The price for three boards went down as expected.  Probably go ahead and order another batch of three boards.  Only reason I will get just three is to make certain I can actually populate that small of a PCB without problem.  It has been a long time since I have done any circuit board building.  Last time I did it I actually etched the PCB board using chemicals.

Yeah, that’s the order, but I recommend anyone to search elsewhere because of the price difference.  I even had some of the parts on hand but were not an exact match so I ordered the speced out part anyway.  The LM317T for example.  I have 30 in my bin I paid $4.35 shipped!   Oh well.  And from the page John copied it sez the regulators are available to ship.  I just got an email saying the order has shipped...  

Last edited by TedW
gunrunnerjohn posted:

You do realize you can actually truly delete the whole post, click on the Take Action link on your post and use the Delete function.

I find it therapeutic to manually delete incorrect information and publicly acknowledge the error of my ways--but, NO, I never knew I could delete the reply in its entirety--make it disappear which I have now done.

gunrunnerjohn posted:

Sounds like a more reasonable size, got a picture of the new layout?

Don't get me wrong, I truly appreciate all the help and advice I have received but honestly I don't understand why it's now "a more reasonable size."  I stated that I had never before designed a PCB that would be manufactured for me.  This is all new to me, I am only doing this to attempt to actually complete a project I purchased components for quite a while ago.    It was never my intention to compete with anyone with regards to board production.  I probably would use your board design as many others have if I didn't already have different components on hand.

 

As requested, here is a picture of the revised board layout.

 

PCB Ver 1.0.2

Attachments

Images (1)
  • PCB Ver 1.0.2

Add Reply

Post

OGR Publishing, Inc., 1310 Eastside Centre Ct, Suite 6, Mountain Home, AR 72653
800-980-OGRR (6477)
www.ogaugerr.com

×
×
×
×
Link copied to your clipboard.
×
×