Sunday, 22 June 2014

Some buildings for Freshwater

At the Basingstoke show, the only building on the layout was a Ratio SR concrete PW hut. There are only four other major buildings required to complete the layout, but all will need to be scratch built. I started trying to create drawings for the station building, using a 3D drawing package, but the more I did, the more I thought about 3D printing the building instead of using plasticard and printed paper as I had orginally intended. The complex decorative brickwork would be really difficult to reproduce using the traditional building methods, but should be pretty simple for 3D printing. However, the station building is complex and quite large, and would be an expensive experiment if 3D printing was not up to it. I therefore turned my attention to a smaller building - a corrugated iron shed that stood in the goods yard, and is visible in the background of several photos I have collected.

Corrugated iron has always been a challenge for 2mm/ft scale. The best looking solution, aluminium foil corrugated between a pair of suitable rollers, is extremely delicate and easily flattened or distorted. Creating it in 3D is also not straightforward, but I thought I would give it a try. I found details on the Internet about the 'standard' size (or possibly the most standard of the sizes), and an image of a typical profile. The sheet width is pretty standard, but was available in various lengths up to 12 feet. I used the profile image to create a 3D object of a standard sized panel, corrugated on one side, and flat on the other, about 0.7mm thick, so that it would exceed the minimum wall thickness for 3D printing. I then built the shed model by cloning and resizing these panels as required. I varied the panel positions to accentuate the overlaps and joins of the original building, and added doors and eaves to suit. I knew that the window frames would be too small to print, but I found some Ratio etched brass window frames which were close enough in size and style, and I made window apertures in the model of the right size to fit these frames. For my first attempt, I had made an error in sizing the hut from the photos and created what would have been an enormous building. However, I was very pleased by the representation of the corrugated iron panels, so I had another go, and produced a much more modest sized building. Here it is painted up and just sitting on my test diorama.


Whilst waiting for Shapeways to print my model, I stumbled across a model uploded by someone else, presumeably a wargamer, of a wartime pillbox. Now, there was a pillbox in the goods yard of Freshwater, and, in fact, it is the only railway building still standing in its original position, albeit now in the middle of a garden centre carpark. Strictly speaking, the pillbox should be located just off the front of the layout, but I thought I would buy a reprint of the model anyway. It turned out to be a really nice looking model, and painted up, the brickwork looks really good. This gives me confidence to press on with the station building.



Monday, 10 March 2014

Freshwater at the Basingstoke Show 2014

I love the sound of deadlines flying by. Having a deadline certainly provides a bit of impetus to get things done, even if not enough things actually get done in time.

When I accepted the invitation before Christmas, I had just about got all the electrical and mechanical gubbins beneath the layout working as required (see umpteen previous posts) and so, 4 years after the initial deadline for the 2mm Scale Association Golden Jubilee Expo in Oxford, I thought the time was right to start some scenic work. After all, with just one baseboard to cover, and four buildings to make, there was plenty of time. Then I started to make the starter signal. After a promising start, weeks turned to months, and with the above ground parts completed and working, I had to put it aside and start on the terraforming instead of trying to connect up a minute linear servo underneath.

So, after carving the layers of foamboard using a ceramic kitchen knife to produce a smooth land surface, and then covering with simple paper maché sprayed with brown and grey aerosol paints, I started laying the reed beds alongside the river, and along the tributary. This was plumbers hemp planted in glue and later trimmed with scissors and brushed roughly with green paint. The river water was Deluxe Solid Water resin which has produced the desired effect.

The rough ground cover was formed using a new product, which is basically a cooker hood filter that has been spray painted. I think it is quite effective as an initial layer. Shorter grass was static fibres, but the application was not as successful as on my test piece, with very little of it standing up properly.

Lots of fencing was added, mostly etched nickel-silver, but with plastic strip added to the uprights to give them more body. Lots more needs to be added, but I think I wiped out the stocks of County Rolling Stock's N'Tastic online shop.

Roads and platform surfaces are fine wet-and-dry emery paper, and the 3D printed trestle platform (see earlier blog) completes the platform. Various scatter materials, and a little plaster, completed the ground cover. Again, this is just the initial layer which will be toned down and added to later.

So that is how far it progressed before the exhibition. The layout behaved itself admirably over the two days, the main problems being with the DG couplings on some of the wagons which will have to be worked on before the next outing. Apart from that, it was a pleasure to shunt for an hour or two at a time. The 'to do' list now reads: Buildings, Trees, Signals, more fences, appropriate rolling stock.

Spectators. So it did have some interest from the visitors.

Some inappropriate rolling stock (except for the road van)

Station building is missing (amongst other things)

River Yar

The complete exhibit, with cantilevered fiddle yard floating to the right.

Sunday, 11 August 2013

Freshwater gets Cup-Holders, er, I mean CAB-Holders

If you have ever used hand held controllers to operate a layout, you will know that you need somewhere to put them when you need to deal with a derailment, or drink some tea. Often this means hanging it over the backscene, or letting it dangle down to the floor.

On previous layouts, I have used Velcro to allow the controller to be stuck at various places at the back of the layout. This is very handy, but removing the controller from the Velcro can cause some fairly major earthquakes on the layout.

However, I have been given a pre-production kit from Merg to try out, which has been designed by Howard Watkins specifically to hold the Merg CANCAB controllers. The kit consists of 8 laser cut pieces of MDF. The instructions advise fitting them together dry at first to be sure how they assemble, and this is a good idea. The laser cutting is so accurate that the pieces fit together perfectly, and it will hold together very well without gluing. Having satisfied myself that I had got it right, I then reassembled it using a bare minimum of white PVA woodworking glue. The pieces fit together so well, there is just no room for excess glue. Once the glue was set, it appears to be very strong.



I have now given it a quick spray of Halfords grey primer to protect the wood from moisture.



With the optional 8th piece fitted, the CANCAB locates in such a way that all the buttons and speed control knob are accessible without having to remove the controller. This can be a useful feature.

There are various screw holes for fitting to the layout, but I opted for self-adhesive Velcro. This will allow me to remove the holders and keep them safe in a box when transporting the layout, without having to resort to a screw driver.

Unfortunately, at this point, I do not know when the kit will be generally available, or what the cost will be, but I think it will be a 'must have' for all CANCAB users, and I will definitely be ordering more.

Thursday, 25 July 2013

My First Dabble With 3D Printing

Freshwater station only has one platform, but it was extended at various times over the years. The first section by the buffers where the locomotive would stand is very low with plain brick facing. It then ramps up to a more normal height. The next section is typical Southern Railway concrete panels from the Exmouth Junction concrete works, while the latest extension used the Southern Railway lightweight concrete trestles, more standard components from Exmouth Junction.

Modelling the brick faced platform should be fairly simple using plastic and printed paper. I bought some Peco concrete platform facing for the next section, but it needed cutting down to the correct height, and it appears to be absolutely nothing like typical Southern Railway platforms. It might be based on a foreign prototype, or possibly just the imagination of somebody at Peco. I added some Milliput to fill the vertical channels and add the curved supports at the top of each column. It might have been better to completely scratchbuild some instead.

That leaves the trestle platforms. Nobody manufactures it in 2mm scale, so I had to make it myself. I could have formed each pair of legs separately, but would probably have given up through boredom before completing them all. Also, I knew they would vary too much and would not produce the neat, regimented rows that are such a feature of this type of platform. I had dabbled with resin moulding some years ago, so I filed a trestle from perspex and formed Plasticine moulds with it, and filled them with epoxy resin glue. This experiment was not a great success, the results being too fragile and varying in quality. I decided it was not worth trying with rubber moulds and polyurethane resin.

My next option was to try etching in fairly thick brass. This would still have required sweating two layers together to get the right thickness, but would produce a very strong result. However, I decided to try my third option - 3D printing - instead. Many people have been trying out 3D printing with varying success. However, the technology seems to be improving daily, and I figured a simple scenic item might turn out better than some of the more ambitious projects some people were attempting.

I had previously done quite a bit of 3D modelling on the computer, producing models for use in Microsoft Train Simulator that I made available on uktrainsim.com, so creating the 3D models for printing did not seem too daunting. However, the software I used to use appears to be no longer supported, and did not create files of the required format, so I downloaded the free 3D model editing software called Blender. I know some people swear by Google Sketchup, but I had tinkered with it once and found it confusingly different to what I had used before. Blender is open source, supported by lots of programmers and contributors, and there are lots of tutorials available for it on the Internet.

