AlmightyArjen Posted May 11, 2019 Posted May 11, 2019 This rail crossing is automated by two Arduino's. One Arduino will take care of the actual crossing (making the freight trains start/stop and the signals) the other Arduino controls the passenger trains which start/stop from two different stations. Because there's only one priority track for the passenger trains on the crossing, but both stations have two tracks, the latter Arduino also has to control the direction of the passenger trains on the crossing and also flip the switches to make sure the passenger train ends up at an empty track at the station. Both Arduino's have some low level communication between them: as soon as a passenger train is started, the crossing-Arduino is told to put the lights on red and to stop the track. The crossing-Arduino has a setting that tells it for how long the lights should be red. Oh, and there's of course also the Lego Terminator. Enjoy! Quote
zephyr1934 Posted May 11, 2019 Posted May 11, 2019 Indeed, great work! So are all of the trains track powered? Looks like you need to give the freight trains a little longer clearance interval (as per that... tippy camera car) Quote
AlmightyArjen Posted May 12, 2019 Author Posted May 12, 2019 Thanks! And yes, all the trains are track powered. Adjusting the interval was indeed a thing, one passenger train was (a lot) faster than the other. I tried different motors to get their speed as close to each other as I could. Given that I didn't want the freight trains wait too long when a fast passenger train was passing the crossing, I decreased the clearance for a slow train as much as possible. It went wrong a few times, a nice fails video will be coming out in a few weeks. Quote
LEGO Train 12 Volts Posted May 12, 2019 Posted May 12, 2019 Oooh sweet ...you're simply the best with this kind of stuff! Great funny video and impressive electronic solutions! Quote
Man with a hat Posted May 13, 2019 Posted May 13, 2019 Great job again. Looks quite impressive and it seems to run so perfectly. Quote
AlmightyArjen Posted May 13, 2019 Author Posted May 13, 2019 7 hours ago, Man with a hat said: Great job again. Looks quite impressive and it seems to run so perfectly. Yeah well, it took me a while to make it run like it did ;) Quote
Great Ball Pit Posted May 13, 2019 Posted May 13, 2019 Nice train layout, and great automation. I also really enjoyed how you presented the video! Quote
ecmo47 Posted May 14, 2019 Posted May 14, 2019 I always enjoy your posts. Your work is always so much different from the rest of us normal builders. Quote
AlmightyArjen Posted May 14, 2019 Author Posted May 14, 2019 ^^Thanks, but I really do envy everyone's (train)building skills! Quote
Ex cinno Posted May 14, 2019 Posted May 14, 2019 Great job, as usual since I follow you on your youtube channel Quote
baard Posted May 15, 2019 Posted May 15, 2019 Fun video and great automation! Thanks for sharing Quote
AlmightyArjen Posted May 25, 2019 Author Posted May 25, 2019 And here's the fail video :D https://youtu.be/glZiQdLM9dQ Quote
Roadmonkeytj Posted May 26, 2019 Posted May 26, 2019 17 hours ago, AlmightyArjen said: And here's the fail video :D https://youtu.be/glZiQdLM9dQ I love this! So obviously there was "some" trial and error in getting the timing right. So is it strictly based off timing or is there some block sensors involved in train detection? Quote
AlmightyArjen Posted May 26, 2019 Author Posted May 26, 2019 3 hours ago, Roadmonkeytj said: I love this! So obviously there was "some" trial and error in getting the timing right. So is it strictly based off timing or is there some block sensors involved in train detection? Like every other project of mine, it never works the first time! The problems were with the timing. Quote
Tcm0 Posted May 26, 2019 Posted May 26, 2019 There will always be differences in friction etc. which make layouts that rely on time unrelieable. I think the only real solution would be to add serveral sensors to detect the actual position of the trains. Quote
AlmightyArjen Posted May 26, 2019 Author Posted May 26, 2019 8 hours ago, Tcm0 said: There will always be differences in friction etc. which make layouts that rely on time unrelieable. I think the only real solution would be to add serveral sensors to detect the actual position of the trains. Yeah but I wanted to try something without sensors, that was the challenge... Quote
Bludchylde Posted May 27, 2019 Posted May 27, 2019 I'm not sure which I enjoyed more, the properly working setup or the fails compilation. Watching it go was just amazing. I've never got much into the trains, but it is really impressive some of the stuff I see. I almost woke the kids laughing at the fails video. I could hear them start to stir upstairs. Quote
AlmightyArjen Posted May 27, 2019 Author Posted May 27, 2019 6 hours ago, Bludchylde said: I'm not sure which I enjoyed more, the properly working setup or the fails compilation. Watching it go was just amazing. I've never got much into the trains, but it is really impressive some of the stuff I see. I almost woke the kids laughing at the fails video. I could hear them start to stir upstairs. Thanks, always good to hear! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.