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 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.
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?
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 👍
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.
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
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.
@@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.
@@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.
@@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.
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.
New version of tutorial can be found here: ua-cam.com/video/gtkjbeX2iqQ/v-deo.html
This is some mighty fine Powered Up programming. Didn't realize it's this powerful. Have to check it out in more detail.
Thanks 👍
Yes that was very simple and easy to understand, no problem at all. I hope we can see more complicated programs soon. 😂🤣
Using these techniques would really help with adding automated trains in city-sections which can't fit a whole loop.
So many ideas brewing right now. Super thanks for this!
Yep. I have plans on using it for a subway/metro/underground/tube system.
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.
Not official documentation from Lego, but this is the best available: racingbrick.com/powered-up-code-block-guide/
@@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.
Nice tutorial with good informations. So thumb up from me!
Thanks 😇
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?
Not to my knowledge. Sorry. RacingBrick has some info on his website, though.
Train Motors and simple motors don't support reading the speed, that's why you can't read the speed.
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 👍
Very clever. Thanks
Glad it was helpful!
Where can i find the complete instruction about lego powered up?
RacingBrick has some different videos and some information on his website.
3.0 has muti hub support?
I don't know when they added support for multiple hubs - but it do work now.
@@Brickostan ok
It seemed very complicated for such a small task even though I am a professional programming engineer.
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.
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
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.
This is awesome,
Thanks 👍
@@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.
@@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.
@@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.
@Brickostan Finally learned the power of Variables as you showed in this video. Now to work on checks for my improved rail crossing.
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.
very helpful! thx.
👍
soo cool I want to realize this too :)
thanks alot :)
😁
I made a new version of the program. Screenshots of the program can be found here: ua-cam.com/video/5eHcMbQ1heo/v-deo.html
Are you Danish? Jeg er Dansk :)
Jeps. Det er jeg 😄
🇩🇰🇩🇰🇩🇰