Monday, March 14, 2016

How I converted an LGB Stainz loco to battery power with a trail car

The LGB Stainz was my first G Scale loco. I well remember sitting on the train on my way back to London clutching the LGB Starter Set, after a trip to Garden Railway Specialists (GRS) in Princes Risborough. Although the Stainz is not a UK outline loco, I have kept her over the past twelve years or so, for nostalgic reasons - and also because she is a fine looking loco. However, as my railway is no longer track powered and my loco roster is exclusively battery powered and radio controlled I decided it was time for the Stainz to join the fleet once more.

Because I enjoy shunting manoeuvres and trains on my railway often run end-to-end, from one terminus to the other, I have tended to avoid using battery trail cars. However, the Stainz loco is an ideal candidate for conversion to battery power by those considering having a battery loco to run on days when they can't be bothered to clean the track. On the back of the Stainz is a small two pin socket which can be used for providing a power output for coach lighting. It can also be used to input power to drive the loco.

The socket is normally hidden beneath a flap moulding ........

....... which simply pulls out.

I discovered that the 2.5mm, JST-XH two pin plug (available from RC Trains) fitted the socket perfectly ....

.... and so, all I needed was a source of power and control.

Dismantling the Stainz

Before working on the trail car, I needed to dismantle the Stainz to remove the LGB MTS loco decoder which I had previously installed. Dismantling can look very daunting as the loco is actually very cunningly constructed, however having already discovered how it was done when I installed the decoder in 2008, I was able to follow my own instructions - see How I chipped a Stainz.

With the Stainz in pieces, I could unplug the decoder from the circuit board ......
 ..... and reset all the DIP switches to 'on'.

Replacing the bulbs with LEDs

In reality, I did this after I had made the trail car and converted the loco to battery power - however, as this entailed reassembly, disassembly and re-reassembly, in hindsight it would have been better to have made the modifications at this point. Those who intend following in my footsteps as a result of this blog posting can hopefully benefit from my experience.

On the circuit board are three 47ohm ¼W resistors. These are used to restrict current to the bulbs, presumably to help the bulbs last longer.

 As my conversion would be using a 12 volt power pack, I needed to increase the value of the resistors to limit the current to the diodes to under 20mA. A quick calculation on the LEDcalc website revealed that the value of the resistors should be 680ohms for a 12v supply.

The resistors were carefully prised off the board with a prodder and the application of a soldering iron.

The resistors were then replaced with three ¼W 680ohm resistors, which were soldered to the same connections on the board

The loco was then re-assembled.

The front lamp bulb was the easiest to replace. The grain of wheat bulb was eased out of its holder and a 3mm white LED was inserted in its place.

I was fortunate when inserting the LED that it was the correct way round in terms of polarity. Had it not worked I would have had to take it out, turn it round and re-insert it.

The interior bulb was a little more fiddly to replace as it was tucked away inside the cab.

This bulb lights up only when the loco moves forward. I could have created a diode bridge to ensure it remained illuminated in both directions but decided it wasn't that important.

For a while, the disassembly of the rear lamp baffled me. Consultation of various sources on the web led to conflicting information. Eventually, by chance, I discovered that the lens can simply be prised off with a scalpel blade.

 The white reflector was then removed.

 After trying unsuccessfully to insert the LED into the socket, I removed the lamp housing (by undoing the screw).

This made insertion of the LED a lot easier. Again, I was fortunate to insert it correctly the first time, but it would have been easy to remove it, rotate it and replace it.

 The lamp was then reassembled.

Removing the track pick-ups

As I no longer user track power, the pickups were no longer needed. I have found from past experience that removing the wheel contacts and the skates improves the performance of battery locos as it reduces friction.

 NOTE: It is possible to remove the pick-ups and skates without extracting the motor block from the chassis. If you want to do this ignore this section and skip down the page to section on dismantling the motor block.

The motor block was extracted from the chassis, by removing the couplings .....

.... and then the four screws which fix the block to the chassis.

The two small screws holding the valve gear to the chassis were then removed .....

..... and then the bracket pulled out over the running plate ........

