Building a working model of Ryde St Johns Road signal box display

Try the simulator

Before you read about how I built the model, you can watch it working. I have made a screen version of the display that runs in your web browser, using the same timetables as the model. Click the picture to open it (it opens in a new tab).

The Ryde St Johns Road signal box simulator - click to open it in a new tab
Open the Ryde St Johns Road signal box simulator (opens in a new tab)

Using the simulator

The timetables

These are the five timetables used by the model and the simulator, laid out from the printed public timetables. Click a cover to open it (each opens in a new tab).

Summer Saturdays 1979 timetable Mondays to Fridays 1983 timetable Saturdays 1983 timetable Summer Sundays 1994 timetable Mondays to Fridays 2015 timetable


I have had a lifelong interest in the Isle of Wight railway, ever since being taken from Leatherhead in Surrey to Ryde for days trips by my grandparents. I can recall the steam trains along the pier from my vantage point making sand castles. We came on the steamer from Portsmouth and along the pier on the tramway so I sadly didn't ever travel on the steam trains, although I have since done on the preserved Havenstreet Railway.

I have often considered writing a computer simulation of the railway; I used to programme a Sinclair ZX Spectrum and could have used this but I decided instead to design a bus simulation which I called "VECTIS". This was quite something in its day but is now very long in the tooth. For anyone interested, there is a version of it online. The Spectrum did not easily communicate with the outside world and any undertaking would only be a computer representation. However with the advent of an easily programmable computer called the Arduino, I realised it would be possible to build something very realistic. This page describes the project with a few technical details for anyone interested. The following sections describe the design and build of the final model:

  1. Try the simulator
  2. Project design
  3. Display graphics
  4. Computer and programming
  5. Wiring and electronics
  6. Timetable design
  7. Build and frame
  8. From model to screen

Project design

The design I envisaged is based around a highly detailed facsimile of the graphics from the actual display in Ryde box. Like the original, red lights will sit behind cut-outs in the image; I believe the original uses neon lights to represent the locations of the trains(at least that's what it looks like from photos I've seen). My version uses red LED lights which are easier to work with and use less power. In reality the lights will be activated as trains leave and exit sections of track with this information being provided by sensors in the track. In my version the lights are controlled by a small microprocessor (essentially a computer) called an Arduino. Arduinos are widely available from the internet and can be obtained very cheaply (under £10) although some are identical replicas from China. The computer program simulates the trains based on current or historical timetables; I have designed my model to hold up to 15 different timetables from different eras since the line was electrified in 1967. The Arduino has numerous output connections which for the most part in this project feed to the lights representing track sections. Finally the whole thing was constructed on a piece of hardboard and finally framed (I had this done professionally as my carpentry skills were not up to this aspect of construction. Having outlined the basic design, I'll now go into detail regarding the various aspects of design and construction.

Display Graphics

To create the track diagram I needed resolution to be very high as I intended printing the track diagram at "A0" size (1,189 mm wide) although I built the first version using a print at "A2". I used an image of 10,000 by 7,000 pixels. I found a view of the display on the internet and expanded its size to a width of 10,000 pixels. I then used Photoshop's smart blur option to get rid of the "noise" in the image. The Ryde Esplanade section looked something like this:

pre-processing the image stage 1

I then needed a font to restore the text. I have in the past downloaded hundreds of fonts and spent some time choosing the closest to the original. The next stage was the laborious process of restoring each section of the original. I used an old graphics package I'm familiar with (MicroGraphx). There is a clone tool that allowed me to copy sections of track horizontally before colouring them appropriately. This tool ensured the tracks in the final image were level (the original image had a very small tilt with the right a few pixels lower than the left. I drew the signals and other items using the drawing capabilities of my graphics package - some bits could be re-used, sometimes needing to be rotated or with colours altered. The background needed checking for stray pixels of colour (which were removed). The image below shows what the page looked like part way through the process; you can see a mixture of the original and my newly drawn sections of track etc.

pre-processing the image stage 2

I found some of the numbers looked better in a different font and some sections of writing looked more like the original if I used a "bold" setting. I spent days getting this right and estimate it took about 30 hours of painstaking editing. Even the checking was difficult and after spending £20 on an "A2" print, I was very upset to find a couple of sections of track were the wrong colour and needed re-printing. The image below shows the Esplanade section completed.

pre-processing the image - final

I used the image printed on size "A2" paper as my prototype. When I got everything working I then built a version at "A0". I used a local printer and requested high quality matt paper. This was one of the more costly aspects of the project with the A2 version costing around £14 and the A0 version £30.

Ryde St Johns Road signal box track diagram - reproduction used for working model

The image above shows the final track diagram ready for printing - the original is a 70 mega-pixel image in .BMP (lossless) format.


Computer and programming

The component that makes this possible was the Arduino computer - a cheap processor designed for hobby use with projects requiring lots of inputs and outputs. In this case I needed an output for the LED lights representing the 20 sections of track. I also needed outputs to 4 lights representing the "on" indicator, "filament" warning indicator and a red and green status for "earth leakage" (these all being indicators used on the original. I eventually made use of another output to drive a small loudspeaker to generate the sound of a bell. Several other inputs were required for inputs from 9 switches (to control sound output, timetable selection, etc. I used the Arduino "Mega" as it had more ports than the standard version as well as more memory - it still cost under £10. The unit is programmed using the C+ language with the Arduino connected to the USB port of a computer and using free open source software downloaded from the Arduino website. I have previous experience in programming in "Basic" using a Spectrum and in APL for work. My experience with the 1980s Spectrum proved invaluable as the Arduino has very limited memory (like the old Spectrum) so you need to be in a mindset to do things efficiently (modern software is written very inefficiently with memory being so cheap. Learning the new C+ language took me a few hours (it would have taken much longer had I not had previous experience. The main difficulty was efficiently coding the timetables (my design allowed for up to 15). Each track section had to have a time for the train entering and exiting linked to a master clock to control the simulation. Even a quiet timetable for the winter of 2015 had lots of track movements that had to be carefully coded while a summer 1979 timetable was massive. I'll discuss the timetables in a section later.

The Arduino MEGA with some of the LED wires in place

This is a view of the Arduino board fixed to the hardboard base with hard-as-nails tape; in this view I have started to connect some of the wires to LEDs.


Wiring and electronics

a view of the read wiring

A view of the rear showing the wiring and layout.


Timetable design

The model needs far more than a public timetable gives. A timetable shows when a train leaves each station, but the display needs the moment each train enters and leaves every one of the 20 track sections - 10 on the up line (F to R) and 10 on the down line (E to S). Each train makes about 20 of these "events", and a busy day has well over 1,000.

I chose five timetables from my collection of printed public timetables: a Summer Saturday in 1979 (the busiest, with a train every 15 minutes each way), May and September 1983 on weekdays and on Saturdays, a Summer Sunday in 1994, and an ordinary weekday in 2015. They cover the line from the ex-London Transport "Standard" tube stock that arrived with electrification in 1967 to the 1938 tube stock (the Class 483s) that replaced it.

The work was done in a spreadsheet. First I worked out running times: how long a train takes to pass through each section, how long it stands in the platforms, and how the timings change when a train starts or stops at St Johns Road. Then, for every train in the printed timetable, the spreadsheet produces its list of events - for example "section F occupied at 06:15:32, cleared at 06:16:37" - as a time in seconds from the start of the day. The lists for all the trains are then sorted into time order. I also had to add the trains the public never saw: empty trains to and from the depot and the carriage sidings, and on busy days the extra trains shuttling between Pier Head and Esplanade on the No. 2 road.

Storing the data was the biggest challenge, as the Arduino Mega has only 8 KB of working memory. Each event is stored as a time (2 bytes) and a section letter (1 byte), and the whole list is kept in the much larger program memory, where it is read one event at a time. The five timetables come to 6,936 events, about 20 KB, which leaves room for about another nine or ten days. When you start the model part way through the day it races through the events from the start of the day in a fraction of a second, so the right lamps are lit straight away.

In 2026 I checked every train against the printed timetables. Almost everything agreed to within a minute (a few trains run up to two minutes late on purpose, as they did in real life). Three mistakes came to light and have been corrected: in 1979 an empty train from Shanklin had been timed from its Shanklin departure as if it were already at Smallbrook, and on the 1994 Sunday two trains that should wait - one at St Johns Road and one at Esplanade - for a train coming the other way on the single line now do so. The timetables shown above were laid out from the same printed timetables.

Build and frame

prototype and full size signal box simulator - ryde st johns road, Isle of Wight

The prototype and scale models finished and framed.


From model to screen

The simulator at the top of this page uses exactly the same timetable data as the model. It is a single web page (it needs no installing) showing the display in a frame, as it hung in the box, with a BR(S) clock and a shelf of instruments above it.

Because a screen can do more than a box of LEDs, I added sounds and the instruments the signalman worked with:

  • The train sounds were recorded from a Class 483 at St Johns Road in Train Simulator Classic. They follow the train across the display.
  • The block bells are exchanged with Brading box for the single line beyond Smallbrook (1979 and 1983 only), using a bell recorded in a working signal box and the timing of the bell codes heard there.
  • The lever sounds are a 1964 recording of a signal box lever frame from the BBC Sound Effects archive (© BBC).
  • Each signal on the shelf changes as its lever lands, and the points indicators and the line-in-use instrument follow the trains.



Blackgang garden light railway Click here to visit the preserved Kent & East Sussex Railway Lisbon's trams and funicular railways
email dave
from Invectis websites

©2016-2026 Dave Parker