Announcement

Collapse
No announcement yet.

Wait block not working with UltraSonic sensor

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wait block not working with UltraSonic sensor

    Hi,
    We have built a circuit like the simple one on this page:
    https://education.lego.com/en-us/les...ject-detection
    However the motors never stop.

    As part of debugging this, I ran the program with the mindstorm in my hands (off the floor), and keep an eye on the sensor value on the "port view" in the bottom right corner of the mindstorm program. I can see the value changing (depending if I put something in front or not it can be anywhere between 255 and 3). Yet the program remain stuck on the Wait block.

    Could you provide any advice on how to fix this or make it work?

    Thanks

  • #2
    The only thing I can think of is you have the wrong port selected in the program. I tried wait for distance < 50 cm and it works fine for EV3 and NXT ultrasonic sensors.

    Comment

    Working...
    X