EV3 basics course. Ultrasonic Sensor. Move after object is removed (part2)
The robot detects an object. After the object is remove we want to make the LEGO robot move forward.
- #143
- 13 Oct 2015
The robot detects an object. After the object is remove we want to make the LEGO robot move forward.
This is a teacher's note about the math behind calculating gear ratios with for our lifting attachment. It math model we build in previous tutorials is not exactly correct and here is the explanation why.
What happens if we need to perform some actions simultaneously from the middle of a program. Let us assume that we have a multi-threaded task at hand, but before it we need to rotate our robot at 360 degrees.
The goal of this lesson is for students to have fun with a new robot.
Unplug one of the cables and observe what the robot does.
This project is for Hrutur - a LEGO Mindstorms EV3 Ram robot. The project includes two programs. The first one makes the robot go forward for two seconds and then detect if it has collided with something and if it has, it goes backwards for half a second. The second program is basically the same, but checks a lot more frequently whether the robot is hit, and is repeated in a loop. Both programs use motor rotation sensor to detect collision.
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.