..... to allow the motor block to be removed.

 The plug connecting the motor and pick-ups to the main body was then removed from its socket ....

 Dismantling the motor block

 The four screws holding the baseplate to the block were unscrewed .....

 ..... and the cover removed.

 The bus-bars were then removed. These simply pull out.

The skates were then removed .......

...... and the brass contacts removed.

 To remove the wheel contacts, the wheels were lifted out from their housings.......

 ..... enabling the pick-ups to be prised out with a flat-bladed screwdriver.

The wheels were then re-inserted, making sure that the coupling-rods were carefully re-aligned. I have found from experience that if they are out by even one cog on the gear wheel, then the loco will not run smoothly. I decided to give the gears some lubrication whilst I had access to them.

 The baseplate was then screwed back into place on the motor block.

The block was then returned to the chassis - using the reverse process to dismantling.

The trail car

I decided to use a closed van as my trail car. A van would look equally at home in a goods train or a passenger train. I had a US outline van which had been sitting on my shelves for some time awaiting conversion to something more UK-based. This was pressed into service.

I could have used an open wagon, with a tarpaulin cover or even a shunting trolley.

I firstly assembled all the bits and pieces I needed - an RC Trains Rx65b receiver/controller, a 2.1mm DC power socket, a single pole double-throw (SPDT) switch, a 2A polyswitch and a 10 AA-cell battery holder (all available from RC Trains).

A piece of 3mm thick clear acrylic sheet was chosen for the baseboard and the equipment laid out on it to determine the size - 70mm x 110mm. Eight 3mm diameter holes were drilled to enable the components to be fixed in place.

A 25mm x 50mm piece of 2mm brass sheet was cut and holes drilled for the charge socket (7.5mm diameter) and the switch (6.5mm diameter). Holes (3mm diameter) were also drilled for the mounting screws.

The mounting bracket was then folded (15mm from the base).

Ten NiMh rechargeable batteries were inserted into the battery holder........

 ...... which was then fixed in place using cable ties so that it could be readily removed should I need to replace the batteries. At some point in the future I will replace these bog-standard NiMhs with Low Self Discharge (LSD) versions which hold their charge when stored. Nothing is more frustrating than taking a loco out from storage and finding the batteries are flat!

The mounting bracket was fixed in place beside the battery box ........

..... using 6BA (2.5mm) bolts and nuts.

A label was printed out, using vinyl self-adhesive printer film (from Crafty Computer Paper).

The charge socket and switch were then mounted to the bracket ........

 ....... before everything was wired-up .........

 ........ using my usual wiring circuitry.

 The assembly was then inserted into the van, .........

...... and the output from the receiver/controller connected to the 2.5mm JST-XH plug, which was mounted through a hole in the end of the van.

 The roof was then placed back on the van, making sure the switch and charge socket were positioned opposite the sliding door of the van.

The van was coupled to the loco and the plug inserted into the socket.

The loco was then tested ........

The Stainz motor block is extremely smooth-running and responds very well to the 12v supply from the RC Trains Rx65b receiver/controller ......

..... as can be seen from the short video of the loco in action.

For now, I am pleased to have my 'Old Faithful' Stainz loco back in action. In time though, I may install li-ion batteries into the cab and do away with the trail car so she can perform shunting duties and run round trains without tugging the van behind her.

10 comments:

Anonymous said...

I did the conversion a couple of years ago, initially to on/off (and reverse) pure DC at two voltages, using Li-ion batteries. At nominal 3.7 volts, the loco travelled at walking speed, and 7.4 volts gave running speed.

I used (as standard) EC3 connectors leading to conventional battery holders, which could be AA or AAA or 18650 (or other). As I was just experimenting, I "stuffed" the battery holder into the cab, and took the batteries out to charge them in a conventional charger (and I had the option of replacing them with already charged batteries).

Using a single AA battery, the loco ran for over an hour pulling about 10 axles in a tight circle. Using two cells, the loco pulled 20 (yes, twenty) bogie coaches on a level track (one of the wheels has a rubbery ring to increase adhesion). So, I agree with you that the Stainz has a very fine mechanism. As far as I could tell, the motor rarely if ever drew more than about half an amp.

In order to introduce external controllability, I elected to use Deltang equipment (which requires a minimum of about 10 volts, or 3 Li-ion cells to operate). It is compact and relatively inexpensive, especially after one transmitter able to talk to a maximum of 12 locos has been acquired. Variable inertia is included.

I left the original switches in place, and fitted appropriate male/female versions of the EC3 connectors, so that the receiver is in series between the power supply and the motor, and could, if desired, be taken out to allow pure DC as previously.

The Li-ion batteries that I use can be sourced quite cheaply from Aliexpress or Ebay, as can the dedicated chargers. I use batteries with protection circuits, and so far have had no problems, although I treat these batteries with a lot of respect. They are vastly superior IMO to NiMh, needing only 1/3 the number of cells and able if required to deliver a much higher current.

Bruce Cropper (any emails, use mediate AT ihug DOT co DOT nz)
Auckland, NZ

GE Rik said...

Hi Bruce

I too use Deltang r/c equipment (re-branded as RC Trains). As can be seen, it gives an impressive level of control. I've found it will run on voltages down to 3.5v. Two of my locos run off just one 3.7v li-ion cell (eg see http://riksrailway.blogspot.co.uk/2015/03/how-i-converted-battery-diesel-to-radio.html )

Rik

Phil said...

I found this very interesting. I have been thinking about moving from Massoth DCC to battery power and it's encouraging to see a description of how to make the necessary changes to the internals of a loco. One question - I didn't understand how providing power through the ancillary socket would operate the motor? I thought this socket was not connected to the motor at all, being used simply to provide power for lighting coaches etc. coupled to the loco. Sorry if I'm being dense here.

GE Rik said...

Hi Phil
It seems that when the DIP switches are all set to 'on', the lighting socket is connected to the main circuitry in the loco - which includes connections to the motor. If the track pickups weren't removed they would transfer the power to the track as well.

Rik

Anonymous said...

Great details - very helpful. I am trying to convert a Stainz now to battery power.

It is difficult without using tender. Only issue with tender is that it would look awkward when running in reverse mode.

GE Rik said...

Hi Anon
Yes, a tender is a good option for storing the batteries etc. especially if you are not using li-ion. Three 18650 li-ions will happily sit in the cab without being too obtrusive. I have known someone who has used eight NiMh AA batteries in the cab, but it is a bit of a squeeze (they might have been AAAs). You could try removing the weight in the boiler and putting batteries in there - but then you'll lose a lot of traction.

Rik

Klaus Schroeder MD said...

Hi Rik,

Thanks for your amazing blog. I am currently reactivating my layout with multiple small Stainz-size steam and Diesel locos. I had previously used the LGB Multitrain System but there is a glitch in the system and LGB customer service seems to be a thing of the past, at least here in the US and nobody can fix it so I came across your blog which may just save my railway.

One question: why do you have to remove the DCC decoder? Don't all digital LGB engines revert to analog automatically when used with an analog source? I can run my "digital" LGB engines with an analog transformer. It actually also works when I feed the analog transformer output into the ancillary socket. So I am considering just leaving all my LGB engines the way they are and feed them the way Rik did from a trailing car. Shouldn't this work?

GE Rik said...

Hi Klaus
Thanks for the feedback. I'm glad you have found it helpful, particularly when you were beginning to despair.

The reason I removed the decoders was mainly financial. I sold them on eBay to raise funds. You're right, I could have left them in place, but as I've now installed batteries and receivers inside my locos, removing the decoders also gives a bit more room.

Rik

Albert said...

Hi Rik,
I just found your blog and its helpfull already. Yesterday I bought a Stains very cheap, used an ugly, just to find out how to convert it to rc and batteries. I use Deltang Tx22 and Rx62 because that is what I already use in my smaller gauge trains..... Well, in the few next weeks I hope to find the time and courage....

Albert

GE Rik said...

Thanks Albert
I'm really pleased to hear my scribblings have been useful. If you have any problems let me know and I'm more than happy to help if I can.
Rik