6 votes
Accepted

How do you program mindstorms to keep doing a task until either the IR OR the colour sensor state changes

One way of doing this is using a loop and interrupting it. How it works: The "Loop Interrupt" block stops all blocks running inside of the loop, so by interrupting the loop after either wait block, ...
David Lechner's user avatar
6 votes

What is the use of a single ultrasonic signal?

I'm not an EV3 expert, but my understanding is that continuous mode stores results into a buffer that can be read nearly instantly. Single mode will need to wait to hear a ping back before reporting ...
jncraton's user avatar
  • 40.5k
4 votes

How to use the ultrasonic sensor on mindstorm NXT

It's a little unclear from your question where this is currently failing, but I do see a couple issues with your code. 1. Your if blocks are probably not doing what you expect. You should include ...
jncraton's user avatar
  • 40.5k
3 votes
Accepted

Why is the EV3 Ultrasonic Sensor (45504) out of stock?

Balanc3r is a good alternative for gyro-boy: http://robotsquare.com/2014/06/23/tutorial-building-balanc3r/ However, why do you conclude that the 45504 sensor is out of stock? In my region (Belgium) ...
Michael Verschaeve's user avatar
3 votes

EV3 Education does not recognize NXT ultrasonic sensor

EV3 Classroom only supports LEGO EV3 sensors. It does not work with NXT or 3rd-party sensors.
David Lechner's user avatar
2 votes
Accepted

Is there a way to add a ultrasonic sensor on the ev3 COR3 robot?

The ultrasonic sensor is useful for navigation. This robot design has a nice skirt and positioning the ultrasonic sensor should not interfere with that skirt. Also the ultrasonic sensor is excellent ...
dfrevert's user avatar
  • 1,331
1 vote

Advanced mode in EV3 ultrasonic sensor

From the official LEGO education site: Measure – Advanced - Centimeters The Measure – Advanced – Centimeters mode is similar to the Measure – Distance Centimeters mode, except that you ...
Phil B.'s user avatar
  • 16.9k
1 vote

How to distinguish between objects using a sonic sensor?

It's been quite a while since I've programmed a robot, but using only the sonic sensor does make it a bit more challenging. Also, not knowing anything else about the robot you've built (it's size, ...
JohnnyB's user avatar
  • 3,274
1 vote

Get robot to face perpendicular to nearest object, using the ultrasonic sensor in NXC?

I like your username. I'm not exactly good at NXC either, but I'm experienced in C and Java. So here's some pseudocode that should get the job done. This will rotate the scanning motor 180 degrees, ...
MindS1's user avatar
  • 1,372
1 vote

How to use the ultrasonic sensor on mindstorm NXT

Second if needs to be replaced by a loop... Very unlikely that the distance will be immediately less then 25 cm after starting the motors, you need to continuously check... And stopping the motors can ...
Michael Verschaeve's user avatar
1 vote

What is a better algorithm for wall following with an ultrasonic sensor?

If a significant distance from the wall, you'll need to turn 90 degrees in place clockwise, drive up to the wall and turn 90 degrees in place counterclockwise. I'd suggest mounting a touch sensor in ...
Michael Verschaeve's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible