No video

Lego Powered Up Automatic Train Control [Tutorial]

  Рет қаралды 22,153

Brickostan

Brickostan

Күн бұрын

Do you want to learn how to program two Powered Up Lego trains to run back and forth on tracks with a passing loop in the middle?
Keep watching.
Danish version of the video can be found here / Dansk version af videoen findes her:
• [Danish Version] Lego ...
#legopoweredup #legotrain #lego

Пікірлер: 42
@Brickostan
@Brickostan 3 жыл бұрын
New version of tutorial can be found here: kzfaq.info/get/bejne/ndqbncWWvZjNoYU.html
@supakuul
@supakuul 4 жыл бұрын
This is some mighty fine Powered Up programming. Didn't realize it's this powerful. Have to check it out in more detail.
@Brickostan
@Brickostan 4 жыл бұрын
Thanks 👍
@Sinjinator
@Sinjinator 3 жыл бұрын
Yes that was very simple and easy to understand, no problem at all. I hope we can see more complicated programs soon. 😂🤣
@bricksbuilds
@bricksbuilds 3 жыл бұрын
Nice tutorial with good informations. So thumb up from me!
@Brickostan
@Brickostan 3 жыл бұрын
Thanks 😇
@stuartespey9806
@stuartespey9806 3 жыл бұрын
Train Motors and simple motors don't support reading the speed, that's why you can't read the speed.
@Brickostan
@Brickostan 3 жыл бұрын
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 👍
@supakuul
@supakuul 4 жыл бұрын
Using these techniques would really help with adding automated trains in city-sections which can't fit a whole loop.
@supakuul
@supakuul 4 жыл бұрын
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.
@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: kzfaq.info/get/bejne/a8t4lrCTtpfMlaM.html Or head on over to kzfaq.info/get/bejne/aeCjhq120L2mYXk.html if you want to see some trains controlled with this program.
@yakacm
@yakacm 3 жыл бұрын
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.
@Xboxplaylist
@Xboxplaylist 3 жыл бұрын
This is awesome,
@Brickostan
@Brickostan 3 жыл бұрын
Thanks 👍
@Xboxplaylist
@Xboxplaylist 3 жыл бұрын
@@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 3 жыл бұрын
@@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 3 жыл бұрын
@@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 3 жыл бұрын
@Brickostan Finally learned the power of Variables as you showed in this video. Now to work on checks for my improved rail crossing.
@champifun2
@champifun2 3 жыл бұрын
Very clever. Thanks
@Brickostan
@Brickostan 3 жыл бұрын
Glad it was helpful!
@casperhansen826
@casperhansen826 3 жыл бұрын
It seemed very complicated for such a small task even though I am a professional programming engineer.
@Brickostan
@Brickostan 3 жыл бұрын
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.
@backtothebricks
@backtothebricks 3 жыл бұрын
soo cool I want to realize this too :) thanks alot :)
@Brickostan
@Brickostan 3 жыл бұрын
😁 I made a new version of the program. Screenshots of the program can be found here: kzfaq.info/get/bejne/a8t4lrCTtpfMlaM.html
@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.
@machen7264
@machen7264 3 жыл бұрын
very helpful! thx.
@Brickostan
@Brickostan 3 жыл бұрын
👍
@emilba2424
@emilba2424 3 жыл бұрын
Are you Danish? Jeg er Dansk :)
@Brickostan
@Brickostan 3 жыл бұрын
Jeps. Det er jeg 😄
@emilba2424
@emilba2424 3 жыл бұрын
🇩🇰🇩🇰🇩🇰
@Keircomb181
@Keircomb181 3 жыл бұрын
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 3 жыл бұрын
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.
@dinhtuan752
@dinhtuan752 3 жыл бұрын
3.0 has muti hub support?
@Brickostan
@Brickostan 3 жыл бұрын
I don't know when they added support for multiple hubs - but it do work now.
@dinhtuan752
@dinhtuan752 3 жыл бұрын
@@Brickostan ok
@matteolecchi9056
@matteolecchi9056 3 жыл бұрын
Where can i find the complete instruction about lego powered up?
@Brickostan
@Brickostan 3 жыл бұрын
RacingBrick has some different videos and some information on his website.
solving the LEGO city train problem (no room for loops!)
9:31
eggybricks
Рет қаралды 309 М.
Lego Powered Up Tutorial #03: a train needs a station & loops [English|HD]
8:20
Technicmaster0 Tutorials and more
Рет қаралды 7 М.
Nurse's Mission: Bringing Joy to Young Lives #shorts
00:17
Fabiosa Stories
Рет қаралды 5 МЛН
Or is Harriet Quinn good? #cosplay#joker #Harriet Quinn
00:20
佐助与鸣人
Рет қаралды 14 МЛН
Glow Stick Secret Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 11 МЛН
What is the best Lego train control system?
13:43
BatteryPoweredBricks
Рет қаралды 271 М.
Controlling Lego Trains from a PC! (Brick Automation Project)
8:53
BatteryPoweredBricks
Рет қаралды 21 М.
Using the Lego Powered Up app for your train - Part 1
5:25
MOC'erhead
Рет қаралды 10 М.
Mercedes Citaro GC2 IdFM (maquette)
1:57
Padoo95
Рет қаралды 4,2 М.
LEGO Control+: Creating custom controls & steering by tilting your phone!
10:38
Sariel's Bricks & Pets
Рет қаралды 83 М.
LEGO Powered Up trick - custom controls for 4 trains!
5:28
RacingBrick
Рет қаралды 24 М.
Using PyBricks to control Lego trains
7:04
BatteryPoweredBricks
Рет қаралды 6 М.
Controlling Multiple Lego Trains using Powered Up / PyBricks
8:44
BatteryPoweredBricks
Рет қаралды 27 М.
Nurse's Mission: Bringing Joy to Young Lives #shorts
00:17
Fabiosa Stories
Рет қаралды 5 МЛН