MENU

Fun & Interesting

Using PyBricks to control Lego trains

BatteryPoweredBricks 9,414 1 year ago
Video Not Working? Fix It Now

I've wanted to make this tutorial for quite some time. I had covered PyBricks in previous videos but they were very outdated. I want to give a huge thanks to Eurobricks user Lok24 for writing the original program and @mpersand from our discord for adding the functionality for lights. If you spot any errors or problems with the links please let me know. Pybricks https://code.pybricks.com/ *note* when loading the firmware disconnect any "smart devices" from the hub. You shouldn't have an issue with train motors or lights but sensors or non-train motors can cause issues Github link to @mpersand's modified program https://github.com/and-ampersand-and/PyBricks-Train-Motor-Control-Script?files=1 Eurobricks discussion thread for this program https://www.eurobricks.com/forum/index.php?/forums/topic/187081-control-your-trains-without-smart-device-with-pybricks/ @blockjunction2230 builds shown in @ampersand's clips https://blockjunction.co.uk/downloads/a3-pacific-br-lego-instructions/ https://blockjunction.co.uk/downloads/1592/ https://blockjunction.co.uk/downloads/pullman-parlour-brake-lego-instructions/ Join my discord channel! https://discord.gg/gX2AwDwnFW Follow me on Twitter for updates https://twitter.com/BPBricks Instagram: https://www.instagram.com/batterypoweredbricks/ Music: "Sandviken Stradivarius" by Wintergatan This track can be downloaded for free at www.wintergatan.net Free License to use this track in your video can be downloaded at www.wintergatan.net LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this content

Comment