Automated Railroad Crossing with Lego WeDo and Sbrick

Sdílet
Vložit
  • čas přidán 18. 04. 2017
  • This automated railroad crossing is controlled by Sbrick and Scratch. Only one proximity sensor is present in this system, thus the barrier is not being closed, when the train comes from the opposite direction.
    Built from: Built from Lego WeDo 9580 and 9585 sets,
    SBrick and a pair of Power Functions Lights. Steam engine made by Brio.
    Music:
    Epic Song by BoxCat Games is licensed under a Creative Commons Attribution License.

Komentáře • 3

  • @salva8722
    @salva8722 Před 6 lety

    Thanks.

  • @salva8722
    @salva8722 Před 6 lety

    Can you please share the code and the detail of the barrier gear?
    How do you make the blink of the lights?
    Maybe we should have more Srick plus with extra sensors to detect cars and message the train to stop before reaching the station ..😃

    • @FilippSudanov
      @FilippSudanov  Před 6 lety

      Hello!
      It took some time to find the code - here's the screenshot: imagebin.ca/v/4ANve3CzhBsj Some time has passed, so sbrick could have changed some things in their scratch plugin and I am not sure it this will work without changes with it's current version.
      The barriers - I used only 1 sbrick, so I was limited with 1 motor (sbrick has 4 ports, I used 2 for the lights, 1 for the sensor and one was left for the motor). So the motor is directly connected to the barrier on one side and then there is mechanism with axle on top and the red beams that were used as pulleys to transfer rotation to the second barrier. The mechanism was not ideal, but more or less it worked. Please watch the video, you shold be able to understand more or less how that was built.
      Two of such lights were used: shop.lego.com/en-FR/LEGO-Power-Functions-Light-8870
      Each consists of 2 LEDs and allows to put these LEDs at some distance, so one pair of LEDs goes is the left light on both sided and another pair - right light on both sides. In the code you can see, that one light is turned off and another on, and then after delay the other goes off and the first one on.