element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
Review Blogs Riding-the-Rails with a Raspberry Pi Zero 2W: Introduction Model Train Stuff
  • Blogs
  • RoadTest Forum
  • Documents
  • RoadTests
  • Reviews
  • Polls
  • Files
  • Members
  • Sub-Groups
  • More
  • Cancel
  • New
Join RoadTests & Reviews to participate - click to join for free!
  • Share
  • More
  • Cancel
  • Author Author: colporteur
  • Date Created: 24 Feb 2022 10:53 PM Date Created
  • Views 6820 views
  • Likes 7 likes
  • Comments 7 comments
Related
Recommended
  • raspberry pi 2W
  • pi camera

Riding-the-Rails with a Raspberry Pi Zero 2W: Introduction Model Train Stuff

colporteur
colporteur
24 Feb 2022

Welcome to the second of six blog posts in support of the Raspberry Pi Zero 2W Roadtest. The blog posts will explore different aspects of the product while attempting to engage the E14 Community members. Comments and questions to the blog posts are welcomed and encouraged. The blog posts will serve as the resources for assembling the RoadTest Review document.

The project objective is to pair a Raspberry Pi Zero 2W with a camera, assemble it on a HO scale model railroad car with a power source and stream or record video of the train in motion.

image 

I confess I don't enjoy playing with model trains. My playing or rather making with model trains involves creating animation on model railroad layouts using technology. Since I don't do trains, I engaged the model railroaded community to come up with a design to transport the Pi2W and camera assembly.

The initial napkin design was limited. The railroaders just looked at a rail car to carry the load and are done with it. I suggested that their idea was short-sighted. A camera on a rail car would be cool to take to train shows. They could video record people as the train passed and display the content on a monitor. I suspect their initial design response was to just find a solution and go back to playing with the trains. I try not to create stuff that can have practical applications post-development. After some encouragement (i.e. another round of beers on me) the railroaders started throwing out ideas and came up with a more workable solution.


image

IMAGE TITLE: Assembly 1

image

IMAGE TITLE: Assembly 2

image

IMAGE TITLE: Assembly 3

image

IMAGE TITLE: Assembly 4

image

IMAGE TITLE: Assembly 5

After looking at a number of different rail cars, it was decided the Well Car, a rail car that carries pup freight boxes worked best. My wish was to place the camera inside a passenger car or a locomotive. I know little about HO model scale. The locations I selected were not ideal because of the limited space inside the cars. Tandem Well Cars accommodated the load.

Did I mention the load has gotten bigger? The plan was to have just a PiZero2W, camera and power source. The railroaders asked to make the camera movable. Now the camera is on a motorized mount controllable from the Pi. The plan is to create a container shroud that will cover the load. Model railroaders are focused on making things look real. I will check in occasionally to follow progress while the model railroaders play with a physical implementation. 

I have pointed out the need for physical access requirements for things like power and GPIO as they consider the finished design. You can see they have asked to incorporate a motor to reposition the camera. My focus will be generating image content. Rinding the rails is not my primary focus. I have no doubt the railroad community will make the load transportable. I suggested to the physical transport designers that if the PiZero2W is not up to the task may be the load will have to be a Pi4.

The next blog post will be Riding-the-Rails with a Raspberry Pi Zero 2W: Introduction Model Pi Stuff. This will examine computer hardware/software requirements for the project, provide a short history lesson of the Pi Zero and explore the technical design decisions.

  • Sign in to reply
  • colporteur
    colporteur over 3 years ago in reply to beacon_dave

    I never thought of an onboard screen! Hmmm, I have one I could test with.

    I just came back from the workshop. On the next visit, I hope to run the camera off the battery. The wiring harness is ready. I need to solders some pins to the pi for connection and it is prepared for a preliminary test.

    As the modelers have seen the project unfold in the shop, I have gotten requests for things to try. Your screen idea is the first but then modelers are not thinking of technology. I have discovered it is a project that could consume a lot of my time if I let it. I've kludged together the code to get video but I would really like to make it display content on a browser.

    I like your screen idea but like the other ideas, I am shelving them to focus on just getting the content I need to finish the RoadTest.

    Retirement is grand but retirement with things to play with is grander.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • beacon_dave
    beacon_dave over 3 years ago

    "...Did I mention the load has gotten bigger?... "

    If you want to go one step further, you could have digital billboard on the side of a freight car that flips between digital signage and live video from the camera. I'm thinking along the lines of the likes of the circus trains with the large murals and stuff painted on the outside of the wagons. Going from digital stills to live video should get a bit of a reaction from viewers I would imagine.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube