Then you might also like the follow-up of this one. So, yes, in total 3 projects: first one with a simple layout (the one you replied to for the first time), then there's this layout which is more complex with a central automation controller. The final step was get rid of the central controller and control the equipment locally, that video you can find here: ua-cam.com/video/KByHf-aQmzM/v-deo.html
AlmightyArjen I am definitely interested in what you are doing here and I am been working to add to my collection of 9volt equipment to accomplish this level of automation. My problem is that I am not confident with arduino though I believe I could figure it out with the right resources. What resources can you point us toward that can help or have you written a book yet on the topic of LEGO train systems using computerized automation (I would definitely kickstart that!)
+Christopher Bolton Hi Christopher, I scraped my info from various websites. For learning arduino go to arduino.cc or google for a nice tutorial for beginners: there are a lot. You can find also more info in this forum: www.eurobricks.com/forum/index.php?showtopic=106505&hl=
How do you control the trains individually? I mean, these are 9V trains, aren't they? So you can actually just power the track which leads to all trains being powered on that track.
Hi, Great Work!!!, I have a question...what arduino ir Transmitter use? i see in ebay 38KHz Infrared IR Sensor Transmitter to buy, what you use? Tranks!!!
is the source code or general programming flow documented anywhere? I'm attempting a similar system but still trying to figure out how to avoid train collisions. Are the trains tracked by RFID? How do understand the exact location of the trains? Have you created a logic map of all the collision points? Any guidance would be appreciated as I build my next www.InternetOfLego.com blog article. Cheers!
+Dexter LaBora Hi Dexter, a bit more information can be found here: www.almightyarjen.com/finished-projects/trains-random-stopping-at-and-leaving-stations . The trains are not tracked, it's mainly controlling isolated sections of tracks. If you want to stop a train somewhere, you need to cut the power from that section. But you won't know which train will stopped, since they are not tracked and not using RFID (will be in some future project though).
Awesome, thanks. Makes a lot more sense. Since you are using energized tracks, it makes it a little easier to disable sections of the track. I'm attempting a similar project with the newer battery infrared versions. Just built a custom NodeMCU WiFi controlled train. Problem is, I have to know the specific train to send the command to. That requires identification. Its doable with RFID tags, but the sensors are more expensive. I'm working through a project to use two RFID sensors (one per station) and then a ton of cheap reed switches to detect general presence. Now I just need to write logic to identify, then implicitly attach the presence of a train with a recent identification. It gets complicated where the track splits. So, researching the best way to map the track programmatically .
+Dexter LaBora I understand your problem. Haven't looked into RFID myself yet but I'm planning to (got the sensors laying around for a year now ;) ) Where the track splits it gets indeed difficult. Maybe you can do something with timing? If a train passes an RFID sensor you know it's ID and location. if there's a switch point down the track where another track is converged i.e. 'about 5 sec after the sensor', you could use a regular sensor after the switch point to detect a train. When that sensor is activated, your code has to find out how long ago it passed an RFID sensor. If that is around 5 seconds, you know also its ID. if it's another time value, the train must have come from somewhere else (you could track that also with another RFID and timer). Do you understand my idea? It's a hassle to program, but doable I guess.
the parts where the trains stop are insulated from the rest of the track. The insulated parts are controlled by the Arduino and the rest of the track has a constant voltage.
Onboard train cams are always cool! Nice set up!
Train Tsar Fun
Lol I like when Emmet says, "That's against the instructions!" to the signals you built.
Sweet...I love LEGOS, trains, automation and the music.
Amazing! I can’t believe I missed this one. Like you’re own real life sim city train system. Nice!
Then you might also like the follow-up of this one. So, yes, in total 3 projects: first one with a simple layout (the one you replied to for the first time), then there's this layout which is more complex with a central automation controller. The final step was get rid of the central controller and control the equipment locally, that video you can find here: ua-cam.com/video/KByHf-aQmzM/v-deo.html
Lego is really educational stuff, very nice!
Minimehike: I can't reply to your answer directly so I do it here: an Ion Air Pro 2 camera is used as action cam.
AlmightyArjen
AlmightyArjen 母,。
I like the "extra footage" video even more than this one :)
it's a cool project.
Yes, that wasn't supposed to happen but I had the same feeling when I finished the extra footage video...
This is cool train set 👍
Nice you earned a diamond
Also amazing
I would love to see a video of how you create these set-ups.
this is awesome good work
That is so awesome!
impressionnant !
Cool! It's my favorite video! I'd like to understand, how did u make it all.
This is awesome!
Cool i like this video
These stations are better than the one from CITY, mostly because they can actually fit the amount of train cars.
if you didn,t have the train controlled this way they would have all crashed instanly i love your vids
I subscribed
so cool
can you please tell my whats the onboard train cam's real model name (what camera it is :P) Nice wid bro! Sub'ed and Like'd! :)
Nice!
AlmightyArjen I am definitely interested in what you are doing here and I am been working to add to my collection of 9volt equipment to accomplish this level of automation. My problem is that I am not confident with arduino though I believe I could figure it out with the right resources. What resources can you point us toward that can help or have you written a book yet on the topic of LEGO train systems using computerized automation (I would definitely kickstart that!)
+Christopher Bolton Hi Christopher, I scraped my info from various websites. For learning arduino go to arduino.cc or google for a nice tutorial for beginners: there are a lot. You can find also more info in this forum: www.eurobricks.com/forum/index.php?showtopic=106505&hl=
AlmightyArjen ū
you need to hide all the wires and all floor with grass plates
Love it! :D
lol to alll of it!!!!
How do you control the trains individually?
I mean, these are 9V trains, aren't they? So you can actually just power the track which leads to all trains being powered on that track.
+DASxURKM Correct, I use isolated sections of track where I can stop and start a train.
+AlmightyArjen But how do you do that at the stations? Are those isolated as well if there is a switch?
DASxURKM Yes
AlmightyArjen Ah. ok :) Thank you! I didn't know that (I didn't run a LEGO train for too long now^^)
Hi, Great Work!!!,
I have a question...what arduino ir Transmitter use? i see in ebay 38KHz Infrared IR Sensor Transmitter to buy, what you use?
Tranks!!!
I don't use IR transmitters, as my trains run on the old 9V system... but a 38kHz IR transmitter will work on the PF system..
is the source code or general programming flow documented anywhere? I'm attempting a similar system but still trying to figure out how to avoid train collisions. Are the trains tracked by RFID? How do understand the exact location of the trains? Have you created a logic map of all the collision points? Any guidance would be appreciated as I build my next www.InternetOfLego.com blog article. Cheers!
+Dexter LaBora Hi Dexter, a bit more information can be found here: www.almightyarjen.com/finished-projects/trains-random-stopping-at-and-leaving-stations . The trains are not tracked, it's mainly controlling isolated sections of tracks. If you want to stop a train somewhere, you need to cut the power from that section. But you won't know which train will stopped, since they are not tracked and not using RFID (will be in some future project though).
Awesome, thanks. Makes a lot more sense. Since you are using energized tracks, it makes it a little easier to disable sections of the track. I'm attempting a similar project with the newer battery infrared versions. Just built a custom NodeMCU WiFi controlled train. Problem is, I have to know the specific train to send the command to. That requires identification. Its doable with RFID tags, but the sensors are more expensive. I'm working through a project to use two RFID sensors (one per station) and then a ton of cheap reed switches to detect general presence. Now I just need to write logic to identify, then implicitly attach the presence of a train with a recent identification. It gets complicated where the track splits. So, researching the best way to map the track programmatically .
+Dexter LaBora I understand your problem. Haven't looked into RFID myself yet but I'm planning to (got the sensors laying around for a year now ;) ) Where the track splits it gets indeed difficult. Maybe you can do something with timing? If a train passes an RFID sensor you know it's ID and location. if there's a switch point down the track where another track is converged i.e. 'about 5 sec after the sensor', you could use a regular sensor after the switch point to detect a train. When that sensor is activated, your code has to find out how long ago it passed an RFID sensor. If that is around 5 seconds, you know also its ID. if it's another time value, the train must have come from somewhere else (you could track that also with another RFID and timer). Do you understand my idea? It's a hassle to program, but doable I guess.
das ist cool
good
I would like to ask, is this all in one Arduino Mega, or is any of it split up between Arduino Uno boards?
It's controlled by just one Arduino Mega. Smart usage of interrupts can make an Arduino do multiple things at once :)
Ok, one more question then. How have you insulated it? Are the main lines at a constant power, or do they actually have block sections?
the parts where the trains stop are insulated from the rest of the track. The insulated parts are controlled by the Arduino and the rest of the track has a constant voltage.
Ok, thanks for replying. I may now have to give this a try. :)
dude thats amazing
is this RC or are the rails powered?
How do you make the train stop at the station? I tried using a IR transimiter and a light sensor but it does'nt work. Please help.
I use the old 9V system. I make a train stop by disabling the power on the rails.
Did that take up a hole room?
Yes. I had to remove most of the furniture from the living room
how do you make the angled tracks?
Awesoome
Pls tell me the code, or a bit of the code so I know where to start
*sigh* i wish i had the money to do that ):
How do you change the junctions?
Minecraft Axltrain They are motorized.
thanks
I have a lego train and the batteries are charging
1:23 EMMET!!!!
Year ist cool
hey I want to be you jeje, regards from Uruguay