Lego trains automated by Arduino (stopping/leaving stations)

Поділитися
Вставка
  • Опубліковано 26 жов 2024

КОМЕНТАРІ • 69

  • @TrainTsarFun
    @TrainTsarFun 10 років тому +1

    Onboard train cams are always cool! Nice set up!

  • @jamesgroccia644
    @jamesgroccia644 8 років тому

    Lol I like when Emmet says, "That's against the instructions!" to the signals you built.

  • @plcprofessor
    @plcprofessor 8 років тому

    Sweet...I love LEGOS, trains, automation and the music.

  • @GJBricks
    @GJBricks 6 років тому

    Amazing! I can’t believe I missed this one. Like you’re own real life sim city train system. Nice!

    • @almightyarjen
      @almightyarjen  6 років тому +1

      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

  • @McDaniel77
    @McDaniel77 10 років тому

    Lego is really educational stuff, very nice!

  • @almightyarjen
    @almightyarjen  10 років тому +5

    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.

  • @HilkoRigterink
    @HilkoRigterink 10 років тому +1

    I like the "extra footage" video even more than this one :)
    it's a cool project.

    • @almightyarjen
      @almightyarjen  10 років тому

      Yes, that wasn't supposed to happen but I had the same feeling when I finished the extra footage video...

  • @leoharris4356
    @leoharris4356 6 років тому

    This is cool train set 👍

  • @Sympathiser
    @Sympathiser 10 років тому

    Nice you earned a diamond
    Also amazing

  • @Vertigobliss86
    @Vertigobliss86 10 років тому

    I would love to see a video of how you create these set-ups.

  • @MXstar189
    @MXstar189 9 років тому

    this is awesome good work

  • @josephhurewitz4163
    @josephhurewitz4163 7 років тому

    That is so awesome!

  • @letiteuf55
    @letiteuf55 10 років тому

    impressionnant !

  • @elenaprazdnikova3646
    @elenaprazdnikova3646 9 років тому

    Cool! It's my favorite video! I'd like to understand, how did u make it all.

  • @alloria
    @alloria 9 років тому

    This is awesome!

  • @aaronhare
    @aaronhare 10 років тому

    Cool i like this video

  • @tresrules16543
    @tresrules16543 10 років тому

    These stations are better than the one from CITY, mostly because they can actually fit the amount of train cars.

  • @chakanolan8956
    @chakanolan8956 10 років тому

    if you didn,t have the train controlled this way they would have all crashed instanly i love your vids

  • @archiesport6055
    @archiesport6055 7 років тому +1

    I subscribed

  • @SheltonDCruz
    @SheltonDCruz 9 років тому

    so cool

  • @Minimehike
    @Minimehike 10 років тому

    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! :)

  • @villeratinen6346
    @villeratinen6346 10 років тому

    Nice!

  • @cgbolton1
    @cgbolton1 8 років тому

    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!)

    • @almightyarjen
      @almightyarjen  8 років тому

      +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=

    • @nathalieheckel8809
      @nathalieheckel8809 8 років тому

      AlmightyArjen ū

  • @rrainerss
    @rrainerss 10 років тому

    you need to hide all the wires and all floor with grass plates

  • @SteadholderXBL
    @SteadholderXBL 10 років тому

    Love it! :D

  • @urkm
    @urkm 8 років тому

    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.

    • @almightyarjen
      @almightyarjen  8 років тому

      +DASxURKM Correct, I use isolated sections of track where I can stop and start a train.

    • @urkm
      @urkm 8 років тому

      +AlmightyArjen But how do you do that at the stations? Are those isolated as well if there is a switch?

    • @almightyarjen
      @almightyarjen  8 років тому +1

      DASxURKM Yes

    • @urkm
      @urkm 8 років тому

      AlmightyArjen Ah. ok :) Thank you! I didn't know that (I didn't run a LEGO train for too long now^^)

  • @Dem0Ledor
    @Dem0Ledor 9 років тому

    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!!!

    • @almightyarjen
      @almightyarjen  9 років тому +1

      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..

  • @EEDionysus
    @EEDionysus 8 років тому

    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!

    • @almightyarjen
      @almightyarjen  8 років тому

      +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).

    • @EEDionysus
      @EEDionysus 8 років тому

      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 .

    • @almightyarjen
      @almightyarjen  8 років тому

      +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.

  • @florowi2372
    @florowi2372 7 років тому

    das ist cool

  • @debbiesmith8783
    @debbiesmith8783 8 років тому

    good

  • @MrRailroadrunner
    @MrRailroadrunner 10 років тому

    I would like to ask, is this all in one Arduino Mega, or is any of it split up between Arduino Uno boards?

    • @almightyarjen
      @almightyarjen  10 років тому

      It's controlled by just one Arduino Mega. Smart usage of interrupts can make an Arduino do multiple things at once :)

    • @MrRailroadrunner
      @MrRailroadrunner 10 років тому

      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?

    • @almightyarjen
      @almightyarjen  10 років тому

      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.

    • @MrRailroadrunner
      @MrRailroadrunner 10 років тому +1

      Ok, thanks for replying. I may now have to give this a try. :)

    • @trauma5475
      @trauma5475 10 років тому

      dude thats amazing

  • @ephraimlohrey9725
    @ephraimlohrey9725 10 років тому

    is this RC or are the rails powered?

  • @jingjiewong3826
    @jingjiewong3826 7 років тому

    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.

    • @almightyarjen
      @almightyarjen  7 років тому

      I use the old 9V system. I make a train stop by disabling the power on the rails.

  • @jjrocha9598
    @jjrocha9598 10 років тому

    Did that take up a hole room?

    • @almightyarjen
      @almightyarjen  10 років тому

      Yes. I had to remove most of the furniture from the living room

  • @riceninjabrickcustoms8644
    @riceninjabrickcustoms8644 10 років тому

    how do you make the angled tracks?

  • @christinewickland5848
    @christinewickland5848 9 років тому

    Awesoome

  • @mint-o5497
    @mint-o5497 7 років тому

    Pls tell me the code, or a bit of the code so I know where to start

  • @daniloobrero1307
    @daniloobrero1307 9 років тому +1

    *sigh* i wish i had the money to do that ):

  • @axltrain838
    @axltrain838 9 років тому +1

    How do you change the junctions?

  • @lindsaybao4213
    @lindsaybao4213 3 роки тому

    I have a lego train and the batteries are charging

  • @ItsSnowyAmelia
    @ItsSnowyAmelia 10 років тому

    1:23 EMMET!!!!

  • @florowi2372
    @florowi2372 7 років тому

    Year ist cool

  • @gordiniuruguay1
    @gordiniuruguay1 9 років тому

    hey I want to be you jeje, regards from Uruguay