EV3 basics course. Color Sensor. Stop on third line without Wait block (part 3)
Use the color sensor to count the lines and stop on the third line. We do not use the wait block for this.
- #149
- 24 Oct 2015
Use the color sensor to count the lines and stop on the third line. We do not use the wait block for this.
Tasks on using the LEGO EV3 Mindstorms Color sensor. Quite fun and useful for different STEM classes or just to get to know the sensor.
In a competition environment like the FIRST LEGO League (FLL) or World Robotics Olympiad (WRO) the color sensor is more than useful. It makes positioning on the field quite easy and precise.
The Gyro sensor in LEGO Mindstorms EV3 sets is new for the sets and we answer basic questions about its usage. The sensor detect when the whole constructions turns at a particular angle, but there are a number of gotchas in using it.
Turning with the Gyro Sensor on a specified angle and stopping there have never been easy. It is not going to get any better. However, this is not a problem of the Gyro sensor. The problem is in the way we develop our programs.
Let's explain the problem of just waiting for the Gyro sensor to detect an angle and think of why the robotics systems work like that.
The Gyro sensor can be positioned horizontally, vertically or at a random angle. Have you ever wonder what does the gyro detect when it is positioned vertically. This is the subject of this video tutorial for the LEGO Mindstorms EV3 Gyro Sensor.
Tasks for the Gyro sensor that you can use in STEM classes, while preparing for a competition or just to explore how the sensor works.
In the first LEGO tutorial we started following a wall with the Ultrasonic Sensor. In this tutorial we would improve the program, remove the zig zag movement and make it very smooth.
Implementing the next logic for aligning to the border when we approach the border from the right.
If you get to a solution that is too complex you should always try to improve it. This is what we are doing here. Arriving at a solution for aligning to the wall that has become too complex.
We explore some common mistakes when a program is developed and becomes complex. We then try to remove part of this complexity.
Arriving at a final solution. There is still room for improvement on using the Mindstorms Ultrasonic Sensor for aligning to walls, but we hope the whole five videos could give you a good idea of how to start with a problem and reach a solution.
Continuing with the Proportional algorithm for following lines. Smooth and stable this is the first part of the PID.
Last part of the series. The final touch of the program makes sure that it works and is following the line with the LEGO Mindstorms EV3 Color Sensor in a smooth and fast way.