532
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 22 Aug 2023
532 points (98.4% liked)
Asklemmy
44152 readers
1205 users here now
A loosely moderated place to ask open-ended questions
If your post meets the following criteria, it's welcome here!
- Open-ended question
- Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- !lemmy411@lemmy.ca: a community for finding communities
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
founded 5 years ago
MODERATORS
Model trains. I don't bring it up because it's obscure, but I've definitely found there's a stigma. "Oh he's the guy who plays with trains". Screw the haters, I like to relax after work and do a bit of escapism. Eventually I got over it though and talk about it with friends, but it's not the first thing I bring up either
Let’s see those train pics, my dude! Let that conductor-freak flag fly here.
Not quite ready unfortunately, still in the "lots of pink fiberboard and paper mache" phase, but oh I will when we're done. We're probably too small for a model trains community, but I'll probably be hanging out in !trains@lemmy.ml
Sounds silly but there's definitely an audience for steps of the process as well as the final product
So when you're ready to share the final results I know (at least me) some people who would love to see progress shots too
Train gang needs no justification
As a grown man who still likes Pokemon, I understand. I’m sure lots of people assume you’re in a state of arrested development.
Ha, and judging by the avatar you play video games with trains too! I adore Satisfactory
Most hours in a game by far, I think I'm closing in on 2 thousand. I'm slowly trying to kickstart !satisfactorygame@lemmy.ml again, come and join us!
this is a hobby I would absolutely love to get into but do not have the space (and renting a garage would probably not be realistic at this point for me). looks amazing dude I'm jealous of you! awesome hobby
It's definitely a space eater, it's currently taking up half of my bedroom as I build it. I probably should have waited for a bigger more dedicated space but then I'd be waiting another decade.
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! https://www.youtube.com/watch?v=Ls-Rg1TlDOA
Very cool! Sounds pretty much like what I have started on mine, I went the full DCC++ route, have an arduino and rpi running the whole layout, with a few other boards helping along the way. At some point I'd love to do full automation of the setup but that'll be a while. What camera did you use for the rpi and train? I'm running n scale so I'm assuming yours would be larger
We built the layout when DCC was first coming out after going to a train show. We ended up picking up one of Digitrax's first systems (Empire Builder IIRC, with DB150 base station). That's still what we use for DCC. I designed a LocoNet to serial adapter (MS100 compatible, but very cheap and simple) in college (2010 ish) and we're using that to connect it up to a Pi 3 running JMRI. Our layout is HO scale. N scale is probably too small for even a Raspberry Pi Zero with camera module, as the setup barely fits on an HO scale car.
I have set up a DCC++ Ex setup at my house for testing and experiments. Just got a loop of EZ Track on the floor with an Arduino as the base station and another Pi with JMRI that is configured similarly to the real layout.
Here is an early picture of the camera car design with the servo. I've since condensed everything on to one car with a custom 3D printed design. I want to publish it eventually but haven't had time. I even 3D printed trucks with power pickups in my latest design (just had to buy metal wheel sets to put in them). I also made a tiny Python webserver that has buttons for different servo positions so you can easily move the servo from a browser.
https://files.mastodon.social/media_attachments/files/110/456/482/672/249/884/original/398d0e7f581517cf.jpg
https://files.mastodon.social/media_attachments/files/110/456/483/176/756/180/original/3434f015434fb542.jpg
https://mastodon.social/@CalcProgrammer1/110456485998532640
For the DCC controlled turnouts, lights, and turntable, I built up an Arduino Nano based DCC decoder from a design I found online and a DCC decoder library that is available in Arduino. Since the layout spans multiple tables, instead of putting a DCC decoder for each table/PCB I just had the one decoder echo the DCC commands as serial messages over a serial bus that spans all the tables. The other boards (turnout controllers, light controllers, and turntable controller) all just have their RX pins wired to the decoder's TX and can receive commands that way. Turnout controllers are a mix of SG90 micro servo based ones and L293D motor drivers for Tortoise switch machines. Light controllers use transistors to switch 12V outputs on and off to drive bulbs and LEDs. Turntable controller is an EasyDriver based stepper controller with some pre-programmed position offsets for each turntable track (each track position is mapped to a DCC function address).
I'm into model live steam engines, I've dreamed about a model live steam setup but never had the room (or funds) for such a build.
I've found the Kato setups to be a bit more friendly on the wallet and have great reliability. I'd recommend that, a small oval with a kato starter set
I think of trains as bullets flying on tracks and wheels of steel.