Це відео не доступне.
Перепрошуємо.

Arduino for Lego Trains #10: The Automated Marshall Yard

Поділитися
Вставка
  • Опубліковано 8 січ 2016
  • See the full power of an Arduino Mega unleashed in the final video for this series of Arduino for Lego Trains. Learn about interrupts and how to use them for sensors, use the enum variable for a finite state machine, and gain tips on power management for running multiple trains at once.
    Features all the cool stuff from the previous Arduino for Lego Trains tutorials, including light sensors, motorized points, ultrasonic sensors, infrared sensors and automated decouplers
    Contains Lego train sets: 4512, 4543, 4555 and 4563,

КОМЕНТАРІ • 32

  • @Seecalator
    @Seecalator 8 років тому +2

    Amazing series! To the point, easy to follow and extremely entertaining! If someone asks me for an arduino tutorial in the future, this is where I'll direct him. Thank you for all those great videos!

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

    My son and I enjoy this video and your series. He is learning arduino now and is almost done with his Basic level book. He wants to do this so we are amassing the parts for the switch tracks. He wants to include LED lights and maybe a crossbuck with swing arms as well. Videos like yours stoke the imagination and creativity of kids! Good on ya!

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

    A Masterful job indeed! Reminds me of when I did all these things with simple electronics based on the NE555/4017 decade counter, top technology back in the 70s. Your explanations are very clear and concise and the whole series is definitely "TOP SHELF"! Thanks for sharing!! I will definitely keep the links for sharing with other like-minded Train/ARDUINO enthusiasts!

  • @johndutt1436
    @johndutt1436 8 років тому +10

    I have watched all 10 videos. I have been checking for this last one over the past week!
    You have really done an awesome job. I have re-watched several of them many times. These are the unquestionably the best videos I have seen on using Arduino and trains. They are entertaining, fun, and very clear. Your pacing is great. I learned a lot. I am using your videos to learn/improve my coding skills. There were several small gems I picked up. For example, I was unaware Dupont connectors were readily available. Combined with phone cable? What a great way to cleanly wire any project.
    The problem is, we want MORE!!! I would love to see more about the box you created. I wasn't clear on how you created the cross connects in such a way that was easy to move change connections. What happens when you run out of connections on the Mega?
    Thanks so much!
    JD

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

      Finally time to unveil the magic! Here's what's inside the box: ua-cam.com/video/YJZhOBct8F4/v-deo.html

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

    Very interesting and fun videos I hope you will carry on

  • @yekutielbenheshel354
    @yekutielbenheshel354 7 років тому +3

    Wow, this series is remarkably informative!

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

    Can't wait to see your future videos especially ones on communicating between more than one arduino and power functions!

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

    Great videos and tutorials... Looking at Arduino for many a project, so good to see how versatile they are... thx

  • @qbertqgmail
    @qbertqgmail 8 років тому +3

    nicely done, good understandable even for not Englisch

  • @colininglis2346
    @colininglis2346 8 років тому +2

    The best video`s I have seen using Arduino and model trains. Inspired me to go buy arduino and motor controller to try on my own track.

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

    Great videos, Are you going to show the inside of the black box and how you wired everything for one of your videos?

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

      Finally time to reply. You can check out what's inside the black box in this video! ua-cam.com/video/YJZhOBct8F4/v-deo.html

  • @jackgamer6307
    @jackgamer6307 7 років тому +2

    nice

  • @brayand8022
    @brayand8022 4 роки тому

    Seriously those motorized points........they react in like a millisecond!

  • @ctjet99channel
    @ctjet99channel 8 років тому +2

    Awesome

  • @SPiKExGamerKage
    @SPiKExGamerKage 8 років тому +2

    skip to 6:01 if you don't wana hear the code

  • @glowytheglowbug
    @glowytheglowbug 7 місяців тому

    very cool!

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

    Beautiful.

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

    Nicely done. So I see you are using 1x 12v power supply to power everything (arduino + 4 l298n controllers).
    Would it be possible to show the inside, and also tell how you implemented the interrupt?

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

      +Jeroen Mail There's a lot of interest of what's inside the Magic Box, so I will make a short video about it very soon. For power, I use one simple 12V power brick, 1.5A - Lego trains don't use much current, and the motors only run for ~250ms anyway.
      For the interrupt, it's shown on the screen at 3:15. In the void setup, look at the following line:
      attachInterrupt(3, interrupted, RISING);
      Here, "3" is the interrupt number (which is pin 20 on an Arduino Mega), "interrupted" is the name of the function that will run when the interrupt is triggered, and "RISING" is the way the signal changes that triggers the interrupt (you can have LOW, RISING, FALLING and CHANGE).

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

    please more videos

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

    Top job sir! But I have to ask why you use ultrasonic sensors?

    • @ArduinoLegoTrains
      @ArduinoLegoTrains  8 років тому +2

      +James o'hare The ultrasonic sensors are exactly the same technology as you find in your car's parking sensors. They're one of the cheapest and most common sensors available in Arduino kits, so I thought it was important to show how to use them in a practical scenario. Also, I think they look pretty cool on top of the railway buffers!

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

      You can make sprung buffer stops if one of your trains goes haywire; the runaway can be diverted onto a siding with the sprung buffers- the train will smack into the buffers relatively hard, but the stop can save lives.

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

    did they finally fix putting enums in your main arduino file?

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

    please make more vedios

  • @joeybruins
    @joeybruins 2 роки тому

    im planning on trying to do the same thing but then for the old 7725 train set that runs on 12v wold that work the same or not?

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

    I’d like you to write a programme for me as well as supplying the parts (all except trains and tracks as well as motoring provided by Lego) for a specific layout. Could you do that? I can pay you of course. I need Skype support if possible. When can we get started ?

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

      This isn't something I can do. I'm just a hobbyist programmer, not a professional. But thanks for your interest and support!

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

    Do this with pf system