Stop on detecting an object with the Ultrasonic sensor and move after detecting there is no object. Join of the previous two video tutorials in one
- #144
- 14 Oct 2015
- 3:00
Previous video tutorials:
Stop & Move with Ultrasonic Sensor
Program developed with EV3-G for stop and Move with the Ultrasonic Sensor
English
The next program is the following. We move with the robot forward until it reaches my hand at a distance of about 4 inches or 10 cm and then it waits until I remove my hand and it will continue forward. Let's see how we can implement this program.
What we want to do is to move forward with motors A and D for undefined amount of time, so we don't know where the object will be, but we are waiting for the ultrasonic to detect something at a distance less than 4 inches and then we stop with the motors.
The next thing is that now we are stopped and we are again waiting until the object is removed. We are waiting for the ultrasonic sensor to detect distance greater than 4 inches.
As we detect distance greater than 4 inches we move the robot forward again with the Tank block.
So this will be our program. Let's download it to the robot and see how it works. I place my hand here.
Let's do this again because I moved my hand.
The robot moved forward until it reached distance of about 10 cm to my hand and now when I remove my hand the robot will again move forward for about a rotation.
Now let's see how we can program the ultrasonic sensor to follow my hand.
Курсове и занятия включващи този Урок
Този Урок е използван в следните курсове и занятия.
EV3 Basic Course. Introduction to robot programming, construction and sensor use
This course is designed for students, mentors and teachers that are completely new to LEGO Mindstorms EV3 robots and would like to start using them to learn, in classes or at competitions. It is quite different from previously built resources at FLLCasts because it makes no assumption on any previous knowledge and tries to introduce everything step-by-step.
- 38
- 193:26
- 30
Ultrasonic Sensor
We are introducing the LEGO Mindstorms EV3 Ultrasonic Sensor. The first program is actually to detect an object and stop near it, at about 4 inches/10 centimeters. The ultrasonic sensor could be used during robotics competitions, but most of its use is for experiments.
- 5
- 0
- 3
- 3d_rotation 0
Instructors Remote Training
If you are working with students and you want to introduce Robotics to your class or you want to mentor a FLL team, but you are insecure about your technical knowledge in the Robotics field, then this is the right place for you. Having in mind teachers' busy schedule, we have design two different schedules and added an option to design one just for you. FLLCasts's Mindstorms EV3 Robotics Online Training is the perfect match for any teacher.
After the completion of each task the participant has to upload his solution for verification.
- 136
- 280:11
- 156
Ultrasonic Sensor Theory and Practice
We are introducing the LEGO Mindstorms EV3 Ultrasonic Sensor. The first program is actually to detect an object and stop near it, at about 4 inches/10 centimeters. The ultrasonic sensor could be used during robotics competitions, but most of its use is for experiments.
- 4
- 0
- 0
- 3d_rotation 0
Instructors Remote Training
If you are working with students and you want to introduce Robotics to your class or you want to mentor a FLL team, but you are insecure about your technical knowledge in the Robotics field, then this is the right place for you. Having in mind teachers' busy schedule, we have design two different schedules and added an option to design one just for you. FLLCasts's Mindstorms EV3 Robotics Online Training is the perfect match for any teacher.
After the completion of each task the participant has to upload his solution for verification.
- 136
- 280:11
- 156
Ultrasonic Sensor
We are introducing the LEGO Mindstorms EV3 Ultrasonic Sensor. The first program is actually to detect an object and stop near it, at about 4 inches/10 centimeters. The ultrasonic sensor could be used during robotics competitions, but most of its use is for experiments.
- 4
- 0
- 3
- 3d_rotation 0