A 3D model is made up from a series of points, each of which has an X, Y and Z coordinate specifying its position in 3D space. A pair of points can be joined by a line, or an 'edge' and the edges joining three or more points can form a 'face'. A face can be double-sided, but usually only has one side. It cannot be seen from the other side. A simple cube has six faces and eight points - one at each corner - and twelve edges. Spheres, cylinders and circles are not actually possible to create faithfully in this type of 3D model. Instead, a circle is formed from a large number of points, each linked by a straight edge. With enough points, the resulting polygon can start to resemble a circle. Similarly, cylinders and spheres can be portrayed using lots of small, flat faces.

This is where creating models for use in a real-time computer game differs from creating models for 3D printing. In order for a computer to create the displayed images of the game fast enough for smooth, realistic animated motion, the models need the minimum number of points and faces possible. You can play with things called 'normals' on the faces to create the illusion of curved faces, but you would also leave out any unnecessary faces, such as the underside of vehicles which would not normally be seen. However, for 3D printing, we want lots of faces to produce fine curved surfaces, and most important, the models must be 'watertight'. That is, there should be no missing faces, or inward facing surfaces. So, a cube must have all six faces, and all must face outward.

Having grasped these basic premises, model making is rather like modelling in clay. You can grab a bit and pull it out (called extrusion) or you can add more bits of clay. Most software allows you add cubes, cylinders, spheres or toroids (ring donuts). You then deform these objects, divide faces and edges, and extrude parts to get to the required shape. There are other useful tools that can be employed, such as the lathing tool. This can be used to transform a set of lines drawing the outline of one side of, say, a vase, for example, and spin it round to create a 3D vase shape. It is also possible to merge shapes, and use logical unions, intersections or differences to add or subtract shapes from each other. Subtracting a small cylinder from a large cube is like drilling a hole in the cube, for instance.

For my first 3D print model, I used the drawings of Southern Railway trestle platform components from the useful book 'Southern Nouveau - an essay in Concrete'. I converted all the measurements from inches to millimeters, and divided by 152 for the correct scale. Blender uses unspecified measurement units, so I chose to use 1 unit = 1mm in Blender. I then created models of a pair of legs, and a platform section, starting each from a cube, deforming, dividing and extruding until the correct shape and dimensions were achieved. I also 'drilled' holes in the rear posts for the hand rail and fence wires.


 I then duplicated these shapes thirty or so times, stacked up close to each other, but not touching, and then exported the complete set to a single .stl format file.

3D printers are improving in quality, and the cost is falling rapidly, but the affordable ones are still limited in quality and ability. Although they may be fun to experiment with, for now, it makes more economic sense to make use of online 3D printing services, such as Shapeways, to do the 3D printing. Having registered as a user, I uploaded the .stl file, specifying that 1 measurement unit represents 1mm. Some automated checks are carried out on the file, and a few minutes later, I received an email telling me that my file should probably print OK. I was then able to choose what material should be used for the printing, and the price for printing my model in each material could then be seen. Shapeways have a simple pricing scheme, you pay for the volume of material used, each material type having a cost per cubic measure. Therefore, a hollow model will cost less than a solid model of the same size.

Frosted Ultra Detail (FUD) is the plastic most modellers use as it has the finest resolution (0.2mm) but it is far from the cheapest material. My model, enough components for about 12 inches length of platform, cost €23 plus postage. So, not as cheap as a mass produced kit would be (if available), but not prohibitively expensive. I uploaded the file on the Monday evening, and a box with the components in came through my letterbox on the Friday. I was very impressed.


The FUD material is quite transparent, so you can see the surface irregularities on both sides and an initial look gives the impression that they are a bit rough. The legs with the taller rear post will be used to form a lamp post, with a swan neck formed from .3mm wire. This swan neck would have been too fine for 3D printing.

I cleaned the components, removing traces of the wax used in the printing process, most of which has already been removed before delivery. I was not surprised that the .3mm holes for the handrail were not properly formed, but there was enough to guide a drill through in the correct position. I used superglue to fix the components to each other and roughly painted them with a concrete-ish colour and fitted it to a small board with a length of track to see how it looked. The hand rail is formed from 0.3mm nickel silver straight wire.






I have also added some static grass and some bushes, and formed a wire swan-neck lamp. The lamp head was also 3D printed, making good use of the transparency of the FUD for the bowl of the lamp.

I was quite pleased with the results, but gluing all the components together was quite fiddly, and there is quite some uneveness in the platform surface as a result. I therefore went back to the 3D model and started to combine the components so that they would be printed in units of two or three pairs of legs with platforms. I also created the end ramps as single units, and a single unit to include the station nameboard. I kept to smallish units because the platform for Freshwater is curved, not straight. Below you see the duplicated sections in Blender. You can also see some lamp heads underneath the platforms.






And again, a week later, the new components came through my letterbox:

So, now I have no excuse not to get on and create the platform for Freshwater.



Sunday, 2 June 2013

Right back where I started from

It is over 12 months since my last posting on this blog. A quick recap of the project so far is in order.

Way back in July 2010, the 2mm Scale Association celebrated its Golden Jubilee with a special Expo in Oxford. Prior to this, a layout building challenge was issued for layouts up to 9.42 square feet to be exhibited at the Expo. I built Freshwater for this challenge. As a change from my normal use of relays to operate points, I decided to try servos for the new layout. I joined Merg to get access to their Servo4 kits. After some teething problems, I managed to get the layout working just in time for the Expo with a temporary control panel with a switch for each point. Although the layout operated nicely all weekend, there had been no time to create any scenery. It was just track on white painted baseboards.

I did want to have route selection and a proper control panel, but there was a problem with the servos that I wanted to fix first. On powering up the layout, one or more servos would decide to move rapidly to one extreme or the other, despite being restricted in their movement by the point mechanisms. Sometimes they would draw so much current, the power supply voltage to the PIC controllers would not rise high enough for the PICs to start operating and get the servos under control. I had to resort to switching the power off and on a few times until things sorted themselves out.

My last posting on this blog describes the introduction of the Merg CBus layout control bus, the introduction of DCC, and a lot of work on power supplies in an effort to resolve the servo startup problems. The problems persisted and I was beginning to lose interest in the layout.

The introduction of a new Merg kit for a servo mounting started me thinking again. I had done everything I could with the electronics - maybe the problem was with how I had mounted the servos. I had them directly driving the point mechanisms which meant they were only using a small segment of their available movement. The new servo mounts are arranged so that the servo can sweep through its entire range while the rod connecting to the point mechanism only moves a few millimeters. It would no longer matter if the servo wanted to move to an extremity on powering up. It could do so quite freely.

So, a start was made removing the existing servos and their mounting blocks and fitting the new mounting kits (with 5mm shaved off their overall height to fit within the hinged cover panels). At the same time, I decided to replace the under-board point tiebars I had originally fitted. Although they had worked OK, they did not have any way to adjust the distance between the point blades. The old ones also had a microswitch to change the frog polarity, whereas the new mounting also has microswitches nicely mounted on them. My new under-board tiebars, therefore, did not require microswitches.



All this work has now been completed with a couple of weeks to spare before this year's 2mm Scale Association Expo in Wallingford. Unfortunately, the viewing side of the baseboard is pretty much the same as it was in 2010 - ballasted trackwork sitting on plain white baseboards. But, like the duck, calm and serene on the surface but peddling like mad underneath.

Saturday, 21 April 2012

improvements, design changes, failures, successes and experiments

It has been some time since my last post. During that time there have been various improvements, design changes, failures, successes and experiments on the electrics underneath the layout. I have still not quite finished, but I do have a working system again.

The original plan was to use Merg Servo4 kits to drive micro servos controlling points and permanent magnet uncouplers. A temporary switch box connected to the 25-way connector on the layout operated the individual points and uncouplers. This was going to be replaced by a different box with Merg CBus kits allowing push buttons to create events which would be used to switch one or more points to set a route. However, I found that the CBus modules would not drive the Servo4 inputs directly, and problems with sharing a single AC power supply burnt out a couple of CANbus circuits.

Meanwhile, developments and new ideas were happening within Merg. I decided to replace the three Servo4 kits with two CANservo2 modules (modified CANACC8 kits). This would mean the connection to a control panel would only need 4 wires (CAN Bus and power supply). A 12V DC power supply bus was also decided upon at this point, rather than the previously recommended 5V power supply.

