Lego Powered Up Automatic Train Control [Tutorial]

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

КОМЕНТАРІ • 42

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

    New version of tutorial can be found here: ua-cam.com/video/gtkjbeX2iqQ/v-deo.html

  • @supakuul
    @supakuul 4 роки тому +3

    This is some mighty fine Powered Up programming. Didn't realize it's this powerful. Have to check it out in more detail.

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

    Yes that was very simple and easy to understand, no problem at all. I hope we can see more complicated programs soon. 😂🤣

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

    Using these techniques would really help with adding automated trains in city-sections which can't fit a whole loop.

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

      So many ideas brewing right now. Super thanks for this!

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

      Yep. I have plans on using it for a subway/metro/underground/tube system.

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

    Mine ain't working so I need to do some trouble shooting, I'm sure I'll work it out. You say in your video "...as I understand in the documentation", what documentation are you talking about, has Lego published documentation on Powered Up, if so it's very hard to find, as was Lego's powered up documentation. Thanks for the tut BTW, great stuff.

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

      Not official documentation from Lego, but this is the best available: racingbrick.com/powered-up-code-block-guide/

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

      @@Brickostan Thanks for that, mine still isn't working properly, I guess it matters which end you have the senor on, but as long as both locos are built the same, IE with the sensor at the same end then it should work? Mine keep stopping, starting and changing direction randomly. I don't have an Android tablet so I am having to use my phone and I think I am changing the program accidentally while I am scrolling around the program.

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

    Nice tutorial with good informations. So thumb up from me!

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

    Hello. compliments! maybe some one already asked: does LEGO provides documentation about his software for programming. I mean with the description of every single command?

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

      Not to my knowledge. Sorry. RacingBrick has some info on his website, though.

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

    Train Motors and simple motors don't support reading the speed, that's why you can't read the speed.

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

      Ahhh. So they read the speed directly from the motor. Just thought that the speed returned was some internal variable that the app kept track of. Then it makes sense.
      Thanks 👍

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

    Very clever. Thanks

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

    Where can i find the complete instruction about lego powered up?

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

      RacingBrick has some different videos and some information on his website.

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

    3.0 has muti hub support?

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

      I don't know when they added support for multiple hubs - but it do work now.

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

      @@Brickostan ok

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

    It seemed very complicated for such a small task even though I am a professional programming engineer.

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

      Maybe it's possible to make the code smaller (I would be surprised if it wasn't possible to make it smaller) - but the code really isn't bigger than it can fit one screen.
      Personally I would chose a language where I write the code - and not this Scratch like "language" where I just has to drag'n'drop stuff - but this is what Lego has given us.
      This is the first (and only) program I've written in this Powered Up "language" - and I just thought I'd make a video about it.

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

    I have a central train station, which is has six berths. each berth (hardline) is used by traffic. I have a total of 8 trains, of which I use for each session 3-5 . I need the train to be diverted to a free berth randomly from the berths which are free (unoccupied), stop if all are busy. also trains leaving the central station must stop at three more stations before parking in a dedicated shed which will also be run with automatic switches like the central station . do you think writing a code would be possible for this situation ? thanks

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

      Hi. It sounds like a big program. The Power Up programming is pretty flexible, so such a program probably could be possible if you have the time to write it. But don't get too disappointed if you don't succeed. Good luck on the project.

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

    This is awesome,

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

      Thanks 👍

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

      @@Brickostan I have a very simplistic video with a single tram and 3 stops on it in my channel Brick Rail yard using much fewer blocks. This was a great insight to the other blocks and got me thinking. Want to see how 5 stops works versus 3 stops. I use distance vesus colour so the sensor is aimed out to the side versus down at the track.

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

      @@Xboxplaylist Uuuhhhh..... you have level crossing. Nice.
      I haven't tried using distance - only colour. My plan is to make two subway trains some time in the future and make them run back and forth using this technique.

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

      @@Brickostan I found the sensor has consistence issues when room lighting changes, but the distance worked best when having it pointing through trans blue wind shields.
      My level crossing doesnt work both ways, but I was trying to achieve it with fews Power up parts to reduce cost. I am working on a new prototype ignoring cost.

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

      @Brickostan Finally learned the power of Variables as you showed in this video. Now to work on checks for my improved rail crossing.

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

    I made a new version of the program. I had some issues with this version - so I wrote a new version from scratch. Screenshots of the new version can be found here: ua-cam.com/video/5eHcMbQ1heo/v-deo.html
    Or head on over to ua-cam.com/video/3zsSJEkWB1E/v-deo.html if you want to see some trains controlled with this program.

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

    very helpful! thx.

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

    soo cool I want to realize this too :)
    thanks alot :)

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

      😁
      I made a new version of the program. Screenshots of the program can be found here: ua-cam.com/video/5eHcMbQ1heo/v-deo.html

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

    Are you Danish? Jeg er Dansk :)