MartinSant.net

Software Engineering | MicroMachines

  • Airplane
  • Electronics
  • Model Trains
  • Chickens
  • 3D Design
  • German Shepherds
  • Garden
  • Protothrottle

Rail Layout Editor

route

Click on the map to go to the actual page and try it out.

This is a layout map editor that is built from javascript and uses the HTML5 canvas. It’s not complete but the basics work and the framework is there.

I have this on my Raspberry Pi which is configured as a web server. Once the layout map was entered and configured, the Pi would deliver the page to my Android tablet. As a train moved around the layout, it would update the individual blocks. If you wanted to throw a turnout, you touched it.

The Xbee network is run from the Pi, so inputs from the tablet go (via websockets) out over the Xbee network. Inputs from the Xbee network are captured by the Pi and then the web page is updated and refreshed to the tablet.

That is the idea anyhow. With the tile framework, I think this gives a good expandable base so here ya go. If you want the source, I’m sure you know how to get it 🙂

  • Recent Posts

    • All finished, well almost
    • New Paint
    • Train Layout Rebuild
    • New Computer
    • Airplane Refurb
  • Pages

    • 2D vector drawings into 3D models
    • 3D Printed Figures
    • Android – Reels Game App
    • AVR Attiny 1634 s/w UART
    • Bluetooth Diagram and Descriptions
    • Building a G Scale Turnout
    • Burnley Country Store
    • Flying to York PA
    • New Puppy – Sophie
    • Protothrottle
    • Protothrottle to Airwire Beta
    • Rail Layout Editor
    • Raspberry Pi Zero W Wifi Access Point
    • RPi Android HTML5 Servo Control
    • Steam Engine and Dynamo
    • Tin Can Steam Boiler
    • Wixel Breakout Board
    • CRM C# Autonumber Plugin
    • Microsoft CRM and C#
    • EightWay Game
    • Dice In A Stone Box
    • About Martin
Proudly powered by WordPress Theme: Parament by Automattic.