Lego Trains coordinating departure for collision avoidance using Pybricks

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

КОМЕНТАРІ • 6

  • @pybricks
    @pybricks  6 місяців тому +3

    The code used is here! github.com/orgs/pybricks/discussions/1575#discussioncomment-8963773
    Just upvote this if you'd like to see a step by step tutorial!

  • @fabianpv4782
    @fabianpv4782 6 місяців тому

    Great demo. Do you have a git repo on which you share the code. I think you used the color distanse sensor. I have some trouble with them. I cannot get them working with more than three colors😢. Great video, thanks

    • @pybricks
      @pybricks  6 місяців тому

      Could you post your code at the forum? Thanks!
      github.com/orgs/pybricks/discussions

    • @paulharris4256
      @paulharris4256 6 місяців тому

      I had the same issue. I had to actually measure the colour values for each colour that I wanted to use and then code the sensor to look specifically for that colour. I worked in Python code, not the block coding.

  • @jacobroebuck5648
    @jacobroebuck5648 6 місяців тому

    Awesome. Is there a tutorial for this somewhere?

    • @pybricks
      @pybricks  6 місяців тому +1

      This video is a combination of two techniques:
      - Making trains respond to colors: ua-cam.com/video/kwnSbnlhOkA/v-deo.html
      - Hub to hub communication, see ua-cam.com/video/WzmcihSV2YE/v-deo.html and ua-cam.com/video/liv37b7PXUQ/v-deo.html
      Have fun!