Arduino for Lego Trains #9: Automatic Decoupler

Поділитися
Вставка
  • Опубліковано 4 гру 2015
  • Seperate your wagons from your locomotive using this awesome Arduino-powered decoupler!
    Using a single motor and some infra-red sensors, this clever construction of gears, axles and plates can block one side of the track, preventing individual rolling stock from moving forward. From there, just power your train forward to uncouple your wagons!
    This tutorial incorporates the decoupler into a siding, allowing you to uncouple wagons, switch points, then retrieve other wagons before continuing on your journey. All the code you need for your Arduino is provided, including a full explanation of how the decoupler is build and configured.
    Contains vintage 9V Lego train sets 4565, 4544, 4552, 2126, 4536, and 4537.
  • Навчання та стиль

КОМЕНТАРІ • 39

  • @Kazashimo1
    @Kazashimo1 3 роки тому +2

    Lego released an automatic decoupling unit 40 years ago for the 12v train system - set 7862

  • @lukrailway
    @lukrailway 4 роки тому +2

    Brilliant. Would love one on our layouts!

  • @rugaag
    @rugaag 3 роки тому +1

    Very brutal, but absolutly awesome 👍

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

    ALT, Today you won the internet. Amazing!!!

  • @lynks123
    @lynks123 5 років тому +6

    Could this code be modified to pull away slower when decoupling? It seems incredibly rough.

  • @mothballz99
    @mothballz99 8 років тому +4

    Man, this makes me wish I could find a lot of 9V track and an arduino for decent prices.
    Or, for that matter, space to put it.
    Another great tutorial as always!

    • @samuelhulme8347
      @samuelhulme8347 5 років тому

      The tracks are not 9v

    • @samuelhulme8347
      @samuelhulme8347 5 років тому

      Just cut a power functions cable and wrier it to the ardinuo

  • @goldfing5898
    @goldfing5898 12 днів тому

    2:40 An interesting design, but IMHO has a big drawback: since the slider is upside down, it only works on a smooth surface like the desk in the video. But it would not work if the track is built on a carpet, as is often the case. So it would be better to have a design with plates on the bottom, then tiles (all upside up, not down), then the slide consisting of a plate and the gear rack on top.

  • @jpest17
    @jpest17 3 роки тому +2

    That decoupling looks pretty aggressive, Does the train itself have a throttle threshold that can be manipulated so at it's lowest speed it uses only the required amount of force to decouple?

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

    Awesome tutorial as always! ;)

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

    Awesome Tutorial!

  • @brayand8022
    @brayand8022 5 років тому +1

    5:17-5:21 WE ALL GOT ROASTED BY HIM

  • @DRSDavidSoft
    @DRSDavidSoft 7 років тому +8

    Man, this is real engineering! Do you have any other UA-cam accounts?

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

      Just my professional voiceover samples, which is far too boring to link here!

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

    a magnet sensor could be used not only to determine the location of the gap between two cars, but with two magnet sensors, you could measure each car's length and speed.

  • @Dvir1300
    @Dvir1300 4 роки тому +1

    Really nice project!
    One question please: In 0:13 the switch is moving, but I can't see any motor or another mechanism that moves it.
    I'm really looking for a easy way to control train switches by Arduino, and would be glad to learn this method.

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

      Gh

    • @goldfing5898
      @goldfing5898 17 днів тому

      Part 3 ("Motorized Track Switches") of this video series shows a nice motorized gearbox to control a switch. It uses an old 9V Technic motor and some Technic parts, all genuine Lego parts: ua-cam.com/video/h-5FmGfYzRs/v-deo.html
      Hope this helps!

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

    3:14 Guides could be required for keeping the tab that pushes up the decouple flap in place. Other than that, decoupling my trains has never looked easier.

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

    Why was the decoupler not hitting the front bogie of the freight car with the 2 blue cement mixers ?

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

      +Paladonius In the code I used the map function to reduce the sensitivity of the IR sensors. Despite this, the sensors occassionally register black lego as a 'gap', because it doesn't reflect IR light very well. If you look at these wagons, there's a black ladder on the side - the arduino thinks that the gap is there, and reacts accordingly.

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

    if you don't wana hear about the technical code then skip to 8:42

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

    this is awesome don't get me wrong but wouldn't electro-mags be easier?

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

      How do you mean?

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

      wouldn't electro magnets be easier than your method

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

      electromagnets where? between the wagons? That would mean replacing every single magnet (the standard lego connection) on every locomotive and wagon on the track, and adding a second power system to keep them connected when the train is not in motion (because when the train stops, there's 0volts in the system).
      So sure, it would make disconnection easier, but it would make keeping the wagons connected a lot more complicated.

  • @dani-xp7kq
    @dani-xp7kq 8 років тому

    how to build ?

    • @goldfing5898
      @goldfing5898 17 днів тому

      The profile page of this channel offers a link to a website where you can find written tutorials to these videos. They also contain building instructions in multiple colors, very useful.

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

    what app is that?.

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

      What do you mean? This is all programmed in the Arduino IDE.

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

      Ok, i didnt understand at first, btw awesome tutorials they are so cool, i wish i could make the things you make but i dont have things needed 😕

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

    9:50 Don't drink and train.

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

    90th!!