Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sensor-ultrasonic]

The tag has no usage guidance.

2
votes
1answer
34 views

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

I have an ultrasonic sensor attached to a motor so that the sensor can rotate. Right now it stops once it scans a value less than 65 cm. What I want it to do is to scan its surroundings and then face ...
0
votes
1answer
51 views

EV3 Ultrasonic Sensor (45504)

I leanred that EV3 Ultrasonic Sensor (45504) is out of stock for a long time. I wonder if the sensor is being discontinued due to accuracy problem? Is there any alternate version of "Gyro Boy" that ...
3
votes
2answers
189 views

How to use the ultrasonic sensor on mindstorm NXT

I've been struggling for some time on this. I'm trying to code the robot to move when the distance is above a certain integer and stop when the distance becomes lower than the certain integer. I'm ...
2
votes
1answer
221 views

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

This wall following algorithm uses the ultrasonic sensor. It has a horrible worst case behavior. Place the robot about 3 cm too far from the wall. Instead of moving closer to the wall, the robot ...
5
votes
1answer
4k views

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

How do you program mindstorms to keep doing a task until either the IR OR the colour sensor state changes. I would like to use the wait block but it can only be either the colour sensor or the IF ...
2
votes
1answer
1k views

usage of ev3 ultrasonic sensor in lejos behavior based programming

I'm using ev3 ultrasonic sensor. And I'm writing a behavior based lejos code. I want to do some tasks when the ultrasonic sensor detects an object which is not further than 30 cm's. And this is my ...
1
vote
1answer
213 views

Is it possible to use a LEGO NXT ultrasonic sensor for a LEGO train crossing?

I was looking at LEGO NXT components, and I found the ultrasonic sensor. I was wondering that if I put off to the side of the track, the nose of my train would activate the sensor, thus operating the ...
4
votes
1answer
490 views

Scan objects while moving?

I'm using leJOS with an NXT robot. I want to scan the distances of objects from my robot. While rotating the Ultrasonic sensor from right to left, I would like to find out which object is closest to ...
4
votes
1answer
204 views

Finding certain positions in a room?

I have LEGO NXT and a square room of 100x100cm. I would like to use the center of the of the room always as my starting point(the black box). The green box is going to be my park area. Circles can be ...
4
votes
1answer
382 views

How to minimize the impact of erroneous sensor readings?

A group including myself are using the Lego Mindstorm kit to design a robot that is going to compete in a school competition. However, the sensors aren't as reliable as we would like them to be, ...