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, ...
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 ...
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 ...
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) ...
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.
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 ...
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 ...
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, ...
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, ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sensor-ultrasonic × 17ev3 × 10
mindstorms × 5
programming × 5
nxt × 4
motor × 2
piece-information × 1
trains × 1
ev3-g × 1
piece-usage × 1
robotic × 1
nxc × 1
education × 1
sensor-colour × 1
sensor × 1
lejos × 1
robotc × 1
gyro × 1