Another initial design decision was to wire up the layout so that it could be easily switched between analogue DC train control to DCC by swapping a 35 way connector. Either a DCC or conventional controller could be plugged in. However, the new Merg DCC command station kit was small enough and cheap enough to build it into the layout. It also produces a regulated 12V DC supply that can be used by other CBus modules, and uses the CBus connection for attaching the matching Merg hand-held controllers. The capability to switch to analogue control was retained.

At this stage, another problem came to light. The power-on surge caused by the servos was lowering the power supply voltage too much for the control circuits to recover. I decided to add a second power supply bus at 9V DC just to supply the servos, separate from the CBus power supply bus. This has mostly resolved the problem, but there is still a small problem with servos twitching and moving on powering up the layout. This problem is still being investigated.

Still to do is replace the 12V and 9V power supply sockets, as the simple sockets fitted allow the plugs to drop out too easily. I have some latching XLR connectors to replace these. I have also not yet built a control panel. I can use the hand-held controller to create CBus events to select routes, operate individual points or uncouplers, and I can also connect a laptop to the layout, via a USB to CBus interface, and operate the layout using JMRI, so the control panel can wait. I also have to build signals, and fit some more servos to control them.

The first photo shows the underside of the layout with the protective hinged covers closed. The aluminium panel has the DCC command station attached behind it so that the power transistors can be bolted to it to act as a heatsink, if required. At each end of the layout are pairs of CBus 4-way RJ22 sockets for connecting hand-held controllers, PC interface and/or control panel.



The next photo shows one end of the layout with the hinged cover open. The CBus connectors and a CANservo2 module are attached to the lid while the now redundant Servo4 modules are attached under the baseboard along with the servos. The redundant 25-way connector is also visible. Just by the hinge can be seen two servo 'distribution' boards, each with its own 5V power regulator and plugs for up to four servos to connect to.



The other end of the layout shows the second CANservo2 module and the CANcmd DCC command unit attached to the cover, with another pair of CBus connectors. The DCC/Analogue switchover socket can also be seen.

Saturday, 20 August 2011

A Case for DCC

In my last blog entry, I showed my recently completed Merg CAN-CMD CBus controlled DCC Command Station. The Merg kit includes the PCB and all the components to populate the PCB. For future layouts I will probably just mount the PCB directly to a baseboard and hard wire it in. However, this first one I wanted to keep as a portable and flexible unit.This meant fitting it into a case with suitable sockets, switches and Led indicators.


I found a suitable case on Ebay made from black plastic with aluminium end plates and adequate size to take the PCBs and wiring inside.Drilling, cutting and filing all the holes in the aluminium end plates took three evenings to complete. The aluminium plates were then cleaned, sprayed black and lettered with Letraset rub-down lettering, and finished with some clear spray laquer.



Inside the case is the CAN-CMD main circuit board and the CAN-TERM connector kit PCB with two RJ22 sockets. These can be used to plug in a CAN-USB computer interface, or the forthcoming CAN-CAB handheld controller, or to connect to a layout CBus as required.



The one panel has all the CBus related switches and connectors, and the two indicator LEDs. The green LED only lights up if the microcontroller program is running correctly. The Yellow LED lights up when in 'Mini-Booster' mode or flashes when programming locomotives or accessories decoders. The two RJ22 connectors previously mentioned are on this panel, along with two switches. One switches in a bus terminator resistor, required if this unit is at one end of a long Cbus, or used with just a CAN-CAB or CAN-USB. If this unit is connected to a layout CBus that already has terminators fitted then the inbuilt terminator can be switched out. The second switch allows this unit to supply 12V DC to power other CBus items, like the CAN-USB or CAN-CAB. Again, if connected to a layout Cbus that has a separate 12V DC supply, this can be switched out.



The other panel has a socket to connect the power supply, either 12V AC or 15V DC at up to 1 Amp.The screw terminals allow connection to either a programming track or a small layout if using 'Mini-Booster' mode. The mode of this output is controlled by the switch above. The 4-pin mini-Din socket will allow external DCC Boosters (another forthcoming Merg kit) to be attached if more than 1 Amp is required for a layout. The remaining switch controls 12V DC output the the external boosters if required.