RWLR - Robin Wood Light Railway

A place for the discussion of garden railways and any garden style/scale portable and/or indoor layouts
Post Reply
User avatar
ge_rik
Administrator
Administrator
Posts: 7964
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: RWLR - All change!

Post by ge_rik » Sun Apr 16, 2017 8:25 am

Great pix, BTW, Tom

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
tom_tom_go
Driver
Driver
Posts: 4824
Joined: Wed Feb 23, 2011 3:08 am
Location: Kent, UK
Contact:

Re: RWLR - All change!

Post by tom_tom_go » Sun Apr 16, 2017 10:32 am

I cannot visualise your idea Daan?

User avatar
daan
Fireman
Fireman
Posts: 266
Joined: Wed Apr 12, 2017 9:25 am

Re: RWLR - All change!

Post by daan » Mon Apr 17, 2017 8:05 pm

I made a small setup to shop what I mean:

Image

on one of the axles you fix a think piece of wire in one or two windings. The coupler has a longer wire attatched which can move to the left and the right a bit. When moving in one direction the couplerwire stays on one end of the windings.

Image

When backing up, the wire attatched to the coupler is picked up bij the thick wire and moves to the other side, across the thick part of the windings.

Image

In the normal state the coupler is closed, but when moving across the thicker part of the windings..

Image

the coupler opens and giving the possibility to change direction again while being on the thick part, thus keeping the coupler open while moving away from the train.

However, when you back up to get a pair of wagons the coupler also opens when moving away in the other direction. So you need to find a way to keep the couplers closed while being under tension while pulling wagons and only able to uncouple while pushing.

It has some drawbacks which you will have to find your way around, but on the other hand: its cheap and simple and works without any electronics or control from outside..
"En schöne Gruess" from an Alpine railway in Holland.

User avatar
tom_tom_go
Driver
Driver
Posts: 4824
Joined: Wed Feb 23, 2011 3:08 am
Location: Kent, UK
Contact:

Re: RWLR - All change!

Post by tom_tom_go » Tue Apr 18, 2017 8:39 pm

Thanks for posting the idea Daan, very interesting.

User avatar
tom_tom_go
Driver
Driver
Posts: 4824
Joined: Wed Feb 23, 2011 3:08 am
Location: Kent, UK
Contact:

Re: RWLR - All change!

Post by tom_tom_go » Sun Apr 23, 2017 5:50 pm

I have been working getting the Arduino to operate different servos on independent channels performing different movements. The idea of this is that using the RC Trains TX24 I can operate uncoupling ramps with one control knob, signals with another and finally points also using a different control knob.

I will post a video once I get another Deltang Rx102 as currently I am using a Orange Rx with the servos which is not capable of the Deltang 'selecta' functionality and therefore any movements I make with the TX24 also operates the Ardunio along with the loco in motion. However, here are some pics of the signal I installed today:

Image
Image

I have standardised on this servo mounting setup which is simply a piece of plastic angle drilled to house the servo and then bolted into place
Image

Calibrating the signal sevro in code, not your usual kit for building a garden railway!
Image

User avatar
Sylvian Tennant
Fireman
Fireman
Posts: 327
Joined: Wed Aug 10, 2011 4:48 pm
Location: Teesside

Re: RWLR - Robin Wood Light Railway

Post by Sylvian Tennant » Sun Apr 23, 2017 6:09 pm

apologies to take the conversation in a slightly different area. But i'm most curious about your signal did you build it yourself?

Lovely work overall.

User avatar
tom_tom_go
Driver
Driver
Posts: 4824
Joined: Wed Feb 23, 2011 3:08 am
Location: Kent, UK
Contact:

Re: RWLR - Robin Wood Light Railway

Post by tom_tom_go » Sun Apr 23, 2017 6:16 pm

Sylvian Tennant wrote: Sun Apr 23, 2017 6:09 pm apologies to take the conversation in a slightly different area. But i'm most curious about your signal did you build it yourself?
I bought it off eBay:

http://www.ebay.co.uk/usr/spara01?_trks ... 2749.l2754

Paint job and build quality is a bit poor but it was cheap and does come with a light. I will repaint it one day but wanted for now to get it installed to see if it would work with the Arduino.

Big Jim

Re: RWLR - Robin Wood Light Railway

Post by Big Jim » Sun Apr 23, 2017 7:14 pm

Very Impressive. I am completely lost by it all, but still impressed. It is nice to see a railway that is being signalled.

User avatar
tom_tom_go
Driver
Driver
Posts: 4824
Joined: Wed Feb 23, 2011 3:08 am
Location: Kent, UK
Contact:

Re: RWLR - Robin Wood Light Railway

Post by tom_tom_go » Mon Apr 24, 2017 10:54 am

It has been a learning curve Jimbo. What I have achieved is very basic compared to what can be done with an Arduino.

For those of you that are interested here is the code that I am currently running:

Code: Select all

// Libraries
#include <VarSpeedServo.h>

// Variables
VarSpeedServo SignalServo;
VarSpeedServo TurnoutServo;
VarSpeedServo UncouplerServo;

// Receiver channels
const byte SignalsInputPin = 22;
const byte TurnoutsInputPin = 24;
const byte UncouplerInputPin = 26;
const byte CHANNELS = 3;  // Number of channels
const byte ChannelPins[CHANNELS] = {TurnoutsInputPin, SignalsInputPin, UncouplerInputPin};
const byte SignalsServoPin = 52;
const byte TurnoutsServoPin = 50;
const byte UncouplerServoPin = 48;
boolean ChannelStatePrevious[CHANNELS];
unsigned long ChannelChangeTime[CHANNELS];
const int CHANNEL_MAX = 1600;  //control knob value max (microseconds)
const int CHANNEL_MIN = 1100;  //control knob value min (microseconds)
const int CHANNEL_THRESHOLD = ((CHANNEL_MIN + CHANNEL_MAX) / 2); // Center point
const unsigned long CHANNEL_DEBOUNCE = 5;

void setup() {
  for (int i = 0; i < CHANNELS; i++) {
    pinMode (ChannelPins[i], INPUT);            //set up input pins
  }
    SignalServo.attach(SignalsServoPin);        //attach signal servo   
    UncouplerServo.attach(UncouplerServoPin);   //attach uncoupler servo
    TurnoutServo.attach(TurnoutsServoPin);      //attach turnout servo
  }

void loop () {
  // Convert the channel inputs to switch state changes
  for (int i = 0; i < CHANNELS; i++)  {
    boolean channelState = pulseIn(ChannelPins[i], HIGH) > CHANNEL_THRESHOLD;
    if (channelState != ChannelStatePrevious[i] && millis() - ChannelChangeTime[i] >= CHANNEL_DEBOUNCE) {
      ChannelStatePrevious[i] = channelState;
      ChannelChangeTime[i] = millis();
      // The channel has changed state.  Do something!
      switch (i) {
        case 0:
          SignalsChange(channelState);
          break;
        case 1:
          UncouplerChange(channelState);
          break;
        case 2:
          TurnoutsChange(channelState);
          break;
      }
    }
  }

  //Servo animations
  }

  void SignalsChange(boolean newState) {
    // Move the signal servo to the new position
    SignalServo.write((newState ? 66 : 86), 30, true);        //first value signal halt movement, second value clear movement
    SignalServo.write((newState ? 76 : 70), 10, true);
    SignalServo.write((newState ? 86 : 83), 10, true);
    SignalServo.write((newState ? 66 : 86), 30, true);
  }

  void UncouplerChange(boolean newState) {
    // Move the signal servo to the new position
    UncouplerServo.write((newState ? 110 : 40), 10, true);
  }

  void TurnoutsChange(boolean newState) {
    // Move the turnout servo to the new position
    TurnoutServo.write((newState ? 110 : 62), 6, true);
  }
 
The text with // next to it are notes that help explain what is going on but feel free to ask questions.

Video to follow once I get the new Rx.

User avatar
tom_tom_go
Driver
Driver
Posts: 4824
Joined: Wed Feb 23, 2011 3:08 am
Location: Kent, UK
Contact:

Re: RWLR - Robin Wood Light Railway

Post by tom_tom_go » Sun Apr 30, 2017 5:39 pm

To stop Milo our lab from destroying the plants we try and plant each year we have invested in Filcris round palisade posts to box in our garden beds:
Image
You can buy the posts here: https://www.filcris.co.uk/category/land ... sade-posts

This was just today's rubble I removed from one of the trenches!
Image

My wife and I have taken it in turns to do the digging so when I was off duty I finished off the Mk2 roof version of the Arduino housing unit:
Image
Image
Image

I think water must of got under the bake bean can roof as it all peeled off recently and was soaking wet underneath (the epoxy I used was quite old). This time, I used brand new epoxy and have added sealant under the roof so any gaps are now filled.

I want the roof to rust a little more before I give it a couple of coats of matt lacquer to protect it. I quite like the building being white so might leave it.

jim@NAL
Driver
Driver
Posts: 1142
Joined: Sun Sep 23, 2012 11:01 am
Location: haverhill suffok

Re: RWLR - Robin Wood Light Railway

Post by jim@NAL » Thu May 04, 2017 8:09 pm

looking great that tin will soon rust up too keep up the good work all looking very good

User avatar
ge_rik
Administrator
Administrator
Posts: 7964
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: RWLR - Robin Wood Light Railway

Post by ge_rik » Thu May 04, 2017 8:35 pm

Interesting stuff, Tom. Be interested to see it in action.

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
tom_tom_go
Driver
Driver
Posts: 4824
Joined: Wed Feb 23, 2011 3:08 am
Location: Kent, UK
Contact:

Re: RWLR - Robin Wood Light Railway

Post by tom_tom_go » Sat May 06, 2017 5:07 pm

I managed to cobble this video together of how I can now run a train without having to use the 'hand of god' to change points, uncouple trains or operate semaphore signals:


DG
Cleaner
Cleaner
Posts: 77
Joined: Thu Mar 23, 2017 7:02 pm

Re: RWLR - Robin Wood Light Railway

Post by DG » Sun May 07, 2017 7:20 am

Hi Tom that is fantastic, I realise that you must have put some time in to get all this singing and dancing, very impressive. I particularly like the uncoupler ramp. Seeing the points change slowly like that and the signal bounce, well it is just like the real thing. Thanks for doing the video, Dave.

User avatar
ge_rik
Administrator
Administrator
Posts: 7964
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: RWLR - Robin Wood Light Railway

Post by ge_rik » Sun May 07, 2017 8:00 am

Enjoyed that Tom. Thanks.
I like the way the signal sets to danger when the train has left the station. Just a small query; should it set to clear before the loco passes it to run round the train, or can the signalman give special permission for that manoeuvre? Sorry to sound pedantic, but it's something I'm wrestling with in signalling my stations - whether signals can be ignored for some shunting moves provided permission has been granted - or will the interlocking prevent it......

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
tom_tom_go
Driver
Driver
Posts: 4824
Joined: Wed Feb 23, 2011 3:08 am
Location: Kent, UK
Contact:

Re: RWLR - Robin Wood Light Railway

Post by tom_tom_go » Sun May 07, 2017 10:52 am

ge_rik wrote: Sun May 07, 2017 8:00 am Just a small query; should it set to clear before the loco passes it to run round the train, or can the signalman give special permission for that manoeuvre? Sorry to sound pedantic, but it's something I'm wrestling with in signalling my stations - whether signals can be ignored for some shunting moves provided permission has been granted - or will the interlocking prevent it......

Rik
I am sure Andrew can enlighten us but I just wanted one signal to depart trains for a bit of operational interest. If you look at prototypical examples of a stations with run round loops they have various signals. I am going to justify my version with the signalman giving hand signals from the yet to be built signalbox.

With your signals Rik do you carry all those keyfobs with you during a running session or do you leave them at each station that they control?

User avatar
ge_rik
Administrator
Administrator
Posts: 7964
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: RWLR - Robin Wood Light Railway

Post by ge_rik » Sun May 07, 2017 1:31 pm

tom_tom_go wrote: Sun May 07, 2017 10:52 am With your signals Rik do you carry all those keyfobs with you during a running session or do you leave them at each station that they control?
Hi Tom
I'm impressed that you remembered my keyfob controlled signalling. In theory, I would leave the keyfob at each station, as I follow each train around anyway. But in practice, I have only got around to putting one station's signals under radio control but I do leave it there. It's high up on the todo list to energise the others.

The tx for the rc controlled points I leave on a very prominent bush at Peckforton Station - as this is the midpoint of the line. The rc controlled points are located are various places around the railway and so there isn't a particular spot where it's needed most.

Rik
Ps One day I might get around to automating Bickerton station as that's mostly a run round terminus.
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
tom_tom_go
Driver
Driver
Posts: 4824
Joined: Wed Feb 23, 2011 3:08 am
Location: Kent, UK
Contact:

Re: RWLR - Robin Wood Light Railway

Post by tom_tom_go » Sun May 07, 2017 6:25 pm

I have read your blog many times Rik and may even use keyfobs or a larger hand held remote controller if I want to operate more servos in the future.

Arduino housing now complete I think, it was painted using masonry paint mixed with sand:

Image
Image
Image

User avatar
ge_rik
Administrator
Administrator
Posts: 7964
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: RWLR - Robin Wood Light Railway

Post by ge_rik » Sun May 07, 2017 7:15 pm

tom_tom_go wrote: Sun May 07, 2017 6:25 pm I have read your blog many times Rik and may even use keyfobs or a larger hand held remote controller if I want to operate more servos in the future.
They are certainly a cheap way of getting things controlled by r/c
Rik

PS Nice to see one of my RC Trains Tx24s in the background ........
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
tom_tom_go
Driver
Driver
Posts: 4824
Joined: Wed Feb 23, 2011 3:08 am
Location: Kent, UK
Contact:

Re: RWLR - Robin Wood Light Railway

Post by tom_tom_go » Mon May 08, 2017 7:57 am

ge_rik wrote: Sun May 07, 2017 7:15 pm PS Nice to see one of my RC Trains Tx24s in the background ........
Deltang has completely changed controlling trains using R/C for me, very grateful that you brought it to our attention Rik!

The building has dried well overnight, however, I am concerned how it will fair in wet weather.

To seal the walls can I use a mix of PVA/water and washing up liquid in a spray bottle or just spray it with a matt laquer?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests