Tuesday, 24 January 2023

Putting in the Wiring Buses

 I am awaiting my LHS (local hobby shop) to get my Peco code 83 switches into stock. They are promised for tomorrow. In the meantime, I have been carrying out a few tasks that can be done without the track.

First off, I have been putting in some wiring for the two busses that I need along the length of the baseboard. These are the DCC bus and a 5V bus for lighting and Arduino use. The DCC bus is laid with 16awg stranded wire whilst the 5V one is 22awg as little power will be going down that. The DCC bus is also twisted. To connect wires together, I use what are called "Lever nut wire connectors" which I get from Amazon.


I have these as shown which are through connectors. I also have a large collection of these for single wire distribution - I have them with 3, 4 and 5 connections. These are convenient for distributing wires around a larger layout. As it is, I use these through connectors as terminations for the two busses. as can be seen in this close up.


The whole underside of the board looks like this now.


The red and black are for the DCC and the white and green are the 5V DC. Once installed, I run them both out to 5mm jack sockets on the side of the layout.


ECoS is my DCC controller. Lastly, I have been laying down some DCC Concepts foam roadbed. I am not sure if this is a mistake laying it before I get the switches but I am laying it down using Copydex, which is rubber based UK carpet glue which should be relatively easy to lift if I need to.


The white extension is the staging yard - off scenic. It is a u-shaped construction out of foam core. I have installed some Neodymium magnets in the end of the staging and the side of the main board and the staging now jumps onto position making it easy for connecting the track between them. As you can see, the staging encroaches onto my computer desk so it has to be moveable.

As I mentioned, I have been promised the switches by Wednesday (tomorrow)  but if they don't come, I will have to think about buying over the internet, which I am reluctant to do. What is happening on the internet is my selling of all my N Scale and unwanted Märkin/Roco/Piko European stock. I have been given some good prices by Rails of Sheffield. So far I have gathered over £250. Although, it doesn't seem like much for each item, eBay was producing worse prices and I need the capital to invest (!!) in some HO stuff. I need a collection of freight cars, at least one more loco (see below) and some structure kits.

The loco that I have is a circa 1942 EMD SW1 ex-NYC that is still in use by Amtrak in Sacramento. There are two arguments against using this. Firstly, I don't really want to model the present day as all the cars would be longer and I don't want to repaint the SW1 as it was a present - although I have fitted it out with a decoder and sound - and a limited edition Walthers item!



Friday, 20 January 2023

We build baseboards

 I have mentioned on many occasions that I make my baseboards out of 5mm foam core. Well, this time is no different, except that I videoed the whole process. I got my usual four sheets of white A1 foam core from Hobbycraft for £10. I then went to my local art gallery/art supplies shop to get a couple of sheets of black foam core. I like this for the basics of the boards as it is much denser than the white and is very much tougher. The only issue is that the art gallery wanted £12.50 per sheet! I did ask how much their white was and the answer was £8.50 - a sheet! I will continue to go to Hobbycraft where their service is great and they know me by name.

OK, so I had all the board that I needed. Then I had to make sure that I had a plentiful supply of hot glue sticks and 2" double sided tape. To outline the process, I cut the white into 3" strips along with a few black one. The top of the boards and the outside of the supporting bars will be black and the rest will be white. When laminated using three sheets and the double sided tape, the resulting girders are very strong. Anyway, I have created a stop frame video of the process. I am sorry that the beginning is dark but I was still getting to understand the process. My nice Olympus mirrorless camera takes up to 999 frames  at your choice of delay and when finished melds them all together into a video - very clever.


Here is the baseboard in position. I have used the legs from the previous layout.



Here is the view from the left hand side where you can see the white extension for the staging.


I have printed out the Anyrail layout in full size and run along the centre of all of the rails with a pounce wheel.  Following that I am outlining them using a white marker. Here are the pounce wheel and the marker.


and here is the board with some of the track centres highlighted.


Next up, I have some DCC Concepts trackbed to go down and, then, when the LHS gets their act together and gets some switches in stock, I will lay the track. As I am waiting for the switches, I will probably put the DCC bus and a 5v bus (for structure lighting) under the board ready.



