CalcProgrammer1 ,
@CalcProgrammer1@lemmy.ml avatar

My dad has been into model trains since before I was born. We built a train layout in the early 2000s when I was in middle school or so. Working on that project helped get me into electronics as we made PCBs for signals and control circuits. Now, 20 some years later, I work in software engineering. My dad wanted to get back into working on the layout and I’m helping him with Arduino programming and Raspberry Pi stuff. He built a stepper motor controller for the turntable and then we built some turnout and light control boards that interface with DCC. We set up JMRI on a Raspberry Pi to drive trains from phones and automate stuff. I also got him into 3D printing and he’s printed a ton of new scenery for the layout after buying his own Ender 3 after using mine quite a bit. We’ve learned various CAD/modeling programs to make 3D prints.

I also finally got to do something I always wanted to do as a kid, which is to drive the trains from a first-person view. We have gone through a bunch of different variations of putting a Raspberry Pi Zero and camera module on an HO scale railcar. We did some different designs. Our latest design uses an SG-90 micro servo to control the camera angle so you can look left and right. I also 3D printed an enclosure for a regulator, battery charger, and battery that takes track power and powers the Pi.

It’s pretty fun to be able to sit on the couch with a phone, watching the view on the TV, and drive the train from the other room including operating turnouts. Haven’t yet tried to drive the trains over the Internet yet but I want to, since I live a state away from my parents where the layout is.

Edit: Here’s a video of the camera car in action! www.youtube.com/watch?v=Ls-Rg1TlDOA

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • wartaberita
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • feritale
  • KamenRider
  • Testmaggi
  • KbinCafe
  • Ask_kbincafe
  • TheResearchGuardian
  • Socialism
  • SuperSentai
  • All magazines