News:

Please read the Forum Code of Conduct   >>Click Here <<

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - JVene

#1
Thomas & Friends / DCC on the cheap :)
July 07, 2007, 10:15:16 PM
Well, my son got hooked!

We visited what he now regards as the 'real' Thomas in Strasburg, Pa (a 1917 engine they've outfitted to look very much like the DVD Thomas).

While there he got Thomas, Annie and Claribelle.

Now he wants a Percy, and associated cars.

Two engines on one track means DCC.

I'm a software developer/engineer, so reading the specs on DCC made good sense to me. We have to economize, though, so while the engines and cars will be Bachman, I have to make the DCC power booster and digital controller myself.

To get his Thomas going, I made a power supply out of an old spare audio power amplifier on a chip I had in my parts box, with the obvious bipolar power transformer and associated components. The power amplifier runs the engine (in DC) with plenty of power to spare, plus I get auto shutoff on shorts, thermal and overcurrent protection, the works.

Since it's an audio power amplifier with bipolar output, and DCC runs at 50microseconds or longer transitions, it's the equivalent of about 9 Khz, well within the power band of the amplifier. The slew rate is also well above the DCC power timing requirements.

So, after studying the DCC control signal details, from the simple commands through extended and service modes, I've decided to write software that sends DCC control signals to the power amplifier from the audio card. It happens to fit just perfectly - an audio card from a computer handles the timing precisely for me, I just keep feeding it what 'looks' like audio, if square waves resembled audio, and let it keep the timing continuously precise (just like playing music).

The audio output from the computer will be +/- 1 volt, approximately (more for types that have a built in amplifier of their own), which will be fed into an operational amplifier to control the voltage swing to the power amp chip.

After that, the little power amp drives about 3.5 amps at +/- 16 volts, and works down to a load of 8 ohms, which seems like about 4 engines, depending on which ones.

The amp chip was about $3, the transformer was $15 (bipolar 18 volt, center tapped at 4 amps). Associated resistors, caps, diodes, breadboard was about another $8, with room for the 80 cent op amp and it's few components (another 25 cents). The computer is just assumed, and anything faster than an old Pentium 233 will do, I'm opting for an old spare P2 400Mhz we use for my son's room.

The same thing could be done for more power, either by choosing one of the higher powered amps (something around a 100watt device, if 8 ohms heaviest load planned), or there's a couple of devices sold as audio amps & servo controllers (a dual purpose device) that can handle 10 amps into a 2 ohm load - it's about $25 or $30 for that one chip, and needs a $10 heatsink.

This smaller one can be beefed up with a few power MOSFET transistors (on heatsinks) to do something similar, probably scaling up to stable performance on a 2 ohm load.

My guess, at around 40 ohms average per engine, that's up to about 10 (safely) or 15 engines, which I HOPE will take some time to get THAT large!

Plus, I'd like to wait until he's at least 9 or 10 before I pump that much current onto the track, even at +/- 16 volts.

Some small, simple, no frills decoders that can power Thomas are around for under $20, so I'm ordering two for experimentation/installation while I await Percy's delivery.





#2
I'm asking the same question, but I found an article (sorry, link escapes me, my 6 year old keeps telling me I should be more organized) that discussed a conversion project.

They said the DH123 (some standard, small decoder) fit well. I don't find it, but I think a DZ123 is about the same. It's a simple motor control with 2 effects, a couple have 4. They're about $20 or less, shipped.

It appears there's room inside Thomas.

I'd love to hear about your Gordon when it gets done.

My son, for some reason, wants Percy to join Thomas, which is why I'm moving into DCC.



#3
Thanks everyone!

My 6 year old is ecstatic over his Thomas. Just an oval track on the floor, a few 'stations' and such, but I think we're hooked.

I tried my old transformers but when they didn't work, and I read around the Bachmann website, I thought it was DCC that might be the problem. It turned out that the transformers were so old they simply didn't work anymore.

I had some LM3876 power amplifiers on a chip; they're 50w operational amplifier designs. I took out a breadboard and cobbled together one with a gain of 15, used a center tapped transformer, a few diodes and capacitors, picked up a 5K linear taper potentiometer and fed the + input a control voltage (after a couple of 47K feeder resisters and a 30k/10K voltage divider), tuned it to stop at 14V under load. Now he can control it backwards and forwards with good speed control.

In the bargain (junk parts from my bench), the LM3876 has short circuit and thermal protection - it shuts down automatically if he drops something on the track that shorts it out.

He had LOTS of fun helping me build that.

A 6 year old never tires of asking "what's that?" For the first few tries, capacitor came out "caspasitor".

He's already asking for James  ::)

Glad to see I'm not the only 40 something that's enjoying this as much as a kid!

Thanks again.

#4
My son visited the Thomas attraction in Strasburg, PA as a guest of the Make A Wish foundation, and while there we picked up a Bachman Thomas engine for him. The last time I had an HO train, they were all DC. I just now learned about DCC (and I'm a computer programmer).

I have an old DC power supply and a couple of old DC trains. Is there any way to use the Thomas engine with that?

Or must I get DCC equipment to run this engine?