Thursday, 12 January 2023

Oh dear, here we go again!

 Yet again, I have destroyed what I have and have moved on to something different.

I was contemplating opening up a Youtube channel and describe how I would make a small 6 x 1'  switching layout in HO. Then I tried ballasting the N Scale layout. I managed to glue up 4 out of the 10 points and couldn't fix them. As they were now ballasted, they were stuck firm so I couldn't get them out to try and free them up. So... I decided that the idea of an HO switching layout sounded good - especially as I have a nice little SW2 switcher complete with DCC and sound that I had left from my previous HO layout that got taken down on the arrival of my mother-in-law. In fact, the loco was a Christmas present from my friend in Connecticut so I would be glad to be using it again.

Then, I proved one of the laws of entropy. It takes you weeks to build the basic structure of the layout, lay track and fix all the wiring BUT it takes 2 1/2 hours to rip it all up! The foam core went down to the apartment block bin room, the wiring went into a bag for later use (that includes the SwitchPilots etc.) and the track went into a box ready to be cleaned up and sold on eBay. 

After cleaning the Kato track, I put it all back in its display cards ready to be sold. Then I realised what a huge task it would be to actually ship all of the Kato packs that I had. I might have achieved £100 for the lot but I can live without that. I came to the same conclusion about selling 25 freight cars. Hence, I now have both of these packed away in our storage unit for later use (??).

I have dug out all of my Märklin, Roco and Pike stuff which I will try and sell as there is a lot of money there and I will also try and sell the four N Scale locos, all of which have nice decoders installed.

I have bought a couple of lengths of Peco code 83 track and 2 #5 points plus a couple of DCC Concepts Cobalt IP point motors. The idea behind that was to test the plan for the 6' x 1' layout but that has been overtaken now. It seems that DCC Concepts IP motors as unavailable so I will go with their analog motors which I can drive with my Switch Pilots. My LHS is getting some more code 83 so, hopefully, in a few days I will be able to buy the rest of the track. Now, the problem.

I would like to try the idea of a Youtube channel as my use of foam core is quite unusual and might get some interest. However, I am hesitant about doing it for a few reasons. Like a lot of people, I hate the sound of my own voice when I hear a recoding. Secondly, I have to get the flat quiet which is currently an issue as my wife has a bad chest cough! I do have a nice Olympus mirrorless camera which can take first class video and can also take stop frames so, once going, I can do some good stuff when building the baseboards, for instance. Also, I am quite adept at iMovie and have a copy of Adobe Premiere so am well set up technically.

The New Layout

Here is the current thinking regarding the new layout. It will be about 7'x 1' 4" with a 2' 6" extension as a "fiddle yard" or staging as  the US calls it.


More to come on this when my thinking is straighter.

Thursday, 1 December 2022

Backscene and Signalling (1)

 Big news today - we have a back scene. This is important because, once I have buildings, etc. on the layout, I won't be able to turn it upside down to install any more electrics/electronics. The back scene means that I can balance the layout on it and have clear, supported, access to the underneath.

The back scene is made from my usual 5mm foam core. Unfortunately, it does warp a bit when exposed to acrylic paints but it will be securely stuck using hot glue. There are three boards. I used school acrylic paints in blue, white and black. I mixed the the white and blue with little blue and put that on at the lowest level. I then increased the blue for another  two stages to get an idea of the normal sky. I have to say that I didn't put enough blue in the first layer but it's too late now. Once all this was dry, I painted some white clouds on using a stipple brush. This was followed with a white/black mix to get the normal grey underside of the clouds.  I think that it does the job, especially as I am not an artist. (You can right click and see a bigger version of any image).




OK, so now down to some interesting electronics. This is still being built so you won't see it working yet.

I am arranging to put a protective signal on the exit road to the staging. When at the Warley show over the weekend I bought a Berko two aspect signal. Silly really as it is a UK style signal. I should have waited and bought an Atlas one but there we are. Maybe I will replace it. The idea is that when a train gets to the end of the staging it will trip the signal feed to go from green to red. This will happen when the loco moves into the last element of the staging road so about 8" from the end. At the same time, the track power to the whole line will be removed so, should any loco pass the red, it will stop. When the loco and train are  removed, the power will come on and the signal will revert to green.

The stuff that makes this happen is as follows:

An Arduino Uno (eventually, a Nano)
A light sensitive diode
A 5V Relay interface for Arduino
A signal - this time it is a two colour light - red and green.

The idea is that the track is isolated at that 8" distance from the end. The track at that point is fed from the relay.  The Arduino sketch (program) loops around continuously and checks the output of the light sensitive diode. Anything under 1000 as seen by the Arduino indicates that the light above the diode is being blocked. If that happens, the track current is stopped and the signal set to red. Over 1000, the power is restored and the signal turns green.

The sketch looks like this.

// Project Control Staging Track and Signal
int LED = 13; //define LED digital pin 13
int relay = 11; //define relay digital pin 11
int val = 0; //define the voltage value of photo diode in digital pin 0
int state = 1; //state of light sent. diode 1 = ON 1 = OFF

void setup(){
pinMode(LED,OUTPUT); // Configure LED as output mode
pinMode(relay,OUTPUT); // Configure relay as output mode
Serial.begin(9600); //Configure baud rate 9600
}

void turnOff() // power off to track and signal to red
{
if( state = 1 ) {digitalWrite(relay,LOW); // turn relay off
state = 0; // note state as off
}
}

void turnOn() // power on to track and signal to green
{
if( state = 0) {digitalWrite(relay,HIGH); // turn relay on
state = 1; // note state as on
}
}


void loop(){
val = analogRead(0); // Read voltage value ranging from 0 -1023
Serial.println(val); // read voltage value from serial monitor
if(val<1000){ // If lower than 1000, turn off LED
turnOff();
}else{ // Otherwise turn on LED
turnOn();
} // delay for 10ms
}


I think that if you start at the loop and follow that even a non-programmer can follow what is going on.

I am waiting for the last little bits to build the actual setup so that will be the content of the next blog entry.


Thursday, 24 November 2022

Software news

 I am busy resurrecting my "Car Cards" software that I used on my previous Kato round-roundy. I am making some changes to it to get a mobile phone view that is reminiscent of the development I did for the final project unit of my Open University course. This look like so (right click for a bigger version):


I don't have the software to make a true mobile phone app like the one shown so it will be a simple web page. There is also a back up web package that provides views of all of the relevant data.

This is how it goes.

Data is stored for the variety of information needed to decide on car routing. This includes trains, cars, locos and industries. Each loco is listed with its road name, running number, loco type (passenger, road or switcher) and DCC id. Cars are listed by their road, car type, AAR designation and an image address. Industries are listed by name, town, car type and allowed time on site. An industry entry is required for each car type at any specific industry so an industry might be listed multiple times. The intention is that this process should be fairly similar to the MicroMark car card package.

There is a single display which is the current train being processed. This lists all the relevant data for the train and all the cars as in this example.


Once you have moved all the cars as described, you click on the "Process Train" button. The database is updated with all the new locations and the next train is built and displayed.

Using a web browser will result in more information being available so you can not only create and process trains but you can also list each data list - trains, cars, locations, etc. 

Oh, I forgot to mention that it will also create unit trains - that is a train with one type of car - coal hoppers, container flats and so on.

It is a simple system as it only deals with a single yard fed from staging which is all I need at the moment. My original Open University project was for a much more sophisticated program that allowed for multiple databases and much for flexible layout design - end to end with three towns or something similar. However, this requires more work before it can be offered even for testing. The Open University project just required me to develop an outline program that produced some test results. I expect to offer that system - Old Bill's Switch List - sometime next year.

Once I am happy with the existing Car Cards system, I will offer it up for others to test but I need to make it multi-user first. Expect that sometime after Xmas as I would like to run some trains myself first.


Sunday, 13 November 2022

The board and staging are complete

 Well, the board is complete and I have finished the wiring so far - all of the DCC bus is in place plus all of the points are connected to ESU Switch Pilot accessory decoder boxes.

Here is the underneath showing the wiring before I fitted the point connections.


You can see the square supporting boxes and the attendant legs . Each box is fitted around the specific leg. You can see the area around the base of each leg. These were designed as flexible boxes that can be adjusted to get the height right for each leg position. Once they are right, I run hot glue around the tops and fix them in place.

As you can see, there are lots of little connectors. I have a wide range of these from a simple two channel through up to a 5 way single channel. Here is a three channel.


From there, I have fitted three ESU Switch Pilots to control the points. The Switch Pilots output three wires - a common and a left and right. However the Kato Unitrack points require two wires so some conversion has to take place. I use DCC Concepts DCD-SDC6 which make the conversions.


I have had a few problems from the testing. In trying to sort out one point where I had missed getting into the rail joiner I managed to break a rail away so that £30 for a new point. Then I had some trouble sorting out the double crossover. I set it up on the ECoS controller along with two points to make a single crossover but every time I tried either one, the two way would work. I haven't really sorted this out and it is looking like the four way crossover (which is a single Unitrack unit that costs £50!) has failed but we have some way to go to get to the bottom of it.  Also, in my usual stupidity, I opened up a point to see what was inside and it all sprang apart. I thought that I had sorted it but it turns out that I hadn't so that is another point that I have had to buy. It gets better because when the new point arrived, it was faulty. Not only does it not work through the ECoS but also doesn't work manually. Tony at N Scale American Trains rapidly agreed to put a new one in the post without waiting for me to return the faulty one. That is good service!

All of these issues will be easy to correct once the replacement arrives so I have set the railway up in its chosen place.


It turned out that I hadn't got the legs long enough so, currently, I have put some foam core sheets underneath each pair to get the top level. I have also built the staging extension which is detachable from the main layout. This is a box with legs to get it level.  Here is a shot of the staging.


You can now see the two storage points for the connecting tracks. I have ordered some barrel plugs and sockets. Needless to say, I have to buy 10 when I only need a couple. One of these will be used to move power from the main layout to the staging. The other will be involved in powering an Arduino based light detector on the staging that will control a color light signal on the route off the main board. That's for the future though. 

I am awaiting the replacement point and then, maybe, I can run some trains.


Thursday, 3 November 2022

We have legs

 We now have legs on the baseboard. These are made, like the board, out of 5mm foam core. I have some special cutting tools to use with foam core. One of them has two blades set in a v shape that are custom designed to cut a -V- into the board leaving the outer paper layer intact. This is what it looks like.


I also have a tool that takes 5mm of the end of a board, again leaving the final paper layer intact. This gives me a channel that gets UHU paper adhesive applied and makes the final edge of the box. With a careful bit of calculation, this can be folded up to make a leg that is 3" square and is very strong.


I then create a box for each leg to go into on the underside of the baseboard.



We end up like this. (BTW, it looks as though it is sagging in the middle but this is an optical illusion. The board is flat and checked with spirit level plus rolling stock stay stationary where put!).


As you can see, each leg has a collar around the base and a flat plate. The collar is made to be just big enough to be an interference fit around the leg. The legs are then put in place and the board levelled using these collars. Once in place, they are hot glued into position. It isn't too stable front to back but it is close up to the cabinets so that shouldn't matter. 

As you can see, the board is longer than the gap and thus rests on the end of the desk. The desk has an electric height adjustment so it can be set to support the board exactly. Why would I do this instead of using wood as everyone else does? Well, I have a lot of arthritis and if I have to walk more than about 30 years I resort to an electric wheelchair. I have extreme difficulty in getting onto the floor and even more difficulty getting up so I need this to be as light as it can be so that I can pick it up, turn it over and work on the underside whilst it is on the dining table. 

Well, that's it for now. I am charging uop my wireless Dremel so that I can start wiring up for DCC. That's for next time.

Thanks for watching.

David